Home
last modified time | relevance | path

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

/packages/modules/Connectivity/tests/cts/hostside-network-policy/app/src/com/android/cts/netpolicy/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()
DAbstractDefaultRestrictionsTest.java38 removePowerSaveModeWhitelist(TEST_APP2_PKG); in setUp()
39 removePowerSaveModeExceptIdleWhitelist(TEST_APP2_PKG); in setUp()
50 removePowerSaveModeWhitelist(TEST_APP2_PKG); in tearDown()
51 removePowerSaveModeExceptIdleWhitelist(TEST_APP2_PKG); in tearDown()
78 addPowerSaveModeWhitelist(TEST_APP2_PKG); in testBackgroundNetworkAccess_inFullAllowlist()
89 addPowerSaveModeExceptIdleWhitelist(TEST_APP2_PKG); in testBackgroundNetworkAccess_inExceptIdleAllowlist()
DAbstractAppIdleTestCase.java41 removePowerSaveModeWhitelist(TEST_APP2_PKG); in setUp()
42 removePowerSaveModeExceptIdleWhitelist(TEST_APP2_PKG); in setUp()
99 addPowerSaveModeWhitelist(TEST_APP2_PKG); in testBackgroundNetworkAccess_whitelisted()
105 removePowerSaveModeWhitelist(TEST_APP2_PKG); in testBackgroundNetworkAccess_whitelisted()
110 addPowerSaveModeExceptIdleWhitelist(TEST_APP2_PKG); in testBackgroundNetworkAccess_whitelisted()
116 removePowerSaveModeExceptIdleWhitelist(TEST_APP2_PKG); in testBackgroundNetworkAccess_whitelisted()
132 addTempPowerSaveModeWhitelist(TEST_APP2_PKG, TEMP_POWERSAVE_WHITELIST_DURATION_MS); in testBackgroundNetworkAccess_tempWhitelisted()
DAbstractDozeModeTestCase.java41 removePowerSaveModeWhitelist(TEST_APP2_PKG); in setUp()
42 removePowerSaveModeExceptIdleWhitelist(TEST_APP2_PKG); in setUp()
78 addPowerSaveModeWhitelist(TEST_APP2_PKG); in testBackgroundNetworkAccess_whitelisted()
81 removePowerSaveModeWhitelist(TEST_APP2_PKG); in testBackgroundNetworkAccess_whitelisted()
84 addPowerSaveModeExceptIdleWhitelist(TEST_APP2_PKG); in testBackgroundNetworkAccess_whitelisted()
87 removePowerSaveModeExceptIdleWhitelist(TEST_APP2_PKG); in testBackgroundNetworkAccess_whitelisted()
DAbstractRestrictBackgroundNetworkTestCase.java97 protected static final String TEST_APP2_PKG = "com.android.cts.netpolicy.hostside.app2"; field in AbstractRestrictBackgroundNetworkTestCase
106 private static final String TEST_APP2_ACTIVITY_CLASS = TEST_APP2_PKG + ".MyActivity";
107 private static final String TEST_APP2_SERVICE_CLASS = TEST_APP2_PKG + ".MyForegroundService";
108 private static final String TEST_APP2_JOB_SERVICE_CLASS = TEST_APP2_PKG + ".MyJobService";
111 TEST_APP2_PKG, TEST_APP2_JOB_SERVICE_CLASS);
192 mUid = getUid(TEST_APP2_PKG); in setUp()
849 executeSilentShellCommand("am stop-app " + TEST_APP2_PKG); in stopApp()
863 executeSilentShellCommand("am set-standby-bucket " + TEST_APP2_PKG + " " + bucketName); in setAppIdleNoAssert()
868 assertDelayedShellCommand("am get-inactive " + TEST_APP2_PKG, in assertAppIdle()
1011 forceRunJob(TEST_APP2_PKG, TEST_JOB_ID); in launchComponentAndAssertNetworkAccess()
[all …]
DNetworkPolicyManagerTest.java203 addPowerSaveModeWhitelist(TEST_APP2_PKG); in testIsUidNetworkingBlocked_withPowerSaverMode()
208 removePowerSaveModeWhitelist(TEST_APP2_PKG); in testIsUidNetworkingBlocked_withPowerSaverMode()
269 addPowerSaveModeWhitelist(TEST_APP2_PKG); in testIsUidNetworkingBlocked_whenInBackground()
273 removePowerSaveModeWhitelist(TEST_APP2_PKG); in testIsUidNetworkingBlocked_whenInBackground()
DDumpOnFailureRule.java19 … static com.android.cts.netpolicy.hostside.AbstractRestrictBackgroundNetworkTestCase.TEST_APP2_PKG;
63 "dumpsys usagestats " + TEST_PKG + " " + TEST_APP2_PKG, in onTestFailure()
68 "dumpsys jobscheduler " + TEST_APP2_PKG, // TODO (b/288220398): Remove this dump in onTestFailure()
DRestrictedModeTest.java61 addPowerSaveModeWhitelist(TEST_APP2_PKG); in testNetworkAccess_withBatterySaver()
/packages/modules/Connectivity/tests/cts/hostside-network-policy/src/com/android/cts/netpolicy/
DHostsideRestrictBackgroundNetworkTests.java37 uninstallPackage(TEST_APP2_PKG, false); in setUp()
43 uninstallPackage(TEST_APP2_PKG, true); in tearDown()
83 final int oldUid = getUid(TEST_APP2_PKG); in testDataSaverMode_reinstall()
88 uninstallPackage(TEST_APP2_PKG, true); in testDataSaverMode_reinstall()
89 assertPackageUninstalled(TEST_APP2_PKG); in testDataSaverMode_reinstall()
93 final int newUid = getUid(TEST_APP2_PKG); in testDataSaverMode_reinstall()
140 addPowerSaveModeWhitelist(TEST_APP2_PKG); in testBatterySaverMode_reinstall()
142 uninstallPackage(TEST_APP2_PKG, true); in testBatterySaverMode_reinstall()
143 assertPackageUninstalled(TEST_APP2_PKG); in testBatterySaverMode_reinstall()
144 assertPowerSaveModeWhitelist(TEST_APP2_PKG, false); in testBatterySaverMode_reinstall()
[all …]
DHostsideNetworkCallbackTests.java33 uninstallPackage(TEST_APP2_PKG, false); in setUp()
39 uninstallPackage(TEST_APP2_PKG, true); in tearDown()
DHostsideNetworkPolicyManagerTests.java30 uninstallPackage(TEST_APP2_PKG, false); in setUp()
36 uninstallPackage(TEST_APP2_PKG, true); in tearDown()
DHostsideDefaultNetworkRestrictionsTests.java40 uninstallPackage(TEST_APP2_PKG, false); in setUp()
46 uninstallPackage(TEST_APP2_PKG, true); in tearDown()
DHostsideConnOnActivityStartTest.java38 uninstallPackage(testInfo, TEST_APP2_PKG, false); in setUpOnce()
44 uninstallPackage(testInfo, TEST_APP2_PKG, true); in tearDownOnce()
DHostsideNetworkPolicyTestCase.java49 protected static final String TEST_APP2_PKG = "com.android.cts.netpolicy.hostside.app2"; field in HostsideNetworkPolicyTestCase
/packages/modules/Connectivity/tests/cts/hostside/src/com/android/cts/net/
DHostsideVpnTests.java29 uninstallPackage(TEST_APP2_PKG, false); in setUp()
35 uninstallPackage(TEST_APP2_PKG, true); in tearDown()
DHostsideNetworkTestCase.java40 protected static final String TEST_APP2_PKG = "com.android.cts.net.hostside.app2"; field in HostsideNetworkTestCase