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.java180 assertTrue(SystemStateHelper.isDeviceAtEar(mContext)); in testDeviceOnEarCorrectlyDetected()
200 assertFalse(SystemStateHelper.isDeviceAtEar(mContext)); in testDeviceIsNotOnEarWithProxNotSensed()
221 assertFalse(SystemStateHelper.isDeviceAtEar(mContext)); in testDeviceIsNotOnEarWithWrongOrientation()
243 assertFalse(SystemStateHelper.isDeviceAtEar(mContext)); in testDeviceIsNotOnEarWithMissingSensor()
262 assertFalse(SystemStateHelper.isDeviceAtEar(mContext)); in testDeviceIsNotOnEarWithTimeout()
286 assertTrue(SystemStateHelper.isDeviceAtEar(mContext)); in testDeviceIsOnEarWithMultiSensorInputs()
DCallAudioModeStateMachineTest.java120 when(mSystemStateHelper.isDeviceAtEar()).thenReturn(true); in testNoRingWhenDeviceIsAtEar()
/packages/services/Telecomm/src/com/android/server/telecom/
DSystemStateHelper.java114 public boolean isDeviceAtEar() { in isDeviceAtEar() method in SystemStateHelper
115 return isDeviceAtEar(mContext); in isDeviceAtEar()
125 public static boolean isDeviceAtEar(Context context) { in isDeviceAtEar() method in SystemStateHelper
DCallAudioModeStateMachine.java636 if (args.hasHoldingCalls && mSystemStateHelper.isDeviceAtEar()) { in processMessage()