summaryrefslogtreecommitdiff
path: root/framework/java/android/bluetooth/BluetoothUtils.java
diff options
context:
space:
mode:
authorWilliam Escande <wescande@google.com>2022-01-28 22:38:08 +0100
committerWilliam Escande <wescande@google.com>2022-01-31 11:50:40 +0000
commitbf5812ed2231536fb5aebb946b99ccaef48c4449 (patch)
tree940859368a4b5e78f8ee859ba32dc5e5b2524635 /framework/java/android/bluetooth/BluetoothUtils.java
parent53f2042033160e8590d6eb6428a141235bcba59e (diff)
Add a Bluetooth UserNull to serve a placeholder
The UserHandle.NULL is hidden. It's is only used as a placeholder in the code when the user value is not determined. Test: Build Merged-In: I9272170838a79df8f0bdaed7d3e6cc7786fed595 Change-Id: I9272170838a79df8f0bdaed7d3e6cc7786fed595
Diffstat (limited to 'framework/java/android/bluetooth/BluetoothUtils.java')
-rw-r--r--framework/java/android/bluetooth/BluetoothUtils.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/framework/java/android/bluetooth/BluetoothUtils.java b/framework/java/android/bluetooth/BluetoothUtils.java
index 867469241f..705732f526 100644
--- a/framework/java/android/bluetooth/BluetoothUtils.java
+++ b/framework/java/android/bluetooth/BluetoothUtils.java
@@ -16,6 +16,8 @@
package android.bluetooth;
+import android.os.UserHandle;
+
import java.time.Duration;
/**
@@ -38,4 +40,9 @@ public final class BluetoothUtils {
static Duration getSyncTimeout() {
return SYNC_CALLS_TIMEOUT;
}
+
+ /**
+ * Match with UserHandl.NULL but accessible inside bluetooth package
+ */
+ public static final UserHandle USER_HANDLE_NULL = UserHandle.of(-10000);
}