Searched refs:sensors (Results 1 - 25 of 36) sorted by relevance

12

/frameworks/hardware/interfaces/sensorservice/1.0/
H A DIEventQueueCallback.hal19 import android.hardware.sensors@1.0::Event;
H A DIDirectReportChannel.hal19 import android.hardware.sensors@1.0::RateLevel;
49 * multiple different sensors of the same type in a
H A 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 o
[all...]
/frameworks/native/services/sensorservice/hidl/
H A Dutils.h21 #include <android/hardware/sensors/1.0/types.h>
30 ::android::hardware::sensors::V1_0::SensorInfo convertSensor(const ::android::Sensor &src);
33 ::android::hardware::sensors::V1_0::Event convertEvent(const ::ASensorEvent &event);
H A Dutils.cpp19 #include <sensors/convert.h>
29 using ::android::hardware::sensors::V1_0::SensorInfo;
39 dst.type = static_cast<::android::hardware::sensors::V1_0::SensorType>(
77 ::android::hardware::sensors::V1_0::Event convertEvent(const ::ASensorEvent& src) {
78 ::android::hardware::sensors::V1_0::Event dst;
79 ::android::hardware::sensors::V1_0::implementation::convertFromSensorEvent(
H A DDirectReportChannel.h33 using ::android::hardware::sensors::V1_0::RateLevel;
/frameworks/native/services/sensorservice/
H A DSensorList.cpp19 #include <hardware/sensors.h>
71 Vector<Sensor> sensors; local
73 [&sensors] (const Entry& e) -> bool {
75 sensors.add(e.si->getSensor());
79 return sensors;
84 Vector<Sensor> sensors; local
86 [&sensors] (const Entry& e) -> bool {
88 sensors.add(e.si->getSensor());
92 return sensors;
97 Vector<Sensor> sensors; local
110 Vector<Sensor> sensors; local
[all...]
H A DSensorServiceUtils.cpp19 #include <hardware/sensors.h>
H A DSensorDeviceUtils.cpp19 #include <android/hardware/sensors/1.0/ISensors.h>
26 using namespace android::hardware::sensors::V1_0;
H A DRecentEventLogger.h23 #include <hardware/sensors.h>
H A DSensorDevice.h34 #include "android/hardware/sensors/1.0/ISensors.h"
106 sp<hardware::sensors::V1_0::ISensors> mSensors;
181 using Event = hardware::sensors::V1_0::Event;
182 using SensorInfo = hardware::sensors::V1_0::SensorInfo;
H A DCorrectedGyroSensor.cpp23 #include <hardware/sensors.h>
H A DGravitySensor.cpp23 #include <hardware/sensors.h>
H A DLinearAccelerationSensor.cpp23 #include <hardware/sensors.h>
H A DOrientationSensor.cpp23 #include <hardware/sensors.h>
/frameworks/base/core/java/android/hardware/
H A DLegacySensorManager.java90 public boolean registerListener(SensorListener listener, int sensors, int rate) { argument
96 Sensor.TYPE_ACCELEROMETER, listener, sensors, rate) || result;
98 Sensor.TYPE_MAGNETIC_FIELD, listener, sensors, rate) || result;
100 Sensor.TYPE_ORIENTATION, listener, sensors, rate) || result;
102 Sensor.TYPE_ORIENTATION, listener, sensors, rate) || result;
104 Sensor.TYPE_TEMPERATURE, listener, sensors, rate) || result;
109 SensorListener listener, int sensors, int rate) {
112 if ((sensors & legacyType) != 0) {
119 // are called reentrantly while sensors are being registered or unregistered.
145 public void unregisterListener(SensorListener listener, int sensors) { argument
108 registerLegacyListener(int legacyType, int type, SensorListener listener, int sensors, int rate) argument
161 unregisterLegacyListener(int legacyType, int type, SensorListener listener, int sensors) argument
244 hasOrientationSensor(int sensors) argument
[all...]
/frameworks/hardware/interfaces/sensorservice/1.0/vts/functional/
H A DVtsHalSensorManagerV1_0TargetTest.cpp28 #include <android/hardware/sensors/1.0/types.h>
31 #include <sensors/convert.h>
35 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;
138 // Do something to the list of sensors
[all...]
/frameworks/hardware/interfaces/sensorservice/libsensorndkbridge/
H A DASensorEventQueue.h26 #include <sensors/convert.h>
33 using Event = android::hardware::sensors::V1_0::Event;
H A DASensorEventQueue.cpp26 using android::hardware::sensors::V1_0::SensorInfo;
112 android::hardware::sensors::V1_0::implementation::convertToSensorEvent(
H A DASensorManager.h35 // Returns error or number of sensors returned.
59 using SensorInfo = android::hardware::sensors::V1_0::SensorInfo;
H A DASensorManager.cpp25 #include <sensors/convert.h>
27 using android::hardware::sensors::V1_0::SensorInfo;
31 using android::hardware::sensors::V1_0::SensorType;
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
H A DMotionSensor.java19 package androidx.media.filterpacks.sensors;
/frameworks/native/services/sensorservice/hidl/include/sensorservicehidl/
H A DSensorManager.h38 using ::android::hardware::sensors::V1_0::SensorType;
/frameworks/base/services/core/java/com/android/server/am/
H A DHealthStatsBatteryStatsWriter.java53 SparseArray<? extends BatteryStats.Uid.Sensor> sensors;
120 sensors = uid.getSensorStats();
121 N = sensors.size();
123 int sensorId = sensors.keyAt(i);
124 // Battery Stats stores the GPS sensors with a bogus key in this API. Pull it out
128 sensors.valueAt(i).getSensorTime());
131 sensors.valueAt(i).getSensorTime());
/frameworks/native/libs/sensor/include/sensor/
H A DSensor.h30 #include <hardware/sensors.h>

Completed in 4315 milliseconds

12