/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/ |
D | CarSettingsApplicationTest.java | 62 private CarOccupantZoneManager mCarOccupantZoneManager; field in CarSettingsApplicationTest 99 }).when(mCarOccupantZoneManager).registerOccupantZoneConfigChangeListener(any()); in setUp() 137 when(mCar.getCarManager(Car.CAR_OCCUPANT_ZONE_SERVICE)).thenReturn(mCarOccupantZoneManager); in onLifecycleChanged_carServiceReady_zoneInfoDriver() 138 when(mCarOccupantZoneManager.getMyOccupantZone()).thenReturn(mZoneInfoDriver); in onLifecycleChanged_carServiceReady_zoneInfoDriver() 147 when(mCar.getCarManager(Car.CAR_OCCUPANT_ZONE_SERVICE)).thenReturn(mCarOccupantZoneManager); in onLifecycleChanged_carServiceReady_zoneInfoPassenger() 148 when(mCarOccupantZoneManager.getMyOccupantZone()).thenReturn(mZoneInfoPassenger); in onLifecycleChanged_carServiceReady_zoneInfoPassenger() 157 when(mCar.getCarManager(Car.CAR_OCCUPANT_ZONE_SERVICE)).thenReturn(mCarOccupantZoneManager); in onLifecycleChanged_carServiceReady_zoneInfoNull() 158 when(mCarOccupantZoneManager.getMyOccupantZone()).thenReturn(null); in onLifecycleChanged_carServiceReady_zoneInfoNull() 167 when(mCar.getCarManager(Car.CAR_OCCUPANT_ZONE_SERVICE)).thenReturn(mCarOccupantZoneManager); in onLifecycleChanged_carServiceReady_primaryAudioZone() 168 when(mCarOccupantZoneManager.getMyOccupantZone()).thenReturn(mZoneInfoDriver); in onLifecycleChanged_carServiceReady_primaryAudioZone() [all …]
|
/packages/apps/Car/Settings/src/com/android/car/settings/ |
D | CarSettingsApplication.java | 39 private CarOccupantZoneManager mCarOccupantZoneManager; field in CarSettingsApplication 70 mCarOccupantZoneManager = null; 79 mCarOccupantZoneManager = (CarOccupantZoneManager) car.getCarManager( 81 if (mCarOccupantZoneManager != null) { 82 mCarOccupantZoneManager.registerOccupantZoneConfigChangeListener( 155 if (mCarOccupantZoneManager == null) { in updateZoneInfoLocked() 158 OccupantZoneInfo info = mCarOccupantZoneManager.getMyOccupantZone(); in updateZoneInfoLocked() 161 mAudioZoneId = mCarOccupantZoneManager.getAudioZoneIdForOccupant(info); in updateZoneInfoLocked() 162 Display display = mCarOccupantZoneManager in updateZoneInfoLocked()
|
/packages/apps/Car/SystemUI/src/com/android/systemui/car/userpicker/ |
D | CarServiceMediator.java | 74 private CarOccupantZoneManager mCarOccupantZoneManager; field in CarServiceMediator 102 mCarOccupantZoneManager = car.getCarManager(CarOccupantZoneManager.class); in onConnect() 148 if (mCarOccupantZoneManager == null || displayId == INVALID_DISPLAY) { in getOccupantZoneForDisplayId() 154 List<OccupantZoneInfo> occupantZoneInfos = mCarOccupantZoneManager.getAllOccupantZones(); in getOccupantZoneForDisplayId() 157 List<Display> displays = mCarOccupantZoneManager.getAllDisplaysForOccupant( in getOccupantZoneForDisplayId() 169 if (mCarOccupantZoneManager == null) { in getDisplayIdForUser() 174 List<OccupantZoneInfo> occupantZoneInfos = mCarOccupantZoneManager.getAllOccupantZones(); in getDisplayIdForUser() 177 int zoneUserId = mCarOccupantZoneManager.getUserForOccupant(zoneInfo); in getDisplayIdForUser() 179 Display d = mCarOccupantZoneManager.getDisplayForOccupant(zoneInfo, in getDisplayIdForUser() 188 if (mCarOccupantZoneManager == null) { in getUserForDisplay() [all …]
|
/packages/apps/Car/SystemUI/src/com/android/systemui/car/users/ |
D | CarMUPANDUserTrackerImpl.java | 64 private CarOccupantZoneManager mCarOccupantZoneManager; field in CarMUPANDUserTrackerImpl 127 if (mCarOccupantZoneManager == null) { in getDisplayIdForUser() 132 mCarOccupantZoneManager.getAllOccupantZones(); in getDisplayIdForUser() 135 int zoneUserId = mCarOccupantZoneManager.getUserForOccupant(zoneInfo); in getDisplayIdForUser() 137 Display d = mCarOccupantZoneManager.getDisplayForOccupant(zoneInfo, in getDisplayIdForUser() 158 if (mCarOccupantZoneManager == null) { in maybePerformInitialUserSwitch() 161 int userId = mCarOccupantZoneManager.getUserForDisplayId( in maybePerformInitialUserSwitch() 172 mCarOccupantZoneManager = car.getCarManager(CarOccupantZoneManager.class);
|
D | CarDisplayTrackerImpl.java | 55 private CarOccupantZoneManager mCarOccupantZoneManager; field in CarDisplayTrackerImpl 66 mOccupantZone = mCarOccupantZoneManager.getOccupantZoneForUser( 136 Display display = mCarOccupantZoneManager.getDisplayForOccupant(mOccupantZone, in getDefaultDisplayId() 151 return mCarOccupantZoneManager.getAllDisplaysForOccupant(mOccupantZone) in getAllDisplays() 249 return mOccupantZone != null && isCurrentSystemUIDisplay(mCarOccupantZoneManager, in shouldExecuteDisplayCallback() 257 mCarOccupantZoneManager = 260 if (mCarOccupantZoneManager != null) { 261 mOccupantZone = mCarOccupantZoneManager.getOccupantZoneForUser( 263 mCarOccupantZoneManager.registerOccupantZoneConfigChangeListener(
|
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/qc/ |
D | QCLogoutButtonControllerTest.java | 86 private CarOccupantZoneManager mCarOccupantZoneManager; field in QCLogoutButtonControllerTest 112 when(mCar.getCarManager(CarOccupantZoneManager.class)).thenReturn(mCarOccupantZoneManager); in setUp() 150 verify(mCarOccupantZoneManager, never()).getAllOccupantZones(); in onLogout_userIsNull_doesNotGetOccupantZone() 166 verify(mCarOccupantZoneManager, never()).unassignOccupantZone(any()); in onLogout_notFoundOccupantZoneInfo_doesNotUnassignOccupantZone() 177 when(mCarOccupantZoneManager.unassignOccupantZone(any(OccupantZoneInfo.class))) in onLogout_successToUnassignUser_logoutUser() 195 when(mCarOccupantZoneManager.unassignOccupantZone(any(OccupantZoneInfo.class))) in onLogout_failToUnassignUser_logoutUser() 219 when(mCarOccupantZoneManager.getAllOccupantZones()).thenReturn(occupantZoneInfos); in setOccupantZoneForDisplay() 222 when(mCarOccupantZoneManager.getAllDisplaysForOccupant(occupantZoneInfo)) in setOccupantZoneForDisplay()
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/audio/ |
D | AudioUserAssignmentFragment.java | 64 private CarOccupantZoneManager mCarOccupantZoneManager; field in AudioUserAssignmentFragment 134 int userId = mCarOccupantZoneManager.getUserForOccupant(info); in getUserName() 217 int carAudioZoneId = mCarOccupantZoneManager.getAudioZoneIdForOccupant(info); in handleRequestUserToPlayInMainCabin() 271 mCarOccupantZoneManager.getAllOccupantZones(); in getOccupantZoneForUser() 275 int occupantZoneUser = mCarOccupantZoneManager.getUserForOccupant(info); in getOccupantZoneForUser() 347 mCarOccupantZoneManager = car.getCarManager(CarOccupantZoneManager.class); in onCarReady() 354 if (mCarOccupantZoneManager.getMyOccupantZone().occupantType != OCCUPANT_TYPE_DRIVER) { in setDriverOnlyAbilities() 365 mCarOccupantZoneManager.getAllOccupantZones(); in setUserInfo() 368 mCarOccupantZoneManager.getMyOccupantZone(); in setUserInfo() 376 int userId = mCarOccupantZoneManager.getUserForOccupant(occupantZoneInfo); in setUserInfo()
|
D | VolumeKeyEventsButtonManager.java | 24 private final CarOccupantZoneManager mCarOccupantZoneManager; field in VolumeKeyEventsButtonManager 27 mCarOccupantZoneManager = occupantZoneManager; in VolumeKeyEventsButtonManager() 32 mCarOccupantZoneManager.getMyOccupantZone(); in sendClickEvent()
|
D | AudioMirrorTestFragment.java | 63 private CarOccupantZoneManager mCarOccupantZoneManager; field in AudioMirrorTestFragment 152 OccupantZoneInfo info = mCarOccupantZoneManager.getOccupantForAudioZoneId(audioZoneId); in isZoneCurrentlyMirroringOrCastingToPrimaryZone() 218 mCarOccupantZoneManager = car.getCarManager(CarOccupantZoneManager.class); in onCarReady() 233 List<OccupantZoneInfo> occupantZones = mCarOccupantZoneManager.getAllOccupantZones(); in setupAudioZones() 237 int userId = mCarOccupantZoneManager.getUserForOccupant(info); in setupAudioZones() 242 int audioZoneId = mCarOccupantZoneManager.getAudioZoneIdForOccupant(info); in setupAudioZones()
|
/packages/apps/Car/SystemUI/src/com/android/systemui/car/qc/ |
D | QCLogoutButtonController.java | 64 private CarOccupantZoneManager mCarOccupantZoneManager; field in QCLogoutButtonController 71 mCarOccupantZoneManager = car.getCarManager(CarOccupantZoneManager.class); 171 int result = mCarOccupantZoneManager.unassignOccupantZone(zoneInfo); in logoutUser() 196 mCarOccupantZoneManager.getAllOccupantZones(); in getOccupantZoneForDisplayId() 199 List<Display> displays = mCarOccupantZoneManager.getAllDisplaysForOccupant( in getOccupantZoneForDisplayId()
|
/packages/services/Car/tests/SampleVoiceAssistInputService/src/com/android/car/voiceassist/sample/ |
D | VoiceAssistEventHandler.java | 39 private CarOccupantZoneManager mCarOccupantZoneManager; field in VoiceAssistEventHandler 45 mCarOccupantZoneManager = carOccupantZoneManager; in VoiceAssistEventHandler() 85 int displayId = mCarOccupantZoneManager.getDisplayIdForDriver(targetDisplayType); in getDisplayIdForDisplayType()
|
/packages/services/Car/tests/SampleVoiceAssistInputService/tests/src/com/android/car/voiceassist/sample/unittest/ |
D | VoiceAssistEventHandlerTest.java | 70 private CarOccupantZoneManager mCarOccupantZoneManager; field in VoiceAssistEventHandlerTest 83 when(mCarOccupantZoneManager.getDisplayIdForDriver(eq(DISPLAY_TYPE_MAIN))).thenReturn(0); in setUp() 85 mEventHandler = new VoiceAssistEventHandler(mContext, mService, mCarOccupantZoneManager); in setUp()
|
/packages/services/Car/tests/SampleCustomInputService/src/com/android/car/custominput/sample/ |
D | CustomInputEventListener.java | 55 private final CarOccupantZoneManager mCarOccupantZoneManager; field in CustomInputEventListener 102 mCarOccupantZoneManager = carOccupantZoneManager; in CustomInputEventListener() 154 int displayId = mCarOccupantZoneManager.getDisplayIdForDriver(targetDisplayType); in getDisplayIdForDisplayType()
|
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/statusicon/ui/ |
D | MediaVolumeStatusIconControllerTest.java | 63 CarOccupantZoneManager mCarOccupantZoneManager; field in MediaVolumeStatusIconControllerTest 217 doReturn(mCarOccupantZoneManager).when(mCar).getCarManager(Car.CAR_OCCUPANT_ZONE_SERVICE); in attachAndSetAudioMocks() 219 doReturn(mInfo).when(mCarOccupantZoneManager).getMyOccupantZone(); in attachAndSetAudioMocks()
|
/packages/apps/Car/SystemUI/src/com/android/systemui/car/wm/activity/ |
D | ActivityBlockingActivity.java | 83 private CarOccupantZoneManager mCarOccupantZoneManager; field in ActivityBlockingActivity 143 mCarOccupantZoneManager = car.getCarManager(CarOccupantZoneManager.class); in onCreate() 461 int driverDisplayId = mCarOccupantZoneManager.getDisplayIdForDriver( in handleCloseApplication() 511 return mCarOccupantZoneManager.getUserForDisplayId(displayId); in getUserForCurrentDisplay()
|
/packages/services/Car/tests/SampleCustomInputService/tests/src/com/android/car/custominput/sample/unittest/ |
D | CustomInputEventListenerTest.java | 86 private CarOccupantZoneManager mCarOccupantZoneManager; field in CustomInputEventListenerTest 96 when(mCarOccupantZoneManager.getDisplayIdForDriver(eq(DISPLAY_TYPE_MAIN))).thenReturn(0); in setUp() 99 mCarOccupantZoneManager, mService); in setUp()
|
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/ |
D | CarMultiUserTestBase.java | 81 protected CarOccupantZoneManager mCarOccupantZoneManager; field in CarMultiUserTestBase 108 mCarOccupantZoneManager = getCarService(Car.CAR_OCCUPANT_ZONE_SERVICE); in setMultiUserFixtures() 433 getTargetContext(), mCarOccupantZoneManager); in getDisplayForStartingBackgroundUser()
|
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/input/ |
D | DisplayInputSinkControllerTest.java | 96 private CarOccupantZoneManager mCarOccupantZoneManager; field in DisplayInputSinkControllerTest 139 doReturn(mCarOccupantZoneManager).when(mCar).getCarManager(CarOccupantZoneManager.class); in setUp()
|