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