/frameworks/base/native/android/ |
D | sensor.cpp | 189 ASensorManager *manager, ASensor const *sensor, int channelId, int rate) { in ASensorManager_configureDirectReport() 209 int ASensorEventQueue_registerSensor(ASensorEventQueue* queue, ASensor const* sensor, in ASensorEventQueue_registerSensor() 223 int ASensorEventQueue_enableSensor(ASensorEventQueue* queue, ASensor const* sensor) { in ASensorEventQueue_enableSensor() 231 int ASensorEventQueue_disableSensor(ASensorEventQueue* queue, ASensor const* sensor) { in ASensorEventQueue_disableSensor() 239 int ASensorEventQueue_setEventRate(ASensorEventQueue* queue, ASensor const* sensor, int32_t usec) { in ASensorEventQueue_setEventRate() 295 const char* ASensor_getName(ASensor const* sensor) { in ASensor_getName() 300 const char* ASensor_getVendor(ASensor const* sensor) { in ASensor_getVendor() 305 int ASensor_getType(ASensor const* sensor) { in ASensor_getType() 310 float ASensor_getResolution(ASensor const* sensor) { in ASensor_getResolution() 315 int ASensor_getMinDelay(ASensor const* sensor) { in ASensor_getMinDelay() [all …]
|
/frameworks/hardware/interfaces/sensorservice/libsensorndkbridge/ |
D | ASensorManager.cpp | 128 [&](const auto &sensor, auto result) { in getDefaultSensor() 306 ASensor const* sensor, in ASensorEventQueue_registerSensor() 316 ASensorEventQueue* queue, ASensor const* sensor) { in ASensorEventQueue_enableSensor() 323 ASensorEventQueue* queue, ASensor const* sensor) { in ASensorEventQueue_disableSensor() 331 ASensor const* sensor, in ASensorEventQueue_setEventRate() 354 const char *ASensor_getName(ASensor const* sensor) { in ASensor_getName() 359 const char *ASensor_getVendor(ASensor const* sensor) { in ASensor_getVendor() 364 int ASensor_getType(ASensor const* sensor) { in ASensor_getType() 370 float ASensor_getResolution(ASensor const* sensor) { in ASensor_getResolution() 375 int ASensor_getMinDelay(ASensor const* sensor) { in ASensor_getMinDelay() [all …]
|
D | ASensorEventQueue.cpp | 44 ASensorRef sensor, in registerSensor() 59 int ASensorEventQueue::enableSensor(ASensorRef sensor) { in enableSensor() 67 ASensorRef sensor, int32_t samplingPeriodUs) { in setEventRate() 79 int ASensorEventQueue::disableSensor(ASensorRef sensor) { in disableSensor()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/utils/hardware/ |
D | FakeSensorManager.java | 114 protected void unregisterListenerImpl(SensorEventListener listener, Sensor sensor) { in unregisterListenerImpl() 124 protected boolean registerListenerImpl(SensorEventListener listener, Sensor sensor, in registerListenerImpl() 172 protected boolean requestTriggerSensorImpl(TriggerEventListener listener, Sensor sensor) { in requestTriggerSensorImpl() 177 protected boolean cancelTriggerSensorImpl(TriggerEventListener listener, Sensor sensor, in cancelTriggerSensorImpl() 188 protected boolean injectSensorDataImpl(Sensor sensor, float[] values, int accuracy, in injectSensorDataImpl() 201 Sensor sensor = constr.newInstance(); in createSensor() local 222 private void setSensorField(Sensor sensor, String fieldName, Object value) throws Exception { in setSensorField() 228 private void setSensorType(Sensor sensor, int type) throws Exception { in setSensorType() 236 private MockProximitySensor(Sensor sensor) { in MockProximitySensor() 251 Sensor sensor) { in FakeGenericSensor()
|
/frameworks/base/core/java/android/hardware/ |
D | SystemSensorManager.java | 60 Sensor sensor, int index); in nativeGetSensorAtIndex() 119 Sensor sensor = new Sensor(); in SystemSensorManager() local 122 mHandleToSensor.put(sensor.getHandle(), sensor); in SystemSensorManager() local 145 protected boolean registerListenerImpl(SensorEventListener listener, Sensor sensor, in registerListenerImpl() 193 protected void unregisterListenerImpl(SensorEventListener listener, Sensor sensor) { in unregisterListenerImpl() 218 protected boolean requestTriggerSensorImpl(TriggerEventListener listener, Sensor sensor) { in requestTriggerSensorImpl() 253 protected boolean cancelTriggerSensorImpl(TriggerEventListener listener, Sensor sensor, in cancelTriggerSensorImpl() 320 protected boolean injectSensorDataImpl(Sensor sensor, float[] values, int accuracy, in injectSensorDataImpl() 338 private void cleanupSensorConnection(Sensor sensor) { in cleanupSensorConnection() 527 SensorDirectChannel channel, Sensor sensor, int rate) { in configureDirectChannelImpl() [all …]
|
D | SensorListener.java | 90 public void onSensorChanged(int sensor, float[] values); in onSensorChanged() 100 public void onAccuracyChanged(int sensor, int accuracy); in onAccuracyChanged()
|
D | SensorEventCallback.java | 38 public void onAccuracyChanged(Sensor sensor, int accuracy) {} in onAccuracyChanged() 46 public void onFlushCompleted(Sensor sensor) {} in onFlushCompleted()
|
D | SensorManager.java | 647 public void unregisterListener(SensorEventListener listener, Sensor sensor) { in unregisterListener() 674 protected abstract void unregisterListenerImpl(SensorEventListener listener, Sensor sensor); in unregisterListenerImpl() 728 public boolean registerListener(SensorEventListener listener, Sensor sensor, in registerListener() 785 public boolean registerListener(SensorEventListener listener, Sensor sensor, in registerListener() 820 public boolean registerListener(SensorEventListener listener, Sensor sensor, in registerListener() 851 public boolean registerListener(SensorEventListener listener, Sensor sensor, in registerListener() 858 protected abstract boolean registerListenerImpl(SensorEventListener listener, Sensor sensor, in registerListenerImpl() 948 public int configureDirectChannel(SensorDirectChannel channel, Sensor sensor, int rateLevel) { in configureDirectChannel() 966 public void onDynamicSensorConnected(Sensor sensor) {} in onDynamicSensorConnected() 973 public void onDynamicSensorDisconnected(Sensor sensor) {} in onDynamicSensorDisconnected() [all …]
|
D | SensorEventListener2.java | 36 public void onFlushCompleted(Sensor sensor); in onFlushCompleted()
|
D | SensorEventListener.java | 55 public void onAccuracyChanged(Sensor sensor, int accuracy); in onAccuracyChanged()
|
D | TriggerEvent.java | 52 public Sensor sensor; field in TriggerEvent
|
D | LegacySensorManager.java | 114 Sensor sensor = mSensorManager.getDefaultSensor(type); in registerLegacyListener() local 166 Sensor sensor = mSensorManager.getDefaultSensor(type); in unregisterLegacyListener() local 249 public void onAccuracyChanged(Sensor sensor, int accuracy) { in onAccuracyChanged() 287 private void mapSensorDataToWindow(int sensor, in mapSensorDataToWindow()
|
D | SensorEvent.java | 641 public Sensor sensor; field in SensorEvent
|
/frameworks/base/services/tests/servicestests/src/com/android/server/display/ |
D | TestUtils.java | 29 public static SensorEvent createSensorEvent(Sensor sensor, int lux) throws Exception { in createSensorEvent() 41 public static void setSensorType(Sensor sensor, int type, String strType) throws Exception { in setSensorType() 55 Sensor sensor = constr.newInstance(); in createSensor() local
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/ |
D | AsyncSensorManager.java | 90 Sensor sensor, int delayUs, Handler handler, int maxReportLatencyUs, in registerListenerImpl() 133 protected boolean requestTriggerSensorImpl(TriggerEventListener listener, Sensor sensor) { in requestTriggerSensorImpl() 143 protected boolean cancelTriggerSensorImpl(TriggerEventListener listener, Sensor sensor, in cancelTriggerSensorImpl() 161 public boolean registerPluginListener(SensorManagerPlugin.Sensor sensor, in registerPluginListener() 181 public void unregisterPluginListener(SensorManagerPlugin.Sensor sensor, in unregisterPluginListener() 196 protected boolean injectSensorDataImpl(Sensor sensor, float[] values, int accuracy, in injectSensorDataImpl() 209 Sensor sensor) { in unregisterListenerImpl()
|
D | ProximitySensor.java | 63 Sensor sensor = findCustomProxSensor(context, sensorManager); in ProximitySensor() local 100 Sensor sensor = null; in findCustomProxSensor() local
|
/frameworks/native/services/sensorservice/ |
D | SensorInterface.cpp | 32 BaseSensor::BaseSensor(const sensor_t& sensor) : in BaseSensor() 37 BaseSensor::BaseSensor(const sensor_t& sensor, const uint8_t (&uuid)[16]) : in BaseSensor() 44 HardwareSensor::HardwareSensor(const sensor_t& sensor): in HardwareSensor() 48 HardwareSensor::HardwareSensor(const sensor_t& sensor, const uint8_t (&uuid)[16]): in HardwareSensor()
|
D | RotationVectorSensor.cpp | 32 const sensor_t sensor = { in RotationVectorSensor() local 118 const sensor_t sensor = { in GyroDriftSensor() local
|
D | OrientationSensor.cpp | 33 const sensor_t sensor = { in OrientationSensor() local
|
D | SensorService.cpp | 963 sp<SensorInterface> sensor = getSensorInterfaceFromHandle(handle); in isVirtualSensor() local 972 sp<SensorInterface> sensor = getSensorInterfaceFromHandle(handle); in isWakeUpSensorEvent() local 1049 for (auto &sensor : sensorList) { in makeUuidsIntoIdsForSensorList() local 1062 Sensor sensor = initialSensorList[i]; in getSensorList() local 1072 [&opPackageName, &accessibleSensorList] (const Sensor& sensor) -> bool { in getDynamicSensorList() 1334 sp<SensorInterface> sensor = getSensorInterfaceFromHandle(handle); in cleanupConnection() local 1395 sp<SensorInterface> sensor = getSensorInterfaceFromHandle(handle); in enable() local 1541 sp<SensorInterface> sensor = getSensorInterfaceFromHandle(handle); in disable() local 1587 sp<SensorInterface> sensor = getSensorInterfaceFromHandle(handle); in setEventRate() local 1614 sp<SensorInterface> sensor = getSensorInterfaceFromHandle(handle); in flushSensor() local [all …]
|
/frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/ |
D | SensorManagerPlugin.java | 38 void registerListener(Sensor sensor, SensorEventListener listener); in registerListener() 45 void unregisterListener(Sensor sensor, SensorEventListener listener); in unregisterListener() 90 public SensorEvent(Sensor sensor, int vendorType) { in SensorEvent() 101 public SensorEvent(Sensor sensor, int vendorType, float[] values) { in SensorEvent()
|
/frameworks/native/libs/binder/ |
D | IBatteryStats.cpp | 35 virtual void noteStartSensor(int uid, int sensor) { in noteStartSensor() 43 virtual void noteStopSensor(int uid, int sensor) { in noteStopSensor() 145 int sensor = data.readInt32(); in onTransact() local 153 int sensor = data.readInt32(); in onTransact() local
|
/frameworks/base/core/java/android/view/ |
D | OrientationListener.java | 93 public void onAccuracyChanged(int sensor, int accuracy) { in onAccuracyChanged() 96 public void onSensorChanged(int sensor, float[] values) { in onSensorChanged()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/ |
D | DozeSensors.java | 301 Sensor sensor = ProximitySensor.findCustomProxSensor(mContext, mSensorManager); in ProxSensor() local 372 public void onAccuracyChanged(Sensor sensor, int accuracy) { in onAccuracyChanged() 398 public TriggerSensor(Sensor sensor, String setting, boolean configured, int pulseReason, in TriggerSensor() 404 public TriggerSensor(Sensor sensor, String setting, boolean settingDef, in TriggerSensor() 411 private TriggerSensor(Sensor sensor, String setting, boolean settingDef, in TriggerSensor() 533 PluginSensor(SensorManagerPlugin.Sensor sensor, String setting, boolean configured, in PluginSensor() 539 PluginSensor(SensorManagerPlugin.Sensor sensor, String setting, boolean configured, in PluginSensor()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | BatteryStatsSensorTest.java | 400 BatteryStats.Uid.Sensor sensor = uid.getSensorStats().get(SENSOR_ID); in testSensorReset() local 455 BatteryStats.Uid.Sensor sensor = bi.getUidStats().get(UID).getSensorStats().get(SENSOR_ID); in testSensorResetTimes() local
|