diff options
| author | 2022-01-31 14:21:31 +0000 | |
|---|---|---|
| committer | 2022-01-31 14:21:31 +0000 | |
| commit | 54018f78e641d8c4c08e49459cf8000595e1756f (patch) | |
| tree | 2df2f6759a71cc0a513b76064a67c595f2bfa21e | |
| parent | e6dd1b01db9b41533d8f139011e0c937b013c455 (diff) | |
| parent | 56f293dba5c9c7319e5e544b69e065609f9c187b (diff) | |
Add NearbyService am: 17c5caf93e am: 56f293dba5
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1966440
Change-Id: I4c0cf2ee03d702af1274cb13b4c79b1c20406e39
| -rw-r--r-- | core/java/android/content/Context.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/core/java/android/content/Context.java b/core/java/android/content/Context.java index 98e124d7e8f4..f99352a9d328 100644 --- a/core/java/android/content/Context.java +++ b/core/java/android/content/Context.java @@ -5778,6 +5778,16 @@ public abstract class Context { public static final String DISPLAY_HASH_SERVICE = "display_hash"; /** + * Use with {@link #getSystemService(String)} to retrieve a + * {@link android.nearby.NearbyManager} to discover nearby devices. + * + * @see #getSystemService(String) + * @see android.nearby.NearbyManager + * @hide + */ + public static final String NEARBY_SERVICE = "nearby"; + + /** * Determine whether the given permission is allowed for a particular * process and user ID running in the system. * |