/aosp12/frameworks/native/libs/input/ |
H A D | KeyLayoutMap.cpp | 47 {{SENSOR_ENTRY(InputDeviceSensorType::ACCELEROMETER)}, 48 {SENSOR_ENTRY(InputDeviceSensorType::MAGNETIC_FIELD)}, 49 {SENSOR_ENTRY(InputDeviceSensorType::ORIENTATION)}, 50 {SENSOR_ENTRY(InputDeviceSensorType::GYROSCOPE)}, 51 {SENSOR_ENTRY(InputDeviceSensorType::LIGHT)}, 52 {SENSOR_ENTRY(InputDeviceSensorType::PRESSURE)}, 53 {SENSOR_ENTRY(InputDeviceSensorType::TEMPERATURE)}, 54 {SENSOR_ENTRY(InputDeviceSensorType::PROXIMITY)}, 55 {SENSOR_ENTRY(InputDeviceSensorType::GRAVITY)}, 57 {SENSOR_ENTRY(InputDeviceSensorType::ROTATION_VECTOR)}, [all …]
|
/aosp12/frameworks/native/services/inputflinger/reader/mapper/ |
H A D | SensorInputMapper.h | 37 bool enableSensor(InputDeviceSensorType sensorType, std::chrono::microseconds samplingPeriod, 39 void disableSensor(InputDeviceSensorType sensorType) override; 40 void flushSensor(InputDeviceSensorType sensorType) override; 118 std::unordered_map<InputDeviceSensorType, Sensor> mSensors; 125 void parseSensorConfiguration(InputDeviceSensorType sensorType, int32_t absCode, 130 Sensor createSensor(InputDeviceSensorType sensorType, const Axis& axis); 132 bool setSensorEnabled(InputDeviceSensorType sensorType, bool enabled);
|
H A D | SensorInputMapper.cpp | 39 InputDeviceSensorType sensorType) { in convertFromLinuxToAndroid() 42 case InputDeviceSensorType::ACCELEROMETER: in convertFromLinuxToAndroid() 45 case InputDeviceSensorType::GYROSCOPE: in convertFromLinuxToAndroid() 69 void SensorInputMapper::parseSensorConfiguration(InputDeviceSensorType sensorType, int32_t absCode, in parseSensorConfiguration() 150 InputDeviceSensorType sensorType = (*ret).first; in configure() 198 SensorInputMapper::Sensor SensorInputMapper::createSensor(InputDeviceSensorType sensorType, in createSensor() 291 bool SensorInputMapper::setSensorEnabled(InputDeviceSensorType sensorType, bool enabled) { in setSensorEnabled() 316 void SensorInputMapper::flushSensor(InputDeviceSensorType sensorType) { in flushSensor() 333 bool SensorInputMapper::enableSensor(InputDeviceSensorType sensorType, in enableSensor() 360 void SensorInputMapper::disableSensor(InputDeviceSensorType sensorType) { in disableSensor()
|
H A D | InputMapper.cpp | 73 bool InputMapper::enableSensor(InputDeviceSensorType sensorType, in enableSensor() 79 void InputMapper::disableSensor(InputDeviceSensorType sensorType) {} in disableSensor() 81 void InputMapper::flushSensor(InputDeviceSensorType sensorType) {} in flushSensor()
|
H A D | InputMapper.h | 71 virtual bool enableSensor(InputDeviceSensorType sensorType, 74 virtual void disableSensor(InputDeviceSensorType sensorType); 75 virtual void flushSensor(InputDeviceSensorType sensorType);
|
/aosp12/frameworks/native/include/input/ |
H A D | InputDevice.h | 69 enum class InputDeviceSensorType : int32_t { enum 112 InputDeviceSensorType type, InputDeviceSensorAccuracy accuracy, in InputDeviceSensorInfo() 139 InputDeviceSensorType type; 281 std::unordered_map<InputDeviceSensorType, InputDeviceSensorInfo> mSensors;
|
H A D | KeyLayoutMap.h | 82 base::Result<std::pair<InputDeviceSensorType, int32_t>> mapSensor(int32_t absCode); 97 InputDeviceSensorType sensorType;
|
/aosp12/frameworks/native/services/inputflinger/dispatcher/include/ |
H A D | InputDispatcherPolicyInterface.h | 82 virtual void notifySensorEvent(int32_t deviceId, InputDeviceSensorType sensorType, 85 virtual void notifySensorAccuracy(int32_t deviceId, InputDeviceSensorType sensorType,
|
H A D | InputDispatcherInterface.h | 209 virtual bool flushSensor(int deviceId, InputDeviceSensorType sensorType) = 0;
|
/aosp12/frameworks/native/services/inputflinger/include/ |
H A D | InputReaderBase.h | 124 virtual bool enableSensor(int32_t deviceId, InputDeviceSensorType sensorType, 129 virtual void disableSensor(int32_t deviceId, InputDeviceSensorType sensorType) = 0; 132 virtual void flushSensor(int32_t deviceId, InputDeviceSensorType sensorType) = 0;
|
H A D | InputListener.h | 152 InputDeviceSensorType sensorType; 161 InputDeviceSensorType sensorType, InputDeviceSensorAccuracy accuracy,
|
/aosp12/frameworks/native/services/inputflinger/reader/include/ |
H A D | InputDevice.h | 94 bool enableSensor(InputDeviceSensorType sensorType, std::chrono::microseconds samplingPeriod, 96 void disableSensor(InputDeviceSensorType sensorType); 97 void flushSensor(InputDeviceSensorType sensorType); 280 inline base::Result<std::pair<InputDeviceSensorType, int32_t>> mapSensor(int32_t absCode) { in mapSensor()
|
H A D | InputReader.h | 90 bool enableSensor(int32_t deviceId, InputDeviceSensorType sensorType, 94 void disableSensor(int32_t deviceId, InputDeviceSensorType sensorType) override; 96 void flushSensor(int32_t deviceId, InputDeviceSensorType sensorType) override;
|
H A D | EventHub.h | 281 virtual base::Result<std::pair<InputDeviceSensorType, int32_t>> mapSensor(int32_t deviceId, 459 base::Result<std::pair<InputDeviceSensorType, int32_t>> mapSensor(
|
/aosp12/frameworks/native/services/inputflinger/dispatcher/ |
H A D | Entry.h | 194 InputDeviceSensorType sensorType; 202 uint32_t policyFlags, nsecs_t hwTimestamp, InputDeviceSensorType sensorType,
|
H A D | Entry.cpp | 263 InputDeviceSensorType sensorType, InputDeviceSensorAccuracy accuracy, in SensorEntry()
|
H A D | InputDispatcher.h | 140 bool flushSensor(int deviceId, InputDeviceSensorType sensorType) override;
|
/aosp12/frameworks/native/services/inputflinger/benchmarks/ |
H A D | InputDispatcher_benchmarks.cpp | 80 void notifySensorEvent(int32_t deviceId, InputDeviceSensorType sensorType, in notifySensorEvent() 84 void notifySensorAccuracy(int32_t deviceId, InputDeviceSensorType sensorType, in notifySensorAccuracy()
|
/aosp12/frameworks/native/services/inputflinger/reader/ |
H A D | InputDevice.cpp | 508 bool InputDevice::enableSensor(InputDeviceSensorType sensorType, in enableSensor() 519 void InputDevice::disableSensor(InputDeviceSensorType sensorType) { in disableSensor() 523 void InputDevice::flushSensor(InputDeviceSensorType sensorType) { in flushSensor()
|
H A D | InputReader.cpp | 650 void InputReader::disableSensor(int32_t deviceId, InputDeviceSensorType sensorType) { in disableSensor() 659 bool InputReader::enableSensor(int32_t deviceId, InputDeviceSensorType sensorType, in enableSensor() 671 void InputReader::flushSensor(int32_t deviceId, InputDeviceSensorType sensorType) { in flushSensor()
|
H A D | EventHub.cpp | 976 base::Result<std::pair<InputDeviceSensorType, int32_t>> EventHub::mapSensor(int32_t deviceId, in mapSensor()
|
/aosp12/frameworks/base/services/core/jni/ |
H A D | com_android_server_input_InputManagerService.cpp | 321 void notifySensorEvent(int32_t deviceId, InputDeviceSensorType sensorType, 324 void notifySensorAccuracy(int32_t deviceId, InputDeviceSensorType sensorType, 942 void NativeInputManager::notifySensorEvent(int32_t deviceId, InputDeviceSensorType sensorType, in notifySensorEvent() 958 void NativeInputManager::notifySensorAccuracy(int32_t deviceId, InputDeviceSensorType sensorType, in notifySensorAccuracy() 2250 ->enableSensor(deviceId, static_cast<InputDeviceSensorType>(sensorType), in nativeEnableSensor() 2260 static_cast<InputDeviceSensorType>( in nativeDisableSensor() 2269 static_cast<InputDeviceSensorType>(sensorType)); in nativeFlushSensor() 2271 static_cast<InputDeviceSensorType>( in nativeFlushSensor()
|
/aosp12/frameworks/native/services/inputflinger/ |
H A D | InputListener.cpp | 222 InputDeviceSensorType sensorType, in NotifySensorArgs()
|
/aosp12/frameworks/native/services/inputflinger/tests/ |
H A D | InputReader_test.cpp | 403 InputDeviceSensorType sensorType; 586 void addSensorAxis(int32_t deviceId, int32_t absCode, InputDeviceSensorType sensorType, in addSensorAxis() 758 base::Result<std::pair<InputDeviceSensorType, int32_t>> mapSensor(int32_t deviceId, in mapSensor() 2992 mFakeEventHub->addSensorAxis(EVENTHUB_ID, /* absCode */ 3, InputDeviceSensorType::GYROSCOPE, in setGyroProperties() 2994 mFakeEventHub->addSensorAxis(EVENTHUB_ID, /* absCode */ 4, InputDeviceSensorType::GYROSCOPE, in setGyroProperties() 3016 ASSERT_TRUE(mapper.enableSensor(InputDeviceSensorType::ACCELEROMETER, in TEST_F() 3034 ASSERT_EQ(args.sensorType, InputDeviceSensorType::ACCELEROMETER); in TEST_F() 3038 mapper.flushSensor(InputDeviceSensorType::ACCELEROMETER); in TEST_F() 3046 ASSERT_TRUE(mapper.enableSensor(InputDeviceSensorType::GYROSCOPE, in TEST_F() 3064 ASSERT_EQ(args.sensorType, InputDeviceSensorType::GYROSCOPE); in TEST_F() [all …]
|
H A D | InputDispatcher_test.cpp | 346 void notifySensorEvent(int32_t deviceId, InputDeviceSensorType sensorType, in notifySensorEvent() 350 void notifySensorAccuracy(int deviceId, InputDeviceSensorType sensorType, in notifySensorAccuracy()
|