Home
last modified time | relevance | path

Searched refs:occupantZoneId (Results 1 – 6 of 6) sorted by relevance

/packages/services/Car/service/src/com/android/car/
DCarOccupantZoneService.java98 public final int occupantZoneId; field in CarOccupantZoneService.DisplayConfig
100 DisplayConfig(int displayType, int occupantZoneId) { in DisplayConfig() argument
102 this.occupantZoneId = occupantZoneId; in DisplayConfig()
112 b.append(occupantZoneId); in toString()
442 public int[] getAllDisplaysForOccupantZone(int occupantZoneId) { in getAllDisplaysForOccupantZone() argument
444 OccupantConfig config = mActiveOccupantConfigs.get(occupantZoneId); in getAllDisplaysForOccupantZone()
457 public int getDisplayForOccupant(int occupantZoneId, int displayType) { in getDisplayForOccupant() argument
459 OccupantConfig config = mActiveOccupantConfigs.get(occupantZoneId); in getDisplayForOccupant()
473 public int getAudioZoneIdForOccupant(int occupantZoneId) { in getAudioZoneIdForOccupant() argument
476 OccupantConfig config = mActiveOccupantConfigs.get(occupantZoneId); in getAudioZoneIdForOccupant()
[all …]
DCarShellCommand.java434 int occupantZoneId = Integer.parseInt(occupantZoneIdString); in runSetOccupantZoneIdForUserId() local
435 if (!mCarOccupantZoneService.assignProfileUserToOccupantZone(occupantZoneId, userId)) { in runSetOccupantZoneIdForUserId()
442 int occupantZoneId = Integer.parseInt(occupantZoneIdString); in runResetOccupantZoneId() local
444 .assignProfileUserToOccupantZone(occupantZoneId, UserHandle.USER_NULL)) { in runResetOccupantZoneId()
/packages/services/Car/car-lib/src/android/car/
DICarOccupantZone.aidl26 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
35 boolean assignProfileUserToOccupantZone(in int occupantZoneId, in int userId); in assignProfileUserToOccupantZone() argument
/packages/services/Car/service/src/com/android/car/audio/
DCarAudioZonesHelper.java308 int occupantZoneId = parsePositiveIntAttribute(ATTR_OCCUPANT_ZONE_ID, occupantZoneIdString); in parseOccupantZoneId() local
309 validateOccupantZoneIdIsUnique(occupantZoneId); in parseOccupantZoneId()
310 mZoneIdToOccupantZoneIdMapping.put(audioZoneId, occupantZoneId); in parseOccupantZoneId()
359 private void validateOccupantZoneIdIsUnique(int occupantZoneId) { in validateOccupantZoneIdIsUnique() argument
360 if (mZoneIdToOccupantZoneIdMapping.indexOfValue(occupantZoneId) > -1) { in validateOccupantZoneIdIsUnique()
361 throw new IllegalArgumentException(ATTR_OCCUPANT_ZONE_ID + " " + occupantZoneId in validateOccupantZoneIdIsUnique()
DCarAudioService.java1138 int occupantZoneId = mAudioZoneIdToOccupantZoneIdMapping.get(audioZoneId); in handleOccupantZoneUserChanged() local
1139 updateUserForOccupantZoneLocked(occupantZoneId, audioZoneId, driverUserId, in handleOccupantZoneUserChanged()
1149 private void updateUserForOccupantZoneLocked(int occupantZoneId, int audioZoneId, in updateUserForOccupantZoneLocked() argument
1152 int userId = mOccupantZoneService.getUserForOccupant(occupantZoneId); in updateUserForOccupantZoneLocked()
1175 if (userId != driverUserId || occupantZoneId == occupantZoneForDriver) { in updateUserForOccupantZoneLocked()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DCarOccupantZoneServiceTest.java285 private void assertDisplayConfig(DisplayConfig c, int displayType, int occupantZoneId) { in assertDisplayConfig() argument
287 assertThat(occupantZoneId).isEqualTo(c.occupantZoneId); in assertDisplayConfig()