summaryrefslogtreecommitdiff
path: root/core/api
diff options
context:
space:
mode:
authorkholoud mohamed <kholoudm@google.com>2021-02-05 14:29:57 +0000
committerkholoud mohamed <kholoudm@google.com>2021-02-11 13:58:31 +0000
commitc5616b51d1cdbfa6059144aa183b4cb0e1f306ca (patch)
tree06dd5eed0d14202fbebfce7c9261cd7d29f8edeb /core/api
parent4512e77b7c2abd979822c7da0eb0bc3e26be8ede (diff)
Exposed some testAPIs in NetworkPolicyManager
Exposed setRestrictBackground, getRestrictBackground, and resolveNetworkId as testAPIs. Bug: 179476736 Test: Verified that CTS tests can access the APIs. Change-Id: Ida4603d55a30187c03e23c7af6ff229065597bab
Diffstat (limited to 'core/api')
-rw-r--r--core/api/test-current.txt6
-rw-r--r--core/api/test-lint-baseline.txt2
2 files changed, 8 insertions, 0 deletions
diff --git a/core/api/test-current.txt b/core/api/test-current.txt
index 668b5883cbfb..bd41a184f808 100644
--- a/core/api/test-current.txt
+++ b/core/api/test-current.txt
@@ -989,6 +989,12 @@ package android.net {
field public static final int INVALID_SECURITY_PARAMETER_INDEX = 0; // 0x0
}
+ public class NetworkPolicyManager {
+ method public boolean getRestrictBackground();
+ method @NonNull public static String resolveNetworkId(@NonNull android.net.wifi.WifiConfiguration);
+ method public void setRestrictBackground(boolean);
+ }
+
public class NetworkStack {
method public static void setServiceForTest(@Nullable android.os.IBinder);
}
diff --git a/core/api/test-lint-baseline.txt b/core/api/test-lint-baseline.txt
index f5ab40abdf37..b3636b9b765d 100644
--- a/core/api/test-lint-baseline.txt
+++ b/core/api/test-lint-baseline.txt
@@ -483,6 +483,8 @@ GetterSetterNames: android.location.LocationRequest#isLocationSettingsIgnored():
GetterSetterNames: android.location.LocationRequest#isLowPowerMode():
+GetterSetterNames: android.net.NetworkPolicyManager#getRestrictBackground():
+ Symmetric method for `setRestrictBackground` must be named `isRestrictBackground`; was `getRestrictBackground`
GetterSetterNames: android.os.IncidentReportArgs#isAll():
GetterSetterNames: android.service.notification.NotificationStats#setDirectReplied():