Searched refs:mMockSensorManager (Results 1 – 2 of 2) sorted by relevance
53 private SensorManager mMockSensorManager; field in WindowOrientationListenerTest69 doReturn(mMockSensorManager).when(mMockContext).getSystemService(Context.SENSOR_SERVICE); in setUp()
127 private SensorManager mMockSensorManager; field in DisplayRotationTests429 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()