Merge "No longer using specific watch device idle settings" into oc-dev
am: 8bde47ae82
Change-Id: I04c8d9b4897cbd9ae4c2ae21439ae3d8ca0024a0
This commit is contained in:
@@ -114,7 +114,6 @@ abstract class AbstractRestrictBackgroundNetworkTestCase extends Instrumentation
|
|||||||
private int mMyUid;
|
private int mMyUid;
|
||||||
private String mMeteredWifi;
|
private String mMeteredWifi;
|
||||||
private MyServiceClient mServiceClient;
|
private MyServiceClient mServiceClient;
|
||||||
private boolean mHasWatch;
|
|
||||||
private String mDeviceIdleConstantsSetting;
|
private String mDeviceIdleConstantsSetting;
|
||||||
private boolean mSupported;
|
private boolean mSupported;
|
||||||
|
|
||||||
@@ -130,13 +129,7 @@ abstract class AbstractRestrictBackgroundNetworkTestCase extends Instrumentation
|
|||||||
mMyUid = getUid(mContext.getPackageName());
|
mMyUid = getUid(mContext.getPackageName());
|
||||||
mServiceClient = new MyServiceClient(mContext);
|
mServiceClient = new MyServiceClient(mContext);
|
||||||
mServiceClient.bind();
|
mServiceClient.bind();
|
||||||
mHasWatch = mContext.getPackageManager().hasSystemFeature(
|
mDeviceIdleConstantsSetting = "device_idle_constants";
|
||||||
PackageManager.FEATURE_WATCH);
|
|
||||||
if (mHasWatch) {
|
|
||||||
mDeviceIdleConstantsSetting = "device_idle_constants_watch";
|
|
||||||
} else {
|
|
||||||
mDeviceIdleConstantsSetting = "device_idle_constants";
|
|
||||||
}
|
|
||||||
mSupported = setUpActiveNetworkMeteringState();
|
mSupported = setUpActiveNetworkMeteringState();
|
||||||
|
|
||||||
Log.i(TAG, "Apps status on " + getName() + ":\n"
|
Log.i(TAG, "Apps status on " + getName() + ":\n"
|
||||||
|
|||||||
Reference in New Issue
Block a user