/packages/services/Car/car-lib/src/android/car/occupantconnection/ |
D | AbstractReceiverService.java | 133 public void onPayloadReceived(OccupantZoneInfo senderZone, Payload payload) { 136 AbstractReceiverService.this.onPayloadReceived(senderZone, payload); 143 public void onConnectionInitiated(OccupantZoneInfo senderZone, long senderVersion, 147 + " code %d doesn't match the receiver's %d ", senderZone, 149 AbstractReceiverService.this.rejectConnection(senderZone, 155 + " doesn't match", senderZone); 156 AbstractReceiverService.this.rejectConnection(senderZone, 162 AbstractReceiverService.this.onConnectionInitiated(senderZone); 169 public void onConnected(OccupantZoneInfo senderZone) { 172 AbstractReceiverService.this.onConnected(senderZone); [all …]
|
D | IBackendReceiver.aidl | 38 void onPayloadReceived(in CarOccupantZoneManager.OccupantZoneInfo senderZone, in onPayloadReceived() argument 41 void onConnectionInitiated(in CarOccupantZoneManager.OccupantZoneInfo senderZone, in onConnectionInitiated() argument 44 void onConnected(in CarOccupantZoneManager.OccupantZoneInfo senderZone); in onConnected() argument 46 void onConnectionCanceled(in CarOccupantZoneManager.OccupantZoneInfo senderZone); in onConnectionCanceled() argument 48 void onDisconnected(in CarOccupantZoneManager.OccupantZoneInfo senderZone); in onDisconnected() argument
|
D | IBackendConnectionResponder.aidl | 28 void acceptConnection(in CarOccupantZoneManager.OccupantZoneInfo senderZone); in acceptConnection() argument 30 void rejectConnection(in CarOccupantZoneManager.OccupantZoneInfo senderZone, in rejectConnection() argument
|
D | CarOccupantConnectionManager.java | 292 void onPayloadReceived(@NonNull OccupantZoneInfo senderZone, in onPayloadReceived() argument 398 public void onPayloadReceived(OccupantZoneInfo senderZone, String receiverEndpointId, 413 executor.execute(() -> callback.onPayloadReceived(senderZone, payload));
|
D | IPayloadCallback.aidl | 24 void onPayloadReceived(in CarOccupantZoneManager.OccupantZoneInfo senderZone, in onPayloadReceived() argument
|
/packages/services/Car/tests/MultiDisplayTest/src/com/google/android/car/multidisplaytest/occupantconnection/ |
D | ReceiverService.java | 62 MessageReceiver(OccupantZoneInfo senderZone) { in MessageReceiver() argument 64 mSenderZone = senderZone; in MessageReceiver() 99 public void onPayloadReceived(@NonNull OccupantZoneInfo senderZone, in onPayloadReceived() argument 103 Slog.d(mTag, "onPayloadReceived:senderZone=" + senderZone in onPayloadReceived() 106 boolean success = forwardPayload(senderZone, receiverEndpointId, payload); in onPayloadReceived() 116 boolean success = forwardPayload(senderZone, receiverEndpointId, payload); in onPayloadReceived() 122 mCachedSenderZone = senderZone; in onPayloadReceived() 140 public void onConnectionInitiated(@NonNull OccupantZoneInfo senderZone) { in onConnectionInitiated() argument 143 Slog.d(mTag, "onConnectionInitiated:senderZone=" + senderZone in onConnectionInitiated() 149 intent.putExtra(KEY_MESSAGE_RECEIVER, new MessageReceiver(senderZone)); in onConnectionInitiated() [all …]
|
D | TextReceiverFragment.java | 58 private final PayloadCallback mPayloadCallback = (senderZone, payload) -> { 62 Slog.d(mTag, "Received message " + message + " from " + senderZone); 63 String text = "Message from " + senderZone + ":\n" + message; 64 int zoneId = senderZone.zoneId;
|
D | SeekBarReceiverFragment.java | 60 private final PayloadCallback mPayloadCallback = (senderZone, payload) -> { 64 Slog.d(mTag, "Received progress " + progress + " from " + senderZone);
|
/packages/services/Car/tests/carservice_unit_test/src/android/car/occupantconnection/ |
D | TestReceiverService.java | 43 public void onPayloadReceived(OccupantZoneInfo senderZone, Payload payload) { in onPayloadReceived() argument 44 onPayloadReceivedInvokedRecords.add(new Pair(senderZone, payload)); in onPayloadReceived() 53 public void onConnectionInitiated(OccupantZoneInfo senderZone) { in onConnectionInitiated() argument 54 onConnectionInitiatedInvokedRecords.add(senderZone); in onConnectionInitiated() 58 public void onConnected(OccupantZoneInfo senderZone) { in onConnected() argument 59 onConnectedInvokedRecords.add(senderZone); in onConnected() 63 public void onConnectionCanceled(OccupantZoneInfo senderZone) { in onConnectionCanceled() argument 64 onConnectionCanceledInvokedRecords.add(senderZone); in onConnectionCanceled() 68 public void onDisconnected(OccupantZoneInfo senderZone) { in onDisconnected() argument 69 onDisconnectedInvokedRecords.add(senderZone); in onDisconnected()
|
/packages/services/Car/service/src/com/android/car/occupantconnection/ |
D | CarOccupantConnectionService.java | 202 public void acceptConnection(OccupantZoneInfo senderZone) { in ReceiverServiceConnection() 203 ClientId senderClient = getClientIdInOccupantZone(senderZone, in ReceiverServiceConnection() 213 extractRequestCallbackToNotifyLocked(senderZone, receiverClient); in ReceiverServiceConnection() 229 mReceiverService.onConnected(senderZone); in ReceiverServiceConnection() 234 senderZone.zoneId, in ReceiverServiceConnection() 243 public void rejectConnection(OccupantZoneInfo senderZone, int rejectionReason) { in ReceiverServiceConnection() 246 extractRequestCallbackToNotifyLocked(senderZone, receiverClient); in ReceiverServiceConnection() 635 OccupantZoneInfo senderZone = mOccupantZoneService.getOccupantZoneForUser(senderUserHandle); in isConnected() local 637 return isConnectedLocked(packageName, senderZone, receiverZone); in isConnected() 856 private boolean isConnectedLocked(String packageName, OccupantZoneInfo senderZone, in isConnectedLocked() argument [all …]
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/ |
D | CarOccupantConnectionManagerUnitTest.java | 271 OccupantZoneInfo senderZone = mock(OccupantZoneInfo.class); in testRegisterReceiverCallbackInvoked() local 290 verify(mPayloadCallback, timeout(TIMEOUT_MS)).onPayloadReceived(senderZone, payload); in testRegisterReceiverCallbackInvoked() 292 binderCallback[0].onPayloadReceived(senderZone, RECEIVER_ENDPOINT_ID, payload); in testRegisterReceiverCallbackInvoked()
|