Searched refs:mCarWatchdogService (Results 1 – 6 of 6) sorted by relevance
132 private CarWatchdogService mCarWatchdogService; field in CarWatchdogServiceUnitTest156 mCarWatchdogService = new CarWatchdogService(mMockContext); in setUpMocks()159 mCarWatchdogService.init(); in setUpMocks()177 mCarWatchdogService.registerClient(client, TIMEOUT_CRITICAL); in testRegisterClient()195 mCarWatchdogService.registerClient(client, TIMEOUT_CRITICAL); in testUnregisterUnregisteredClient()196 mCarWatchdogService.unregisterClient(client); in testUnregisterUnregisteredClient()247 ResourceOveruseStats actualStats = mCarWatchdogService.getResourceOveruseStats( in testGetResourceOveruseStats()259 () -> mCarWatchdogService.getResourceOveruseStats(/* resourceOveruseFlag= */0, in testFailsGetResourceOveruseStatsWithInvalidArgs()263 () -> mCarWatchdogService.getResourceOveruseStats( in testFailsGetResourceOveruseStatsWithInvalidArgs()295 List<ResourceOveruseStats> actualStats = mCarWatchdogService.getAllResourceOveruseStats( in testGetAllResourceOveruseStatsWithNoMinimum()[all …]
91 private CarWatchdogService mCarWatchdogService; field in CarWatchdogServiceTest96 mCarWatchdogService = new CarWatchdogService(mMockContext); in setUpMocks()100 when(mServiceBinder.queryLocalInterface(anyString())).thenReturn(mCarWatchdogService); in setUpMocks()106 mCarWatchdogService.init(); in setUpMocks()121 assertThat(mCarWatchdogService.getClientCount(TIMEOUT_CRITICAL)).isEqualTo(1); in testRegisterUnregisterClient()123 assertThat(mCarWatchdogService.getClientCount(TIMEOUT_CRITICAL)).isEqualTo(0); in testRegisterUnregisterClient()
134 private final CarWatchdogService mCarWatchdogService; field in ICarImpl328 mCarWatchdogService = constructWithTrace(t, CarWatchdogService.class, in ICarImpl()331 mCarWatchdogService = carWatchdogService; in ICarImpl()392 allServices.add(mCarWatchdogService); in ICarImpl()623 return mCarWatchdogService; in getCarService()848 mCarWatchdogService); in newCarShellCommand()
365 private final CarWatchdogService mCarWatchdogService; field in CarShellCommand399 mCarWatchdogService = carWatchdogService; in CarShellCommand()2127 int result = mCarWatchdogService.setResourceOveruseConfigurations(2167 mCarWatchdogService.getResourceOveruseConfigurations(resourceOveruseFlag)) {
88 @Mock private CarWatchdogService mCarWatchdogService; field in ICarImplTest169 mCarWatchdogService, new MockedCarTestBase.FakeCarPowerPolicyDaemon()); in testNoShardedPreferencesAccessedBeforeUserZeroUnlock()
109 private final CarWatchdogService mCarWatchdogService = mock(CarWatchdogService.class); field in MockedCarTestBase235 "MockedCar", mCarUserService, mCarWatchdogService, in setUp()