Home
last modified time | relevance | path

Searched refs:getSensorList (Results 1 – 25 of 38) sorted by relevance

12

/aosp14/frameworks/base/core/tests/coretests/src/android/hardware/input/
H A DInputDeviceSensorManagerTest.java93 when(mIInputManagerMock.getSensorList(eq(DEVICE_ID))).thenReturn(new InputSensorInfo[] { in setUp()
173 List<Sensor> accelList = sensorManager.getSensorList(Sensor.TYPE_ACCELEROMETER); in getInputDeviceSensors_withExpectedType()
174 verify(mIInputManagerMock).getSensorList(eq(DEVICE_ID)); in getInputDeviceSensors_withExpectedType()
179 List<Sensor> gyroList = sensorManager.getSensorList(Sensor.TYPE_GYROSCOPE); in getInputDeviceSensors_withExpectedType()
180 verify(mIInputManagerMock).getSensorList(eq(DEVICE_ID)); in getInputDeviceSensors_withExpectedType()
194 List<Sensor> gameRotationList = sensorManager.getSensorList( in getInputDeviceSensors_withUnexpectedType()
196 verify(mIInputManagerMock).getSensorList(eq(DEVICE_ID)); in getInputDeviceSensors_withUnexpectedType()
199 List<Sensor> gravityList = sensorManager.getSensorList(Sensor.TYPE_GRAVITY); in getInputDeviceSensors_withUnexpectedType()
200 verify(mIInputManagerMock).getSensorList(eq(DEVICE_ID)); in getInputDeviceSensors_withUnexpectedType()
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/policy/
H A DDeviceStateProviderImplTest.java345 when(mSensorManager.getSensorList(anyInt())).thenReturn(List.of(sensor)); in create_sensor()
410 when(mSensorManager.getSensorList(anyInt())).thenReturn(List.of(sensor)); in test_flagDisableWhenThermalStatusCritical()
467 when(mSensorManager.getSensorList(anyInt())).thenReturn(List.of(sensor)); in test_flagDisableWhenPowerSaveEnabled()
526 when(mSensorManager.getSensorList(anyInt())).thenReturn(List.of(sensor)); in test_invalidSensorValues()
559 when(mSensorManager.getSensorList(anyInt())).thenReturn(List.of()); in create_invalidSensor()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/util/sensors/
H A DAsyncSensorManager.java67 mSensorCache = mInner.getSensorList(Sensor.TYPE_ALL); in AsyncSensorManager()
82 return mInner.getSensorList(Sensor.TYPE_ALL); in getFullDynamicSensorList()
H A DThresholdSensorImpl.java343 List<Sensor> sensorList = mSensorManager.getSensorList(Sensor.TYPE_ALL); in findSensorByType()
/aosp14/frameworks/base/services/core/java/com/android/server/display/utils/
H A DSensorUtils.java58 final List<Sensor> sensors = sensorManager.getSensorList(Sensor.TYPE_ALL); in findSensor()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/sensors/
H A DThresholdSensorImplTest.java83 when(mockSensorManager.getSensorList(TYPE_ALL)).thenReturn( in testRegistersWakeUpProxSensor_givenWakeUpExistsAfterNonWakeup()
109 when(mockSensorManager.getSensorList(TYPE_ALL)).thenReturn( in testRegistersWakeUpProxSensor_givenNonWakeUpExistsAfterWakeup()
131 when(mockSensorManager.getSensorList(TYPE_ALL)).thenReturn(List.of(mockNonWakeupProx)); in testRegistersNonWakeUpProxSensor_givenNonWakeUpOnly()
/aosp14/frameworks/base/native/android/
H A Dsensor.cpp79 int c = static_cast<SensorManager*>(manager)->getSensorList(&l); in ASensorManager_getSensorList()
104 size_t size = static_cast<SensorManager*>(manager)->getSensorList(&sensorList); in ASensorManager_getDefaultSensorEx()
/aosp14/frameworks/base/services/core/java/com/android/server/input/
H A DNativeInputManagerService.java206 InputSensorInfo[] getSensorList(int deviceId); in getSensorList() method
469 public native InputSensorInfo[] getSensorList(int deviceId); in getSensorList() method in NativeInputManagerService.NativeImpl
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/power/stats/
H A DSensorPowerCalculatorTest.java59 when(sensorManager.getSensorList(Sensor.TYPE_ALL)) in testTimerBasedModel()
/aosp14/frameworks/base/core/java/android/hardware/
H A DSensorManager.java428 public List<Sensor> getSensorList(int type) { in getSensorList() method in SensorManager
523 List<Sensor> l = getSensorList(type); in getDefaultSensor()
570 List<Sensor> l = getSensorList(type); in getDefaultSensor()
1060 List<Sensor> sensors = getSensorList(Sensor.TYPE_DYNAMIC_SENSOR_META); in isDynamicSensorDiscoverySupported()
H A DSystemSensorManager.java171 public List<Sensor> getSensorList(int type) { in getSensorList() method in SystemSensorManager
174 return super.getSensorList(type); in getSensorList()
/aosp14/frameworks/base/services/core/java/com/android/server/power/stats/
H A DSensorPowerCalculator.java33 List<Sensor> sensors = sensorManager.getSensorList(Sensor.TYPE_ALL); in SensorPowerCalculator()
/aosp14/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/
H A DDisplayPowerProximityStateControllerTest.java251 when(mSensorManager.getSensorList(eq(Sensor.TYPE_ALL))) in notifyDisplayDeviceChangedReloadsTheProximitySensor()
388 when(mSensorManager.getSensorList(eq(Sensor.TYPE_ALL))) in setUpProxSensor()
/aosp14/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/utils/
H A DSensorUtilsTest.java123 when(mSensorManager.getSensorList(Sensor.TYPE_ALL)).thenReturn(allSensors); in testFindSensor()
/aosp14/frameworks/base/services/core/java/com/android/server/display/whitebalance/
H A DAmbientSensor.java332 for (Sensor sensor : mSensorManager.getSensorList(Sensor.TYPE_ALL)) { in AmbientColorTemperatureSensor()
/aosp14/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/whitebalance/
H A DAmbientSensorTest.java130 when(mSensorManagerMock.getSensorList(Sensor.TYPE_ALL)).thenReturn(sensorList); in testAmbientColorTemperatureSensorCallback_CallbacksCalled()
H A DAmbientLuxTest.java97 when(mSensorManagerMock.getSensorList(Sensor.TYPE_ALL)).thenReturn(sensorList); in setUp()
/aosp14/frameworks/base/core/java/android/hardware/input/
H A DInputManager.java1074 public InputSensorInfo[] getSensorList(int deviceId) { in getSensorList() method in InputManager
1075 return mGlobal.getSensorList(deviceId); in getSensorList()
H A DIInputManager.aidl187 InputSensorInfo[] getSensorList(int deviceId); in getSensorList() method
H A DInputManagerGlobal.java936 InputSensorInfo[] getSensorList(int deviceId) { in getSensorList() method in InputManagerGlobal
938 return mIm.getSensorList(deviceId); in getSensorList()
H A DInputDeviceSensorManager.java103 mGlobal.getSensorList(deviceId); in updateInputDeviceSensorInfoLocked()
/aosp14/frameworks/base/tests/SilkFX/src/com/android/test/silkfx/materials/
H A DGlassView.kt184 sensorManager?.getSensorList(Sensor.TYPE_GYROSCOPE)?.firstOrNull().let {
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/input/
H A DAmbientKeyboardBacklightControllerTests.kt145 `when`(sensorManager.getSensorList(anyInt())).thenReturn(listOf(lightSensor))
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/
H A DDozeSensorsTest.java382 when(mSensorManager.getSensorList(anyInt())).thenReturn(sensors); in testFindSensor()
/aosp14/frameworks/base/core/jni/
H A Dandroid_hardware_SensorManager.cpp220 ssize_t count = mgr->getSensorList(&sensorList); in nativeGetSensorAtIndex()

12