Merge "Add NearbyService"

This commit is contained in:
Xinyi Zhou
2021-11-29 22:08:46 +00:00
committed by Android (Google) Code Review

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.