Home
last modified time | relevance | path

Searched refs:installerName (Results 1 – 10 of 10) sorted by relevance

/frameworks/base/services/core/java/com/android/server/pm/
DPackageManagerNative.java81 final String installerName = snapshot.getInstallerPackageName(packageName, callingUser); in getInstallerForPackage() local
82 if (!TextUtils.isEmpty(installerName)) { in getInstallerForPackage()
83 return installerName; in getInstallerForPackage()
DPackageInstallerService.java1113 private boolean isStagedInstallerAllowed(String installerName) {
1114 return SystemConfig.getInstance().getWhitelistedStagedInstallers().contains(installerName);
/frameworks/base/services/backup/java/com/android/server/backup/fullbackup/
DAppMetadataBackupWriter.java136 String installerName = mPackageManager.getInstallerPackageName(packageName); in getManifestBytes() local
137 printer.println((installerName != null) ? installerName : ""); in getManifestBytes()
/frameworks/base/core/tests/coretests/src/android/content/integrity/
DAtomicFormulaTest.java74 String installerName = "com.test.app"; in testValidAtomicFormula_stringValue_autoHash_installerNameLessThanLimit() local
76 new StringAtomicFormula(AtomicFormula.INSTALLER_NAME, installerName); in testValidAtomicFormula_stringValue_autoHash_installerNameLessThanLimit()
80 assertThat(stringAtomicFormula.getValue()).isEqualTo(installerName); in testValidAtomicFormula_stringValue_autoHash_installerNameLessThanLimit()
86 String installerName = "com.test.app.test.app.test.app.test.app.test.app"; in testValidAtomicFormula_stringValue_autoHash_longInstallerName() local
88 new StringAtomicFormula(AtomicFormula.INSTALLER_NAME, installerName); in testValidAtomicFormula_stringValue_autoHash_longInstallerName()
91 assertThat(stringAtomicFormula.getValue()).doesNotMatch(installerName); in testValidAtomicFormula_stringValue_autoHash_longInstallerName()
DIntegrityFormulaTest.java72 String installerName = "com.test.app"; in createEqualsFormula_installerName() local
73 IntegrityFormula formula = IntegrityFormula.Installer.packageNameEquals(installerName); in createEqualsFormula_installerName()
79 assertThat(stringAtomicFormula.getValue()).isEqualTo(installerName); in createEqualsFormula_installerName()
/frameworks/base/core/java/android/content/integrity/
DAppInstallMetadata.java233 public Builder setInstallerName(@NonNull String installerName) { in setInstallerName() argument
234 this.mInstallerName = Objects.requireNonNull(installerName); in setInstallerName()
DIntegrityFormula.java107 public static IntegrityFormula packageNameEquals(@NonNull String installerName) { in packageNameEquals() argument
108 return new StringAtomicFormula(AtomicFormula.INSTALLER_NAME, installerName); in packageNameEquals()
/frameworks/base/services/tests/servicestests/src/com/android/server/integrity/
DIntegrityFileManagerTest.java160 String installerName = "installer"; in testGetRules_indexedForManyRules() local
174 rules.add(getInstallerCertificateRule(String.format("%s%04d", installerName, i))); in testGetRules_indexedForManyRules()
/frameworks/base/services/tests/servicestests/src/com/android/server/integrity/serializer/
DRuleBinarySerializerTest.java822 private Rule getNonIndexedRuleWithInstallerName(String installerName) { in getNonIndexedRuleWithInstallerName() argument
829 installerName, in getNonIndexedRuleWithInstallerName()
839 String installerName) { in getSerializedCompoundRuleWithInstallerNameAndInstallerCert() argument
847 + getBits(installerName.length(), VALUE_SIZE_BITS) in getSerializedCompoundRuleWithInstallerNameAndInstallerCert()
848 + getValueBits(installerName) in getSerializedCompoundRuleWithInstallerNameAndInstallerCert()
/frameworks/base/services/core/java/com/android/server/
DSystemConfig.java1568 final String installerName = parser.getAttributeValue(null /* namespace */, in readPermissionsFromXml() local
1573 } else if (TextUtils.isEmpty(installerName)) { in readPermissionsFromXml()
1577 mUpdateOwnersForSystemApps.put(packageName, installerName); in readPermissionsFromXml()