Merge changes Iea1d2ae2,I1d3c8e48 am: d708ea7b4a

am: ebde74e7b1

Change-Id: I13d0bebcee21345b628906d65ea46c0798901663
This commit is contained in:
Jiyong Park
2019-09-23 15:31:43 -07:00
committed by android-build-merger
7 changed files with 29 additions and 16 deletions

View File

@@ -894,8 +894,10 @@ metalava_framework_docs_args += " --replace-documentation " +
packages_to_document = [ packages_to_document = [
"android", "android",
"dalvik",
"java", "java",
"javax", "javax",
"junit",
"org.apache.http", "org.apache.http",
"org.json", "org.json",
"org.w3c.dom", "org.w3c.dom",

View File

@@ -16,9 +16,11 @@
java_sdk_library { java_sdk_library {
name: "com.android.location.provider", name: "com.android.location.provider",
srcs: [ srcs: ["java/**/*.java"],
"java/**/*.java", api_srcs: [":framework-all-sources"],
":framework-all-sources", libs: [
"androidx.annotation_annotation",
"framework-all",
], ],
api_packages: ["com.android.location.provider"], api_packages: ["com.android.location.provider"],
} }

View File

@@ -9,7 +9,7 @@ package com.android.location.provider {
public abstract class LocationProviderBase { public abstract class LocationProviderBase {
ctor public LocationProviderBase(String, com.android.location.provider.ProviderPropertiesUnbundled); ctor public LocationProviderBase(String, com.android.location.provider.ProviderPropertiesUnbundled);
method public android.os.IBinder getBinder(); method public android.os.IBinder getBinder();
method public boolean isEnabled(); method @RequiresApi(android.os.Build.VERSION_CODES.Q) public boolean isEnabled();
method @Deprecated protected void onDisable(); method @Deprecated protected void onDisable();
method @Deprecated protected void onDump(java.io.FileDescriptor, java.io.PrintWriter, String[]); method @Deprecated protected void onDump(java.io.FileDescriptor, java.io.PrintWriter, String[]);
method @Deprecated protected void onEnable(); method @Deprecated protected void onEnable();
@@ -19,9 +19,9 @@ package com.android.location.provider {
method protected boolean onSendExtraCommand(@Nullable String, @Nullable android.os.Bundle); method protected boolean onSendExtraCommand(@Nullable String, @Nullable android.os.Bundle);
method protected abstract void onSetRequest(com.android.location.provider.ProviderRequestUnbundled, android.os.WorkSource); method protected abstract void onSetRequest(com.android.location.provider.ProviderRequestUnbundled, android.os.WorkSource);
method public void reportLocation(android.location.Location); method public void reportLocation(android.location.Location);
method public void setAdditionalProviderPackages(java.util.List<java.lang.String>); method @RequiresApi(android.os.Build.VERSION_CODES.Q) public void setAdditionalProviderPackages(java.util.List<java.lang.String>);
method public void setEnabled(boolean); method @RequiresApi(android.os.Build.VERSION_CODES.Q) public void setEnabled(boolean);
method public void setProperties(com.android.location.provider.ProviderPropertiesUnbundled); method @RequiresApi(android.os.Build.VERSION_CODES.Q) public void setProperties(com.android.location.provider.ProviderPropertiesUnbundled);
field public static final String EXTRA_NO_GPS_LOCATION = "noGPSLocation"; field public static final String EXTRA_NO_GPS_LOCATION = "noGPSLocation";
field public static final String FUSED_PROVIDER = "fused"; field public static final String FUSED_PROVIDER = "fused";
} }
@@ -48,7 +48,7 @@ package com.android.location.provider {
method public long getInterval(); method public long getInterval();
method public java.util.List<com.android.location.provider.LocationRequestUnbundled> getLocationRequests(); method public java.util.List<com.android.location.provider.LocationRequestUnbundled> getLocationRequests();
method public boolean getReportLocation(); method public boolean getReportLocation();
method public boolean isLocationSettingsIgnored(); method @RequiresApi(android.os.Build.VERSION_CODES.Q) public boolean isLocationSettingsIgnored();
} }
} }

View File

@@ -22,6 +22,7 @@ import android.location.ILocationManager;
import android.location.Location; import android.location.Location;
import android.location.LocationManager; import android.location.LocationManager;
import android.location.LocationProvider; import android.location.LocationProvider;
import android.os.Build.VERSION_CODES;
import android.os.Bundle; import android.os.Bundle;
import android.os.IBinder; import android.os.IBinder;
import android.os.RemoteException; import android.os.RemoteException;
@@ -29,6 +30,8 @@ import android.os.ServiceManager;
import android.os.WorkSource; import android.os.WorkSource;
import android.util.Log; import android.util.Log;
import androidx.annotation.RequiresApi;
import com.android.internal.location.ILocationProvider; import com.android.internal.location.ILocationProvider;
import com.android.internal.location.ILocationProviderManager; import com.android.internal.location.ILocationProviderManager;
import com.android.internal.location.ProviderProperties; import com.android.internal.location.ProviderProperties;
@@ -125,6 +128,7 @@ public abstract class LocationProviderBase {
* taken into account in the parent's enabled/disabled state. For most providers, it is expected * taken into account in the parent's enabled/disabled state. For most providers, it is expected
* that they will be always enabled. * that they will be always enabled.
*/ */
@RequiresApi(VERSION_CODES.Q)
public void setEnabled(boolean enabled) { public void setEnabled(boolean enabled) {
synchronized (mBinder) { synchronized (mBinder) {
if (mEnabled == enabled) { if (mEnabled == enabled) {
@@ -148,6 +152,7 @@ public abstract class LocationProviderBase {
* Sets the provider properties that may be queried by clients. Generally speaking, providers * Sets the provider properties that may be queried by clients. Generally speaking, providers
* should try to avoid changing their properties after construction. * should try to avoid changing their properties after construction.
*/ */
@RequiresApi(VERSION_CODES.Q)
public void setProperties(ProviderPropertiesUnbundled properties) { public void setProperties(ProviderPropertiesUnbundled properties) {
synchronized (mBinder) { synchronized (mBinder) {
mProperties = properties.getProviderProperties(); mProperties = properties.getProviderProperties();
@@ -170,6 +175,7 @@ public abstract class LocationProviderBase {
* providing location. This will inform location services to treat the other packages as * providing location. This will inform location services to treat the other packages as
* location providers as well. * location providers as well.
*/ */
@RequiresApi(VERSION_CODES.Q)
public void setAdditionalProviderPackages(List<String> packageNames) { public void setAdditionalProviderPackages(List<String> packageNames) {
synchronized (mBinder) { synchronized (mBinder) {
mAdditionalProviderPackages.clear(); mAdditionalProviderPackages.clear();
@@ -190,6 +196,7 @@ public abstract class LocationProviderBase {
* Returns true if this provider has been set as enabled. This will be true unless explicitly * Returns true if this provider has been set as enabled. This will be true unless explicitly
* set otherwise. * set otherwise.
*/ */
@RequiresApi(VERSION_CODES.Q)
public boolean isEnabled() { public boolean isEnabled() {
return mEnabled; return mEnabled;
} }

View File

@@ -17,6 +17,9 @@
package com.android.location.provider; package com.android.location.provider;
import android.location.LocationRequest; import android.location.LocationRequest;
import android.os.Build;
import androidx.annotation.RequiresApi;
import com.android.internal.location.ProviderRequest; import com.android.internal.location.ProviderRequest;
@@ -46,6 +49,7 @@ public final class ProviderRequestUnbundled {
return mRequest.interval; return mRequest.interval;
} }
@RequiresApi(Build.VERSION_CODES.Q)
public boolean isLocationSettingsIgnored() { public boolean isLocationSettingsIgnored() {
return mRequest.locationSettingsIgnored; return mRequest.locationSettingsIgnored;
} }

View File

@@ -16,9 +16,8 @@
java_sdk_library { java_sdk_library {
name: "com.android.mediadrm.signer", name: "com.android.mediadrm.signer",
srcs: [ srcs: ["java/**/*.java"],
"java/**/*.java", api_srcs: [":framework-all-sources"],
":framework-all-sources", libs: ["framework-all"],
],
api_packages: ["com.android.mediadrm.signer"], api_packages: ["com.android.mediadrm.signer"],
} }

View File

@@ -19,10 +19,9 @@
java_sdk_library { java_sdk_library {
name: "android.test.mock", name: "android.test.mock",
srcs: [ srcs: ["src/**/*.java"],
"src/**/*.java", api_srcs: [":framework-all-sources"],
":framework-all-sources", libs: ["framework-all"],
],
api_packages: [ api_packages: [
"android.test.mock", "android.test.mock",