Add NearbyService

Design doc: go/nearby-mainline-highlevel-design

Test: loaded on device.
Bug: 189954300
Change-Id: I399cdba08846a3eca1d7cd9378607b30fa8fd72d
This commit is contained in:
Xinyi Zhou
2021-11-24 23:28:01 -08:00
parent 1319ca53f4
commit 97e88eea69

View File

@@ -5882,6 +5882,16 @@ public abstract class Context {
@SystemApi
public static final String SAFETY_CENTER_SERVICE = "safety_center";
/**
* 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.