Home
last modified time | relevance | path

Searched refs:TEST_APP_PKG (Results 1 – 7 of 7) sorted by relevance

/packages/modules/Connectivity/tests/cts/hostside/src/com/android/cts/net/
DHostsideSelfDeclaredNetworkCapabilitiesCheckTest.java28 private static final String TEST_APP_PKG = field in HostsideSelfDeclaredNetworkCapabilitiesCheckTest
41 uninstallPackage(TEST_APP_PKG, false); in testRequestNetworkInCurrentSdkWithProperty()
45 runDeviceTests(TEST_APP_PKG, in testRequestNetworkInCurrentSdkWithProperty()
46 TEST_APP_PKG + TEST_CLASS_NAME, in testRequestNetworkInCurrentSdkWithProperty()
48 runDeviceTests(TEST_APP_PKG, in testRequestNetworkInCurrentSdkWithProperty()
49 TEST_APP_PKG + TEST_CLASS_NAME, in testRequestNetworkInCurrentSdkWithProperty()
51 uninstallPackage(TEST_APP_PKG, true); in testRequestNetworkInCurrentSdkWithProperty()
56 uninstallPackage(TEST_APP_PKG, false); in testRequestNetworkInCurrentSdkWithoutProperty()
60 runDeviceTests(TEST_APP_PKG, in testRequestNetworkInCurrentSdkWithoutProperty()
61 TEST_APP_PKG + TEST_CLASS_NAME, in testRequestNetworkInCurrentSdkWithoutProperty()
[all …]
/packages/modules/Permission/tests/cts/permission/src/android/permission/cts/
DNearbyDevicesPermissionTest.java67 private static final String TEST_APP_PKG = "android.permission.cts.appthatrequestpermission"; field in NearbyDevicesPermissionTest
94 uninstallApp(TEST_APP_PKG); in uninstallTestApp()
123 grantPermission(TEST_APP_PKG, ACCESS_FINE_LOCATION); in testRequestBluetoothPermission30_GrantLocation()
124 grantPermission(TEST_APP_PKG, ACCESS_BACKGROUND_LOCATION); in testRequestBluetoothPermission30_GrantLocation()
141 grantPermission(TEST_APP_PKG, BLUETOOTH_CONNECT); in testRequestBluetoothPermission31_GrantNearby()
142 grantPermission(TEST_APP_PKG, BLUETOOTH_SCAN); in testRequestBluetoothPermission31_GrantNearby()
150 grantPermission(TEST_APP_PKG, ACCESS_FINE_LOCATION); in testRequestBluetoothPermission31_GrantLocation()
151 grantPermission(TEST_APP_PKG, ACCESS_BACKGROUND_LOCATION); in testRequestBluetoothPermission31_GrantLocation()
161 grantPermission(TEST_APP_PKG, BLUETOOTH_CONNECT); in testRequestBluetoothPermission31_GrantNearby_GrantLocation()
162 grantPermission(TEST_APP_PKG, BLUETOOTH_SCAN); in testRequestBluetoothPermission31_GrantNearby_GrantLocation()
[all …]
DLocationAccessCheckTest.java107 private static final String TEST_APP_PKG = "android.permission.cts.appthataccesseslocation"; field in LocationAccessCheckTest
109 private static final String TEST_APP_SERVICE = TEST_APP_PKG + ".AccessLocationOnCommand";
270 sPackageManager.getPackageUid(TEST_APP_PKG, 0), TEST_APP_PKG, in accessLocation()
400 sUiAutomation.grantRuntimePermission(TEST_APP_PKG, permission); in grantPermissionToTestApp()
421 runShellCommand("pm uninstall " + TEST_APP_PKG); in uninstallTestApp()
466 testAppService.setComponent(new ComponentName(TEST_APP_PKG, TEST_APP_SERVICE)); in bindService()
608 clearPackageData(TEST_APP_PKG); in notificationIsShownAgainAfterClear()
697 appOpsManager.noteProxyOpNoThrow(OPSTR_FINE_LOCATION, TEST_APP_PKG, in noNotificationIfBlamerNotSystemOrLocationProvider()
698 sContext.getPackageManager().getPackageUid(TEST_APP_PKG, 0)); in noNotificationIfBlamerNotSystemOrLocationProvider()
DNotificationListenerCheckTest.java82 uninstallApp(TEST_APP_PKG); in tearDown()
130 clearAppState(TEST_APP_PKG); in notificationIsShownAgainAfterClear()
146 uninstallApp(TEST_APP_PKG); in notificationIsShownAgainAfterUninstallAndReinstall()
184 uninstallApp(TEST_APP_PKG); in removeNotificationOnUninstall()
DBaseNotificationListenerCheckTest.java60 protected static final String TEST_APP_PKG = field in BaseNotificationListenerCheckTest
63 TEST_APP_PKG + ".CtsNotificationListenerService";
212 new ComponentName(TEST_APP_PKG, TEST_APP_NOTIFICATION_SERVICE), true); in allowTestAppNotificationListenerService()
217 new ComponentName(TEST_APP_PKG, TEST_APP_NOTIFICATION_SERVICE), false); in disallowTestAppNotificationListenerService()
DNotificationListenerCheckWithSafetyCenterUnsupportedTest.java65 uninstallApp(TEST_APP_PKG); in tearDown()
/packages/modules/Permission/tests/cts/permissionui/src/android/permissionui/cts/
DPermissionTest30WithBluetooth.kt60 private val TEST_APP_PKG = "android.permissionui.cts.usepermission" constant
132 uiAutomation.grantRuntimePermission(TEST_APP_PKG, ACCESS_FINE_LOCATION) in testGivenBluetoothIsDeniedWhenScanIsAttemptedThenThenGetEmptyScanResult()
133 uiAutomation.grantRuntimePermission(TEST_APP_PKG, ACCESS_BACKGROUND_LOCATION) in testGivenBluetoothIsDeniedWhenScanIsAttemptedThenThenGetEmptyScanResult()
177 TEST_APP_PKG, in assertBluetoothRevokedCompatState()