| commit | e6bcb2bad3f5e4905d2e1069d45473b4ff15c66a | [log] [tgz] |
|---|---|---|
| author | Christine Franks <christyfranks@google.com> | Fri May 12 14:57:12 2023 +0000 |
| committer | Christine Franks <christyfranks@google.com> | Fri May 12 15:04:03 2023 +0000 |
| tree | 63b984ef6cb0c238b53f6a79f8d5f5a0c1a7a0e2 | |
| parent | acba2b3a79e7a4981a9b6958c72d900f663e9969 [diff] |
Sync facilitators on transport ready This avoids depending on the phone side to have the ICS / connection services up at the time the user wants to place a call on the remote device. Bug: 280604855 Test: atest Change-Id: I02fb643bb648cd3538d1ece0322f6aebf7286058
diff --git a/services/companion/java/com/android/server/companion/datatransfer/contextsync/CrossDeviceSyncController.java b/services/companion/java/com/android/server/companion/datatransfer/contextsync/CrossDeviceSyncController.java index 6dc4c7f..bf82f3f 100644 --- a/services/companion/java/com/android/server/companion/datatransfer/contextsync/CrossDeviceSyncController.java +++ b/services/companion/java/com/android/server/companion/datatransfer/contextsync/CrossDeviceSyncController.java
@@ -130,6 +130,8 @@ callback.requestCrossDeviceSync(associationInfo); } else { Slog.w(TAG, "No callback to report new transport"); + syncMessageToDevice(associationInfo.getId(), + createFacilitatorMessage()); } } else { mBlocklist.add(associationInfo.getId()); @@ -169,6 +171,8 @@ callback.requestCrossDeviceSync(associationInfo); } else { Slog.w(TAG, "No callback to report changed transport"); + syncMessageToDevice(associationInfo.getId(), + createFacilitatorMessage()); } } else { Slog.i(TAG, "Blocking existing association for context sync");