Home
last modified time | relevance | path

Searched refs:TEST_PKG (Results 1 – 19 of 19) sorted by relevance

/packages/modules/Connectivity/tests/cts/hostside-network-policy/src/com/android/cts/netpolicy/
DHostsideRestrictBackgroundNetworkTests.java49 runDeviceTestsWithCustomOptions(TEST_PKG, TEST_PKG + ".DataWarningReceiverTest", in testDataWarningReceiver()
59 runDeviceTestsWithCustomOptions(TEST_PKG, TEST_PKG + ".DataSaverModeTest", in testDataSaverMode_disabled()
65 runDeviceTestsWithCustomOptions(TEST_PKG, TEST_PKG + ".DataSaverModeTest", in testDataSaverMode_whitelisted()
71 runDeviceTestsWithCustomOptions(TEST_PKG, TEST_PKG + ".DataSaverModeTest", in testDataSaverMode_enabled()
77 runDeviceTestsWithCustomOptions(TEST_PKG, TEST_PKG + ".DataSaverModeTest", in testDataSaverMode_blacklisted()
100 runDeviceTestsWithCustomOptions(TEST_PKG, TEST_PKG + ".DataSaverModeTest", in testDataSaverMode_requiredWhitelistedPackages()
106 runDeviceTestsWithCustomOptions(TEST_PKG, TEST_PKG + ".DataSaverModeTest", in testDataSaverMode_broadcastNotSentOnUnsupportedDevices()
116 runDeviceTestsWithCustomOptions(TEST_PKG, TEST_PKG + ".BatterySaverModeMeteredTest", in testBatterySaverModeMetered_disabled()
122 runDeviceTestsWithCustomOptions(TEST_PKG, TEST_PKG + ".BatterySaverModeMeteredTest", in testBatterySaverModeMetered_whitelisted()
128 runDeviceTestsWithCustomOptions(TEST_PKG, TEST_PKG + ".BatterySaverModeMeteredTest", in testBatterySaverModeMetered_enabled()
[all …]
DHostsideNetworkPolicyManagerTests.java41 runDeviceTestsWithCustomOptions(TEST_PKG, in testIsUidNetworkingBlocked_withUidNotBlocked()
42 TEST_PKG + ".NetworkPolicyManagerTest", in testIsUidNetworkingBlocked_withUidNotBlocked()
48 runDeviceTestsWithCustomOptions(TEST_PKG, in testIsUidNetworkingBlocked_withSystemUid()
49 TEST_PKG + ".NetworkPolicyManagerTest", "testIsUidNetworkingBlocked_withSystemUid"); in testIsUidNetworkingBlocked_withSystemUid()
54 runDeviceTestsWithCustomOptions(TEST_PKG, in testIsUidNetworkingBlocked_withDataSaverMode()
55 TEST_PKG + ".NetworkPolicyManagerTest", in testIsUidNetworkingBlocked_withDataSaverMode()
61 runDeviceTestsWithCustomOptions(TEST_PKG, in testIsUidNetworkingBlocked_withRestrictedNetworkingMode()
62 TEST_PKG + ".NetworkPolicyManagerTest", in testIsUidNetworkingBlocked_withRestrictedNetworkingMode()
68 runDeviceTestsWithCustomOptions(TEST_PKG, in testIsUidNetworkingBlocked_withPowerSaverMode()
69 TEST_PKG + ".NetworkPolicyManagerTest", in testIsUidNetworkingBlocked_withPowerSaverMode()
[all …]
DHostsideNetworkCallbackTests.java44 runDeviceTestsWithCustomOptions(TEST_PKG, in testOnBlockedStatusChanged_dataSaver()
45 TEST_PKG + ".NetworkCallbackTest", "testOnBlockedStatusChanged_dataSaver"); in testOnBlockedStatusChanged_dataSaver()
50 runDeviceTestsWithCustomOptions(TEST_PKG, in testOnBlockedStatusChanged_powerSaver()
51 TEST_PKG + ".NetworkCallbackTest", "testOnBlockedStatusChanged_powerSaver"); in testOnBlockedStatusChanged_powerSaver()
57 runDeviceTestsWithCustomOptions(TEST_PKG, TEST_PKG + ".NetworkCallbackTest", in testOnBlockedStatusChanged_default()
DHostsideConnOnActivityStartTest.java34 private static final String TEST_CLASS = TEST_PKG + ".ConnOnActivityStartTest";
49 runDeviceTestsWithCustomOptions(TEST_PKG, TEST_CLASS, "testStartActivity_batterySaver"); in testStartActivity_batterySaver()
54 runDeviceTestsWithCustomOptions(TEST_PKG, TEST_CLASS, "testStartActivity_dataSaver"); in testStartActivity_dataSaver()
60 runDeviceTestsWithCustomOptions(TEST_PKG, TEST_CLASS, "testStartActivity_doze"); in testStartActivity_doze()
65 runDeviceTestsWithCustomOptions(TEST_PKG, TEST_CLASS, "testStartActivity_appStandby"); in testStartActivity_appStandby()
71 runDeviceTestsWithCustomOptions(TEST_PKG, TEST_CLASS, "testStartActivity_default", in testStartActivity_default()
DHostsideDefaultNetworkRestrictionsTests.java34 private static final String METERED_TEST_CLASS = TEST_PKG + ".DefaultRestrictionsMeteredTest";
36 TEST_PKG + ".DefaultRestrictionsNonMeteredTest";
50 runDeviceTestsWithCustomOptions(TEST_PKG, METERED_TEST_CLASS, methodName, in runMeteredTest()
55 runDeviceTestsWithCustomOptions(TEST_PKG, NON_METERED_TEST_CLASS, methodName, in runNonMeteredTest()
DHostsideNetworkPolicyTestCase.java47 protected static final String TEST_PKG = "com.android.cts.netpolicy.hostside"; field in HostsideNetworkPolicyTestCase
58 uninstallPackage(testInfo, TEST_PKG, false); in setUpOnceBase()
65 uninstallPackage(testInfo, TEST_PKG, true); in tearDownOnceBase()
/packages/modules/Connectivity/tests/cts/hostside/src/com/android/cts/net/
DHostsideVpnTests.java40 runDeviceTests(TEST_PKG, TEST_PKG + ".VpnTest", "testChangeUnderlyingNetworks"); in testChangeUnderlyingNetworks()
45 runDeviceTests(TEST_PKG, TEST_PKG + ".VpnTest", "testDefault"); in testDefault()
50 runDeviceTests(TEST_PKG, TEST_PKG + ".VpnTest", "testAppAllowed"); in testAppAllowed()
55 runDeviceTests(TEST_PKG, TEST_PKG + ".VpnTest", "testAppDisallowed"); in testAppDisallowed()
60 runDeviceTests(TEST_PKG, TEST_PKG + ".VpnTest", "testSocketClosed"); in testSocketClosed()
65 runDeviceTests(TEST_PKG, TEST_PKG + ".VpnTest", "testGetConnectionOwnerUidSecurity"); in testGetConnectionOwnerUidSecurity()
70 runDeviceTests(TEST_PKG, TEST_PKG + ".VpnTest", "testSetProxy"); in testSetProxy()
75 runDeviceTests(TEST_PKG, TEST_PKG + ".VpnTest", "testSetProxyDisallowedApps"); in testSetProxyDisallowedApps()
80 runDeviceTests(TEST_PKG, TEST_PKG + ".VpnTest", "testNoProxy"); in testNoProxy()
85 runDeviceTests(TEST_PKG, TEST_PKG + ".VpnTest", "testBindToNetworkWithProxy"); in testBindToNetworkWithProxy()
[all …]
DHostsideNetworkTestCase.java37 protected static final String TEST_PKG = "com.android.cts.net.hostside"; field in HostsideNetworkTestCase
48 uninstallPackage(testInfo, TEST_PKG, false); in setUpOnceBase()
55 uninstallPackage(testInfo, TEST_PKG, true); in tearDownOnceBase()
/packages/modules/Connectivity/tests/unit/java/android/net/
DNetworkStatsAccessTest.java49 private static final String TEST_PKG = "com.example.test"; field in NetworkStatsAccessTest
92 NetworkStatsAccess.checkAccessLevel(mContext, TEST_PID, TEST_UID, TEST_PKG)); in testCheckAccessLevel_hasCarrierPrivileges()
99 NetworkStatsAccess.checkAccessLevel(mContext, TEST_PID, TEST_UID, TEST_PKG)); in testCheckAccessLevel_isDeviceOwner()
106 NetworkStatsAccess.checkAccessLevel(mContext, TEST_PID, TEST_UID, TEST_PKG)); in testCheckAccessLevel_isProfileOwner()
114 NetworkStatsAccess.checkAccessLevel(mContext, TEST_PID, TEST_UID, TEST_PKG)); in testCheckAccessLevel_hasAppOpsBitAllowed()
122 NetworkStatsAccess.checkAccessLevel(mContext, TEST_PID, TEST_UID, TEST_PKG)); in testCheckAccessLevel_hasAppOpsBitDefault_grantedPermission()
130 NetworkStatsAccess.checkAccessLevel(mContext, TEST_PID, TEST_UID, TEST_PKG)); in testCheckAccessLevel_hasReadHistoryPermission()
137 NetworkStatsAccess.checkAccessLevel(mContext, TEST_PID, TEST_UID, TEST_PKG)); in testCheckAccessLevel_deniedAppOpsBit()
143 NetworkStatsAccess.checkAccessLevel(mContext, TEST_PID, TEST_UID, TEST_PKG)); in testCheckAccessLevel_deniedAppOpsBit_deniedPermission()
149 NetworkStatsAccess.checkAccessLevel(mContext, TEST_PID, TEST_UID, TEST_PKG)); in testCheckAccessLevel_hasNetworkStackPermission()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/specialaccess/zenaccess/
DZenAccessControllerTest.java44 private static final String TEST_PKG = "com.test.package"; field in ZenAccessControllerTest
80 snm.setNotificationPolicyAccessGrantedForPackage(TEST_PKG); in hasAccess_granted_yes()
81 assertThat(ZenAccessController.hasAccess(mContext, TEST_PKG)).isTrue(); in hasAccess_granted_yes()
87 assertThat(ZenAccessController.hasAccess(mContext, TEST_PKG)).isFalse(); in hasAccess_notGranted_no()
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
DNotificationAssistantPickerTest.java52 private static final String TEST_PKG = "test.package"; field in NotificationAssistantPickerTest
54 private static final String TEST_CMP = TEST_PKG + "/" + TEST_SRV;
103 serviceInfo.packageName = TEST_PKG; in candidateListHasNoneAtEnd()
116 serviceInfo.packageName = TEST_PKG; in candidateListHasCorrectCandidate()
/packages/modules/Connectivity/tests/cts/hostside-network-policy/app2/src/com/android/cts/netpolicy/hostside/app2/
DCommon.java74 static final String TEST_PKG = "com.android.cts.netpolicy.hostside"; field in Common
75 static final String KEY_NETWORK_STATE_OBSERVER = TEST_PKG + ".observer";
76 static final String KEY_SKIP_VALIDATION_CHECKS = TEST_PKG + ".skip_validation_checks";
77 static final String KEY_CUSTOM_URL = TEST_PKG + ".custom_url";
DMyForegroundService.java19 import static com.android.cts.netpolicy.hostside.app2.Common.TEST_PKG;
/packages/modules/Permission/tests/cts/permissionui/CreateNotificationChannelsApp31/src/android/permissionui/cts/usepermission/
DCreateNotificationChannelsActivity.kt39 const val TEST_PKG = "android.permissionui.cts" constant
104 sendBroadcast(Intent(BROADCAST_ACTION).setPackage(TEST_PKG)) in handleIntent()
180 .setPackage(TEST_PKG) in onRequestPermissionsResult()
/packages/modules/AdServices/sdksandbox/tests/cts/inprocess/src/com/android/sdksandbox/tests/cts/inprocess/
DSdkSandboxConfigurationTest.java71 private static final String TEST_PKG = "com.android.sdksandbox.tests.cts.inprocesstests"; field in SdkSandboxConfigurationTest
120 final PackageInfo info = mPackageManager.getPackageInfo(TEST_PKG, PackageInfoFlags.of(0)); in testClientAppIsVisibleToSdkSandbox()
134 "/data/misc_ce/" + CURRENT_USER_ID + "/sdksandbox/" + TEST_PKG + "/shared"); in testGetDataDir_CE()
147 "/data/misc_de/" + CURRENT_USER_ID + "/sdksandbox/" + TEST_PKG + "/shared"); in testGetDataDir_DE()
/packages/modules/Connectivity/tests/cts/hostside-network-policy/app/src/com/android/cts/netpolicy/hostside/
DAbstractAppIdleTestCase.java85 addPowerSaveModeWhitelist(TEST_PKG); in testBackgroundNetworkAccess_enabled()
86 removePowerSaveModeWhitelist(TEST_PKG); in testBackgroundNetworkAccess_enabled()
DDumpOnFailureRule.java20 import static com.android.cts.netpolicy.hostside.AbstractRestrictBackgroundNetworkTestCase.TEST_PKG;
63 "dumpsys usagestats " + TEST_PKG + " " + TEST_APP2_PKG, in onTestFailure()
DDataWarningReceiverTest.java70 setSubPlanOwner(subId, TEST_PKG); in testSnoozeWarningNotReceived()
DAbstractRestrictBackgroundNetworkTestCase.java96 protected static final String TEST_PKG = "com.android.cts.netpolicy.hostside"; field in AbstractRestrictBackgroundNetworkTestCase
144 private static final String KEY_NETWORK_STATE_OBSERVER = TEST_PKG + ".observer";
145 private static final String KEY_SKIP_VALIDATION_CHECKS = TEST_PKG + ".skip_validation_checks";
146 private static final String KEY_CUSTOM_URL = TEST_PKG + ".custom_url";