summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-06-11 15:48:54 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-06-11 15:48:54 +0000
commitee1ba307a316cbdbdd5747216a694d15fadf70b1 (patch)
tree2e911345fa75e2a521f98e3befe57ed6ca245877
parent5d8ee581c60314eb09074f1ce972ad5d48c5eb0c (diff)
parent987f2d03f016890894f5bf1f0bfad0117913c4d1 (diff)
downloadUwb-t_frc_art_330443060.tar.gz
Snap for 8712302 from 987f2d03f016890894f5bf1f0bfad0117913c4d1 to tm-frc-art-releaset_frc_art_330443060android13-frc-art-release
Change-Id: If4c11b26f257f530f58529712c054cf7d6dfde2e
-rw-r--r--apex/apex_manifest.json2
-rw-r--r--service/java/com/android/server/uwb/UwbSessionManager.java29
2 files changed, 15 insertions, 16 deletions
diff --git a/apex/apex_manifest.json b/apex/apex_manifest.json
index ef8be342..88baf791 100644
--- a/apex/apex_manifest.json
+++ b/apex/apex_manifest.json
@@ -1,5 +1,5 @@
{
"name": "com.android.uwb",
- "version": 330090000
+ "version": 339990000
}
diff --git a/service/java/com/android/server/uwb/UwbSessionManager.java b/service/java/com/android/server/uwb/UwbSessionManager.java
index 29a79fb0..76bae008 100644
--- a/service/java/com/android/server/uwb/UwbSessionManager.java
+++ b/service/java/com/android/server/uwb/UwbSessionManager.java
@@ -766,27 +766,26 @@ public class UwbSessionManager implements INativeUwbManager.SessionNotification
}
}
}
- }
- if (status != UwbUciConstants.STATUS_CODE_OK) {
+ if (status != UwbUciConstants.STATUS_CODE_OK) {
+ if (rangingReconfigureParams.getAction()
+ == MULTICAST_LIST_UPDATE_ACTION_ADD) {
+ mSessionNotificationManager.onControleeAddFailed(
+ uwbSession, status);
+ } else if (rangingReconfigureParams.getAction()
+ == MULTICAST_LIST_UPDATE_ACTION_DELETE) {
+ mSessionNotificationManager.onControleeRemoveFailed(
+ uwbSession, status);
+ }
+ return status;
+ }
if (rangingReconfigureParams.getAction()
== MULTICAST_LIST_UPDATE_ACTION_ADD) {
- mSessionNotificationManager.onControleeAddFailed(
- uwbSession, status);
+ mSessionNotificationManager.onControleeAdded(uwbSession);
} else if (rangingReconfigureParams.getAction()
== MULTICAST_LIST_UPDATE_ACTION_DELETE) {
- mSessionNotificationManager.onControleeRemoveFailed(
- uwbSession, status);
+ mSessionNotificationManager.onControleeRemoved(uwbSession);
}
- return status;
}
- if (rangingReconfigureParams.getAction()
- == MULTICAST_LIST_UPDATE_ACTION_ADD) {
- mSessionNotificationManager.onControleeAdded(uwbSession);
- } else if (rangingReconfigureParams.getAction()
- == MULTICAST_LIST_UPDATE_ACTION_DELETE) {
- mSessionNotificationManager.onControleeRemoved(uwbSession);
- }
-
status = mConfigurationManager.setAppConfigurations(
uwbSession.getSessionId(), param);
Log.d(TAG, "status: " + status);