/packages/services/Car/service/src/com/android/car/user/ |
D | ExperimentalCarUserService.java | 175 int driverId = allDrivers.get(i).getIdentifier(); in dump() local 176 writer.printf("#%d: id=%d", i, driverId); in dump() 177 List<UserHandle> passengers = getPassengers(driverId); in dump() 246 public UserHandle createPassenger(String name, @UserIdInt int driverId) { in createPassenger() argument 250 UserHandle driver = mUserHandleHelper.getExistingUserHandle(driverId); in createPassenger() 252 Slogf.w(TAG, "the driver is invalid for driverId: %d", driverId); in createPassenger() 256 Slogf.w(TAG, "a guest driver with id %d cannot create a passenger", driverId); in createPassenger() 267 Slogf.w(TAG, "can't create a profile for user %d", driverId); in createPassenger() 274 public void switchDriver(@UserIdInt int driverId, AndroidFuture<UserSwitchResult> receiver) { in switchDriver() argument 285 if (UserHelperLite.isHeadlessSystemUser(driverId)) { in switchDriver() [all …]
|
/packages/services/Car/car-lib/src/android/car/user/ |
D | ExperimentalCarUserManager.java | 127 public int createPassenger(@NonNull String name, @UserIdInt int driverId) { in createPassenger() argument 129 UserHandle ui = mService.createPassenger(name, driverId); in createPassenger() 149 public AndroidFuture<UserSwitchResult> switchDriver(@UserIdInt int driverId) { in switchDriver() argument 155 Slog.w(TAG, "switchDriver(" + driverId + ") failed: " + err); in switchDriver() 160 mService.switchDriver(driverId, future); in switchDriver() 204 public List<Integer> getPassengers(@UserIdInt int driverId) { in getPassengers() argument 206 return getUserIdsFromUserHandles(mService.getPassengers(driverId)); in getPassengers()
|
/packages/services/Car/car-lib/src/android/car/ |
D | IExperimentalCarUserService.aidl | 28 UserHandle createPassenger(@nullable String name, int driverId); in createPassenger() argument 29 void switchDriver(int driverId, in AndroidFuture<UserSwitchResult> receiver); in switchDriver() argument 31 List<UserHandle> getPassengers(int driverId); in getPassengers() argument
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/ |
D | ExperimentalCarUserServiceTest.java | 139 int driverId = 90; in testCreatePassenger() local 144 mockCreateProfile(driverId, userName, passenger); in testCreatePassenger() 146 expectRegularUserExists(mMockedUserHandleHelper, driverId); in testCreatePassenger() 147 assertThat(mExperimentalCarUserService.createPassenger(userName, driverId)) in testCreatePassenger() 164 int driverId = 90; in testCreatePassenger_IfDriverIsGuest() local 165 expectGuestUserExists(mMockedUserHandleHelper, driverId, /* isEphemeral= */ false); in testCreatePassenger_IfDriverIsGuest() 167 assertThat(mExperimentalCarUserService.createPassenger(userName, driverId)).isNull(); in testCreatePassenger_IfDriverIsGuest()
|
/packages/services/Car/tests/carservice_unit_test/res/raw/ |
D | car_hidden_apis_release_33.2.txt | 604 android.car.user ExperimentalCarUserManager int createPassenger(String name, int driverId) 605 …roid.car.user ExperimentalCarUserManager AndroidFuture<UserSwitchResult> switchDriver(int driverId) 607 android.car.user ExperimentalCarUserManager List<Integer> getPassengers(int driverId)
|
D | car_hidden_apis_release_33.1.txt | 595 android.car.user ExperimentalCarUserManager int createPassenger(String name, int driverId) 596 …roid.car.user ExperimentalCarUserManager AndroidFuture<UserSwitchResult> switchDriver(int driverId) 598 android.car.user ExperimentalCarUserManager List<Integer> getPassengers(int driverId)
|
D | car_hidden_apis.txt | 712 …roid.car.user ExperimentalCarUserManager AndroidFuture<UserSwitchResult> switchDriver(int driverId) 714 android.car.user ExperimentalCarUserManager List<Integer> getPassengers(int driverId) 718 android.car.user ExperimentalCarUserManager int createPassenger(String name, int driverId)
|
D | car_hidden_apis_release_33.3.txt | 679 android.car.user ExperimentalCarUserManager int createPassenger(String name, int driverId) 680 …roid.car.user ExperimentalCarUserManager AndroidFuture<UserSwitchResult> switchDriver(int driverId) 682 android.car.user ExperimentalCarUserManager List<Integer> getPassengers(int driverId)
|
/packages/services/Car/service/src/com/android/car/audio/ |
D | CarAudioService.java | 2176 int driverId = occupantZoneService.getDriverUserId(); 2177 boolean isSystemUser = UserHandle.SYSTEM.getIdentifier() == driverId; 2184 occupantZoneService.getOccupantZoneForUser(UserHandle.of(driverId));
|
/packages/services/Car/tools/GenericCarApiBuilder/ |
D | complete_car_api_list.txt | 499 method TIRAMISU_0 @hiddenOnly int createPassenger(String name, int driverId); 500 method TIRAMISU_0 @hiddenOnly AndroidFuture<UserSwitchResult> switchDriver(int driverId); 502 method TIRAMISU_0 @hiddenOnly List<Integer> getPassengers(int driverId);
|