Home
last modified time | relevance | path

Searched refs:SHELL_PACKAGE_NAME (Results 1 – 9 of 9) sorted by relevance

/cts/hostsidetests/appsecurity/test-apps/UsePermissionDiffCert/src/com/android/cts/usespermissiondiffcertapp/
DModifyInstallerPackageTest.java53 static final String SHELL_PACKAGE_NAME = "com.android.shell"; field in ModifyInstallerPackageTest
65 if (expectedInitiator == null || expectedInitiator.equals(SHELL_PACKAGE_NAME)) { in assertPackageInstallerAndInitiator()
99 SHELL_PACKAGE_NAME, mPM); in setInstallPackage()
102 assertPackageInstallerAndInitiator(OTHER_PACKAGE, MY_PACKAGE, SHELL_PACKAGE_NAME, in setInstallPackage()
108 SHELL_PACKAGE_NAME, mPM); in setInstallPackage()
138 SHELL_PACKAGE_NAME, mPM); in setInstallPackageBadInstaller()
149 SHELL_PACKAGE_NAME, mPM); in setInstallPackageWrongCertificate()
159 SHELL_PACKAGE_NAME, mPM); in setInstallPackageWrongCertificate()
DModifyInstallerCrossPackageTest.kt24 import com.android.cts.usespermissiondiffcertapp.ModifyInstallerPackageTest.SHELL_PACKAGE_NAME
81 SHELL_PACKAGE_NAME, packageManager) in assertBefore()
87 SHELL_PACKAGE_NAME, packageManager) in attemptTakeOver()
90 SHELL_PACKAGE_NAME, packageManager) in attemptTakeOver()
96 SHELL_PACKAGE_NAME, packageManager) in assertAfter()
/cts/tests/tests/packageinstaller/install/src/android/packageinstaller/install/cts/
DInstallSourceInfoTest.kt38 const val SHELL_PACKAGE_NAME = "com.android.shell" constant
80 assertThat(info.initiatingPackageName).isEqualTo(SHELL_PACKAGE_NAME) in installViaAdb()
94 assertThat(info.initiatingPackageName).isEqualTo(SHELL_PACKAGE_NAME) in installViaAdbValidInstallerName()
108 assertThat(info.initiatingPackageName).isEqualTo(SHELL_PACKAGE_NAME) in installViaAdbInvalidInstallerName()
DUpdateOwnershipEnforcementTest.kt442 assertEquals(SHELL_PACKAGE_NAME, sourceInfo.updateOwnerPackageName) in relinquishUpdateOwnership_notFromUpdateOwner_throwSecurityException()
450 assertEquals(SHELL_PACKAGE_NAME, sourceInfo.updateOwnerPackageName) in relinquishUpdateOwnership_notFromUpdateOwner_throwSecurityException()
DPackageInstallerTestBase.kt89 const val SHELL_PACKAGE_NAME = "com.android.shell" in <lambda>() constant
/cts/tests/tests/appop/src/android/app/appops/cts/
DAppOpsTest.kt84 private val SHELL_PACKAGE_NAME = "com.android.shell" constant
256 if (packageName == SHELL_PACKAGE_NAME) { in overlappingActiveAttributionOps()
269 SHELL_PACKAGE_NAME)) in overlappingActiveAttributionOps()
279 SHELL_PACKAGE_NAME)) in overlappingActiveAttributionOps()
289 mAppOps.finishOp(OPSTR_RESERVED_FOR_TESTING, USER_SHELL_UID, SHELL_PACKAGE_NAME, in overlappingActiveAttributionOps()
293 SHELL_PACKAGE_NAME)) in overlappingActiveAttributionOps()
303 mAppOps.finishOp(OPSTR_RESERVED_FOR_TESTING, USER_SHELL_UID, SHELL_PACKAGE_NAME, in overlappingActiveAttributionOps()
307 SHELL_PACKAGE_NAME)) in overlappingActiveAttributionOps()
329 if (packageName == SHELL_PACKAGE_NAME && uid == USER_SHELL_UID) { in startOpTwiceAndVerifyChangeListener()
344 mAppOps.finishOp(OPSTR_WIFI_SCAN, USER_SHELL_UID, SHELL_PACKAGE_NAME, null) in startOpTwiceAndVerifyChangeListener()
[all …]
DAppOpEventCollectionTest.kt49 private const val SHELL_PACKAGE_NAME = "com.android.shell" constant
243 val opEntry = getOpEntry(shellUid, SHELL_PACKAGE_NAME, OPSTR_RESERVED_FOR_TESTING)!! in noteSelfAndTrustedAccessAndCheckOpEntries()
308 .isEqualTo(SHELL_PACKAGE_NAME) in noteFromTwoProxiesAndVerifyProxyInfo()
310 .isEqualTo(SHELL_PACKAGE_NAME) in noteFromTwoProxiesAndVerifyProxyInfo()
356 .packageName).isEqualTo(SHELL_PACKAGE_NAME) in startStopTrustedProxyVerifyRunningAndTime()
364 with(getOpEntry(shellUid, SHELL_PACKAGE_NAME, OPSTR_RESERVED_FOR_TESTING)!!) { in startStopTrustedProxyVerifyRunningAndTime()
383 .isEqualTo(SHELL_PACKAGE_NAME) in startStopTrustedProxyVerifyRunningAndTime()
385 .isEqualTo(SHELL_PACKAGE_NAME) in startStopTrustedProxyVerifyRunningAndTime()
/cts/tests/tests/attributionsource/src/android/attributionsource/cts/
DRuntimePermissionsAppOpTrackingTest.kt83 appOpsManager.resetPackageOpsNoHistory(SHELL_PACKAGE_NAME) in <lambda>()
366 SHELL_PACKAGE_NAME, ACCESSOR_ATTRIBUTION_TAG, null, in <lambda>()
701 val SHELL_PACKAGE_NAME = "com.android.shell" in <lambda>() constant
1057 if (attributionSource.packageName == SHELL_PACKAGE_NAME) { in <lambda>()
/cts/tests/tests/content/src/android/content/pm/cts/
DPackageManagerTest.java284 private static final String SHELL_PACKAGE_NAME = "com.android.shell"; field in PackageManagerTest
1861 assertThat(packages.get(0).packageName).isEqualTo(SHELL_PACKAGE_NAME); in testInstallTestOnlyPackagePermission_onlyGrantedToShell()
1895 String isShellUpdatable = parsePackageDump(SHELL_PACKAGE_NAME, " updatableSystem="); in testUpdateShellFailed()
2795 assertEquals(SHELL_PACKAGE_NAME, installSourceInfo.getInitiatingPackageName()); in testShellInitiatingPkgName()
2804 assertEquals(SHELL_PACKAGE_NAME, installSourceInfo.getInitiatingPackageName()); in testShellInitiatingPkgNameSetInstallerPkgName()