Lines Matching refs:int32_t
184 SortedVector<int32_t> disabledDevices;
265 virtual sp<PointerControllerInterface> obtainPointerController(int32_t deviceId) = 0;
281 const String8& inputDeviceDescriptor, int32_t surfaceRotation) = 0;
301 virtual bool isInputDeviceEnabled(int32_t deviceId) = 0;
317 virtual int32_t getScanCodeState(int32_t deviceId, uint32_t sourceMask,
318 int32_t scanCode) = 0;
319 virtual int32_t getKeyCodeState(int32_t deviceId, uint32_t sourceMask,
320 int32_t keyCode) = 0;
321 virtual int32_t getSwitchState(int32_t deviceId, uint32_t sourceMask,
322 int32_t sw) = 0;
325 virtual void toggleCapsLockState(int32_t deviceId) = 0;
328 virtual bool hasKeys(int32_t deviceId, uint32_t sourceMask,
329 size_t numCodes, const int32_t* keyCodes, uint8_t* outFlags) = 0;
337 virtual void vibrate(int32_t deviceId, const nsecs_t* pattern, size_t patternSize,
338 ssize_t repeat, int32_t token) = 0;
339 virtual void cancelVibrate(int32_t deviceId, int32_t token) = 0;
350 int32_t toolType;
377 virtual int32_t getGlobalMetaState() = 0;
381 InputDevice* device, int32_t keyCode, int32_t scanCode) = 0;
386 virtual int32_t bumpGeneration() = 0;
422 virtual bool isInputDeviceEnabled(int32_t deviceId);
424 virtual int32_t getScanCodeState(int32_t deviceId, uint32_t sourceMask,
425 int32_t scanCode);
426 virtual int32_t getKeyCodeState(int32_t deviceId, uint32_t sourceMask,
427 int32_t keyCode);
428 virtual int32_t getSwitchState(int32_t deviceId, uint32_t sourceMask,
429 int32_t sw);
431 virtual void toggleCapsLockState(int32_t deviceId);
433 virtual bool hasKeys(int32_t deviceId, uint32_t sourceMask,
434 size_t numCodes, const int32_t* keyCodes, uint8_t* outFlags);
438 virtual void vibrate(int32_t deviceId, const nsecs_t* pattern, size_t patternSize,
439 ssize_t repeat, int32_t token);
440 virtual void cancelVibrate(int32_t deviceId, int32_t token);
444 virtual InputDevice* createDeviceLocked(int32_t deviceId, int32_t controllerNumber,
454 virtual int32_t getGlobalMetaState();
457 InputDevice* device, int32_t keyCode, int32_t scanCode);
460 virtual int32_t bumpGeneration();
485 KeyedVector<int32_t, InputDevice*> mDevices;
490 void addDeviceLocked(nsecs_t when, int32_t deviceId);
491 void removeDeviceLocked(nsecs_t when, int32_t deviceId);
492 void processEventsForDeviceLocked(int32_t deviceId, const RawEvent* rawEvents, size_t count);
497 int32_t mGlobalMetaState;
499 int32_t getGlobalMetaStateLocked();
507 int32_t mGeneration;
508 int32_t bumpGenerationLocked();
515 InputDevice* device, int32_t keyCode, int32_t scanCode);
524 typedef int32_t (InputDevice::*GetStateFunc)(uint32_t sourceMask, int32_t code);
525 int32_t getStateLocked(int32_t deviceId, uint32_t sourceMask, int32_t code,
527 bool markSupportedKeyCodesLocked(int32_t deviceId, uint32_t sourceMask, size_t numCodes,
528 const int32_t* keyCodes, uint8_t* outFlags);
548 InputDevice(InputReaderContext* context, int32_t id, int32_t generation, int32_t
553 inline int32_t getId() const { return mId; } in getId()
554 inline int32_t getControllerNumber() const { return mControllerNumber; } in getControllerNumber()
555 inline int32_t getGeneration() const { return mGeneration; } in getGeneration()
581 int32_t getKeyCodeState(uint32_t sourceMask, int32_t keyCode);
582 int32_t getScanCodeState(uint32_t sourceMask, int32_t scanCode);
583 int32_t getSwitchState(uint32_t sourceMask, int32_t switchCode);
585 const int32_t* keyCodes, uint8_t* outFlags);
586 void vibrate(const nsecs_t* pattern, size_t patternSize, ssize_t repeat, int32_t token);
587 void cancelVibrate(int32_t token);
590 int32_t getMetaState();
591 void updateMetaState(int32_t keyCode);
602 bool hasKey(int32_t code) { in hasKey()
606 bool hasAbsoluteAxis(int32_t code) { in hasAbsoluteAxis()
612 bool isKeyPressed(int32_t code) { in isKeyPressed()
616 int32_t getAbsoluteAxisValue(int32_t code) { in getAbsoluteAxisValue()
617 int32_t value; in getAbsoluteAxisValue()
624 int32_t mId;
625 int32_t mGeneration;
626 int32_t mControllerNumber;
638 typedef int32_t (InputMapper::*GetStateFunc)(uint32_t sourceMask, int32_t code);
639 int32_t getState(uint32_t sourceMask, int32_t code, GetStateFunc getStateFunc);
679 inline int32_t getRelativeX() const { return mRelX; } in getRelativeX()
680 inline int32_t getRelativeY() const { return mRelY; } in getRelativeY()
683 int32_t mRelX;
684 int32_t mRelY;
704 inline int32_t getRelativeX() const { return mRelX; } in getRelativeX()
705 inline int32_t getRelativeY() const { return mRelY; } in getRelativeY()
706 inline int32_t getRelativeVWheel() const { return mRelWheel; } in getRelativeVWheel()
707 inline int32_t getRelativeHWheel() const { return mRelHWheel; } in getRelativeHWheel()
713 int32_t mRelX;
714 int32_t mRelY;
715 int32_t mRelWheel;
716 int32_t mRelHWheel;
732 int32_t getToolType() const;
785 int32_t x;
786 int32_t y;
787 int32_t pressure;
788 int32_t touchMajor;
789 int32_t touchMinor;
790 int32_t toolMajor;
791 int32_t toolMinor;
792 int32_t orientation;
793 int32_t distance;
794 int32_t tiltX;
795 int32_t tiltY;
796 int32_t toolType; // a fully decoded AMOTION_EVENT_TOOL_TYPE constant
875 inline int32_t getAbsoluteX() const { return mAbsX; } in getAbsoluteX()
876 inline int32_t getAbsoluteY() const { return mAbsY; } in getAbsoluteY()
877 inline int32_t getAbsolutePressure() const { return mAbsPressure; } in getAbsolutePressure()
878 inline int32_t getAbsoluteToolWidth() const { return mAbsToolWidth; } in getAbsoluteToolWidth()
879 inline int32_t getAbsoluteDistance() const { return mAbsDistance; } in getAbsoluteDistance()
880 inline int32_t getAbsoluteTiltX() const { return mAbsTiltX; } in getAbsoluteTiltX()
881 inline int32_t getAbsoluteTiltY() const { return mAbsTiltY; } in getAbsoluteTiltY()
884 int32_t mAbsX;
885 int32_t mAbsY;
886 int32_t mAbsPressure;
887 int32_t mAbsToolWidth;
888 int32_t mAbsDistance;
889 int32_t mAbsTiltX;
890 int32_t mAbsTiltY;
902 inline int32_t getX() const { return mAbsMTPositionX; } in getX()
903 inline int32_t getY() const { return mAbsMTPositionY; } in getY()
904 inline int32_t getTouchMajor() const { return mAbsMTTouchMajor; } in getTouchMajor()
905 inline int32_t getTouchMinor() const { in getTouchMinor()
907 inline int32_t getToolMajor() const { return mAbsMTWidthMajor; } in getToolMajor()
908 inline int32_t getToolMinor() const { in getToolMinor()
910 inline int32_t getOrientation() const { return mAbsMTOrientation; } in getOrientation()
911 inline int32_t getTrackingId() const { return mAbsMTTrackingId; } in getTrackingId()
912 inline int32_t getPressure() const { return mAbsMTPressure; } in getPressure()
913 inline int32_t getDistance() const { return mAbsMTDistance; } in getDistance()
914 inline int32_t getToolType() const;
924 int32_t mAbsMTPositionX;
925 int32_t mAbsMTPositionY;
926 int32_t mAbsMTTouchMajor;
927 int32_t mAbsMTTouchMinor;
928 int32_t mAbsMTWidthMajor;
929 int32_t mAbsMTWidthMinor;
930 int32_t mAbsMTOrientation;
931 int32_t mAbsMTTrackingId;
932 int32_t mAbsMTPressure;
933 int32_t mAbsMTDistance;
934 int32_t mAbsMTToolType;
953 int32_t mCurrentSlot;
959 void clearSlots(int32_t initialSlot);
981 inline int32_t getDeviceId() { return mDevice->getId(); } in getDeviceId()
996 virtual int32_t getKeyCodeState(uint32_t sourceMask, int32_t keyCode);
997 virtual int32_t getScanCodeState(uint32_t sourceMask, int32_t scanCode);
998 virtual int32_t getSwitchState(uint32_t sourceMask, int32_t switchCode);
1000 const int32_t* keyCodes, uint8_t* outFlags);
1002 int32_t token);
1003 virtual void cancelVibrate(int32_t token);
1006 virtual int32_t getMetaState();
1007 virtual void updateMetaState(int32_t keyCode);
1017 status_t getAbsoluteAxisInfo(int32_t axis, RawAbsoluteAxisInfo* axisInfo);
1034 virtual int32_t getSwitchState(uint32_t sourceMask, int32_t switchCode);
1041 void processSwitch(int32_t switchCode, int32_t switchValue);
1056 int32_t token);
1057 virtual void cancelVibrate(int32_t token);
1066 int32_t mToken;
1077 KeyboardInputMapper(InputDevice* device, uint32_t source, int32_t keyboardType);
1087 virtual int32_t getKeyCodeState(uint32_t sourceMask, int32_t keyCode);
1088 virtual int32_t getScanCodeState(uint32_t sourceMask, int32_t scanCode);
1090 const int32_t* keyCodes, uint8_t* outFlags);
1092 virtual int32_t getMetaState();
1093 virtual void updateMetaState(int32_t keyCode);
1097 int32_t keyCode;
1098 int32_t scanCode;
1102 int32_t mKeyboardType;
1104 int32_t mOrientation; // orientation for dpad keys
1107 int32_t mMetaState;
1110 int32_t mCurrentHidUsage; // most recent HID usage seen this packet, or 0 if none
1130 bool isKeyboardOrGamepadKey(int32_t scanCode);
1131 bool isMediaKey(int32_t keyCode);
1133 void processKey(nsecs_t when, bool down, int32_t scanCode, int32_t usageCode);
1135 bool updateMetaStateIfNeeded(int32_t keyCode, bool down);
1137 ssize_t findKeyDown(int32_t scanCode);
1140 void initializeLedState(LedState& ledState, int32_t led);
1142 void updateLedStateForModifier(LedState& ledState, int32_t led,
1143 int32_t modifier, bool reset);
1159 virtual int32_t getScanCodeState(uint32_t sourceMask, int32_t scanCode);
1165 static const int32_t TRACKBALL_MOVEMENT_THRESHOLD = 6;
1184 int32_t mSource;
1199 int32_t mOrientation;
1203 int32_t mButtonState;
1228 int32_t mSource;
1230 int32_t mOrientation;
1247 virtual int32_t getKeyCodeState(uint32_t sourceMask, int32_t keyCode);
1248 virtual int32_t getScanCodeState(uint32_t sourceMask, int32_t scanCode);
1250 const int32_t* keyCodes, uint8_t* outFlags);
1263 int32_t keyCode;
1264 int32_t scanCode;
1268 int32_t hitLeft;
1269 int32_t hitTop;
1270 int32_t hitRight;
1271 int32_t hitBottom;
1273 inline bool isHit(int32_t x, int32_t y) const { in isHit()
1404 int32_t buttonState;
1407 int32_t rawVScroll;
1408 int32_t rawHScroll;
1436 int32_t buttonState;
1516 int32_t mSurfaceWidth;
1517 int32_t mSurfaceHeight;
1518 int32_t mSurfaceLeft;
1519 int32_t mSurfaceTop;
1520 int32_t mSurfaceOrientation;
1597 int32_t keyCode;
1598 int32_t scanCode;
1683 int32_t activeTouchId; // -1 if none
1686 int32_t activeGestureId; // -1 if none
1800 int32_t keyEventAction, int32_t keyEventFlags);
1839 int32_t action, int32_t actionButton,
1840 int32_t flags, int32_t metaState, int32_t buttonState, int32_t edgeFlags,
1843 int32_t changedId, float xPrecision, float yPrecision, nsecs_t downTime);
1852 bool isPointInsideSurface(int32_t x, int32_t y);
1853 const VirtualKey* findVirtualKeyHit(int32_t x, int32_t y);
1897 int32_t mPointerTrackingIdMap[MAX_POINTER_ID + 1];
1987 KeyedVector<int32_t, Axis> mAxes;
1991 bool haveAxis(int32_t axisId);
2000 static bool isCenteredAxis(int32_t axis);
2001 static int32_t getCompatAxis(int32_t axis);
2003 static void addMotionRange(int32_t axisId, const Axis& axis, InputDeviceInfo* info);
2004 static void setPointerCoordsAxisValue(PointerCoords* pointerCoords, int32_t axis,