Home
last modified time | relevance | path

Searched refs:mMockSensorManager (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/wm/
DWindowOrientationListenerTest.java53 private SensorManager mMockSensorManager; field in WindowOrientationListenerTest
69 doReturn(mMockSensorManager).when(mMockContext).getSystemService(Context.SENSOR_SERVICE); in setUp()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DDisplayRotationTests.java127 private SensorManager mMockSensorManager; field in DisplayRotationTests
429 verify(mMockSensorManager, times(numOfInvocation)).registerListener( in verifyOrientationListenerRegistration()
1570 mMockSensorManager = mock(SensorManager.class); in build()
1572 .thenReturn(mMockSensorManager); in build()
1574 .thenReturn(mMockSensorManager); in build()
1576 when(mMockSensorManager.getSensorList(Sensor.TYPE_DEVICE_ORIENTATION)).thenReturn( in build()
1579 when(mMockSensorManager.getDefaultSensor(Sensor.TYPE_HINGE_ANGLE)).thenReturn( in build()
1616 verify(mMockSensorManager, atLeast(0)).registerListener( in build()