Home
last modified time | relevance | path

Searched refs:defaultSensor (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/packages/SystemUI/src/com/android/systemui/util/sensors/
DSensorModule.java59 Sensor defaultSensor = sensorManager.getDefaultSensor(Sensor.TYPE_PROXIMITY, in providePrimaryProximitySensor()
62 .setSensor(defaultSensor) in providePrimaryProximitySensor()
63 .setThresholdValue(defaultSensor != null ? defaultSensor.getMaximumRange() : 0) in providePrimaryProximitySensor()
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/utils/
DSensorUtilsTest.java121 int fallbackType, List<Sensor> allSensors, @Nullable Sensor defaultSensor, in testFindSensor() argument
124 when(mSensorManager.getDefaultSensor(fallbackType)).thenReturn(defaultSensor); in testFindSensor()
/frameworks/hardware/interfaces/sensorservice/libsensorndkbridge/
DASensorManager.cpp126 ASensorRef defaultSensor = NULL; in getDefaultSensor() local
138 defaultSensor = reinterpret_cast<ASensorRef>(&mSensors[i]); in getDefaultSensor()
144 return defaultSensor; in getDefaultSensor()