diff options
| author | 2022-01-31 14:06:15 +0000 | |
|---|---|---|
| committer | 2022-01-31 14:06:15 +0000 | |
| commit | 56f293dba5c9c7319e5e544b69e065609f9c187b (patch) | |
| tree | b107e20bc8ad7d07c416ccc4bba4416eeebdfa70 | |
| parent | 101bbfd2a23cb984fe249747c58cb9cf6bfb06d3 (diff) | |
| parent | 17c5caf93e5479879d2a11c54528da4ee3391e6b (diff) | |
Add NearbyService am: 17c5caf93e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1966440
Change-Id: I5910c86f27b340f94307af7c41da818e4f83a576
| -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. * |