Searched refs:isDeviceAtEar (Results 1 – 4 of 4) sorted by relevance
298 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()
193 when(mSystemStateHelper.isDeviceAtEar()).thenReturn(true); in testNoRingWhenDeviceIsAtEar()
178 public boolean isDeviceAtEar() { in isDeviceAtEar() method in SystemStateHelper179 return isDeviceAtEar(mContext); in isDeviceAtEar()189 public static boolean isDeviceAtEar(Context context) { in isDeviceAtEar() method in SystemStateHelper
855 if (args.hasHoldingCalls && mSystemStateHelper.isDeviceAtEar()) { in processMessage()