Home
last modified time | relevance | path

Searched refs:isDeviceAtEar (Results 1 – 4 of 4) sorted by relevance

/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DSystemStateHelperTest.java298 assertTrue(SystemStateHelper.isDeviceAtEar(mContext)); in testDeviceOnEarCorrectlyDetected()
318 assertFalse(SystemStateHelper.isDeviceAtEar(mContext)); in testDeviceIsNotOnEarWithProxNotSensed()
339 assertFalse(SystemStateHelper.isDeviceAtEar(mContext)); in testDeviceIsNotOnEarWithWrongOrientation()
361 assertFalse(SystemStateHelper.isDeviceAtEar(mContext)); in testDeviceIsNotOnEarWithMissingSensor()
380 assertFalse(SystemStateHelper.isDeviceAtEar(mContext)); in testDeviceIsNotOnEarWithTimeout()
404 assertTrue(SystemStateHelper.isDeviceAtEar(mContext)); in testDeviceIsOnEarWithMultiSensorInputs()
DCallAudioModeStateMachineTest.java193 when(mSystemStateHelper.isDeviceAtEar()).thenReturn(true); in testNoRingWhenDeviceIsAtEar()
/packages/services/Telecomm/src/com/android/server/telecom/
DSystemStateHelper.java178 public boolean isDeviceAtEar() { in isDeviceAtEar() method in SystemStateHelper
179 return isDeviceAtEar(mContext); in isDeviceAtEar()
189 public static boolean isDeviceAtEar(Context context) { in isDeviceAtEar() method in SystemStateHelper
DCallAudioModeStateMachine.java855 if (args.hasHoldingCalls && mSystemStateHelper.isDeviceAtEar()) { in processMessage()