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.java51 removePowerSaveModeWhitelist(TEST_APP2_PKG); in setUp()
52 removePowerSaveModeExceptIdleWhitelist(TEST_APP2_PKG); in setUp()
88 removePowerSaveModeWhitelist(TEST_APP2_PKG); in testDataAndBatterySaverModes_meteredNetwork()
95 addPowerSaveModeWhitelist(TEST_APP2_PKG); in testDataAndBatterySaverModes_meteredNetwork()
100 removePowerSaveModeWhitelist(TEST_APP2_PKG); in testDataAndBatterySaverModes_meteredNetwork()
104 addPowerSaveModeWhitelist(TEST_APP2_PKG); in testDataAndBatterySaverModes_meteredNetwork()
108 removePowerSaveModeWhitelist(TEST_APP2_PKG); in testDataAndBatterySaverModes_meteredNetwork()
114 removePowerSaveModeWhitelist(TEST_APP2_PKG); in testDataAndBatterySaverModes_meteredNetwork()
122 addPowerSaveModeWhitelist(TEST_APP2_PKG); in testDataAndBatterySaverModes_meteredNetwork()
127 removePowerSaveModeWhitelist(TEST_APP2_PKG); in testDataAndBatterySaverModes_meteredNetwork()
[all …]
DAbstractBatterySaverModeTestCase.java36 removePowerSaveModeWhitelist(TEST_APP2_PKG); in setUp()
37 removePowerSaveModeExceptIdleWhitelist(TEST_APP2_PKG); in setUp()
88 addPowerSaveModeWhitelist(TEST_APP2_PKG); in testBackgroundNetworkAccess_whitelisted()
91 removePowerSaveModeWhitelist(TEST_APP2_PKG); in testBackgroundNetworkAccess_whitelisted()
94 addPowerSaveModeExceptIdleWhitelist(TEST_APP2_PKG); in testBackgroundNetworkAccess_whitelisted()
97 removePowerSaveModeExceptIdleWhitelist(TEST_APP2_PKG); in testBackgroundNetworkAccess_whitelisted()
DAbstractAppIdleTestCase.java41 removePowerSaveModeWhitelist(TEST_APP2_PKG); in setUp()
42 removePowerSaveModeExceptIdleWhitelist(TEST_APP2_PKG); in setUp()
88 addPowerSaveModeWhitelist(TEST_APP2_PKG); in testBackgroundNetworkAccess_whitelisted()
92 removePowerSaveModeWhitelist(TEST_APP2_PKG); in testBackgroundNetworkAccess_whitelisted()
96 addPowerSaveModeExceptIdleWhitelist(TEST_APP2_PKG); in testBackgroundNetworkAccess_whitelisted()
100 removePowerSaveModeExceptIdleWhitelist(TEST_APP2_PKG); in testBackgroundNetworkAccess_whitelisted()
116 addTempPowerSaveModeWhitelist(TEST_APP2_PKG, TEMP_POWERSAVE_WHITELIST_DURATION_MS); in testBackgroundNetworkAccess_tempWhitelisted()
DAbstractDozeModeTestCase.java39 removePowerSaveModeWhitelist(TEST_APP2_PKG); in setUp()
40 removePowerSaveModeExceptIdleWhitelist(TEST_APP2_PKG); in setUp()
76 addPowerSaveModeWhitelist(TEST_APP2_PKG); in testBackgroundNetworkAccess_whitelisted()
79 removePowerSaveModeWhitelist(TEST_APP2_PKG); in testBackgroundNetworkAccess_whitelisted()
82 addPowerSaveModeExceptIdleWhitelist(TEST_APP2_PKG); in testBackgroundNetworkAccess_whitelisted()
85 removePowerSaveModeExceptIdleWhitelist(TEST_APP2_PKG); in testBackgroundNetworkAccess_whitelisted()
DAbstractRestrictBackgroundNetworkTestCase.java77 protected static final String TEST_APP2_PKG = "com.android.cts.net.hostside.app2"; field in AbstractRestrictBackgroundNetworkTestCase
79 private static final String TEST_APP2_ACTIVITY_CLASS = TEST_APP2_PKG + ".MyActivity";
80 private static final String TEST_APP2_SERVICE_CLASS = TEST_APP2_PKG + ".MyForegroundService";
151 mUid = getUid(TEST_APP2_PKG); in setUp()
671 executeSilentShellCommand("am set-inactive " + TEST_APP2_PKG + " " + enabled ); in setAppIdle()
677 assertDelayedShellCommand("am get-inactive " + TEST_APP2_PKG, 15, 2, "Idle=" + enabled); in assertAppIdle()
783 intent.setComponent(new ComponentName(TEST_APP2_PKG, TEST_APP2_ACTIVITY_CLASS)) in getIntentForComponent()
786 intent.setComponent(new ComponentName(TEST_APP2_PKG, TEST_APP2_SERVICE_CLASS)) in getIntentForComponent()
796 TEST_APP2_PKG, TEST_APP2_SERVICE_CLASS)); in stopForegroundService()
841 intent.setPackage(TEST_APP2_PKG);
/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