/packages/services/Car/service/src/com/android/car/occupantconnection/ |
D | CarRemoteDeviceService.java | 189 PackageChangeReceiver(int userId, OccupantZoneInfo occupantZone) { in PackageChangeReceiver() argument 192 this.mOccupantZone = occupantZone; in PackageChangeReceiver() 330 OccupantZoneInfo occupantZone = mOccupantZoneStateMap.keyAt(i); in dump() local 332 writer.printf("%s%s, state:%s\n", INDENTATION_4, occupantZone, in dump() 405 public void setOccupantZonePower(OccupantZoneInfo occupantZone, boolean powerOn) { in setOccupantZonePower() argument 408 int[] displayIds = mOccupantZoneService.getAllDisplaysForOccupantZone(occupantZone.zoneId); in setOccupantZonePower() 415 public boolean isOccupantZonePowerOn(OccupantZoneInfo occupantZone) { in isOccupantZonePowerOn() argument 418 return mOccupantZoneService.areDisplaysOnForOccupantZone(occupantZone.zoneId); in isOccupantZonePowerOn() 425 OccupantZoneInfo occupantZone = allOccupantZones.get(i); in initAllOccupantZones() local 426 @OccupantZoneState int initialState = calculateOccupantZoneState(occupantZone); in initAllOccupantZones() [all …]
|
D | ClientId.java | 28 public final OccupantZoneInfo occupantZone; field in ClientId 35 public ClientId(@NonNull OccupantZoneInfo occupantZone, int userId, in ClientId() argument 37 this.occupantZone = Objects.requireNonNull(occupantZone, "occupantZone cannot be null"); in ClientId() 51 return occupantZone.equals(other.occupantZone) && userId == other.userId in equals() 58 return Objects.hash(occupantZone, userId, packageName); in hashCode() 63 return "ClientId[occupantZone=" + occupantZone + ", userId=" + userId in toString()
|
D | CarOccupantConnectionService.java | 228 callback.onConnected(receiverClient.occupantZone); in ReceiverServiceConnection() 235 receiverClient.occupantZone.zoneId)); in ReceiverServiceConnection() 253 callback.onFailed(receiverClient.occupantZone, rejectionReason); in ReceiverServiceConnection() 321 == mReceiverClient.occupantZone.zoneId) { in onServiceDisconnected() 553 receiverService.onConnectionInitiated(senderClient.occupantZone, in requestConnection() 594 assertConnectedLocked(packageName, senderClient.occupantZone, receiverZone); in sendPayload() 604 receiverService.onPayloadReceived(senderClient.occupantZone, payload); in sendPayload() 618 assertConnectedLocked(packageName, senderClient.occupantZone, receiverZone); in disconnect() 667 OccupantZoneInfo occupantZone = in getCallingClientId() local 670 return new ClientId(occupantZone, callingUserId, packageName); in getCallingClientId() [all …]
|
/packages/services/Car/car-lib/src/android/car/ |
D | CarRemoteDeviceManager.java | 170 void onOccupantZoneStateChanged(@NonNull OccupantZoneInfo occupantZone, in onOccupantZoneStateChanged() argument 182 void onAppStateChanged(@NonNull OccupantZoneInfo occupantZone, in onAppStateChanged() argument 197 public void onOccupantZoneStateChanged(OccupantZoneInfo occupantZone, 215 occupantZone, occupantZoneStates)); 222 public void onAppStateChanged(OccupantZoneInfo occupantZone, int appStates) { 239 callback.onAppStateChanged(occupantZone, appStates)); 325 public PackageInfo getEndpointPackageInfo(@NonNull OccupantZoneInfo occupantZone) { in getEndpointPackageInfo() argument 326 Objects.requireNonNull(occupantZone, "occupantZone cannot be null"); in getEndpointPackageInfo() 328 return mService.getEndpointPackageInfo(occupantZone.zoneId, mPackageName); in getEndpointPackageInfo() 330 Slogf.e(TAG, "Failed to get peer endpoint PackageInfo in " + occupantZone); in getEndpointPackageInfo() [all …]
|
D | CarOccupantZoneManager.java | 416 public List<Display> getAllDisplaysForOccupant(@NonNull OccupantZoneInfo occupantZone) { in getAllDisplaysForOccupant() argument 417 assertNonNullOccupant(occupantZone); in getAllDisplaysForOccupant() 419 int[] displayIds = mService.getAllDisplaysForOccupantZone(occupantZone.zoneId); in getAllDisplaysForOccupant() 445 public Display getDisplayForOccupant(@NonNull OccupantZoneInfo occupantZone, in getDisplayForOccupant() argument 447 assertNonNullOccupant(occupantZone); in getDisplayForOccupant() 449 int displayId = mService.getDisplayForOccupant(occupantZone.zoneId, displayType); in getDisplayForOccupant() 491 public int getAudioZoneIdForOccupant(@NonNull OccupantZoneInfo occupantZone) { in getAudioZoneIdForOccupant() argument 492 assertNonNullOccupant(occupantZone); in getAudioZoneIdForOccupant() 494 return mService.getAudioZoneIdForOccupant(occupantZone.zoneId); in getAudioZoneIdForOccupant() 536 public int getUserForOccupant(@NonNull OccupantZoneInfo occupantZone) { in getUserForOccupant() argument [all …]
|
/packages/services/Car/tests/MultiDisplayTest/src/com/google/android/car/multidisplaytest/occupantconnection/ |
D | OccupantConnectionFragment.java | 83 @androidx.annotation.NonNull OccupantZoneInfo occupantZone, 85 Slog.d(mTag, "onOccupantZoneStateChanged: occupantZone=" + occupantZone 87 mOccupantZoneStateMap.put(occupantZone, occupantZoneStates); 88 if (mAddedPeerZones.contains(occupantZone)) { 89 updateOccupantZoneState(occupantZone, occupantZoneStates); 92 addPeerOccupantZoneItem(occupantZone, occupantZoneStates, INITIAL_ZONE_STATE); 93 mAddedPeerZones.add(occupantZone); 98 @androidx.annotation.NonNull OccupantZoneInfo occupantZone, 100 Slog.d(mTag, "onAppStateChanged: occupantZone=" + occupantZone 102 mAppStateMap.put(occupantZone, appStates); [all …]
|
/packages/services/Car/car-lib/src/android/car/occupantconnection/ |
D | IStateCallback.aidl | 23 void onOccupantZoneStateChanged(in CarOccupantZoneManager.OccupantZoneInfo occupantZone, in onOccupantZoneStateChanged() argument 26 void onAppStateChanged(in CarOccupantZoneManager.OccupantZoneInfo occupantZone, in onAppStateChanged() argument
|
D | ICarRemoteDevice.aidl | 31 void setOccupantZonePower(in CarOccupantZoneManager.OccupantZoneInfo occupantZone, in setOccupantZonePower() argument 34 boolean isOccupantZonePowerOn(in CarOccupantZoneManager.OccupantZoneInfo occupantZone); in isOccupantZonePowerOn() argument
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/occupantconnection/ |
D | CarRemoteDeviceServiceTest.java | 887 private void mockAppInstalledAsUser(int userId, OccupantZoneInfo occupantZone) { in mockAppInstalledAsUser() argument 888 PerUserInfo userInfo = mockPerUserInfo(userId, occupantZone); in mockAppInstalledAsUser() 900 private void mockAppRunningAsUser(int userId, int pid, OccupantZoneInfo occupantZone, in mockAppRunningAsUser() argument 902 mockAppInstalledAsUser(userId, occupantZone); in mockAppRunningAsUser() 912 private void mockOccupantZonePowerOn(OccupantZoneInfo occupantZone) { in mockOccupantZonePowerOn() argument 913 when(mOccupantZoneService.areDisplaysOnForOccupantZone(occupantZone.zoneId)) in mockOccupantZonePowerOn() 917 private void mockOccupantZoneConnectionReady(OccupantZoneInfo occupantZone, int userId) { in mockOccupantZoneConnectionReady() argument 918 when(mOccupantZoneService.getUserForOccupant(occupantZone.zoneId)).thenReturn(userId); in mockOccupantZoneConnectionReady() 927 private PerUserInfo mockPerUserInfo(int userId, OccupantZoneInfo occupantZone) { in mockPerUserInfo() argument 928 when(mOccupantZoneService.getUserForOccupant(occupantZone.zoneId)).thenReturn(userId); in mockPerUserInfo() [all …]
|
D | CarOccupantConnectionServiceTest.java | 736 verify(mConnectionRequestCallback).onFailed(receiverClient.occupantZone, in testReceiverServiceDisconnected() 738 verify(callback2).onDisconnected(receiverClient.occupantZone); in testReceiverServiceDisconnected() 981 private void mockAppInstalled(OccupantZoneInfo occupantZone, UserHandle userHandle) { in mockAppInstalled() argument 982 when(mRemoteDeviceService.isConnectionReady(occupantZone)).thenReturn(true); in mockAppInstalled() 984 when(mRemoteDeviceService.getEndpointPackageInfo(occupantZone.zoneId, PACKAGE_NAME)) in mockAppInstalled() 987 .thenReturn(occupantZone); in mockAppInstalled() 988 when(mOccupantZoneService.getUserForOccupant(occupantZone.zoneId)) in mockAppInstalled()
|
D | ClientIdTest.java | 43 assertThat(clientId.occupantZone).isEqualTo(OCCUPANT_ZONE); in testConstructClientId()
|
D | ReceiverEndpointIdTest.java | 43 assertThat(endpointId.clientId.occupantZone).isEqualTo(OCCUPANT_ZONE); in testConstructReceiverEndpointId()
|
/packages/apps/Car/SystemUI/src/com/android/systemui/car/users/ |
D | CarSystemUIUserUtil.java | 93 @NonNull CarOccupantZoneManager.OccupantZoneInfo occupantZone, in isCurrentSystemUIDisplay() argument 98 return carOccupantZoneManager.getAllDisplaysForOccupant(occupantZone).stream().anyMatch( in isCurrentSystemUIDisplay()
|
/packages/services/Car/tools/GenericCarApiBuilder/ |
D | complete_car_api_list.txt | 385 method TIRAMISU_0 List<Display> getAllDisplaysForOccupant(OccupantZoneInfo occupantZone); 386 method TIRAMISU_0 Display getDisplayForOccupant(OccupantZoneInfo occupantZone, int displayType); 388 method TIRAMISU_0 int getAudioZoneIdForOccupant(OccupantZoneInfo occupantZone); 391 method TIRAMISU_0 int getUserForOccupant(OccupantZoneInfo occupantZone); 392 …U_0 @hiddenOnly boolean assignProfileUserToOccupantZone(OccupantZoneInfo occupantZone, int userId);
|
/packages/services/Car/tests/carservice_unit_test/res/raw/ |
D | car_hidden_apis_release_33.2.txt | 67 …upantZoneManager boolean assignProfileUserToOccupantZone(OccupantZoneInfo occupantZone, int userId)
|
D | car_hidden_apis_release_33.1.txt | 67 …upantZoneManager boolean assignProfileUserToOccupantZone(OccupantZoneInfo occupantZone, int userId)
|
D | car_hidden_apis.txt | 70 …upantZoneManager boolean assignProfileUserToOccupantZone(OccupantZoneInfo occupantZone, int userId)
|
D | car_hidden_apis_release_33.3.txt | 73 …upantZoneManager boolean assignProfileUserToOccupantZone(OccupantZoneInfo occupantZone, int userId)
|