Migrate more Secure settings to Global.
Migrate networking, storage, battery, DropBox, and PackageManager related Secure settings to Global table. Bug: 7232014, 7231331, 7231198 Change-Id: I772c2a9586a2f708c9db95622477f235064b8f4d
This commit is contained in:
@@ -104,7 +104,7 @@ import android.os.RemoteException;
|
||||
import android.os.SystemClock;
|
||||
import android.os.UserHandle;
|
||||
import android.provider.Settings;
|
||||
import android.provider.Settings.Secure;
|
||||
import android.provider.Settings.Global;
|
||||
import android.telephony.PhoneStateListener;
|
||||
import android.telephony.TelephonyManager;
|
||||
import android.util.EventLog;
|
||||
@@ -696,7 +696,7 @@ public class NetworkStatsService extends INetworkStatsService.Stub {
|
||||
/**
|
||||
* Update {@link NetworkStatsRecorder} and {@link #mGlobalAlertBytes} to
|
||||
* reflect current {@link #mPersistThreshold} value. Always defers to
|
||||
* {@link Secure} values when defined.
|
||||
* {@link Global} values when defined.
|
||||
*/
|
||||
private void updatePersistThresholds() {
|
||||
mDevRecorder.setPersistThreshold(mSettings.getDevPersistBytes(mPersistThreshold));
|
||||
@@ -1263,7 +1263,7 @@ public class NetworkStatsService extends INetworkStatsService.Stub {
|
||||
|
||||
/**
|
||||
* Default external settings that read from
|
||||
* {@link android.provider.Settings.Secure}.
|
||||
* {@link android.provider.Settings.Global}.
|
||||
*/
|
||||
private static class DefaultNetworkStatsSettings implements NetworkStatsSettings {
|
||||
private final ContentResolver mResolver;
|
||||
|
||||
Reference in New Issue
Block a user