Add NearbyService am: 17c5caf93e am: 56f293dba5

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1966440

Change-Id: I4c0cf2ee03d702af1274cb13b4c79b1c20406e39
This commit is contained in:
Xinyi Zhou
2022-01-31 14:21:31 +00:00
committed by Automerger Merge Worker

View File

@@ -5777,6 +5777,16 @@ public abstract class Context {
*/ */
public static final String DISPLAY_HASH_SERVICE = "display_hash"; 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 * Determine whether the given permission is allowed for a particular
* process and user ID running in the system. * process and user ID running in the system.