Home
last modified time | relevance | path

Searched refs:TEST_APP2_PKG (Results 1 – 9 of 9) sorted by relevance

/cts/hostsidetests/net/app/src/com/android/cts/net/hostside/
DMixedModesTest.java41 removePowerSaveModeWhitelist(TEST_APP2_PKG); in setUp()
42 removePowerSaveModeExceptIdleWhitelist(TEST_APP2_PKG); in setUp()
99 removePowerSaveModeWhitelist(TEST_APP2_PKG); in testDataAndBatterySaverModes_meteredNetwork()
106 addPowerSaveModeWhitelist(TEST_APP2_PKG); in testDataAndBatterySaverModes_meteredNetwork()
111 removePowerSaveModeWhitelist(TEST_APP2_PKG); in testDataAndBatterySaverModes_meteredNetwork()
115 addPowerSaveModeWhitelist(TEST_APP2_PKG); in testDataAndBatterySaverModes_meteredNetwork()
119 removePowerSaveModeWhitelist(TEST_APP2_PKG); in testDataAndBatterySaverModes_meteredNetwork()
125 removePowerSaveModeWhitelist(TEST_APP2_PKG); in testDataAndBatterySaverModes_meteredNetwork()
133 addPowerSaveModeWhitelist(TEST_APP2_PKG); in testDataAndBatterySaverModes_meteredNetwork()
138 removePowerSaveModeWhitelist(TEST_APP2_PKG); in testDataAndBatterySaverModes_meteredNetwork()
[all …]
DAbstractBatterySaverModeTestCase.java34 removePowerSaveModeWhitelist(TEST_APP2_PKG); in setUp()
35 removePowerSaveModeExceptIdleWhitelist(TEST_APP2_PKG); in setUp()
127 addPowerSaveModeWhitelist(TEST_APP2_PKG); in testBackgroundNetworkAccess_whitelisted()
130 removePowerSaveModeWhitelist(TEST_APP2_PKG); in testBackgroundNetworkAccess_whitelisted()
133 addPowerSaveModeExceptIdleWhitelist(TEST_APP2_PKG); in testBackgroundNetworkAccess_whitelisted()
136 removePowerSaveModeExceptIdleWhitelist(TEST_APP2_PKG); in testBackgroundNetworkAccess_whitelisted()
DAbstractAppIdleTestCase.java34 removePowerSaveModeWhitelist(TEST_APP2_PKG); in setUp()
35 removePowerSaveModeExceptIdleWhitelist(TEST_APP2_PKG); in setUp()
107 addPowerSaveModeWhitelist(TEST_APP2_PKG); in testBackgroundNetworkAccess_whitelisted()
111 removePowerSaveModeWhitelist(TEST_APP2_PKG); in testBackgroundNetworkAccess_whitelisted()
115 addPowerSaveModeExceptIdleWhitelist(TEST_APP2_PKG); in testBackgroundNetworkAccess_whitelisted()
119 removePowerSaveModeExceptIdleWhitelist(TEST_APP2_PKG); in testBackgroundNetworkAccess_whitelisted()
136 addTempPowerSaveModeWhitelist(TEST_APP2_PKG, TEMP_POWERSAVE_WHITELIST_DURATION_MS); in testBackgroundNetworkAccess_tempWhitelisted()
DAbstractDozeModeTestCase.java34 removePowerSaveModeWhitelist(TEST_APP2_PKG); in setUp()
35 removePowerSaveModeExceptIdleWhitelist(TEST_APP2_PKG); in setUp()
105 addPowerSaveModeWhitelist(TEST_APP2_PKG); in testBackgroundNetworkAccess_whitelisted()
108 removePowerSaveModeWhitelist(TEST_APP2_PKG); in testBackgroundNetworkAccess_whitelisted()
111 addPowerSaveModeExceptIdleWhitelist(TEST_APP2_PKG); in testBackgroundNetworkAccess_whitelisted()
114 removePowerSaveModeExceptIdleWhitelist(TEST_APP2_PKG); in testBackgroundNetworkAccess_whitelisted()
DAbstractRestrictBackgroundNetworkTestCase.java67 protected static final String TEST_APP2_PKG = "com.android.cts.net.hostside.app2"; field in AbstractRestrictBackgroundNetworkTestCase
69 private static final String TEST_APP2_ACTIVITY_CLASS = TEST_APP2_PKG + ".MyActivity";
70 private static final String TEST_APP2_SERVICE_CLASS = TEST_APP2_PKG + ".MyForegroundService";
145 mUid = getUid(TEST_APP2_PKG); in setUp()
954 executeSilentShellCommand("am set-inactive " + TEST_APP2_PKG + " " + enabled ); in setAppIdle()
967 && !str.contains(TEST_PKG) && !str.contains(TEST_APP2_PKG)) { in getUsageStatsDump()
980 assertDelayedShellCommand("am get-inactive " + TEST_APP2_PKG, 15, 2, "Idle=" + enabled); in assertAppIdle()
1086 intent.setComponent(new ComponentName(TEST_APP2_PKG, TEST_APP2_ACTIVITY_CLASS)) in getIntentForComponent()
1089 intent.setComponent(new ComponentName(TEST_APP2_PKG, TEST_APP2_SERVICE_CLASS)) in getIntentForComponent()
1099 TEST_APP2_PKG, TEST_APP2_SERVICE_CLASS)); in stopForegroundService()
[all …]
/cts/hostsidetests/net/src/com/android/cts/net/
DHostsideRestrictBackgroundNetworkTests.java28 uninstallPackage(TEST_APP2_PKG, false); in setUp()
36 uninstallPackage(TEST_APP2_PKG, true); in tearDown()
64 final int oldUid = getUid(TEST_APP2_PKG); in testDataSaverMode_reinstall()
69 uninstallPackage(TEST_APP2_PKG, true); in testDataSaverMode_reinstall()
70 assertPackageUninstalled(TEST_APP2_PKG); in testDataSaverMode_reinstall()
74 final int newUid = getUid(TEST_APP2_PKG); in testDataSaverMode_reinstall()
115 addPowerSaveModeWhitelist(TEST_APP2_PKG); in testBatterySaverMode_reinstall()
117 uninstallPackage(TEST_APP2_PKG, true); in testBatterySaverMode_reinstall()
118 assertPackageUninstalled(TEST_APP2_PKG); in testBatterySaverMode_reinstall()
119 assertPowerSaveModeWhitelist(TEST_APP2_PKG, false); in testBatterySaverMode_reinstall()
[all …]
DHostsideNetworkCallbackTests.java22 uninstallPackage(TEST_APP2_PKG, false); in setUp()
29 uninstallPackage(TEST_APP2_PKG, true); in tearDown()
DHostsideVpnTests.java25 uninstallPackage(TEST_APP2_PKG, false); in setUp()
33 uninstallPackage(TEST_APP2_PKG, true); in tearDown()
DHostsideNetworkTestCase.java45 protected static final String TEST_APP2_PKG = "com.android.cts.net.hostside.app2"; field in HostsideNetworkTestCase