Home
last modified time | relevance | path

Searched refs:int32_t (Results 1 – 25 of 2365) sorted by relevance

12345678910>>...95

/frameworks/native/services/inputflinger/tests/
DFakeEventHub.h37 int32_t keyCode;
43 int32_t sensorDataIndex;
52 KeyedVector<int32_t, int32_t> keyCodeStates;
53 KeyedVector<int32_t, int32_t> scanCodeStates;
54 KeyedVector<int32_t, int32_t> switchStates;
55 KeyedVector<int32_t, int32_t> absoluteAxisValue;
56 KeyedVector<int32_t, KeyInfo> keysByScanCode;
57 KeyedVector<int32_t, KeyInfo> keysByUsageCode;
58 std::unordered_map<int32_t, int32_t> keyRemapping;
59 KeyedVector<int32_t, bool> leds;
[all …]
DInterfaceMocks.h27 int32_t getGlobalMetaState() override { return 0; }; in getGlobalMetaState()
30 MOCK_METHOD(bool, shouldDropVirtualKey, (nsecs_t now, int32_t keyCode, int32_t scanCode),
35 (int32_t deviceId), (override));
38 MOCK_METHOD(int32_t, bumpGeneration, (), (override));
48 int32_t getNextId() override { return 1; }; in getNextId()
50 MOCK_METHOD(void, updateLedMetaState, (int32_t metaState), (override));
51 MOCK_METHOD(int32_t, getLedMetaState, (), (override));
59 MOCK_METHOD(ftl::Flags<InputDeviceClass>, getDeviceClasses, (int32_t deviceId), (const));
60 MOCK_METHOD(InputDeviceIdentifier, getDeviceIdentifier, (int32_t deviceId), (const));
61 MOCK_METHOD(int32_t, getDeviceControllerNumber, (int32_t deviceId), (const));
[all …]
DFakeEventHub.cpp35 void FakeEventHub::addDevice(int32_t deviceId, const std::string& name, in addDevice()
45 void FakeEventHub::removeDevice(int32_t deviceId) { in removeDevice()
52 bool FakeEventHub::isDeviceEnabled(int32_t deviceId) const { in isDeviceEnabled()
61 status_t FakeEventHub::enableDevice(int32_t deviceId) { in enableDevice()
76 status_t FakeEventHub::disableDevice(int32_t deviceId) { in disableDevice()
93 void FakeEventHub::addConfigurationProperty(int32_t deviceId, const char* key, const char* value) { in addConfigurationProperty()
97 void FakeEventHub::addConfigurationMap(int32_t deviceId, const PropertyMap* configuration) { in addConfigurationMap()
101 void FakeEventHub::addAbsoluteAxis(int32_t deviceId, int axis, int32_t minValue, int32_t maxValue, in addAbsoluteAxis()
115 void FakeEventHub::addRelativeAxis(int32_t deviceId, int32_t axis) { in addRelativeAxis()
119 void FakeEventHub::setKeyCodeState(int32_t deviceId, int32_t keyCode, int32_t state) { in setKeyCodeState()
[all …]
/frameworks/av/media/libstagefright/include/media/stagefright/
DMediaCodecConstants.h24 inline constexpr int32_t AVCProfileBaseline = 0x01;
25 inline constexpr int32_t AVCProfileMain = 0x02;
26 inline constexpr int32_t AVCProfileExtended = 0x04;
27 inline constexpr int32_t AVCProfileHigh = 0x08;
28 inline constexpr int32_t AVCProfileHigh10 = 0x10;
29 inline constexpr int32_t AVCProfileHigh422 = 0x20;
30 inline constexpr int32_t AVCProfileHigh444 = 0x40;
31 inline constexpr int32_t AVCProfileConstrainedBaseline = 0x10000;
32 inline constexpr int32_t AVCProfileConstrainedHigh = 0x80000;
34 inline static const char *asString_AVCProfile(int32_t i, const char *def = "??") {
[all …]
DYUVImage.h56 YUVImage(YUVFormat yuvFormat, int32_t width, int32_t height);
60 YUVImage(YUVFormat yuvFormat, int32_t width, int32_t height, uint8_t *buffer);
68 static size_t bufferSize(YUVFormat yuvFormat, int32_t width, int32_t height);
70 int32_t width() const {return mWidth;} in width()
71 int32_t height() const {return mHeight;} in height()
75 bool validPixel(int32_t x, int32_t y) const;
80 bool getPixelValue(int32_t x, int32_t y,
86 bool setPixelValue(int32_t x, int32_t y,
92 int32_t destStartX, int32_t destStartY,
98 int32_t destStartX, int32_t destStartY,
[all …]
/frameworks/av/media/libeffects/testlibs/
DEffectsMath.h61 (((int32_t)(a) * (int32_t)(b)) >> 15)
66 (((int32_t)(a) * (int32_t)(b) ) << 1)
71 (((int32_t)(a) * (int32_t)(b) ) >> 1)
76 (((int32_t)((a) << 7) * (int32_t)(b)) >> 15)
108 #define PHASE_ONE (int32_t) (0x1L << NUM_PHASE_FRAC_BITS)
117 (int32_t)( \
119 ((int32_t)(audio)) * ((int32_t)(coef)) \
130 #define WET_DRY_ONE (int32_t) ((0x1L << NUM_WET_DRY_FRAC_BITS))
131 #define WET_DRY_MINUS_ONE (int32_t) (~WET_DRY_ONE)
132 #define WET_DRY_FULL_SCALE (int32_t) (WET_DRY_ONE - 1)
[all …]
/frameworks/native/include/input/
DKeyCharacterMap.h47 enum class KeyboardType : int32_t {
72 int32_t keyCode;
73 int32_t metaState;
98 char16_t getDisplayLabel(int32_t keyCode) const;
104 char16_t getNumber(int32_t keyCode) const;
109 char16_t getCharacter(int32_t keyCode, int32_t metaState) const;
115 bool getFallbackAction(int32_t keyCode, int32_t metaState,
122 char16_t getMatch(int32_t keyCode, const char16_t* chars,
123 size_t numChars, int32_t metaState) const;
128 bool getEvents(int32_t deviceId, const char16_t* chars, size_t numChars,
[all …]
DKeyLayoutMap.h44 int32_t axis;
47 int32_t highAxis;
50 int32_t splitValue;
53 int32_t flatOverride;
71 status_t mapKey(int32_t scanCode, int32_t usageCode,
72 int32_t* outKeyCode, uint32_t* outFlags) const;
73 std::vector<int32_t> findScanCodesForKey(int32_t keyCode) const;
74 std::optional<int32_t> findScanCodeForLed(int32_t ledCode) const;
75 std::vector<int32_t> findUsageCodesForKey(int32_t keyCode) const;
76 std::optional<int32_t> findUsageCodeForLed(int32_t ledCode) const;
[all …]
/frameworks/native/services/inputflinger/reader/include/
DEventHub.h63 int32_t deviceId;
64 int32_t type;
65 int32_t code;
66 int32_t value;
73 int32_t minValue{}; // minimum value
74 int32_t maxValue{}; // maximum value
75 int32_t flat{}; // center flat position, eg. flat == 8 means center is between -8 and 8
76 int32_t fuzz{}; // error tolerance, eg. fuzz == 4 means value is +/- 4 due to noise
77 int32_t resolution{}; // resolution in units per mm or radians per mm
191 int32_t id;
[all …]
DInputReader.h65 bool isInputDeviceEnabled(int32_t deviceId) override;
67 int32_t getScanCodeState(int32_t deviceId, uint32_t sourceMask, int32_t scanCode) override;
68 int32_t getKeyCodeState(int32_t deviceId, uint32_t sourceMask, int32_t keyCode) override;
69 int32_t getSwitchState(int32_t deviceId, uint32_t sourceMask, int32_t sw) override;
71 void addKeyRemapping(int32_t deviceId, int32_t fromKeyCode, int32_t toKeyCode) const override;
73 int32_t getKeyCodeForKeyLocation(int32_t deviceId, int32_t locationKeyCode) const override;
75 void toggleCapsLockState(int32_t deviceId) override;
77 bool hasKeys(int32_t deviceId, uint32_t sourceMask, const std::vector<int32_t>& keyCodes,
82 void vibrate(int32_t deviceId, const VibrationSequence& sequence, ssize_t repeat,
83 int32_t token) override;
[all …]
DInputDevice.h44 InputDevice(InputReaderContext* context, int32_t id, int32_t generation,
49 inline int32_t getId() const { return mId; } in getId()
50 inline int32_t getControllerNumber() const { return mControllerNumber; } in getControllerNumber()
51 inline int32_t getGeneration() const { return mGeneration; } in getGeneration()
83 void addEmptyEventHubDevice(int32_t eventHubId);
84 void addEventHubDevice(int32_t eventHubId, const InputReaderConfiguration& readerConfig);
85 void removeEventHubDevice(int32_t eventHubId);
95 int32_t getKeyCodeState(uint32_t sourceMask, int32_t keyCode);
96 int32_t getScanCodeState(uint32_t sourceMask, int32_t scanCode);
97 int32_t getSwitchState(uint32_t sourceMask, int32_t switchCode);
[all …]
/frameworks/native/services/inputflinger/tests/fuzzers/
DMapperHelpers.h71 const int32_t toolType = fdp.template ConsumeIntegralInRange<int32_t>( in getFuzzedToolType()
72 static_cast<int32_t>(ToolType::ftl_first), in getFuzzedToolType()
73 static_cast<int32_t>(ToolType::ftl_last)); in getFuzzedToolType()
88 ftl::Flags<InputDeviceClass> getDeviceClasses(int32_t deviceId) const override { in getDeviceClasses()
91 InputDeviceIdentifier getDeviceIdentifier(int32_t deviceId) const override { in getDeviceIdentifier()
94 int32_t getDeviceControllerNumber(int32_t deviceId) const override { in getDeviceControllerNumber()
95 return mFdp->ConsumeIntegral<int32_t>(); in getDeviceControllerNumber()
97 std::optional<PropertyMap> getConfiguration(int32_t deviceId) const override { in getConfiguration()
100 status_t getAbsoluteAxisInfo(int32_t deviceId, int axis, in getAbsoluteAxisInfo()
104 bool hasRelativeAxis(int32_t deviceId, int axis) const override { return mFdp->ConsumeBool(); } in hasRelativeAxis()
[all …]
DInputReaderFuzzer.cpp58 bool isInputDeviceEnabled(int32_t deviceId) { return reader->isInputDeviceEnabled(deviceId); } in isInputDeviceEnabled()
66 int32_t getScanCodeState(int32_t deviceId, uint32_t sourceMask, int32_t scanCode) { in getScanCodeState()
70 int32_t getKeyCodeState(int32_t deviceId, uint32_t sourceMask, int32_t keyCode) { in getKeyCodeState()
74 int32_t getSwitchState(int32_t deviceId, uint32_t sourceMask, int32_t sw) { in getSwitchState()
78 void toggleCapsLockState(int32_t deviceId) { reader->toggleCapsLockState(deviceId); } in toggleCapsLockState()
80 bool hasKeys(int32_t deviceId, uint32_t sourceMask, const std::vector<int32_t>& keyCodes, in hasKeys()
89 void vibrate(int32_t deviceId, const VibrationSequence& sequence, ssize_t repeat, in vibrate()
90 int32_t token) { in vibrate()
94 void cancelVibrate(int32_t deviceId, int32_t token) { reader->cancelVibrate(deviceId, token); } in cancelVibrate()
96 bool isVibrating(int32_t deviceId) { return reader->isVibrating(deviceId); } in isVibrating()
[all …]
/frameworks/native/services/inputflinger/include/
DNotifyArgs.h29 int32_t id;
34 NotifyInputDevicesChangedArgs(int32_t id, std::vector<InputDeviceInfo> infos);
44 int32_t id;
49 NotifyConfigurationChangedArgs(int32_t id, nsecs_t eventTime);
59 int32_t id;
62 int32_t deviceId;
64 int32_t displayId;
66 int32_t action;
67 int32_t flags;
68 int32_t keyCode;
[all …]
DInputReaderBase.h127 int32_t defaultPointerDisplayId;
207 int32_t touchpadPointerSpeed;
221 std::set<int32_t> disabledDevices;
262 std::optional<DisplayViewport> getDisplayViewportById(int32_t displayId) const;
297 virtual bool isInputDeviceEnabled(int32_t deviceId) = 0;
312 virtual int32_t getScanCodeState(int32_t deviceId, uint32_t sourceMask, int32_t scanCode) = 0;
313 virtual int32_t getKeyCodeState(int32_t deviceId, uint32_t sourceMask, int32_t keyCode) = 0;
314 virtual int32_t getSwitchState(int32_t deviceId, uint32_t sourceMask, int32_t sw) = 0;
316 virtual void addKeyRemapping(int32_t deviceId, int32_t fromKeyCode,
317 int32_t toKeyCode) const = 0;
[all …]
/frameworks/native/services/inputflinger/reader/controller/
DPeripheralController.h27 static constexpr int32_t MAX_BRIGHTNESS = 0xff;
33 int32_t getEventHubId() const override;
36 bool setLightColor(int32_t lightId, int32_t color) override;
37 bool setLightPlayerId(int32_t lightId, int32_t playerId) override;
38 std::optional<int32_t> getLightColor(int32_t lightId) override;
39 std::optional<int32_t> getLightPlayerId(int32_t lightId) override;
40 std::optional<int32_t> getBatteryCapacity(int32_t batteryId) override;
41 std::optional<int32_t> getBatteryStatus(int32_t batteryId) override;
44 inline int32_t getDeviceId() { return mDeviceContext.getId(); } in getDeviceId()
53 explicit Battery(InputDeviceContext& context, const std::string& name, int32_t id) in Battery()
[all …]
/frameworks/native/services/inputflinger/dispatcher/
DTouchedWindow.h37 bool hasHoveringPointers(int32_t deviceId) const;
38 bool hasHoveringPointer(int32_t deviceId, int32_t pointerId) const;
39 void addHoveringPointer(int32_t deviceId, int32_t pointerId);
40 void removeHoveringPointer(int32_t deviceId, int32_t pointerId);
43 bool hasTouchingPointer(int32_t deviceId, int32_t pointerId) const;
45 bool hasTouchingPointers(int32_t deviceId) const;
46 std::bitset<MAX_POINTER_ID + 1> getTouchingPointers(int32_t deviceId) const;
47 void addTouchingPointer(int32_t deviceId, int32_t pointerId);
48 void addTouchingPointers(int32_t deviceId, std::bitset<MAX_POINTER_ID + 1> pointers);
49 void removeTouchingPointer(int32_t deviceId, int32_t pointerId);
[all …]
DEntry.h46 int32_t id;
73 EventEntry(int32_t id, Type type, nsecs_t eventTime, uint32_t policyFlags);
81 explicit ConfigurationChangedEntry(int32_t id, nsecs_t eventTime);
88 int32_t deviceId;
90 DeviceResetEntry(int32_t id, nsecs_t eventTime, int32_t deviceId);
101 FocusEntry(int32_t id, nsecs_t eventTime, sp<IBinder> connectionToken, bool hasFocus,
111 PointerCaptureChangedEntry(int32_t id, nsecs_t eventTime, const PointerCaptureRequest&);
122 DragEntry(int32_t id, nsecs_t eventTime, sp<IBinder> connectionToken, bool isExiting, float x,
130 int32_t deviceId;
132 int32_t displayId;
[all …]
DInputState.h28 static constexpr int32_t INVALID_POINTER_INDEX = -1;
39 bool isHovering(int32_t deviceId, uint32_t source, int32_t displayId) const;
44 bool trackKey(const KeyEntry& entry, int32_t action, int32_t flags);
49 bool trackMotion(const MotionEntry& entry, int32_t action, int32_t flags);
67 std::optional<int32_t> getFallbackKey(int32_t originalKeyCode);
70 void setFallbackKey(int32_t originalKeyCode, int32_t fallbackKeyCode);
73 void removeFallbackKey(int32_t originalKeyCode);
75 inline const std::map<int32_t, int32_t>& getFallbackKeys() const { return mFallbackKeys; } in getFallbackKeys()
79 int32_t deviceId;
81 int32_t displayId;
[all …]
/frameworks/av/media/libaaudio/tests/
Dtest_block_adapter.cpp38 void fillSequence(int32_t *indexBuffer, int32_t frameCount) { in fillSequence()
45 int checkSequence(const int32_t *indexBuffer, int32_t frameCount) { in checkSequence()
48 int32_t expected = mTestIndex++; in checkSequence()
49 int32_t actual = indexBuffer[i]; in checkSequence()
58 int32_t mTestBuffer[TEST_BUFFER_SIZE];
59 int32_t mTestIndex;
60 int32_t mLastIndex;
67 mFixedBlockWriter.open(sizeof(int32_t) * FIXED_BLOCK_SIZE); in TestBlockWriter()
74 int32_t onProcessFixedBlock(uint8_t *buffer, int32_t numBytes) override { in onProcessFixedBlock()
75 int32_t frameCount = numBytes / sizeof(int32_t); in onProcessFixedBlock()
[all …]
/frameworks/native/include/android/
Dconfiguration.h531 int32_t AConfiguration_getMcc(AConfiguration* config);
536 void AConfiguration_setMcc(AConfiguration* config, int32_t mcc);
541 int32_t AConfiguration_getMnc(AConfiguration* config);
546 void AConfiguration_setMnc(AConfiguration* config, int32_t mnc);
577 int32_t AConfiguration_getOrientation(AConfiguration* config);
582 void AConfiguration_setOrientation(AConfiguration* config, int32_t orientation);
587 int32_t AConfiguration_getTouchscreen(AConfiguration* config);
592 void AConfiguration_setTouchscreen(AConfiguration* config, int32_t touchscreen);
597 int32_t AConfiguration_getDensity(AConfiguration* config);
602 void AConfiguration_setDensity(AConfiguration* config, int32_t density);
[all …]
/frameworks/av/media/libaaudio/src/binding/
DRingBufferParcelable.h39 void setupMemory(int32_t sharedMemoryIndex,
40 int32_t dataMemoryOffset,
41 int32_t dataSizeInBytes,
42 int32_t readCounterOffset,
43 int32_t writeCounterOffset,
44 int32_t counterSizeBytes);
46 void setupMemory(int32_t sharedMemoryIndex,
47 int32_t dataMemoryOffset,
48 int32_t dataSizeInBytes);
66 int32_t getBytesPerFrame() const;
[all …]
/frameworks/base/services/incremental/
DBinderIncrementalService.h42 binder::Status openStorage(const std::string& path, int32_t* _aidl_return) final;
45 int32_t createMode, int32_t* _aidl_return) final;
46 binder::Status createLinkedStorage(const std::string& path, int32_t otherStorageId,
47 int32_t createMode, int32_t* _aidl_return) final;
49 int32_t storageId, const ::android::content::pm::DataLoaderParamsParcel& params,
55 binder::Status onInstallationComplete(int32_t storageId) final;
57 binder::Status makeBindMount(int32_t storageId, const std::string& sourcePath,
58 const std::string& targetFullPath, int32_t bindType,
59 int32_t* _aidl_return) final;
60 binder::Status deleteBindMount(int32_t storageId, const std::string& targetFullPath,
[all …]
/frameworks/native/services/inputflinger/reader/mapper/accumulator/
DMultiTouchMotionAccumulator.h34 inline int32_t getX() const { return mAbsMtPositionX; } in getX()
35 inline int32_t getY() const { return mAbsMtPositionY; } in getY()
36 inline int32_t getTouchMajor() const { return mAbsMtTouchMajor; } in getTouchMajor()
37 inline int32_t getTouchMinor() const { in getTouchMinor()
40 inline int32_t getToolMajor() const { return mAbsMtWidthMajor; } in getToolMajor()
41 inline int32_t getToolMinor() const { in getToolMinor()
44 inline int32_t getOrientation() const { return mAbsMtOrientation; } in getOrientation()
45 inline int32_t getTrackingId() const { return mAbsMtTrackingId; } in getTrackingId()
46 inline int32_t getPressure() const { return mAbsMtPressure; } in getPressure()
47 inline int32_t getDistance() const { return mAbsMtDistance; } in getDistance()
[all …]
/frameworks/av/media/libmediaplayerservice/
DStagefrightRecorder.h123 int32_t mVideoWidth, mVideoHeight;
124 int32_t mFrameRate;
125 int32_t mVideoBitRate;
126 int32_t mVideoBitRateMode;
127 int32_t mAudioBitRate;
128 int32_t mAudioChannels;
129 int32_t mSampleRate;
130 int32_t mInterleaveDurationUs;
131 int32_t mIFramesIntervalSec;
132 int32_t mCameraId;
[all …]

12345678910>>...95