/packages/services/Car/tests/carservice_unit_test/src/com/android/car/power/ |
D | ScreenOffHandlerUnitTest.java | 76 private CarOccupantZoneService mCarOccupantZoneService; field in ScreenOffHandlerUnitTest 104 mZoneHelper.setUpOccupantZones(mCarOccupantZoneService, /* hasDriver= */ true, in setUp() 107 CarLocalServices.addService(CarOccupantZoneService.class, mCarOccupantZoneService); in setUp() 252 OccupantZoneInfo zoneInfo = mCarOccupantZoneService.getOccupantZone( in testUpdateUserActivity_noUserAssignedInModeOn_shouldTurnOffDisplay() 257 int displayId = mCarOccupantZoneService.getDisplayForOccupant( in testUpdateUserActivity_noUserAssignedInModeOn_shouldTurnOffDisplay() 261 .that((mCarOccupantZoneService.getUserForOccupant(zoneInfo.zoneId))) in testUpdateUserActivity_noUserAssignedInModeOn_shouldTurnOffDisplay() 274 OccupantZoneInfo zoneInfo = mCarOccupantZoneService.getOccupantZone( in testUpdateUserActivity_userAssignedInModeOn_shouldKeepScreenOn() 279 int displayId = mCarOccupantZoneService.getDisplayForOccupant( in testUpdateUserActivity_userAssignedInModeOn_shouldKeepScreenOn() 285 mCarOccupantZoneService.assignVisibleUserToOccupantZone( in testUpdateUserActivity_userAssignedInModeOn_shouldKeepScreenOn() 301 OccupantZoneInfo zoneInfo = mCarOccupantZoneService.getOccupantZone( in testUserActivity_bootIncomplete() [all …]
|
/packages/services/Car/service/src/com/android/car/systemui/keyguard/ |
D | ExperimentalCarKeyguardService.java | 74 private final CarOccupantZoneService mCarOccupantZoneService; field in ExperimentalCarKeyguardService 157 mCarOccupantZoneService = carOccupantZoneService; in ExperimentalCarKeyguardService() 173 mCarOccupantZoneService.registerCallback(mOccupantZoneCallback); in init() 357 mCarOccupantZoneService.getOccupantZoneForUser(userHandle); in getDisplaysForUser() 361 int mainDisplayId = mCarOccupantZoneService.getDisplayForOccupant(info.zoneId, in getDisplaysForUser() 367 mCarOccupantZoneService.getAllDisplaysForOccupantZone(info.zoneId)); in getDisplaysForUser()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/ |
D | CarInputServiceTest.java | 108 @Mock CarOccupantZoneService mCarOccupantZoneService; field in CarInputServiceTest 154 mCarOccupantZoneService, mCarBluetoothService, mCarPowerManagementService, in setUp() 183 when(mCarOccupantZoneService.getDriverSeat()).thenReturn(DRIVER_SEAT); in setUpCarOccupantZoneService() 185 when(mCarOccupantZoneService.getOccupantZoneIdForSeat(eq(DRIVER_SEAT))) in setUpCarOccupantZoneService() 187 when(mCarOccupantZoneService.getOccupantZoneIdForSeat(eq(PASSENGER_SEAT))) in setUpCarOccupantZoneService() 190 when(mCarOccupantZoneService.getUserForOccupant(eq(DRIVER_ZONE_ID))) in setUpCarOccupantZoneService() 192 when(mCarOccupantZoneService.getUserForOccupant(eq(PASSENGER_ZONE_ID))) in setUpCarOccupantZoneService() 195 when(mCarOccupantZoneService.getDisplayForOccupant(eq(DRIVER_ZONE_ID), in setUpCarOccupantZoneService() 197 when(mCarOccupantZoneService.getDisplayForOccupant(eq(PASSENGER_ZONE_ID), in setUpCarOccupantZoneService() 242 verify(mCarOccupantZoneService, never()).getDisplayIdForDriver(anyInt()); in testOnRotaryEvent_injectingRotaryNavigationEvent() [all …]
|
D | SystemActivityMonitoringServiceUnitTest.java | 56 private CarOccupantZoneService mCarOccupantZoneService; field in SystemActivityMonitoringServiceUnitTest 71 CarLocalServices.addService(CarOccupantZoneService.class, mCarOccupantZoneService); in setUp() 265 when(mCarOccupantZoneService.hasDriverZone()).thenReturn(hasDriverZone); in setUpAssignPassengerActivityToFgGroup() 266 when(mCarOccupantZoneService.hasPassengerZones()).thenReturn(hasPassengerZone); in setUpAssignPassengerActivityToFgGroup()
|
D | CarInputRotaryServiceTest.java | 89 @Mock private CarOccupantZoneService mCarOccupantZoneService; field in CarInputRotaryServiceTest 297 mUxRestrictionService, mCarPackageManagerService, mCarOccupantZoneService); in init() 300 mCarOccupantZoneService, mCarBluetoothService, mCarPowerManagementService, in init()
|
/packages/services/Car/service/src/com/android/car/ |
D | ICarImpl.java | 164 private final CarOccupantZoneService mCarOccupantZoneService; field in ICarImpl 256 mCarOccupantZoneService = constructWithTrace(t, CarOccupantZoneService.class, in ICarImpl() 260 mCarPropertyService, mCarOccupantZoneService), allServices); in ICarImpl() 265 mCarActivityService, mCarOccupantZoneService), allServices); in ICarImpl() 273 mCarOccupantZoneService); in ICarImpl() 293 mCarOccupantZoneService), allServices); in ICarImpl() 333 mCarOccupantZoneService, mCarBluetoothService, mCarPowerManagementService, in ICarImpl() 387 () -> new CarMediaService(mContext, mCarOccupantZoneService, mCarUserService, in ICarImpl() 407 mClusterNavigationService, mCarOccupantZoneService, in ICarImpl() 466 () -> new CarRemoteDeviceService(mContext, mCarOccupantZoneService, in ICarImpl() [all …]
|
D | CarInputService.java | 215 private final CarOccupantZoneService mCarOccupantZoneService; field in CarInputService 344 mCarOccupantZoneService = occupantZoneService; in CarInputService() 458 mDriverSeat = mCarOccupantZoneService.getDriverSeat(); in init() 571 int newDisplayId = mCarOccupantZoneService.getDisplayIdForDriver(targetDisplayType); in assignDisplayId() 586 int zoneId = mCarOccupantZoneService.getOccupantZoneIdForSeat(seat); in getDisplayIdForSeat() 587 return mCarOccupantZoneService.getDisplayForOccupant(zoneId, targetDisplayType); in getDisplayIdForSeat() 900 int zoneId = mCarOccupantZoneService.getOccupantZoneIdForSeat(seat); in handleHomeKey() 906 int userId = mCarOccupantZoneService.getUserForOccupant(zoneId); in handleHomeKey() 907 int displayId = mCarOccupantZoneService.getDisplayForOccupant(zoneId, in handleHomeKey()
|
D | CarUxRestrictionsManagerService.java | 154 private final CarOccupantZoneService mCarOccupantZoneService; field in CarUxRestrictionsManagerService 265 mCarOccupantZoneService.getAllOccupantZones(); 274 mCarOccupantZoneService.getAllDisplaysForOccupantZone( 322 mCarOccupantZoneService = carOccupantZoneService; in CarUxRestrictionsManagerService() 362 mCarOccupantZoneService.registerCallback(mOccupantZoneCallback); in init() 1128 mCarOccupantZoneService.getAllOccupantZones(); in initDisplayIdsLocked() 1132 int[] displayIds = mCarOccupantZoneService.getAllDisplaysForOccupantZone(zoneId); in initDisplayIdsLocked() 1142 IntArray displayIds = mCarOccupantZoneService.getAllDisplayIdsForDriver(DISPLAY_TYPE_MAIN); in initDisplayIdsLocked() 1171 mCarOccupantZoneService.findDisplayConfigForDisplayId(displayId); in getDisplayIdentifier() 1181 mCarOccupantZoneService.findDisplayConfigForPort(port); in getDisplayIdentifierFromPort()
|
D | CarShellCommand.java | 550 private final CarOccupantZoneService mCarOccupantZoneService; field in CarShellCommand 581 mCarOccupantZoneService = (CarOccupantZoneService) in CarShellCommand() 1144 if (!mCarOccupantZoneService.assignProfileUserToOccupantZone(occupantZoneId, userId)) { in runSetOccupantZoneIdForUserId() 1152 if (!mCarOccupantZoneService in runResetOccupantZoneId() 1849 seat = mCarOccupantZoneService.getDriverSeat(); 2046 seat = mCarOccupantZoneService.getDriverSeat();
|
/packages/services/Car/service/src/com/android/car/user/ |
D | CarUserService.java | 307 private final CarOccupantZoneService mCarOccupantZoneService; field in CarUserService 390 mCarOccupantZoneService = carOccupantZoneService; in CarUserService() 414 mCarOccupantZoneService.registerCallback(mOccupantZoneCallback); in init() 450 mCarOccupantZoneService.unregisterCallback(mOccupantZoneCallback); in release() 512 List<OccupantZoneInfo> occupantZoneInfos = mCarOccupantZoneService.getAllOccupantZones(); in getOccupantZoneForDisplayId() 515 int[] displays = mCarOccupantZoneService.getAllDisplaysForOccupantZone( in getOccupantZoneForDisplayId() 2128 if (mCarOccupantZoneService.getUserForDisplayId(displayId) in startUserInternal() 2455 boolean hasDriverZone = mCarOccupantZoneService.hasDriverZone(); in startUserPicker() 2457 driverZoneId = mCarOccupantZoneService.getOccupantZone( in startUserPicker() 2464 mCarOccupantZoneService.getAllOccupantZones(); in startUserPicker() [all …]
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/ |
D | CarUserServiceTest.java | 391 verify(mCarOccupantZoneService, never()).assignVisibleUserToOccupantZone(anyInt(), in testOnUserStarting_systemUser_noop() 409 when(mCarOccupantZoneService.getAllOccupantZones()).thenReturn(infos); in testOnUserStarting_afterUserVisible_occupantZoneAssignment() 412 when(mCarOccupantZoneService.getAllDisplaysForOccupantZone(TEST_OCCUPANT_ZONE_ID)) in testOnUserStarting_afterUserVisible_occupantZoneAssignment() 415 when(mCarOccupantZoneService.assignVisibleUserToOccupantZone( in testOnUserStarting_afterUserVisible_occupantZoneAssignment() 426 verify(mCarOccupantZoneService).assignVisibleUserToOccupantZone( in testOnUserStarting_afterUserVisible_occupantZoneAssignment() 444 when(mCarOccupantZoneService.getAllOccupantZones()).thenReturn(infos); in testOnUserVisible_afterUserStarting_occupantZoneAssignment() 447 when(mCarOccupantZoneService.getAllDisplaysForOccupantZone(TEST_OCCUPANT_ZONE_ID)) in testOnUserVisible_afterUserStarting_occupantZoneAssignment() 450 when(mCarOccupantZoneService.assignVisibleUserToOccupantZone( in testOnUserVisible_afterUserStarting_occupantZoneAssignment() 461 verify(mCarOccupantZoneService).assignVisibleUserToOccupantZone( in testOnUserVisible_afterUserStarting_occupantZoneAssignment() 483 verify(mCarOccupantZoneService, never()).assignVisibleUserToOccupantZone(anyInt(), in testOnUserVisible_afterPastUserStartingNotVisible_noOccupantZoneAssignment() [all …]
|
D | BaseCarUserServiceTestCase.java | 179 @Mock protected CarOccupantZoneService mCarOccupantZoneService; field in BaseCarUserServiceTestCase 292 CarLocalServices.addService(CarOccupantZoneService.class, mCarOccupantZoneService); in setUpMocks() 638 mCarOccupantZoneService); in newCarUserService() 908 when(mCarOccupantZoneService.getUserForDisplayId(displayId)).thenReturn(userId); in mockCarOccupantZoneServiceGetUserForDisplay()
|
/packages/services/Car/service/src/com/android/car/pm/ |
D | CarPackageManagerService.java | 208 private final CarOccupantZoneService mCarOccupantZoneService; field in CarPackageManagerService 276 mCarOccupantZoneService = carOccupantZoneService; in CarPackageManagerService() 736 mCarOccupantZoneService.getAllOccupantZones(); in doHandleInit() 742 int[] displayIds = mCarOccupantZoneService.getAllDisplaysForOccupantZone(zoneId); in doHandleInit() 755 mCarOccupantZoneService.registerCallback(mOccupantZoneCallback); in doHandleInit() 778 mCarOccupantZoneService.getAllOccupantZones(); 786 mCarOccupantZoneService.getAllDisplaysForOccupantZone(zoneId);
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/pm/ |
D | VendorServiceControllerTest.java | 138 private CarOccupantZoneService mCarOccupantZoneService; field in VendorServiceControllerTest 159 mCarOccupantZoneService); in setUp()
|