Home
last modified time | relevance | path

Searched refs:mOccupantZoneService (Results 1 – 8 of 8) sorted by relevance

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/occupantconnection/
DCarOccupantConnectionServiceTest.java83 private CarOccupantZoneService mOccupantZoneService; field in CarOccupantConnectionServiceTest
123 CarLocalServices.addService(CarOccupantZoneService.class, mOccupantZoneService); in setUp()
128 mOccupantZoneService, in setUp()
170 when(mOccupantZoneService.getOccupantZoneForUser(receiverUserHandle)) in testRegisterReceiverWithDuplicateId_throwsException()
186 when(mOccupantZoneService.getOccupantZoneForUser(receiverUserHandle)) in testRegisterTwoReceiversWithoutReceiverServiceConnected()
240 when(mOccupantZoneService.getOccupantZoneForUser(receiverUserHandle)) in testRegisterReceiverThenConnectReceiverService()
284 when(mOccupantZoneService.getOccupantZoneForUser(receiverUserHandle)) in testRegisterReceiverWithReceiverServiceConnected()
339 when(mOccupantZoneService.getOccupantZoneForUser(receiverUserHandle)) in testUnregisterNonexistentReceiver_throwsException()
349 when(mOccupantZoneService.getOccupantZoneForUser(receiverUserHandle)) in testUnregisterReceiverWithReceiverServiceBound()
388 when(mOccupantZoneService.getOccupantZoneForUser(receiverUserHandle)) in testUnregisterReceiverWithoutReceiverServiceBound()
[all …]
DCarRemoteDeviceServiceTest.java120 private CarOccupantZoneService mOccupantZoneService; field in CarRemoteDeviceServiceTest
155 CarLocalServices.addService(CarOccupantZoneService.class, mOccupantZoneService); in setUp()
164 mService = new CarRemoteDeviceService(mContext, mOccupantZoneService, in setUp()
192 when(mOccupantZoneService.getAllOccupantZones()).thenReturn(allZones); in testInit()
193 when(mOccupantZoneService.getUserForOccupant(zone1.zoneId)).thenReturn(USER_ID); in testInit()
194 when(mOccupantZoneService.getUserForOccupant(zone2.zoneId)).thenReturn(INVALID_USER_ID); in testInit()
195 when(mOccupantZoneService.getUserForOccupant(zone3.zoneId)).thenReturn(USER_SYSTEM); in testInit()
226 when(mOccupantZoneService.getAllOccupantZones()).thenReturn(allZones); in testPeerClientInstallUninstall()
279 when(mOccupantZoneService.getAllOccupantZones()).thenReturn(allZones); in testNonPeerClientUninstall()
321 when(mOccupantZoneService.getUserForOccupant(OCCUPANT_ZONE_ID)).thenReturn( in testGetEndpointPackageInfoWithInvalidUserId()
[all …]
/packages/services/Car/service/src/com/android/car/power/
DScreenOffHandler.java116 private final CarOccupantZoneService mOccupantZoneService; field in ScreenOffHandler
142 mOccupantZoneService = CarLocalServices.getService(CarOccupantZoneService.class); in ScreenOffHandler()
154 mOccupantZoneService.registerCallback(mOccupantZoneCallback); in init()
375 List<OccupantZoneInfo> occupantZoneInfos = mOccupantZoneService.getAllOccupantZones(); in handleOccupantZoneConfigChangeLocked()
387 int userId = mOccupantZoneService.getUserForOccupant(zoneId); in handleOccupantZoneConfigChangeLocked()
404 int userId = mOccupantZoneService.getUserForOccupant(zoneId); in handleOccupantZoneConfigChangeLocked()
413 && mOccupantZoneService.getDisplayType(info.getDisplayId()) in handleOccupantZoneConfigChangeLocked()
423 List<OccupantZoneInfo> occupantZoneInfos = mOccupantZoneService.getAllOccupantZones(); in initializeDisplayPowerInfos()
433 int userId = mOccupantZoneService.getUserForOccupant(zoneId); in initializeDisplayPowerInfos()
450 return mOccupantZoneService.getDisplayForOccupant(zoneId, in getMainTypeDisplayId()
/packages/services/Car/service/src/com/android/car/occupantconnection/
DCarRemoteDeviceService.java149 private final CarOccupantZoneService mOccupantZoneService; field in CarRemoteDeviceService
286 mOccupantZoneService = occupantZoneService; in CarRemoteDeviceService()
395 int userId = mOccupantZoneService.getUserForOccupant(occupantZoneId); in getEndpointPackageInfo()
408 int[] displayIds = mOccupantZoneService.getAllDisplaysForOccupantZone(occupantZone.zoneId); in setOccupantZonePower()
418 return mOccupantZoneService.areDisplaysOnForOccupantZone(occupantZone.zoneId); in isOccupantZonePowerOn()
422 List<OccupantZoneInfo> allOccupantZones = mOccupantZoneService.getAllOccupantZones(); in initAllOccupantZones()
463 mOccupantZoneService.getUserForOccupant(occupantZone.zoneId); in handleUserChange()
512 mOccupantZoneService.getOccupantZoneForDisplayId(displayId); in registerDisplayListener()
565 int userId = mOccupantZoneService.getUserForOccupant(occupantZone.zoneId); in initAssignedUsers()
680 mOccupantZoneService.getOccupantZoneForUser(callingUserHandle); in getCallingClientId()
[all …]
DCarOccupantConnectionService.java91 private final CarOccupantZoneService mOccupantZoneService; field in CarOccupantConnectionService
359 mOccupantZoneService = occupantZoneService; in CarOccupantConnectionService()
635 OccupantZoneInfo senderZone = mOccupantZoneService.getOccupantZoneForUser(senderUserHandle); in isConnected()
668 mOccupantZoneService.getOccupantZoneForUser(callingUserHandle); in getCallingClientId()
676 int userId = mOccupantZoneService.getUserForOccupant(occupantZone.zoneId); in getClientIdInOccupantZone()
/packages/services/Car/service/src/com/android/car/cluster/
DClusterHomeService.java79 private final CarOccupantZoneService mOccupantZoneService; field in ClusterHomeService
108 mOccupantZoneService = occupantZoneService; in ClusterHomeService()
140 mOccupantZoneService.registerCallback(mOccupantZoneCallback); in init()
146 int clusterDisplayId = mOccupantZoneService.getDisplayIdForDriver( in initClusterDisplay()
192 mOccupantZoneService.unregisterCallback(mOccupantZoneCallback); in release()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/cluster/
DClusterHomeServiceUnitTest.java93 private CarOccupantZoneService mOccupantZoneService; field in ClusterHomeServiceUnitTest
139 when(mOccupantZoneService.getDisplayIdForDriver(DISPLAY_TYPE_INSTRUMENT_CLUSTER)) in setUp()
146 }).when(mOccupantZoneService).registerCallback(any(ICarOccupantZoneCallback.class)); in setUp()
159 mNavigationService, mOccupantZoneService, mFixedActivityService); in setUp()
/packages/services/Car/service/src/com/android/car/
DCarMediaService.java138 private final CarOccupantZoneService mOccupantZoneService; field in CarMediaService
399 mOccupantZoneService = occupantZoneService; in CarMediaService()
1724 int occupantZoneId = mOccupantZoneService.getOccupantZoneIdForSeat(seat); in onKeyEvent()
1730 int userId = mOccupantZoneService.getUserForOccupant(occupantZoneId); in onKeyEvent()