Home
last modified time | relevance | path

Searched refs:getUserForOccupant (Results 1 – 25 of 30) sorted by relevance

12

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/power/
DScreenOffHandlerUnitTest.java261 .that((mCarOccupantZoneService.getUserForOccupant(zoneInfo.zoneId))) in testUpdateUserActivity_noUserAssignedInModeOn_shouldTurnOffDisplay()
307 .that((mCarOccupantZoneService.getUserForOccupant(zoneInfo.zoneId))) in testUserActivity_bootIncomplete()
357 .that((mCarOccupantZoneService.getUserForOccupant(zoneInfo.zoneId))) in testHandleDisplayStateChange_modeOn()
379 .that((mCarOccupantZoneService.getUserForOccupant(zoneInfo.zoneId))) in testHandleDisplayStateChange_modeAlwaysOn()
402 .that((mCarOccupantZoneService.getUserForOccupant(zoneInfo.zoneId))) in testHandleDisplayStateChange_modeOff()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/occupantconnection/
DCarRemoteDeviceServiceTest.java193 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()
321 when(mOccupantZoneService.getUserForOccupant(OCCUPANT_ZONE_ID)).thenReturn( in testGetEndpointPackageInfoWithInvalidUserId()
773 when(mOccupantZoneService.getUserForOccupant(mOccupantZone.zoneId)) in testUserUnassigned()
797 when(mOccupantZoneService.getUserForOccupant(mOccupantZone.zoneId)).thenReturn(USER_ID2); in testUserSwitched()
918 when(mOccupantZoneService.getUserForOccupant(occupantZone.zoneId)).thenReturn(userId); in mockOccupantZoneConnectionReady()
928 when(mOccupantZoneService.getUserForOccupant(occupantZone.zoneId)).thenReturn(userId); in mockPerUserInfo()
DCarOccupantConnectionServiceTest.java620 when(mOccupantZoneService.getUserForOccupant(mReceiverZone.zoneId)) in testCancelConnection()
775 when(mOccupantZoneService.getUserForOccupant(mReceiverZone.zoneId)) in testSendPayloadSucceed()
845 when(mOccupantZoneService.getUserForOccupant(mReceiverZone.zoneId)) in testDisconnect()
889 when(mOccupantZoneService.getUserForOccupant(mReceiverZone.zoneId)) in testConnectedSenderDied()
922 when(mOccupantZoneService.getUserForOccupant(mReceiverZone.zoneId)) in testConnectingSenderDiedWithoutReceiverServiceBound()
950 when(mOccupantZoneService.getUserForOccupant(mReceiverZone.zoneId)) in testConnectingSenderDiedWithReceiverServiceBound()
988 when(mOccupantZoneService.getUserForOccupant(occupantZone.zoneId)) in mockAppInstalled()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/audio/
DAudioUserAssignmentFragment.java134 int userId = mCarOccupantZoneManager.getUserForOccupant(info); in getUserName()
275 int occupantZoneUser = mCarOccupantZoneManager.getUserForOccupant(info); in getOccupantZoneForUser()
376 int userId = mCarOccupantZoneManager.getUserForOccupant(occupantZoneInfo); in setUserInfo()
DAudioMirrorTestFragment.java237 int userId = mCarOccupantZoneManager.getUserForOccupant(info); in setupAudioZones()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DCarOccupantZoneServiceTest.java1131 int driverUser = mManager.getUserForOccupant(mZoneDriverLHD); in testManagerGetUserForOccupant()
1134 assertThat(mManager.getUserForOccupant(mZoneFrontPassengerLHD)).isEqualTo( in testManagerGetUserForOccupant()
1136 assertThat(mManager.getUserForOccupant(mZoneRearLeft)).isEqualTo( in testManagerGetUserForOccupant()
1138 assertThat(mManager.getUserForOccupant(mZoneRearRight)).isEqualTo( in testManagerGetUserForOccupant()
1154 assertThat(mManager.getUserForOccupant(mZoneDriverLHD)).isEqualTo(newUserId); in testManagerGetUserForOccupantAfterUserSwitch()
1156 assertThat(mManager.getUserForOccupant(mZoneFrontPassengerLHD)).isEqualTo( in testManagerGetUserForOccupantAfterUserSwitch()
1158 assertThat(mManager.getUserForOccupant(mZoneRearLeft)).isEqualTo( in testManagerGetUserForOccupantAfterUserSwitch()
1160 assertThat(mManager.getUserForOccupant(mZoneRearRight)).isEqualTo( in testManagerGetUserForOccupantAfterUserSwitch()
DOccupantZoneHelper.java178 when(service.getUserForOccupant(anyInt())).thenAnswer( in setUpOccupantZones()
DCarInputServiceTest.java190 when(mCarOccupantZoneService.getUserForOccupant(eq(DRIVER_ZONE_ID))) in setUpCarOccupantZoneService()
192 when(mCarOccupantZoneService.getUserForOccupant(eq(PASSENGER_ZONE_ID))) in setUpCarOccupantZoneService()
/packages/services/Car/car-lib/src/android/car/
DICarOccupantZone.aidl31 int getUserForOccupant(in int occupantZoneId); in getUserForOccupant() method
DCarOccupantZoneManager.java536 public int getUserForOccupant(@NonNull OccupantZoneInfo occupantZone) { in getUserForOccupant() method in CarOccupantZoneManager
539 return mService.getUserForOccupant(occupantZone.zoneId); in getUserForOccupant()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/users/
DSimpleUserPickerFragment.java221 userId = mZoneManager.getUserForOccupant(zoneInfo); in updateTextInfo()
242 int user = mZoneManager.getUserForOccupant(zone); in updateTextInfo()
286 int userId = mZoneManager.getUserForOccupant(zoneInfo); in stopUser()
DProfileUserFragment.java160 zoneStatebuilder.append(mZoneManager.getUserForOccupant(zone)); in updateTextInfo()
355 int assignedUserId = mZoneManager.getUserForOccupant(zoneInfo); in launchAppForZone()
/packages/services/Car/service/src/com/android/car/power/
DScreenOffHandler.java387 int userId = mOccupantZoneService.getUserForOccupant(zoneId); in handleOccupantZoneConfigChangeLocked()
404 int userId = mOccupantZoneService.getUserForOccupant(zoneId); in handleOccupantZoneConfigChangeLocked()
433 int userId = mOccupantZoneService.getUserForOccupant(zoneId); in initializeDisplayPowerInfos()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/
DOccupantZoneStartActivity.java75 int userId = mOccupantZoneManager.getUserForOccupant(zoneInfo); in startActivity()
/packages/services/Car/service/src/com/android/car/occupantconnection/
DCarRemoteDeviceService.java395 int userId = mOccupantZoneService.getUserForOccupant(occupantZoneId); in getEndpointPackageInfo()
463 mOccupantZoneService.getUserForOccupant(occupantZone.zoneId); in handleUserChange()
565 int userId = mOccupantZoneService.getUserForOccupant(occupantZone.zoneId); in initAssignedUsers()
776 int userId = mOccupantZoneService.getUserForOccupant(occupantZone.zoneId); in isConnectionReady()
DCarOccupantConnectionService.java676 int userId = mOccupantZoneService.getUserForOccupant(occupantZone.zoneId); in getClientIdInOccupantZone()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/
DCarAudioServiceUnitTest.java613 when(mMockOccupantZoneService.getUserForOccupant(TEST_DRIVER_OCCUPANT_ZONE_ID)) in setUpService()
620 when(mMockOccupantZoneService.getUserForOccupant(TEST_REAR_LEFT_OCCUPANT_ZONE_ID)) in setUpService()
622 when(mMockOccupantZoneService.getUserForOccupant(TEST_REAR_RIGHT_OCCUPANT_ZONE_ID)) in setUpService()
624 when(mMockOccupantZoneService.getUserForOccupant(TEST_FRONT_OCCUPANT_ZONE_ID)) in setUpService()
626 when(mMockOccupantZoneService.getUserForOccupant(TEST_REAR_ROW_3_OCCUPANT_ZONE_ID)) in setUpService()
2058 when(mMockOccupantZoneService.getUserForOccupant(anyInt())) in onOccupantZoneConfigChanged_noUserAssignedToPrimaryZone()
2074 when(mMockOccupantZoneService.getUserForOccupant(anyInt())) in onOccupantZoneConfigChanged_userAssignedToPrimaryZone()
2089 when(mMockOccupantZoneService.getUserForOccupant(anyInt())) in onOccupantZoneConfigChanged_afterResettingUser_returnNoUser()
2093 when(mMockOccupantZoneService.getUserForOccupant(anyInt())) in onOccupantZoneConfigChanged_afterResettingUser_returnNoUser()
2110 verify(mMockOccupantZoneService, never()).getUserForOccupant(anyInt()); in onOccupantZoneConfigChanged_noOccupantZoneMapping()
[all …]
/packages/apps/Car/SystemUI/src/com/android/systemui/car/users/
DCarMUPANDUserTrackerImpl.java135 int zoneUserId = mCarOccupantZoneManager.getUserForOccupant(zoneInfo); in getDisplayIdForUser()
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/userpicker/
DCarServiceMediatorTest.java152 .getUserForOccupant(mRearPassengerZoneInfo); in checkDisplayIdForUser_requestWithUserId_getDisplayId()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/userpicker/
DCarServiceMediator.java177 int zoneUserId = mCarOccupantZoneManager.getUserForOccupant(zoneInfo); in getDisplayIdForUser()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/media/
DCarMediaServiceTest.java168 when(mMockOccupantZoneService.getUserForOccupant(OCCUPANT_ZONE_ID)) in setUp()
797 when(mMockOccupantZoneService.getUserForOccupant(OCCUPANT_ZONE_ID)) in testMediaKeyEventListenerOnKeyEvent_ignoresInvalidUser()
/packages/services/Car/service/src/com/android/car/audio/
DCarAudioService.java1234 int userId = carOccupantZoneService.getUserForOccupant(info.zoneId); in allowMediaAudioOnPrimaryZone()
2826 int userId = carOccupantZoneService.getUserForOccupant(info.zoneId);
3332 int userId = getCarOccupantZoneService().getUserForOccupant(occupantZoneId);
3561 int userId = getCarOccupantZoneService().getUserForOccupant(occupantZoneId);
/packages/services/Car/service/src/com/android/car/
DCarInputService.java906 int userId = mCarOccupantZoneService.getUserForOccupant(zoneId); in handleHomeKey()
DCarOccupantZoneService.java754 public int getUserForOccupant(int occupantZoneId) { in getUserForOccupant() method in CarOccupantZoneService
DCarMediaService.java1730 int userId = mOccupantZoneService.getUserForOccupant(occupantZoneId); in onKeyEvent()

12