Searched refs:mCarModeTracker (Results 1 – 3 of 3) sorted by relevance
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | CarModeTrackerTest.java | 41 private CarModeTracker mCarModeTracker; field in CarModeTrackerTest 48 mCarModeTracker = new CarModeTracker(); in setUp() 63 assertNull(mCarModeTracker.getCurrentCarModePackage()); in testEnterCarModeBasic() 64 assertEquals(0, mCarModeTracker.getCarModeApps().size()); in testEnterCarModeBasic() 66 mCarModeTracker.handleEnterCarMode(100, CAR_MODE_APP1_PACKAGE_NAME); in testEnterCarModeBasic() 69 assertEquals(1, mCarModeTracker.getCarModeApps().size()); in testEnterCarModeBasic() 70 assertTrue(mCarModeTracker.isInCarMode()); in testEnterCarModeBasic() 81 mCarModeTracker.handleEnterCarMode(100, CAR_MODE_APP1_PACKAGE_NAME); in testEnterCarModeAlreadyInCarMode() 83 assertEquals(CAR_MODE_APP1_PACKAGE_NAME, mCarModeTracker.getCurrentCarModePackage()); in testEnterCarModeAlreadyInCarMode() 84 assertEquals(1, mCarModeTracker.getCarModeApps().size()); in testEnterCarModeAlreadyInCarMode() [all …]
|
D | InCallControllerTests.java | 200 private CarModeTracker mCarModeTracker = spy(new CarModeTracker()); field in InCallControllerTests 242 mEmergencyCallHelper, mCarModeTracker, mClockProxy, mFeatureFlags); in setUp() 352 verify(mCarModeTracker).handleEnterCarMode(666, CAR_PKG); in testCarModeAppRemoval() 353 assertTrue(mCarModeTracker.isInCarMode()); in testCarModeAppRemoval() 356 verify(mCarModeTracker).forceRemove(CAR_PKG); in testCarModeAppRemoval() 357 assertFalse(mCarModeTracker.isInCarMode()); in testCarModeAppRemoval() 373 verify(mCarModeTracker).handleEnterCarMode(666, CAR_PKG); in testRandomAppRemovalInCarMode() 374 assertTrue(mCarModeTracker.isInCarMode()); in testRandomAppRemovalInCarMode() 377 verify(mCarModeTracker, never()).forceRemove(CAR_PKG); in testRandomAppRemovalInCarMode() 378 assertTrue(mCarModeTracker.isInCarMode()); in testRandomAppRemovalInCarMode() [all …]
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | InCallController.java | 1202 mCarModeTracker.forceRemove(packageName); 1271 private final CarModeTracker mCarModeTracker; field in InCallController 1325 mCarModeTracker = carModeTracker; in InCallController() 2261 mCarModeTracker.getCurrentCarModePackage(), in getCurrentCarModeComponent() 2432 return mCarModeTracker.isInCarMode(); in shouldUseCarModeUI() 2850 mCarModeTracker.dump(pw); in dump() 2998 mCarModeTracker.handleEnterCarMode(priority, packageName); in handleCarModeChange() 3000 mCarModeTracker.handleExitCarMode(priority, packageName); in handleCarModeChange() 3013 mCarModeTracker.handleSetAutomotiveProjection(packageName); in handleSetAutomotiveProjection() 3020 mCarModeTracker.handleReleaseAutomotiveProjection(); in handleReleaseAutomotiveProjection() [all …]
|