Home
last modified time | relevance | path

Searched refs:CarLocalServices (Results 1 – 25 of 88) sorted by relevance

1234

/packages/services/Car/tests/carservice_test/src/com/android/car/garagemode/
DGarageModeControllerTest.java51 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 …]
DGarageModeTest.java43 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/
DCarWifiServiceUnitTest.java48 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/
DAbstractExtendedMockitoCarServiceTestCase.java24 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/
DCarLocalServices.java34 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/
DCarPerformanceServiceUnitTest.java33 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/
DBluetoothPowerPolicyTest.java39 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()
DCarBluetoothServiceTest.java43 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/
DCarFeatureControllerTest.java72 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/
DGarageMode.java40 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()
DGarageModeController.java32 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/
DCarSafetyAccessibilityServiceImpl.java21 import com.android.car.CarLocalServices;
34 CarLocalServices.getService(CarPackageManagerService.class); in onAccessibilityEvent()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/occupantconnection/
DCarRemoteDeviceServiceTest.java82 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/
DCarWatchdogServiceTest.java56 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/
DBluetoothPowerPolicy.java34 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/
DCarLocationServiceTest.java115 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()
DCarServiceHelperWrapperUnitTest.java47 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/
DCarSafetyAccessibilityServiceImplTest.java26 import com.android.car.CarLocalServices;
63 session.spyStatic(CarLocalServices.class); in onSessionBuilder()
DVendorServiceControllerTest.java55 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/
DCarDucking.java28 import com.android.car.CarLocalServices;
148 return CarLocalServices.getService(CarOemProxyService.class).getCarOemAudioDuckingService() in evaluateAttributesToDuckExternally()
159 CarOemProxyService carService = CarLocalServices.getService(CarOemProxyService.class); in isOemDuckingServiceAvailable()
DCarAudioPolicyVolumeCallback.java42 import com.android.car.CarLocalServices;
91 CarLocalServices.getService(CarOemProxyService.class) in evaluateVolumeAdjustmentExternal()
209 CarOemProxyService carService = CarLocalServices.getService(CarOemProxyService.class); in isOemDuckingServiceAvailable()
DCarAudioPowerListener.java27 import com.android.car.CarLocalServices;
60 CarPowerManagementService carPowerService = CarLocalServices.getService( in newCarAudioPowerListener()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/garagemode/
DGarageModeRecorderTest.java36 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/
DInstrumentClusterServiceTest.java58 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/
DCarZonesAudioFocusTestBase.java55 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()

1234