#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "ui/events/ozone/evdev/event_device_test_util.h"
#include <stdint.h>
#include "base/format_macros.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_split.h"
#include "base/strings/string_util.h"
#include "base/strings/stringprintf.h"
#include "ui/events/ozone/evdev/event_device_info.h"
#include "ui/events/ozone/evdev/event_device_util.h"
namespace ui {
namespace {
const int kTestDataWordSize = …;
#define EVDEV_BITS_TO_GROUPS(x) …
std::string SerializeBitfield(unsigned long* bitmap, int max) { … }
bool ParseBitfield(const std::string& bitfield,
size_t max_bits,
std::vector<unsigned long>* out) { … }
}
const DeviceAbsoluteAxis kHJCGamepadAbsAxes[] = …;
const DeviceCapabilities kHJCGamepad = …;
const DeviceAbsoluteAxis kXboxGamepadAbsAxes[] = …;
const DeviceCapabilities kXboxGamepad = …;
const DeviceAbsoluteAxis kiBuffaloGamepadAbsAxes[] = …;
const DeviceCapabilities kiBuffaloGamepad = …;
const DeviceAbsoluteAxis kBaskingTouchScreenAbsAxes[] = …;
const DeviceCapabilities kBaskingTouchScreen = …;
const DeviceAbsoluteAxis kEveTouchScreenAbsAxes[] = …;
const DeviceCapabilities kEveTouchScreen = …;
const DeviceAbsoluteAxis kNocturneTouchScreenAbsAxes[] = …;
const DeviceCapabilities kNocturneTouchScreen = …;
const DeviceCapabilities kLinkKeyboard = …;
const DeviceAbsoluteAxis kLinkTouchscreenAbsAxes[] = …;
const DeviceCapabilities kLinkTouchscreen = …;
const DeviceAbsoluteAxis kLinkWithToolTypeTouchscreenAbsAxes[] = …;
const DeviceCapabilities kLinkWithToolTypeTouchscreen = …;
const DeviceAbsoluteAxis kLinkTouchpadAbsAxes[] = …;
const DeviceCapabilities kLinkTouchpad = …;
const DeviceCapabilities kMorphiusPointingStick = …;
const DeviceCapabilities kMorphiusTabletModeSwitch = …;
const DeviceCapabilities kHpUsbKeyboard = …;
const DeviceAbsoluteAxis kHpUsbKeyboard_ExtraAbsAxes[] = …;
const DeviceCapabilities kHpUsbKeyboard_Extra = …;
const DeviceCapabilities kLogitechUsbMouse = …;
const DeviceAbsoluteAxis kMimoTouch2TouchscreenAbsAxes[] = …;
const DeviceCapabilities kMimoTouch2Touchscreen = …;
const DeviceAbsoluteAxis kWacomIntuosPtS_PenAbsAxes[] = …;
const DeviceCapabilities kWacomIntuosPtS_Pen = …;
const DeviceAbsoluteAxis kWacomIntuosPtS_FingerAbsAxes[] = …;
const DeviceCapabilities kWacomIntuosPtS_Finger = …;
const DeviceAbsoluteAxis kLogitechTouchKeyboardK400AbsAxes[] = …;
const DeviceCapabilities kLogitechTouchKeyboardK400 = …;
const DeviceAbsoluteAxis kElo_TouchSystems_2700AbsAxes[] = …;
const DeviceCapabilities kElo_TouchSystems_2700 = …;
const DeviceAbsoluteAxis kWilsonBeachActiveStylusAbsAxes[] = …;
const DeviceCapabilities kWilsonBeachActiveStylus = …;
const DeviceAbsoluteAxis kEveStylusAbsAxes[] = …;
const DeviceCapabilities kEveStylus = …;
const DeviceAbsoluteAxis kNocturneStylusAbsAxes[] = …;
const DeviceCapabilities kNocturneStylus = …;
const DeviceCapabilities kHammerKeyboard = …;
const DeviceAbsoluteAxis kHammerTouchpadAbsAxes[] = …;
const DeviceCapabilities kHammerTouchpad = …;
const DeviceAbsoluteAxis kIlitekTP_Mouse_AbsAxes[] = …;
const DeviceCapabilities kIlitekTP_Mouse = …;
const DeviceAbsoluteAxis kIlitekTPAbsAxes[] = …;
const DeviceCapabilities kIlitekTP = …;
const DeviceCapabilities kSideVolumeButton = …;
const DeviceAbsoluteAxis kKohakuTouchscreenAxes[] = …;
const DeviceCapabilities kKohakuTouchscreen = …;
const DeviceAbsoluteAxis kKohakuStylusAxes[] = …;
const DeviceCapabilities kKohakuStylus = …;
const DeviceAbsoluteAxis kXboxEliteAxes[] = …;
const DeviceCapabilities kXboxElite = …;
const DeviceCapabilities kDellActivePenButton = …;
const DeviceAbsoluteAxis kDrallionStylusAxes[] = …;
const DeviceCapabilities kDrallionStylus = …;
const DeviceCapabilities kDrallionKeyboard = …;
const DeviceCapabilities kPuffMicrophoneMuteSwitch = …;
const DeviceCapabilities kDrawciaStylusGarage = …;
const DeviceCapabilities kEveKeyboard = …;
const DeviceCapabilities kSarienKeyboard = …;
const DeviceCapabilities kWoomaxKeyboard = …;
const DeviceCapabilities kDrobitKeyboard = …;
const DeviceCapabilities kDrobitNumberpad = …;
const DeviceCapabilities kLogitechKeyboardK120 = …;
const DeviceAbsoluteAxis kMicrosoftBluetoothNumberPadAbsAxes[] = …;
const DeviceCapabilities kMicrosoftBluetoothNumberPad = …;
const ui::DeviceAbsoluteAxis kDellLatitudeE6510TouchpadAbsAxes[] = …;
const ui::DeviceCapabilities kDellLatitudeE6510Touchpad = …;
const ui::DeviceAbsoluteAxis kHPProBook6560bTouchpadAbsAxes[] = …;
const ui::DeviceCapabilities kHPProBook6560bTouchpad = …;
const DeviceCapabilities kJinlonKeyboard = …;
const DeviceAbsoluteAxis kRedrixTouchpadAxes[] = …;
const DeviceCapabilities kRedrixTouchpad = …;
const DeviceCapabilities kSymbolTechBarcodeScanner = …;
const DeviceAbsoluteAxis kRexHeatmapTouchScreenAbsAxes[] = …;
const DeviceCapabilities kRexHeatmapTouchScreen = …;
const DeviceCapabilities kSplitModifierKeyboard = …;
bool CapabilitiesToDeviceInfo(const DeviceCapabilities& capabilities,
EventDeviceInfo* devinfo) { … }
}