Searched refs:occupantZoneId (Results 1 – 6 of 6) sorted by relevance
/packages/services/Car/service/src/com/android/car/ |
D | CarOccupantZoneService.java | 99 public final int occupantZoneId; field in CarOccupantZoneService.DisplayConfig 101 DisplayConfig(int displayType, int occupantZoneId) { in DisplayConfig() argument 103 this.occupantZoneId = occupantZoneId; in DisplayConfig() 113 b.append(occupantZoneId); in toString() 460 public int[] getAllDisplaysForOccupantZone(int occupantZoneId) { in getAllDisplaysForOccupantZone() argument 462 OccupantConfig config = mActiveOccupantConfigs.get(occupantZoneId); in getAllDisplaysForOccupantZone() 475 public int getDisplayForOccupant(int occupantZoneId, int displayType) { in getDisplayForOccupant() argument 477 OccupantConfig config = mActiveOccupantConfigs.get(occupantZoneId); in getDisplayForOccupant() 527 public int getAudioZoneIdForOccupant(int occupantZoneId) { in getAudioZoneIdForOccupant() argument 530 OccupantConfig config = mActiveOccupantConfigs.get(occupantZoneId); in getAudioZoneIdForOccupant() [all …]
|
D | CarShellCommand.java | 664 int occupantZoneId = Integer.parseInt(occupantZoneIdString); in runSetOccupantZoneIdForUserId() local 665 if (!mCarOccupantZoneService.assignProfileUserToOccupantZone(occupantZoneId, userId)) { in runSetOccupantZoneIdForUserId() 672 int occupantZoneId = Integer.parseInt(occupantZoneIdString); in runResetOccupantZoneId() local 674 .assignProfileUserToOccupantZone(occupantZoneId, UserHandle.USER_NULL)) { in runResetOccupantZoneId()
|
/packages/services/Car/car-lib/src/android/car/ |
D | ICarOccupantZone.aidl | 26 int getAudioZoneIdForOccupant(in int occupantZoneId); in getAudioZoneIdForOccupant() argument 27 int[] getAllDisplaysForOccupantZone(in int occupantZoneId); in getAllDisplaysForOccupantZone() argument 28 int getDisplayForOccupant(in int occupantZoneId, in int displayType); in getDisplayForOccupant() argument 31 int getUserForOccupant(in int occupantZoneId); in getUserForOccupant() argument 40 boolean assignProfileUserToOccupantZone(in int occupantZoneId, in int userId); in assignProfileUserToOccupantZone() argument
|
/packages/services/Car/service/src/com/android/car/audio/ |
D | CarAudioZonesHelper.java | 323 int occupantZoneId = parsePositiveIntAttribute(ATTR_OCCUPANT_ZONE_ID, occupantZoneIdString); in parseOccupantZoneId() local 324 validateOccupantZoneIdIsUnique(occupantZoneId); in parseOccupantZoneId() 325 mZoneIdToOccupantZoneIdMapping.put(audioZoneId, occupantZoneId); in parseOccupantZoneId() 374 private void validateOccupantZoneIdIsUnique(int occupantZoneId) { in validateOccupantZoneIdIsUnique() argument 375 if (mZoneIdToOccupantZoneIdMapping.indexOfValue(occupantZoneId) > -1) { in validateOccupantZoneIdIsUnique() 376 throw new IllegalArgumentException(ATTR_OCCUPANT_ZONE_ID + " " + occupantZoneId in validateOccupantZoneIdIsUnique()
|
D | CarAudioService.java | 1339 int occupantZoneId = mAudioZoneIdToOccupantZoneIdMapping.get(audioZoneId); in handleOccupantZoneUserChanged() local 1341 updateUserForOccupantZoneLocked(occupantZoneId, audioZoneId, driverUserId, in handleOccupantZoneUserChanged() 1401 private void updateUserForOccupantZoneLocked(int occupantZoneId, int audioZoneId, in updateUserForOccupantZoneLocked() argument 1404 int userId = mOccupantZoneService.getUserForOccupant(occupantZoneId); in updateUserForOccupantZoneLocked() 1432 if (userId != driverUserId || occupantZoneId == occupantZoneForDriver) { in updateUserForOccupantZoneLocked()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/ |
D | CarOccupantZoneServiceTest.java | 295 private void assertDisplayConfig(DisplayConfig c, int displayType, int occupantZoneId) { in assertDisplayConfig() argument 297 assertThat(occupantZoneId).isEqualTo(c.occupantZoneId); in assertDisplayConfig()
|