Home
last modified time | relevance | path

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

12

/frameworks/native/services/sensorservice/
DSensorsWrapper.h31 using ::android::hardware::sensors::V1_0::Event;
32 using ::android::hardware::sensors::V1_0::ISensors;
33 using ::android::hardware::sensors::V1_0::OperationMode;
34 using ::android::hardware::sensors::V1_0::RateLevel;
35 using ::android::hardware::sensors::V1_0::Result;
36 using ::android::hardware::sensors::V1_0::SharedMemInfo;
37 using ::android::hardware::sensors::V2_0::ISensorsCallback;
105 SensorsWrapperBase(sp<T> sensors) : in SensorsWrapperBase() argument
106 mSensors(sensors) { }; in SensorsWrapperBase()
152 class SensorsWrapperV1_0 : public SensorsWrapperBase<hardware::sensors::V1_0::ISensors> {
[all …]
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 …]
DAndroid.bp49 "android.hardware.sensors@1.0",
50 "android.hardware.sensors@2.0",
53 static_libs: ["android.hardware.sensors@1.0-convert"],
DSensorDevice.cpp33 using namespace android::hardware::sensors;
34 using namespace android::hardware::sensors::V1_0;
35 using namespace android::hardware::sensors::V1_0::implementation;
36 using android::hardware::sensors::V2_0::ISensorsCallback;
37 using android::hardware::sensors::V2_0::EventQueueFlagBits;
38 using android::hardware::sensors::V2_0::WakeLockQueueFlagBits;
86 using Result = ::android::hardware::sensors::V1_0::Result;
168 sp<V1_0::ISensors> sensors = V1_0::ISensors::getService(); in connectHidlServiceV1_0() local
169 if (sensors == nullptr) { in connectHidlServiceV1_0()
175 mSensors = new SensorServiceUtil::SensorsWrapperV1_0(sensors); in connectHidlServiceV1_0()
[all …]
DSensorDevice.h113 using Result = ::android::hardware::sensors::V1_0::Result;
115 const hardware::hidl_vec<hardware::sensors::V1_0::SensorInfo> &dynamicSensorsAdded);
228 using Event = hardware::sensors::V1_0::Event;
229 using SensorInfo = hardware::sensors::V1_0::SensorInfo;
DSensorDeviceUtils.cpp26 using namespace android::hardware::sensors::V1_0;
/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.java564 public boolean registerListener(SensorListener listener, int sensors) { in registerListener() argument
565 return registerListener(listener, sensors, SENSOR_DELAY_NORMAL); in registerListener()
592 public boolean registerListener(SensorListener listener, int sensors, int rate) { in registerListener() argument
593 return getLegacySensorManager().registerListener(listener, sensors, rate); in registerListener()
625 public void unregisterListener(SensorListener listener, int sensors) { in unregisterListener() argument
626 getLegacySensorManager().unregisterListener(listener, sensors); in unregisterListener()
1034 List<Sensor> sensors = getSensorList(Sensor.TYPE_DYNAMIC_SENSOR_META); in isDynamicSensorDiscoverySupported() local
1035 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",
23 "android.hardware.sensors@1.0-convert",
DSensorManager.cpp41 using ::android::hardware::sensors::V1_0::SensorInfo;
42 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)
DAndroid.bp14 "android.hardware.sensors@1.0",
DIDirectReportChannel.hal19 import android.hardware.sensors@1.0::RateLevel;
49 * multiple different sensors of the same type in a
/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/native/libs/vr/libdvr/include/dvr/
Ddvr_tracking.h97 void dvrTrackingSensorsDestroy(DvrTrackingSensors* sensors);
109 int dvrTrackingSensorsStart(DvrTrackingSensors* sensors,
120 int dvrTrackingSensorsStop(DvrTrackingSensors* sensors);
/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;
130 android::hardware::sensors::V1_0::implementation::convertToSensorEvent(event, in onEvent()
DASensorManager.h61 using SensorInfo = android::hardware::sensors::V1_0::SensorInfo;
DASensorEventQueue.h35 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()

12