/frameworks/base/services/core/java/com/android/server/pm/ |
D | SharedUserSetting.java | 177 boolean removePackage(PackageSetting packageSetting) { 178 if (!mPackages.remove(packageSetting)) { 182 if ((this.getFlags() & packageSetting.getFlags()) != 0) { 190 if ((this.getPrivateFlags() & packageSetting.getPrivateFlags()) != 0) { 204 void addPackage(PackageSetting packageSetting) { 207 if ((mPackages.size() == 0) && (packageSetting.getPkg() != null)) { 208 seInfoTargetSdkVersion = packageSetting.getPkg().getTargetSdkVersion(); 210 if (mPackages.add(packageSetting)) { 211 setFlags(this.getFlags() | packageSetting.getFlags()); 212 setPrivateFlags(this.getPrivateFlags() | packageSetting.getPrivateFlags()); [all …]
|
D | Settings.java | 4058 PackageSetting packageSetting = null; 4196 packageSetting = addPackageLPw(name.intern(), realName, new File(codePathStr), 4200 + appId + " pkg=" + packageSetting); 4201 if (packageSetting == null) { 4206 packageSetting.setLegacyNativeLibraryPath(legacyNativeLibraryPathStr); 4207 packageSetting.setPrimaryCpuAbi(primaryCpuAbiString); 4208 packageSetting.setSecondaryCpuAbi(secondaryCpuAbiString); 4209 packageSetting.setCpuAbiOverride(cpuAbiOverrideString); 4210 packageSetting.setLongVersionCode(versionCode); 4211 packageSetting.setLastModifiedTime(timeStamp); [all …]
|
D | InstallPackageHelper.java | 817 PackageSetting packageSetting = null; in restoreAndPostInstall() local 831 packageSetting = mPm.mSettings.getPackageLPr(packageName); in restoreAndPostInstall() 832 if (packageSetting != null && packageSetting.isPendingRestore()) { in restoreAndPostInstall() 870 packageSetting != null && packageSetting.isPendingRestore(); in restoreAndPostInstall() 886 if (packageSetting != null) { in restoreAndPostInstall() 888 packageSetting.setPendingRestore(false); in restoreAndPostInstall()
|
D | PackageArchiver.java | 1294 PackageSetting packageSetting = getPackageSettingLocked(packageName, userId); in storeArchiveState() local 1295 packageSetting in storeArchiveState()
|
D | PackageManagerService.java | 3998 final PackageSetting packageSetting = pkgSettings.get(packageName); 4001 UserHandle.getUid(userId, packageSetting.getAppId()), 4004 : packageSetting.getEnabled(userId), callingUid); 4005 if (!setEnabledSettingInternalLocked(computer, packageSetting, setting, userId,
|
D | ComputerEngine.java | 5638 final PackageStateInternal packageSetting = mSettings.getPackage(packageName); in getSharedUserPackagesForPackage() local 5639 if (packageSetting == null || mSettings.getSharedUserFromPackageName(packageName) == null) { in getSharedUserPackagesForPackage()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | PackageSettingBuilder.java | 160 final PackageSetting packageSetting = new PackageSetting(mName, mRealName, in build() local 175 packageSetting.setInstallSource(mInstallSource); in build() 178 packageSetting.setUserState(mUserStates.keyAt(i), mUserStates.valueAt(i)); in build() 180 return packageSetting; in build()
|
/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/ |
D | PackageManagerSettingsTests.java | 1013 PackageSetting packageSetting = createPackageSetting(PACKAGE_NAME_1); in testWriteReadPendingRestore() local 1014 packageSetting.setAppId(Process.FIRST_APPLICATION_UID); in testWriteReadPendingRestore() 1015 packageSetting.setPkg(PackageImpl.forTesting(PACKAGE_NAME_1).hideAsParsed() in testWriteReadPendingRestore() 1016 .setUid(packageSetting.getAppId()) in testWriteReadPendingRestore() 1019 packageSetting.setPendingRestore(true); in testWriteReadPendingRestore() 1020 settings.mPackages.put(PACKAGE_NAME_1, packageSetting); in testWriteReadPendingRestore() 1032 PackageSetting packageSetting = createPackageSetting(PACKAGE_NAME_1); in testWriteReadArchiveState() local 1033 packageSetting.setAppId(Process.FIRST_APPLICATION_UID); in testWriteReadArchiveState() 1034 packageSetting.setPkg(PackageImpl.forTesting(PACKAGE_NAME_1).hideAsParsed() in testWriteReadArchiveState() 1035 .setUid(packageSetting.getAppId()) in testWriteReadArchiveState() [all …]
|
D | PackageUserStateTest.java | 341 PackageSetting packageSetting = Mockito.mock(PackageSetting.class); in testPackageUseReasons() local 342 final PackageStateUnserialized testState1 = new PackageStateUnserialized(packageSetting); in testPackageUseReasons() 346 final PackageStateUnserialized testState2 = new PackageStateUnserialized(packageSetting); in testPackageUseReasons() 351 final PackageStateUnserialized testState3 = new PackageStateUnserialized(packageSetting); in testPackageUseReasons() 355 final PackageStateUnserialized testState4 = new PackageStateUnserialized(packageSetting); in testPackageUseReasons() 359 final PackageStateUnserialized testState5 = new PackageStateUnserialized(packageSetting); in testPackageUseReasons() 365 final PackageStateUnserialized testState6 = new PackageStateUnserialized(packageSetting); in testPackageUseReasons()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/ |
D | MockSystem.kt | 401 val packageSetting = existingSettingBuilderRef[0]?.let { withExistingSetting(it) }!!.build() in <lambda>() constant 402 addPreExistingSetting(packageSetting.name, packageSetting) 409 fun addPreExistingSetting(packageName: String, packageSetting: PackageSetting) { in addPreExistingSetting() 410 mPreExistingSettings[packageName] = packageSetting in addPreExistingSetting() 431 val packageSetting = settingBuilder.build() constant 432 stageSettingInsert(packageSetting.name, packageSetting)
|
D | SharedLibrariesImplTest.kt | 328 val packageSetting = mMockSystem.system() in <lambda>() constant 333 val scanResult = ScanResult(scanRequest, packageSetting, null, in <lambda>()
|
/frameworks/base/services/core/java/com/android/server/pm/pkg/ |
D | PackageStateUnserialized.java | 75 public PackageStateUnserialized(@NonNull PackageSetting packageSetting) { in PackageStateUnserialized() argument 76 mPackageSetting = packageSetting; in PackageStateUnserialized()
|
/frameworks/base/services/core/java/com/android/server/pm/permission/ |
D | PermissionManagerServiceImpl.java | 3256 @NonNull PackageStateInternal packageSetting, @NonNull Permission permission) { 3264 if (!(packageSetting.isSystem() && packageSetting.isPrivileged())) { 3274 final Boolean allowlistState = getPrivilegedPermissionAllowlistState(packageSetting, 3280 if (packageSetting.isUpdatedSystemApp()) { 3293 final boolean isInUpdatedApex = packageSetting.isApkInUpdatedApex();
|