Home
last modified time | relevance | path

Searched refs:sensors (Results 1 – 25 of 29) sorted by relevance

12

/frameworks/native/services/sensorservice/
DSensorList.cpp71 Vector<Sensor> sensors; in getUserSensors() local
73 [&sensors] (const Entry& e) -> bool { in getUserSensors()
75 sensors.add(e.si->getSensor()); in getUserSensors()
79 return sensors; in getUserSensors()
84 Vector<Sensor> sensors; in getUserDebugSensors() local
86 [&sensors] (const Entry& e) -> bool { in getUserDebugSensors()
88 sensors.add(e.si->getSensor()); in getUserDebugSensors()
92 return sensors; in getUserDebugSensors()
97 Vector<Sensor> sensors; in getDynamicSensors() local
99 [&sensors] (const Entry& e) -> bool { in getDynamicSensors()
[all …]
DSensorDevice.h108 sp<android::hardware::sensors::V1_0::ISensors> mSensors;
181 using Event = hardware::sensors::V1_0::Event;
182 using SensorInfo = hardware::sensors::V1_0::SensorInfo;
DSensorDevice.cpp31 using namespace android::hardware::sensors::V1_0;
32 using namespace android::hardware::sensors::V1_0::implementation;
465 static_cast<hardware::sensors::V1_0::OperationMode>(mode)))); in setMode()
620 ::android::hardware::sensors::V1_0::implementation::convertToSensorEvent( in convertToSensorEvent()
/frameworks/base/core/java/android/hardware/
DLegacySensorManager.java90 public boolean registerListener(SensorListener listener, int sensors, int rate) { in registerListener() argument
96 Sensor.TYPE_ACCELEROMETER, listener, sensors, rate) || result; in registerListener()
98 Sensor.TYPE_MAGNETIC_FIELD, listener, sensors, rate) || result; in registerListener()
100 Sensor.TYPE_ORIENTATION, listener, sensors, rate) || result; in registerListener()
102 Sensor.TYPE_ORIENTATION, listener, sensors, rate) || result; in registerListener()
104 Sensor.TYPE_TEMPERATURE, listener, sensors, rate) || result; in registerListener()
109 SensorListener listener, int sensors, int rate) { in registerLegacyListener() argument
112 if ((sensors & legacyType) != 0) { in registerLegacyListener()
145 public void unregisterListener(SensorListener listener, int sensors) { in unregisterListener() argument
150 listener, sensors); in unregisterListener()
[all …]
DSensorManager.java558 public boolean registerListener(SensorListener listener, int sensors) { in registerListener() argument
559 return registerListener(listener, sensors, SENSOR_DELAY_NORMAL); in registerListener()
586 public boolean registerListener(SensorListener listener, int sensors, int rate) { in registerListener() argument
587 return getLegacySensorManager().registerListener(listener, sensors, rate); in registerListener()
619 public void unregisterListener(SensorListener listener, int sensors) { in unregisterListener() argument
620 getLegacySensorManager().unregisterListener(listener, sensors); in unregisterListener()
1029 List<Sensor> sensors = getSensorList(Sensor.TYPE_DYNAMIC_SENSOR_META); in isDynamicSensorDiscoverySupported() local
1030 return sensors.size() > 0; in isDynamicSensorDiscoverySupported()
/frameworks/native/services/sensorservice/hidl/
Dutils.cpp29 using ::android::hardware::sensors::V1_0::SensorInfo;
39 dst.type = static_cast<::android::hardware::sensors::V1_0::SensorType>( in convertSensor()
77 ::android::hardware::sensors::V1_0::Event convertEvent(const ::ASensorEvent& src) { in convertEvent()
78 ::android::hardware::sensors::V1_0::Event dst; in convertEvent()
79 ::android::hardware::sensors::V1_0::implementation::convertFromSensorEvent( in convertEvent()
Dutils.h30 ::android::hardware::sensors::V1_0::SensorInfo convertSensor(const ::android::Sensor &src);
33 ::android::hardware::sensors::V1_0::Event convertEvent(const ::ASensorEvent &event);
DAndroid.bp20 "android.hardware.sensors@1.0",
24 "android.hardware.sensors@1.0-convert",
DSensorManager.cpp39 using ::android::hardware::sensors::V1_0::SensorInfo;
40 using ::android::hardware::sensors::V1_0::SensorsEventFormatOffset;
DDirectReportChannel.h33 using ::android::hardware::sensors::V1_0::RateLevel;
/frameworks/hardware/interfaces/sensorservice/1.0/
DISensorManager.hal23 import android.hardware.sensors@1.0::SensorInfo;
24 import android.hardware.sensors@1.0::SensorType;
27 * ISensorManager is an interface to manage sensors
30 * ISensorManager to access and list hardware sensors.
35 * Get the list of available sensors.
37 * @return list the list of available sensors, or empty on failure
60 * android.hardware.sensors@1.0::SensorsEventFormatOffset.
65 * 0x0008 int32_t type (see android.hardware.sensors@1.0::SensorType)
67 * 0x0010 int64_t timestamp (see android.hardware.sensors@1.0::Event)
110 * Subsequently, one can enable sensors on the event queue so that sensor
DREADME3 android.frameworks.sensorservice@1.0 is a package that mimics the sensors API in
12 - retrieve sensors
71 - enable selected sensors (adapts ASensorEventQueue_registerSensor)
72 - disable selected sensors (adapts ASensorEventQueue_disableSensor)
DIDirectReportChannel.hal19 import android.hardware.sensors@1.0::RateLevel;
49 * multiple different sensors of the same type in a
DAndroid.bp76 "android.hardware.sensors@1.0",
84 "android.hardware.sensors@1.0",
DIEventQueueCallback.hal19 import android.hardware.sensors@1.0::Event;
/frameworks/hardware/interfaces/sensorservice/1.0/vts/functional/
DVtsHalSensorManagerV1_0TargetTest.cpp35 using ::android::hardware::sensors::V1_0::Event;
36 using ::android::hardware::sensors::V1_0::RateLevel;
37 using ::android::hardware::sensors::V1_0::SensorFlagBits;
38 using ::android::hardware::sensors::V1_0::SensorFlagShift;
39 using ::android::hardware::sensors::V1_0::SensorType;
40 using ::android::hardware::sensors::V1_0::SensorsEventFormatOffset;
136 using ::android::hardware::sensors::V1_0::toString; in TEST_F()
176 using ::android::hardware::sensors::V1_0::implementation::convertFromSensorEvent; in parseEvents()
205 using ::android::hardware::sensors::V1_0::implementation::convertFromRateLevel; in TEST_F()
DAndroid.bp27 "android.hardware.sensors@1.0",
31 "android.hardware.sensors@1.0-convert",
/frameworks/hardware/interfaces/sensorservice/libsensorndkbridge/
DAndroid.bp29 "android.hardware.sensors@1.0",
32 "android.hardware.sensors@1.0-convert",
DASensorEventQueue.cpp26 using android::hardware::sensors::V1_0::SensorInfo;
113 android::hardware::sensors::V1_0::implementation::convertToSensorEvent( in onEvent()
DASensorManager.h58 using SensorInfo = android::hardware::sensors::V1_0::SensorInfo;
DASensorEventQueue.h32 using Event = android::hardware::sensors::V1_0::Event;
/frameworks/base/services/core/java/com/android/server/am/
DHealthStatsBatteryStatsWriter.java53 SparseArray<? extends BatteryStats.Uid.Sensor> sensors; in writeUid() local
120 sensors = uid.getSensorStats(); in writeUid()
121 N = sensors.size(); in writeUid()
123 int sensorId = sensors.keyAt(i); in writeUid()
128 sensors.valueAt(i).getSensorTime()); in writeUid()
131 sensors.valueAt(i).getSensorTime()); in writeUid()
/frameworks/native/services/sensorservice/hidl/include/sensorservicehidl/
DSensorManager.h37 using ::android::hardware::sensors::V1_0::SensorType;
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DMotionSensor.java19 package androidx.media.filterpacks.sensors;
/frameworks/native/libs/sensor/
DAndroid.bp31 // android/sensors.h uses nested anonymous unions and anonymous structs

12