Add NearbyService

(cherry-pick from downstream branch)

Test: loaded on device.
Bug: 189954300
Merged-In: I399cdba08846a3eca1d7cd9378607b30fa8fd72d
Change-Id: Ib9ef2a7b34abe18b1a7a4b48f9a09bc2d5856ac6
This commit is contained in:
Xinyi Zhou
2021-11-24 23:28:01 -08:00
committed by Remi NGUYEN VAN
parent 51b03bb79c
commit 17c5caf93e

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.