Home
last modified time | relevance | path

Searched refs:mICarServiceHelper (Results 1 – 9 of 9) sorted by relevance

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DSystemActivityMonitoringServiceUnitTest.java54 private ICarServiceHelper mICarServiceHelper; field in SystemActivityMonitoringServiceUnitTest
70 wrapper.setCarServiceHelper(mICarServiceHelper); in setUp()
72 when(mICarServiceHelper.getProcessGroup(anyInt())).thenAnswer(pid -> { in setUp()
105 verify(mICarServiceHelper).getProcessGroup(processPid); in testSetProcessGroupInFirstTry()
106 verify(mICarServiceHelper).setProcessGroup(processPid, ProcessHelper.THREAD_GROUP_DEFAULT); in testSetProcessGroupInFirstTry()
128 verify(mICarServiceHelper, times(2)).getProcessGroup(processPid); in testSetProcessGroupInSecondTry()
129 verify(mICarServiceHelper).setProcessGroup(processPid, in testSetProcessGroupInSecondTry()
147 verify(mICarServiceHelper).getProcessGroup(processPid); in testGetProcessGroupFailure()
148 verify(mICarServiceHelper, never()).setProcessGroup(anyInt(), anyInt()); in testGetProcessGroupFailure()
163 verify(mICarServiceHelper, never()).getProcessGroup(processPid); in testIgnoreCurrentUser()
[all …]
DCarOccupantZoneServiceTest.java183 private final ICarServiceHelperImpl mICarServiceHelper = new ICarServiceHelperImpl(); field in CarOccupantZoneServiceTest
282 wrapper.setCarServiceHelper(mICarServiceHelper); in setUp()
426 assertThat(mICarServiceHelper.mAllowlists).containsKey(userId); in assertDisplayAllowlist()
427 assertThat(mICarServiceHelper.mAllowlists.get(userId)).hasSize(displays.length); in assertDisplayAllowlist()
429 assertThat(mICarServiceHelper.mAllowlists.get(userId)).contains(display); in assertDisplayAllowlist()
434 assertThat(mICarServiceHelper.mPassengerDisplayIds).hasSize(2); in assertPassengerDisplaysFromDefaultConfig()
435 assertThat(mICarServiceHelper.mPassengerDisplayIds).contains( in assertPassengerDisplaysFromDefaultConfig()
437 assertThat(mICarServiceHelper.mPassengerDisplayIds).contains( in assertPassengerDisplaysFromDefaultConfig()
448 mICarServiceHelper.mAllowlists.clear(); in testAssignProfileUserOnce()
453 assertThat(mICarServiceHelper.mAllowlists).hasSize(1); in testAssignProfileUserOnce()
[all …]
DCarServiceHelperWrapperUnitTest.java37 private ICarServiceHelper mICarServiceHelper; field in CarServiceHelperWrapperUnitTest
64 mDefaultWrapper.setCarServiceHelper(mICarServiceHelper); in testRunOnConnection_alreadyConnected()
77 mDefaultWrapper.setCarServiceHelper(mICarServiceHelper); in testRunOnConnection_connectLater()
/packages/services/Car/service/src/com/android/car/
DCarServiceHelperWrapper.java59 private ICarServiceHelper mICarServiceHelper; field in CarServiceHelperWrapper
89 mICarServiceHelper = carServiceHelper; in setCarServiceHelper()
116 alreadyConnected = mICarServiceHelper != null; in runOnConnection()
312 if (mICarServiceHelper == null) { in waitForCarServiceHelper()
322 if (mICarServiceHelper == null) { in waitForCarServiceHelper()
326 return mICarServiceHelper; in waitForCarServiceHelper()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/am/
DCarActivityServiceUnitTest.java71 private ICarServiceHelper mICarServiceHelper; field in CarActivityServiceUnitTest
83 wrapper.setCarServiceHelper(mICarServiceHelper); in setUp()
121 verify(mICarServiceHelper).setPersistentActivity( in setPersistentActivityInvokesICarServiceHelper()
146 verify(mICarServiceHelper).setPersistentActivitiesOnRootTask( in setPersistentActivitiesOnRootTaskInvokesICarServiceHelper()
/packages/services/Car/tests/carservice_test/src/com/android/car/
DICarImplTest.java109 @Mock private ICarServiceHelper mICarServiceHelper; field in ICarImplTest
230 carImpl.setSystemServerConnections(mICarServiceHelper, new CarServiceConnectedCallback()); in testNoShardedPreferencesAccessedBeforeUserZeroUnlock()
DMockedCarTestBase.java132 private final ICarServiceHelper mICarServiceHelper = mock(ICarServiceHelper.class); field in MockedCarTestBase
404 carImpl.setSystemServerConnections(mICarServiceHelper, in setUp()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/
DCarUserServiceTest.java204 verify(mICarServiceHelper).sendInitialUser(user); in testSendInitialUserToSystemServer()
228 verify(mICarServiceHelper).setSafetyMode(false); in testSetICarServiceHelper_withUxRestrictions()
232 verify(mICarServiceHelper).setSafetyMode(true); in testSetICarServiceHelper_withUxRestrictions()
235 verify(mICarServiceHelper, times(2)).setSafetyMode(false); in testSetICarServiceHelper_withUxRestrictions()
243 verify(mICarServiceHelper).setSafetyMode(true); in testSetICarServiceHelper_withoutUxRestrictions()
246 verify(mICarServiceHelper).setSafetyMode(false); in testSetICarServiceHelper_withoutUxRestrictions()
2301 when(mICarServiceHelper.createUserEvenWhenDisallowed(any(), any(), anyInt())) in testCreateUserEvenWhenDisallowed_remoteException()
2314 when(mICarServiceHelper.createUserEvenWhenDisallowed("name", in testCreateUserEvenWhenDisallowed_success()
DBaseCarUserServiceTestCase.java176 @Mock protected ICarServiceHelper mICarServiceHelper; field in BaseCarUserServiceTestCase
297 wrapper.setCarServiceHelper(mICarServiceHelper); in setUpMocks()
913 when(mICarServiceHelper.getMainDisplayAssignedToUser(userId)).thenReturn(displayId); in mockCarServiceHelperGetMainDisplayAssignedToUser()