Merge "Makes injectLocation a system api to suport car stack mainline updatability."
This commit is contained in:
committed by
Android (Google) Code Review
commit
8aa8ef8201
@@ -102,6 +102,14 @@ package android.hardware.usb {
|
||||
|
||||
}
|
||||
|
||||
package android.location {
|
||||
|
||||
public class LocationManager {
|
||||
method @RequiresPermission(allOf={android.Manifest.permission.LOCATION_HARDWARE, android.Manifest.permission.ACCESS_FINE_LOCATION}) public boolean injectLocation(@NonNull android.location.Location);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
package android.media {
|
||||
|
||||
public class AudioManager {
|
||||
|
||||
@@ -1569,6 +1569,7 @@ public class LocationManager {
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@SystemApi(client = SystemApi.Client.MODULE_LIBRARIES)
|
||||
@RequiresPermission(allOf = {LOCATION_HARDWARE, ACCESS_FINE_LOCATION})
|
||||
public boolean injectLocation(@NonNull Location location) {
|
||||
Preconditions.checkArgument(location != null, "invalid null location");
|
||||
|
||||
Reference in New Issue
Block a user