Home
last modified time | relevance | path

Searched refs:InputDeviceSensorType (Results 1 – 25 of 26) sorted by relevance

12

/aosp12/frameworks/native/libs/input/
H A DKeyLayoutMap.cpp47 {{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 DSensorInputMapper.h37 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 DSensorInputMapper.cpp39 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 DInputMapper.cpp73 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 DInputMapper.h71 virtual bool enableSensor(InputDeviceSensorType sensorType,
74 virtual void disableSensor(InputDeviceSensorType sensorType);
75 virtual void flushSensor(InputDeviceSensorType sensorType);
/aosp12/frameworks/native/include/input/
H A DInputDevice.h69 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 DKeyLayoutMap.h82 base::Result<std::pair<InputDeviceSensorType, int32_t>> mapSensor(int32_t absCode);
97 InputDeviceSensorType sensorType;
/aosp12/frameworks/native/services/inputflinger/dispatcher/include/
H A DInputDispatcherPolicyInterface.h82 virtual void notifySensorEvent(int32_t deviceId, InputDeviceSensorType sensorType,
85 virtual void notifySensorAccuracy(int32_t deviceId, InputDeviceSensorType sensorType,
H A DInputDispatcherInterface.h209 virtual bool flushSensor(int deviceId, InputDeviceSensorType sensorType) = 0;
/aosp12/frameworks/native/services/inputflinger/include/
H A DInputReaderBase.h124 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 DInputListener.h152 InputDeviceSensorType sensorType;
161 InputDeviceSensorType sensorType, InputDeviceSensorAccuracy accuracy,
/aosp12/frameworks/native/services/inputflinger/reader/include/
H A DInputDevice.h94 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 DInputReader.h90 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 DEventHub.h281 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 DEntry.h194 InputDeviceSensorType sensorType;
202 uint32_t policyFlags, nsecs_t hwTimestamp, InputDeviceSensorType sensorType,
H A DEntry.cpp263 InputDeviceSensorType sensorType, InputDeviceSensorAccuracy accuracy, in SensorEntry()
H A DInputDispatcher.h140 bool flushSensor(int deviceId, InputDeviceSensorType sensorType) override;
/aosp12/frameworks/native/services/inputflinger/benchmarks/
H A DInputDispatcher_benchmarks.cpp80 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 DInputDevice.cpp508 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 DInputReader.cpp650 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 DEventHub.cpp976 base::Result<std::pair<InputDeviceSensorType, int32_t>> EventHub::mapSensor(int32_t deviceId, in mapSensor()
/aosp12/frameworks/base/services/core/jni/
H A Dcom_android_server_input_InputManagerService.cpp321 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 DInputListener.cpp222 InputDeviceSensorType sensorType, in NotifySensorArgs()
/aosp12/frameworks/native/services/inputflinger/tests/
H A DInputReader_test.cpp403 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 DInputDispatcher_test.cpp346 void notifySensorEvent(int32_t deviceId, InputDeviceSensorType sensorType, in notifySensorEvent()
350 void notifySensorAccuracy(int deviceId, InputDeviceSensorType sensorType, in notifySensorAccuracy()

12