/packages/services/Car/tests/carservice_test/src/com/android/car/garagemode/ |
D | GarageModeControllerTest.java | 51 import com.android.car.CarLocalServices; 103 mCarUserServiceOriginal = CarLocalServices.getService(CarUserService.class); in setUp() 104 mCarPowerManagementServiceOriginal = CarLocalServices.getService( in setUp() 106 CarLocalServices.removeServiceForTest(CarUserService.class); in setUp() 107 CarLocalServices.addService(CarUserService.class, mCarUserServiceMock); in setUp() 108 CarLocalServices.removeServiceForTest(SystemInterface.class); in setUp() 109 CarLocalServices.addService(SystemInterface.class, mSystemInterfaceMock); in setUp() 110 CarLocalServices.removeServiceForTest(CarPowerManagementService.class); in setUp() 111 CarLocalServices.addService(CarPowerManagementService.class, in setUp() 133 CarLocalServices.removeServiceForTest(CarUserService.class); in tearDown() [all …]
|
D | GarageModeTest.java | 43 import com.android.car.CarLocalServices; 100 CarLocalServices.removeServiceForTest(CarUserService.class); in setUp() 101 CarLocalServices.addService(CarUserService.class, mCarUserService); in setUp() 103 CarLocalServices.removeServiceForTest(SystemInterface.class); in setUp() 104 CarLocalServices.addService(SystemInterface.class, mSystemInterface); in setUp() 120 CarLocalServices.removeServiceForTest(CarUserService.class); in teardown() 223 CarLocalServices.removeServiceForTest(CarPowerManagementService.class); in test_garageModeTestExitImmediately() 224 CarLocalServices.addService(CarPowerManagementService.class, mockCarPowerManagementService); in test_garageModeTestExitImmediately() 242 CarLocalServices.removeServiceForTest(CarPowerManagementService.class); in test_garageModeTestExitImmediately()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/wifi/ |
D | CarWifiServiceUnitTest.java | 48 import com.android.car.CarLocalServices; 101 mOriginalCarUserService = CarLocalServices.getService(CarUserService.class); in setUp() 102 CarLocalServices.removeServiceForTest(CarUserService.class); in setUp() 103 CarLocalServices.addService(CarUserService.class, mCarUserService); in setUp() 105 mOriginalCarPowerManagementService = CarLocalServices.getService( in setUp() 107 CarLocalServices.removeServiceForTest(CarPowerManagementService.class); in setUp() 108 CarLocalServices.addService(CarPowerManagementService.class, mCarPowerManagementService); in setUp() 132 CarLocalServices.removeServiceForTest(CarUserService.class); in tearDown() 133 CarLocalServices.addService(CarUserService.class, mOriginalCarUserService); in tearDown() 134 CarLocalServices.removeServiceForTest(CarPowerManagementService.class); in tearDown() [all …]
|
/packages/services/Car/tests/carservice_unit_test/src/android/car/ |
D | AbstractExtendedMockitoCarServiceTestCase.java | 24 import com.android.car.CarLocalServices; 50 assertSpied(CarLocalServices.class); in mockGetCarLocalService() 53 doReturn(service).when(() -> CarLocalServices.getService(type)); in mockGetCarLocalService()
|
/packages/services/Car/service/src/com/android/car/ |
D | CarLocalServices.java | 34 public final class CarLocalServices { class 36 private static final String TAG = CarLog.tagFor(CarLocalServices.class); 40 private CarLocalServices() {} in CarLocalServices() method in CarLocalServices
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/os/ |
D | CarPerformanceServiceUnitTest.java | 33 import com.android.car.CarLocalServices; 60 CarLocalServices.addService(CarWatchdogService.class, mMockCarWatchdogService); in setUp() 67 CarLocalServices.removeServiceForTest(CarWatchdogService.class); in tearDown()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/bluetooth/ |
D | BluetoothPowerPolicyTest.java | 39 import com.android.car.CarLocalServices; 68 session.spyStatic(CarLocalServices.class); in onSessionBuilder() 113 CarLocalServices.addService(CarPowerManagementService.class, in setUp() 122 CarLocalServices.removeServiceForTest(CarPowerManagementService.class); in tearDown()
|
D | CarBluetoothServiceTest.java | 43 import com.android.car.CarLocalServices; 133 CarLocalServices.addService(CarPowerManagementService.class, in setUp() 143 CarLocalServices.removeServiceForTest(CarPowerManagementService.class); in tearDown()
|
/packages/services/Car/tests/carservice_test/src/com/android/car/ |
D | CarFeatureControllerTest.java | 72 CarFeatureController featureController = CarLocalServices.getService( in testParsingVhalEmptyList() 85 CarFeatureController featureController = CarLocalServices.getService( in testParsingVhalMultipleEntries() 100 CarFeatureController featureController = CarLocalServices.getService( in testUserNoticeDisabledFromVhal()
|
/packages/services/Car/service/src/com/android/car/garagemode/ |
D | GarageMode.java | 40 import com.android.car.CarLocalServices; 194 boolean result = CarLocalServices.getService(CarUserService.class) 251 CarLocalServices.getService(CarUserService.class) in init() 256 CarLocalServices.getService(CarUserService.class) in release() 341 CarPowerManagementService carPowerService = CarLocalServices.getService( in enterGarageMode() 368 ArrayList<Integer> startedUsers = CarLocalServices.getService(CarUserService.class) in enterGarageMode()
|
D | GarageModeController.java | 32 import com.android.car.CarLocalServices; 65 mCarPowerService = CarLocalServices.getService(CarPowerManagementService.class); in init() 134 SystemInterface systemInterface = CarLocalServices.getService(SystemInterface.class); in sendBroadcast()
|
/packages/services/Car/service/src/com/android/car/pm/ |
D | CarSafetyAccessibilityServiceImpl.java | 21 import com.android.car.CarLocalServices; 34 CarLocalServices.getService(CarPackageManagerService.class); in onAccessibilityEvent()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/occupantconnection/ |
D | CarRemoteDeviceServiceTest.java | 82 import com.android.car.CarLocalServices; 154 CarLocalServices.removeServiceForTest(CarOccupantZoneService.class); in setUp() 155 CarLocalServices.addService(CarOccupantZoneService.class, mOccupantZoneService); in setUp() 156 CarLocalServices.removeServiceForTest(CarPowerManagementService.class); in setUp() 157 CarLocalServices.addService(CarPowerManagementService.class, mPowerManagementService); in setUp() 158 CarLocalServices.removeServiceForTest(SystemActivityMonitoringService.class); in setUp() 159 CarLocalServices.addService(SystemActivityMonitoringService.class, in setUp() 161 CarLocalServices.removeServiceForTest(CarUserService.class); in setUp() 162 CarLocalServices.addService(CarUserService.class, mUserService); in setUp() 175 CarLocalServices.removeServiceForTest(CarOccupantZoneService.class); in tearDown() [all …]
|
/packages/services/Car/tests/carservice_test/src/com/android/car/watchdog/ |
D | CarWatchdogServiceTest.java | 56 import com.android.car.CarLocalServices; 143 .when(() -> CarLocalServices.getService(SystemInterface.class)); in setUp() 145 .when(() -> CarLocalServices.getService(CarUserService.class)); in setUp() 147 .when(() -> CarLocalServices.getService(CarUxRestrictionsManagerService.class)); in setUp() 149 .when(() -> CarLocalServices.getService(CarPowerManagementService.class)); in setUp() 168 .spyStatic(CarLocalServices.class) in onSessionBuilder()
|
/packages/services/Car/service/src/com/android/car/bluetooth/ |
D | BluetoothPowerPolicy.java | 34 import com.android.car.CarLocalServices; 136 CarPowerManagementService cpms = CarLocalServices.getService( in init() 156 CarLocalServices.getService(CarPowerManagementService.class); in release()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/ |
D | CarLocationServiceTest.java | 115 CarLocalServices.removeServiceForTest(SystemInterface.class); in setUp() 116 CarLocalServices.addService(SystemInterface.class, mMockSystemInterface); in setUp() 117 CarLocalServices.removeServiceForTest(CarDrivingStateService.class); in setUp() 118 CarLocalServices.addService(CarDrivingStateService.class, mMockCarDrivingStateService); in setUp() 119 CarLocalServices.removeServiceForTest(CarPerUserServiceHelper.class); in setUp() 120 CarLocalServices.addService(CarPerUserServiceHelper.class, mMockCarPerUserServiceHelper); in setUp()
|
D | CarServiceHelperWrapperUnitTest.java | 47 CarLocalServices.removeServiceForTest(CarServiceHelperWrapper.class); in createWithImmediateTimeout() 59 CarLocalServices.removeServiceForTest(CarServiceHelperWrapper.class); in tearDown()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/pm/ |
D | CarSafetyAccessibilityServiceImplTest.java | 26 import com.android.car.CarLocalServices; 63 session.spyStatic(CarLocalServices.class); in onSessionBuilder()
|
D | VendorServiceControllerTest.java | 55 import com.android.car.CarLocalServices; 161 CarLocalServices.removeServiceForTest(CarUserService.class); in setUp() 162 CarLocalServices.addService(CarUserService.class, mCarUserService); in setUp() 163 CarLocalServices.removeServiceForTest(CarPowerManagementService.class); in setUp() 164 CarLocalServices.addService(CarPowerManagementService.class, mCarPowerManagementService); in setUp() 179 CarLocalServices.removeServiceForTest(CarUserService.class); in tearDown() 180 CarLocalServices.removeServiceForTest(CarPowerManagementService.class); in tearDown()
|
/packages/services/Car/service/src/com/android/car/audio/ |
D | CarDucking.java | 28 import com.android.car.CarLocalServices; 148 return CarLocalServices.getService(CarOemProxyService.class).getCarOemAudioDuckingService() in evaluateAttributesToDuckExternally() 159 CarOemProxyService carService = CarLocalServices.getService(CarOemProxyService.class); in isOemDuckingServiceAvailable()
|
D | CarAudioPolicyVolumeCallback.java | 42 import com.android.car.CarLocalServices; 91 CarLocalServices.getService(CarOemProxyService.class) in evaluateVolumeAdjustmentExternal() 209 CarOemProxyService carService = CarLocalServices.getService(CarOemProxyService.class); in isOemDuckingServiceAvailable()
|
D | CarAudioPowerListener.java | 27 import com.android.car.CarLocalServices; 60 CarPowerManagementService carPowerService = CarLocalServices.getService( in newCarAudioPowerListener()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/garagemode/ |
D | GarageModeRecorderTest.java | 36 import com.android.car.CarLocalServices; 78 .spyStatic(CarLocalServices.class); in onSessionBuilder() 88 doReturn(mSystemInterface).when(() -> CarLocalServices.getService(SystemInterface.class)); in setup()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/cluster/ |
D | InstrumentClusterServiceTest.java | 58 import com.android.car.CarLocalServices; 148 CarLocalServices.removeServiceForTest(CarUserService.class); in setUp() 149 CarLocalServices.addService(CarUserService.class, mCarUserService); in setUp() 167 CarLocalServices.removeServiceForTest(CarUserService.class); in tearDown()
|
/packages/services/Car/tests/carservice_test/src/com/android/car/audio/ |
D | CarZonesAudioFocusTestBase.java | 55 import com.android.car.CarLocalServices; 200 CarLocalServices.removeServiceForTest(CarOemProxyService.class); in setUp() 201 CarLocalServices.addService(CarOemProxyService.class, mMockCarOemProxyService); in setUp() 207 CarLocalServices.removeServiceForTest(CarOemProxyService.class); in tearDown()
|