Searched refs:isDeviceAtEar (Results 1 – 4 of 4) sorted by relevance
180 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()
120 when(mSystemStateHelper.isDeviceAtEar()).thenReturn(true); in testNoRingWhenDeviceIsAtEar()
114 public boolean isDeviceAtEar() { in isDeviceAtEar() method in SystemStateHelper115 return isDeviceAtEar(mContext); in isDeviceAtEar()125 public static boolean isDeviceAtEar(Context context) { in isDeviceAtEar() method in SystemStateHelper
636 if (args.hasHoldingCalls && mSystemStateHelper.isDeviceAtEar()) { in processMessage()