Home
last modified time | relevance | path

Searched refs:installPackage (Results 1 – 25 of 67) sorted by relevance

123

/packages/modules/Permission/tests/cts/permissionui/src/android/permissionui/cts/
DPhotoPickerPermissionTest.kt105 installPackage(APP_APK_PATH_LATEST_NONE) in testAppWithoutStoragePermsDoesntHaveUserSelectedAdded()
120 installPackage(APP_APK_PATH_IMPLICIT_USER_SELECT_STORAGE) in testAppWithStoragePermsHasUserSelectedAdded()
135 installPackage(APP_APK_PATH_IMPLICIT_USER_SELECT_STORAGE) in testAppWithUserSelectedPermShowsSelectOption()
144 installPackage(APP_APK_PATH_IMPLICIT_USER_SELECT_STORAGE) in testNoPhotoSelectionTreatedAsCancel()
160 installPackage(APP_APK_PATH_IMPLICIT_USER_SELECT_STORAGE) in testImplicitUserSelectHasOneTimeGrantsWithoutAppOp()
194 installPackage(APP_APK_PATH_IMPLICIT_USER_SELECT_STORAGE) in testImplicitShowsMorePhotosOnceSet()
208 installPackage(APP_APK_PATH_LATEST) in testNonImplicitDoesntGrantOtherPermsWhenUserSelected()
225 installPackage(APP_APK_PATH_LATEST) in testNonImplicitAutomaticallyShowsPickerWhenUserFixed()
248 installPackage(APP_APK_PATH_LATEST) in testRequestedPermsFilterMediaType()
265 installPackage(APP_APK_PATH_IMPLICIT_USER_SELECT_STORAGE) in testGrantAllPhotosStateSameForImplicitAndNot()
[all …]
DNotificationPermissionTest.kt105 installPackage(APP_APK_PATH_CREATE_NOTIFICATION_CHANNELS_31, expectSuccess = true) in notificationPermissionAddedForLegacyApp()
119 installPackage(APP_APK_PATH_LATEST_NONE, expectSuccess = true) in notificationPermissionIsNotImplicitlyAddedTo33Apps()
134 installPackage(APP_APK_PATH_CREATE_NOTIFICATION_CHANNELS_31, expectSuccess = true) in notificationPromptShowsForLegacyAppAfterCreatingNotificationChannels()
141 installPackage(APP_APK_PATH_CREATE_NOTIFICATION_CHANNELS_31, expectSuccess = true) in notificationPromptShowsForLegacyAppWithNotificationChannelsOnStart()
152 installPackage(APP_APK_PATH_CREATE_NOTIFICATION_CHANNELS_31, expectSuccess = true) in notificationPromptDoesNotShowForLegacyAppWithNoNotificationChannels_onLaunch()
158 installPackage(APP_APK_PATH_CREATE_NOTIFICATION_CHANNELS_31, expectSuccess = true) in notificationPromptDoesNotShowForNonLauncherIntentCategoryLaunches_onChannelCreate()
165 installPackage(APP_APK_PATH_CREATE_NOTIFICATION_CHANNELS_31, expectSuccess = true) in notificationPromptDoesNotShowForNonLauncherIntentCategoryLaunches_onLaunch()
175 installPackage(APP_APK_PATH_CREATE_NOTIFICATION_CHANNELS_31, expectSuccess = true) in notificationPromptDoesNotShowForNonMainIntentActionLaunches_onLaunch()
185 installPackage(APP_APK_PATH_CREATE_NOTIFICATION_CHANNELS_31, expectSuccess = true) in notificationPromptDoesNotShowForNonMainIntentActionLaunches_onChannelCreate()
192 installPackage(APP_APK_PATH_CREATE_NOTIFICATION_CHANNELS_31, expectSuccess = true) in notificationPromptShowsIfActivityOptionSet()
[all …]
DMediaPermissionTest.kt45 installPackage(APP_APK_PATH_23) in testWhenRESIsGrantedFromGrantDialogThenShouldGrantAllPermissions()
54 installPackage(APP_APK_PATH_23) in testWhenRESIsGrantedManuallyThenShouldGrantAllPermissions()
61 installPackage(APP_APK_PATH_23) in testWhenAuralIsGrantedManuallyThenShouldGrantAllPermissions()
68 installPackage(APP_APK_PATH_23) in testWhenVisualIsGrantedManuallyThenShouldGrantAllPermissions()
75 installPackage(APP_APK_PATH_23) in testWhenRESIsDeniedFromGrantDialogThenShouldDenyAllPermissions()
84 installPackage(APP_APK_PATH_23) in testWhenRESIsDeniedManuallyThenShouldDenyAllPermissions()
93 installPackage(APP_APK_PATH_23) in testWhenAuralIsDeniedManuallyThenShouldDenyAllPermissions()
103 installPackage(APP_APK_PATH_23) in testWhenVisualIsDeniedManuallyThenShouldDenyAllPermissions()
111 installPackage(APP_APK_PATH_MEDIA_PERMISSION_33_WITH_STORAGE) in testWhenA33AppRequestsStorageThenNoDialogAndNoGrant()
122 installPackage(APP_APK_PATH_LATEST) in testWhenA33AppRequestsAuralThenDialogAndGrant()
[all …]
DPermissionSplitTest.kt36 installPackage(APP_APK_PATH_28) in testPermissionSplit28()
42 installPackage(APP_APK_PATH_29) in testPermissionNotSplit29()
48 installPackage(APP_APK_PATH_30) in testPermissionNotSplit30()
54 installPackage(APP_APK_PATH_LATEST) in testPermissionNotSplitLatest()
61 installPackage(APP_APK_PATH_31) in testBodySensorSplit()
68 installPackage(APP_APK_PATH_32) in testBodySensorSplit32()
75 installPackage(APP_APK_PATH_LATEST) in testBodySensorNonSplit()
DPermissionUpgradeTest.kt31 installPackage(APP_APK_PATH_22) in testUpgradeKeepsPermissions()
37 installPackage(APP_APK_PATH_23, reinstall = true, skipClearLowSdkDialog = true) in testUpgradeKeepsPermissions()
79 installPackage(APP_APK_PATH_23, skipClearLowSdkDialog = true) in testNoDowngradePermissionModel()
80 installPackage(APP_APK_PATH_22, reinstall = true, expectSuccess = false) in testNoDowngradePermissionModel()
87 installPackage(APP_APK_PATH_22) in testRevokePropagatedOnUpgradeOldToNewModel()
94 installPackage(APP_APK_PATH_23, reinstall = true, skipClearLowSdkDialog = true) in testRevokePropagatedOnUpgradeOldToNewModel()
101 installPackage(APP_APK_PATH_23) in testRevokePropagatedOnUpgradeNewToNewModel()
115 installPackage(APP_APK_PATH_23, reinstall = true, skipClearLowSdkDialog = true) in testRevokePropagatedOnUpgradeNewToNewModel()
DPermissionGroupTest.kt27 installPackage(APP_APK_PATH_23) in testRuntimeGroupGrantExpansion23()
33 installPackage(APP_APK_PATH_25) in testRuntimeGroupGrantExpansion25()
39 installPackage(APP_APK_PATH_26) in testRuntimeGroupGrantExpansion26()
45 installPackage(APP_APK_PATH_30) in testRuntimeGroupGrantExpansion30()
51 installPackage(APP_APK_PATH_30) in testPartiallyGrantedGroupExpansion()
DLocationAccuracyTest.kt54 installPackage(APP_APK_PATH_31) in testCoarsePermissionIsGranted()
73 installPackage(APP_APK_PATH_31) in testPrecisePermissionIsGranted()
92 installPackage(APP_APK_PATH_31) in testPermissionUpgradeFlow()
120 installPackage(APP_APK_PATH_31) in testCoarseRequestAndGrant()
137 installPackage(APP_APK_PATH_30) in testPreSAppsAutograntFineIfCoarseGranted()
DPermissionDecisionsTest.kt48 installPackage(APP_APK_PATH_30_WITH_BACKGROUND) in testAcceptPermissionDialogShowsDecisionWithGrantedAccess()
62 installPackage(APP_APK_PATH_30_WITH_BACKGROUND) in testDenyPermissionDialogShowsDecisionWithDeniedAccess()
76 installPackage(APP_APK_PATH_30_WITH_BACKGROUND) in testAppUninstallRemovesDecision()
94 installPackage(APP_APK_PATH_30_WITH_BACKGROUND) in testClickOnDecisionAndChangeAccessUpdatesDecision()
DPermissionTest30.kt35 installPackage(APP_APK_PATH_30_WITH_BACKGROUND) in testCantRequestFgAndBgAtOnce()
50 installPackage(APP_APK_PATH_30_WITH_BACKGROUND) in testRequestBothInSequence()
69 installPackage(APP_APK_PATH_30) in testRequestFgLocationAndNoAccuracyOptions()
DNoPermissionTest.kt33 installPackage(APP_APK_PATH_22_NONE) in testStartActivity22()
42 installPackage(APP_APK_PATH_LATEST_NONE) in testStartActivityLatest()
DMediaPermissionUpgradeTest.kt37 installPackage(APP_APK_PATH_32) in testAfterUpgradeToTiramisuThenNoGrantDialogShownForMediaPerms()
48 installPackage(APP_APK_PATH_LATEST, reinstall = true) in testAfterUpgradeToTiramisuThenNoGrantDialogShownForMediaPerms()
DPermissionReviewTapjackingTest.kt44 installPackage(APP_APK_PATH_22) in installApp22AndApprovePermissionReview()
45 installPackage(HELPER_APP_OVERLAY) in installApp22AndApprovePermissionReview()
/packages/modules/AdServices/sdksandbox/tests/hostsidetests/SdkSandboxStorageHostTest/src/com/android/tests/sdksandbox/host/
DSdkSandboxStorageHostTest.java110 installPackage(TEST_APP_STORAGE_APK); in testSelinuxLabel()
185 installPackage(TEST_APP_STORAGE_APK); in testSdkSandboxDataMirrorAppDirectory_IsCreatedOnInstall()
196 installPackage(TEST_APP_STORAGE_APK); in testSdkSandboxDataMirrorDirectory_IsVolumeSpecific()
238 installPackage(TEST_APP_STORAGE_APK); in testSdkSandboxDataRootDirectory_IsNotAccessibleByApps()
259 installPackage(TEST_APP_STORAGE_APK); in testSdkDataPackageDirectory_IsCreatedOnInstall()
271 installPackage(TEST_APP_STORAGE_V2_NO_SDK); in testSdkDataPackageDirectory_IsNotCreatedWithoutSdkConsumption()
283 installPackage(TEST_APP_STORAGE_APK); in testSdkDataPackageDirectory_IsDestroyedOnUninstall()
305 installPackage(TEST_UNLOCK_APP_APK); in testSdkDataPackageDirectory_IsDestroyedOnUninstall_DeviceLocked()
306 installPackage(TEST_APP_STORAGE_APK); in testSdkDataPackageDirectory_IsDestroyedOnUninstall_DeviceLocked()
356 installPackage(TEST_APP_STORAGE_APK); in testSdkDataPackageDirectory_IsReconciled_InvalidAndMissingPackage()
[all …]
/packages/modules/AdServices/sdksandbox/tests/cts/hostside/src/com/android/sdksandbox/cts/host/
DSdkSandboxDataIsolationHostTest.java90 installPackage(APP_APK); in testAppCannotAccessAnySandboxDirectories()
91 installPackage(APP_2_APK); in testAppCannotAccessAnySandboxDirectories()
99 installPackage(APP_APK); in testSdkSandboxDataIsolation_SandboxCanAccessItsDirectory()
110 installPackage(APP_APK); in testSdkSandboxDataIsolation_CannotVerifyAppExistence()
111 installPackage(APP_2_APK); in testSdkSandboxDataIsolation_CannotVerifyAppExistence()
126 installPackage(APP_APK); in testSdkSandboxDataIsolation_CannotVerifyOtherUserAppExistence()
146 installPackage(APP_APK); in testSdkSandboxDataIsolation_CannotVerifyAcrossVolumes()
147 installPackage(APP_2_APK); in testSdkSandboxDataIsolation_CannotVerifyAcrossVolumes()
DCtsSdkSandboxStorageHostTest.java69 installPackage(TEST_APP_APK_NAME); in testSharedPreferences_IsSyncedFromAppToSandbox()
75 installPackage(TEST_APP_APK_NAME); in testSharedPreferences_SyncPropagatesUpdates()
81 installPackage(TEST_APP_APK_NAME); in testSharedPreferences_SyncStartedBeforeLoadingSdk()
87 installPackage(TEST_APP_APK_NAME); in testSharedPreferences_SyncRemoveKeys()
93 installPackage(TEST_APP_APK_NAME); in testSharedPreferences_SyncedDataClearedOnSandboxRestart()
DSdkSandboxMediaHostTest.java71 installPackage(TEST_APP_APK_NAME); in testAudioFocus()
82 installPackage(TEST_APP_APK_NAME); in testAudioFocus_AfterReboot()
/packages/modules/Connectivity/tests/cts/hostside/src/com/android/cts/net/
DHostsideSelfDeclaredNetworkCapabilitiesCheckTest.java42 installPackage(TEST_WITH_PROPERTY_IN_CURRENT_SDK_APK); in testRequestNetworkInCurrentSdkWithProperty()
57 installPackage(TEST_WITHOUT_PROPERTY_IN_CURRENT_SDK_APK); in testRequestNetworkInCurrentSdkWithoutProperty()
72 installPackage(TEST_IN_SDK_33_APK); in testRequestNetworkInSdk33()
86 installPackage(TEST_WITHOUT_PROPERTY_IN_CURRENT_SDK_APK); in testReinstallPackageWillUpdateProperty()
94 installPackage(TEST_WITH_PROPERTY_IN_CURRENT_SDK_APK); in testReinstallPackageWillUpdateProperty()
DHostsideNetworkTestCase.java49 installPackage(testInfo, testApk); in setUpOnceBase()
60 protected static void installPackage(TestInformation testInfo, String apk) in installPackage() method in HostsideNetworkTestCase
79 protected void installPackage(String apk) throws DeviceNotAvailableException, TargetSetupError { in installPackage() method in HostsideNetworkTestCase
80 installPackage(getTestInformation(), apk); in installPackage()
/packages/modules/common/javatests/com/android/modules/updatablesharedlibs/
DUpdatableSharedLibsTest.java67 installPackage("com.android.modules.updatablesharedlibs.apps.targetS.apk"); in callOnDeviceApiFromHost()
68 installPackage("com.android.modules.updatablesharedlibs.apps.targetT.apk"); in callOnDeviceApiFromHost()
69 installPackage("com.android.modules.updatablesharedlibs.apps.targetTWithLib.apk"); in callOnDeviceApiFromHost()
80 () -> installPackage(packageName + ".apk")); in assertInstalationFails()
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
DNotificationAccessConfirmationActivityTest.java50 installPackage(cn.getPackageName(), "X"); in start_showsDialog()
72 installPackage(longCn.getPackageName(), "<Unused>"); in start_componentNameTooLong_finishes()
89 private static void installPackage(String packageName, String appName) { in installPackage() method in NotificationAccessConfirmationActivityTest
95 shadowOf(RuntimeEnvironment.application.getPackageManager()).installPackage(pi); in installPackage()
/packages/modules/Connectivity/tests/cts/hostside-network-policy/src/com/android/cts/netpolicy/
DHostsideNetworkPolicyTestCase.java59 installPackage(testInfo, TEST_APK); in setUpOnceBase()
70 protected static void installPackage(TestInformation testInfo, String apk) in installPackage() method in HostsideNetworkPolicyTestCase
89 protected void installPackage(String apk) throws DeviceNotAvailableException, TargetSetupError { in installPackage() method in HostsideNetworkPolicyTestCase
90 installPackage(getTestInformation(), apk); in installPackage()
/packages/modules/StatsD/tests/src/android/cts/statsd/uidmap/
DUidMapTests.java115 final String result = getDevice().installPackage( in testChangeFromInstallation()
138 getDevice().installPackage(buildHelper.getTestFile(MetricsUtils.DEVICE_SIDE_TEST_APK), in testChangeFromReinstall()
144 getDevice().installPackage(buildHelper.getTestFile(MetricsUtils.DEVICE_SIDE_TEST_APK), true, in testChangeFromReinstall()
166 getDevice().installPackage(buildHelper.getTestFile(MetricsUtils.DEVICE_SIDE_TEST_APK), true, in testChangeFromUninstall()
/packages/modules/Permission/tests/cts/permission/src/android/permission/cts/
DStorageEscalationTest.kt65 private fun installPackage(apk: String) { in <lambda>() method
150 installPackage(startPackageApk) in <lambda>()
153 installPackage(finishPackageApk) in <lambda>()
/packages/modules/AdServices/sdksandbox/tests/hostsidetests/SdkSandboxMetricsHostTest/src/com/android/tests/sdksandbox/host/
DSdkSandboxMetricsHostTest.java55 installPackage(TEST_APP_APK); in setUp()
56 installPackage(SECONDARY_TEST_APP_APK); in setUp()
/packages/modules/DeviceLock/DeviceLockController/tests/robolectric/src/com/android/devicelockcontroller/policy/
DLockTaskModePolicyHandlerTest.java234 shadowPackageManager.installPackage(dialerPackage); in setupDefaultSystemPackages()
252 shadowPackageManager.installPackage(settingsPackage); in setupDefaultSystemPackages()
272 shadowPackageManager.installPackage(requestPermissionPackage); in setupDefaultSystemPackages()
291 shadowPackageManager.installPackage(cellBroadcastReceiverPackage); in setupDefaultSystemPackages()

123