Searched refs:mOccupantZoneService (Results 1 – 8 of 8) sorted by relevance
83 private CarOccupantZoneService mOccupantZoneService; field in CarOccupantConnectionServiceTest123 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 …]
120 private CarOccupantZoneService mOccupantZoneService; field in CarRemoteDeviceServiceTest155 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 …]
116 private final CarOccupantZoneService mOccupantZoneService; field in ScreenOffHandler142 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()
149 private final CarOccupantZoneService mOccupantZoneService; field in CarRemoteDeviceService286 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 …]
91 private final CarOccupantZoneService mOccupantZoneService; field in CarOccupantConnectionService359 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()
79 private final CarOccupantZoneService mOccupantZoneService; field in ClusterHomeService108 mOccupantZoneService = occupantZoneService; in ClusterHomeService()140 mOccupantZoneService.registerCallback(mOccupantZoneCallback); in init()146 int clusterDisplayId = mOccupantZoneService.getDisplayIdForDriver( in initClusterDisplay()192 mOccupantZoneService.unregisterCallback(mOccupantZoneCallback); in release()
93 private CarOccupantZoneService mOccupantZoneService; field in ClusterHomeServiceUnitTest139 when(mOccupantZoneService.getDisplayIdForDriver(DISPLAY_TYPE_INSTRUMENT_CLUSTER)) in setUp()146 }).when(mOccupantZoneService).registerCallback(any(ICarOccupantZoneCallback.class)); in setUp()159 mNavigationService, mOccupantZoneService, mFixedActivityService); in setUp()
138 private final CarOccupantZoneService mOccupantZoneService; field in CarMediaService399 mOccupantZoneService = occupantZoneService; in CarMediaService()1724 int occupantZoneId = mOccupantZoneService.getOccupantZoneIdForSeat(seat); in onKeyEvent()1730 int userId = mOccupantZoneService.getUserForOccupant(occupantZoneId); in onKeyEvent()