Merge "Expose NetworkWatchlistManager#getWatchlistConfigHash" am: 7d72edb937 am: 0727d8d08c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1569981 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I09ae1ef7ad7e45b0870c09f8e20875ffe3714f6c
This commit is contained in:
@@ -36,6 +36,10 @@ package android.net {
|
|||||||
field public static final int TRANSPORT_TEST = 7; // 0x7
|
field public static final int TRANSPORT_TEST = 7; // 0x7
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public class NetworkWatchlistManager {
|
||||||
|
method @Nullable public byte[] getWatchlistConfigHash();
|
||||||
|
}
|
||||||
|
|
||||||
public final class Proxy {
|
public final class Proxy {
|
||||||
method public static void setHttpProxyConfiguration(@Nullable android.net.ProxyInfo);
|
method public static void setHttpProxyConfiguration(@Nullable android.net.ProxyInfo);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,6 +16,8 @@
|
|||||||
|
|
||||||
package android.net;
|
package android.net;
|
||||||
|
|
||||||
|
import android.annotation.Nullable;
|
||||||
|
import android.annotation.SystemApi;
|
||||||
import android.annotation.SystemService;
|
import android.annotation.SystemService;
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.os.RemoteException;
|
import android.os.RemoteException;
|
||||||
@@ -29,6 +31,7 @@ import com.android.internal.util.Preconditions;
|
|||||||
* Class that manage network watchlist in system.
|
* Class that manage network watchlist in system.
|
||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
|
@SystemApi(client = SystemApi.Client.MODULE_LIBRARIES)
|
||||||
@SystemService(Context.NETWORK_WATCHLIST_SERVICE)
|
@SystemService(Context.NETWORK_WATCHLIST_SERVICE)
|
||||||
public class NetworkWatchlistManager {
|
public class NetworkWatchlistManager {
|
||||||
|
|
||||||
@@ -90,6 +93,7 @@ public class NetworkWatchlistManager {
|
|||||||
/**
|
/**
|
||||||
* Get Network Watchlist config file hash.
|
* Get Network Watchlist config file hash.
|
||||||
*/
|
*/
|
||||||
|
@Nullable
|
||||||
public byte[] getWatchlistConfigHash() {
|
public byte[] getWatchlistConfigHash() {
|
||||||
try {
|
try {
|
||||||
return mNetworkWatchlistManager.getWatchlistConfigHash();
|
return mNetworkWatchlistManager.getWatchlistConfigHash();
|
||||||
|
|||||||
Reference in New Issue
Block a user