/frameworks/base/services/tests/servicestests/src/com/android/server/backup/utils/ |
D | AppBackupUtilsTest.java | 70 ApplicationInfo applicationInfo = new ApplicationInfo(); in appIsEligibleForBackup_backupNotAllowed_returnsFalse() local 71 applicationInfo.flags = 0; in appIsEligibleForBackup_backupNotAllowed_returnsFalse() 72 applicationInfo.uid = Process.FIRST_APPLICATION_UID; in appIsEligibleForBackup_backupNotAllowed_returnsFalse() 73 applicationInfo.backupAgentName = CUSTOM_BACKUP_AGENT_NAME; in appIsEligibleForBackup_backupNotAllowed_returnsFalse() 74 applicationInfo.packageName = TEST_PACKAGE_NAME; in appIsEligibleForBackup_backupNotAllowed_returnsFalse() 76 boolean isEligible = AppBackupUtils.appIsEligibleForBackup(applicationInfo, in appIsEligibleForBackup_backupNotAllowed_returnsFalse() 85 ApplicationInfo applicationInfo = new ApplicationInfo(); in appIsEligibleForBackup_systemAppWithoutCustomBackupAgent_returnsFalse() local 86 applicationInfo.flags |= ApplicationInfo.FLAG_ALLOW_BACKUP; in appIsEligibleForBackup_systemAppWithoutCustomBackupAgent_returnsFalse() 87 applicationInfo.uid = Process.SYSTEM_UID; in appIsEligibleForBackup_systemAppWithoutCustomBackupAgent_returnsFalse() 88 applicationInfo.backupAgentName = null; in appIsEligibleForBackup_systemAppWithoutCustomBackupAgent_returnsFalse() [all …]
|
D | TarBackupReaderTest.java | 320 packageInfo.applicationInfo = new ApplicationInfo(); in chooseRestorePolicy_doesNotAllowsBackup_returnsIgnore() 321 packageInfo.applicationInfo.flags = ~ApplicationInfo.FLAG_ALLOW_BACKUP; in chooseRestorePolicy_doesNotAllowsBackup_returnsIgnore() 345 packageInfo.applicationInfo = new ApplicationInfo(); in chooseRestorePolicy_systemAppWithNoAgent_returnsIgnore() 346 packageInfo.applicationInfo.flags |= ApplicationInfo.FLAG_ALLOW_BACKUP; in chooseRestorePolicy_systemAppWithNoAgent_returnsIgnore() 347 packageInfo.applicationInfo.uid = Process.SYSTEM_UID; in chooseRestorePolicy_systemAppWithNoAgent_returnsIgnore() 348 packageInfo.applicationInfo.backupAgentName = null; in chooseRestorePolicy_systemAppWithNoAgent_returnsIgnore() 374 packageInfo.applicationInfo = new ApplicationInfo(); in chooseRestorePolicy_nonSystemAppSignaturesDoNotMatch_returnsIgnore() 375 packageInfo.applicationInfo.flags |= ApplicationInfo.FLAG_ALLOW_BACKUP; in chooseRestorePolicy_nonSystemAppSignaturesDoNotMatch_returnsIgnore() 376 packageInfo.applicationInfo.uid = Process.FIRST_APPLICATION_UID; in chooseRestorePolicy_nonSystemAppSignaturesDoNotMatch_returnsIgnore() 377 packageInfo.applicationInfo.backupAgentName = null; in chooseRestorePolicy_nonSystemAppSignaturesDoNotMatch_returnsIgnore() [all …]
|
/frameworks/base/core/java/android/content/pm/ |
D | ComponentInfo.java | 39 public ApplicationInfo applicationInfo; field in ComponentInfo 91 applicationInfo = orig.applicationInfo; in ComponentInfo() 105 ApplicationInfo ai = applicationInfo; in loadUnsafeLabel() 129 return enabled && applicationInfo.enabled; in isEnabled() 140 return icon != 0 ? icon : applicationInfo.icon; in getIconResource() 151 return logo != 0 ? logo : applicationInfo.logo; in getLogoResource() 162 return banner != 0 ? banner : applicationInfo.banner; in getBannerResource() 192 if (applicationInfo != null) { in dumpBack() 194 applicationInfo.dump(pw, prefix + " ", dumpFlags); in dumpBack() 208 applicationInfo.writeToParcel(dest, parcelableFlags); in writeToParcel() [all …]
|
D | PackageInfo.java | 132 public ApplicationInfo applicationInfo; field in PackageInfo 450 if (applicationInfo != null) { in writeToParcel() 452 applicationInfo.writeToParcel(dest, parcelableFlags); in writeToParcel() 518 applicationInfo = ApplicationInfo.CREATOR.createFromParcel(source); in PackageInfo() 554 if (applicationInfo != null) { in PackageInfo() 555 propagateApplicationInfo(applicationInfo, activities); in PackageInfo() 556 propagateApplicationInfo(applicationInfo, receivers); in PackageInfo() 557 propagateApplicationInfo(applicationInfo, services); in PackageInfo() 558 propagateApplicationInfo(applicationInfo, providers); in PackageInfo() 565 ci.applicationInfo = appInfo; in propagateApplicationInfo()
|
D | LauncherActivityInfo.java | 112 = mPm.getResourcesForApplication(mActivityInfo.applicationInfo); in getIcon() 131 return mActivityInfo.applicationInfo.flags; in getApplicationFlags() 139 return mActivityInfo.applicationInfo; in getApplicationInfo()
|
D | PackageParser.java | 665 if (!checkUseInstalledOrHidden(flags, state, p.applicationInfo) || !p.isMatch(flags)) { in generatePackageInfo() 678 pi.applicationInfo = generateApplicationInfo(p, flags, state, userId); in generatePackageInfo() 682 if ((pi.applicationInfo.flags&ApplicationInfo.FLAG_SYSTEM) != 0 in generatePackageInfo() 683 || (pi.applicationInfo.flags&ApplicationInfo.FLAG_UPDATED_SYSTEM_APP) != 0) { in generatePackageInfo() 1258 pkg.applicationInfo.splitNames = pkg.splitNames; in parseClusterPackage() 1259 pkg.applicationInfo.splitDependencies = splitDependencies; in parseClusterPackage() 1260 pkg.applicationInfo.splitClassLoaderNames = new String[num]; in parseClusterPackage() 1522 if (pkg.applicationInfo.isStaticSharedLibrary()) { in collectCertificates() 1879 childPkg.applicationInfo.targetSdkVersion = parentPkg.applicationInfo.targetSdkVersion; in parseBaseApkChild() 1880 childPkg.applicationInfo.minSdkVersion = parentPkg.applicationInfo.minSdkVersion; in parseBaseApkChild() [all …]
|
/frameworks/base/core/java/android/app/ |
D | WallpaperInfo.java | 108 Resources res = pm.getResourcesForApplication(si.applicationInfo); in WallpaperInfo() 239 mService.serviceInfo.applicationInfo); in loadThumbnail() 248 ApplicationInfo applicationInfo = null; in loadAuthor() local 251 applicationInfo = mService.serviceInfo.applicationInfo; in loadAuthor() 253 return pm.getText(packageName, mAuthorResource, applicationInfo); in loadAuthor() 261 ApplicationInfo applicationInfo = null; in loadDescription() local 264 applicationInfo = mService.serviceInfo.applicationInfo; in loadDescription() 268 applicationInfo); in loadDescription() 273 mService.serviceInfo.applicationInfo); in loadDescription() 285 ApplicationInfo applicationInfo = null; in loadContextUri() local [all …]
|
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/users/ |
D | AppRestrictionsHelperTest.java | 193 packageInfo.applicationInfo = ri.activityInfo.applicationInfo; in addSystemAppsWithRequiredAccounts() 194 packageInfo.applicationInfo.flags |= ApplicationInfo.FLAG_INSTALLED; in addSystemAppsWithRequiredAccounts() 197 mInstalledAppInfos.add(packageInfo.applicationInfo); in addSystemAppsWithRequiredAccounts() 215 packageInfo.applicationInfo = ri.activityInfo.applicationInfo; in addInstalledApp() 216 packageInfo.applicationInfo.flags |= ApplicationInfo.FLAG_INSTALLED; in addInstalledApp() 217 mInstalledAppInfos.add(packageInfo.applicationInfo); in addInstalledApp() 223 ri.activityInfo.applicationInfo.flags |= ApplicationInfo.FLAG_SYSTEM; in createResolveInfoForSystemApp() 224 ri.serviceInfo.applicationInfo.flags |= ApplicationInfo.FLAG_SYSTEM; in createResolveInfoForSystemApp() 230 final ApplicationInfo applicationInfo = new ApplicationInfo(); in createResolveInfo() local 231 applicationInfo.packageName = packageName; in createResolveInfo() [all …]
|
/frameworks/base/media/java/android/media/tv/ |
D | TvContentRatingSystemInfo.java | 47 ApplicationInfo applicationInfo) { in createTvContentRatingSystemInfo() argument 50 .authority(applicationInfo.packageName) in createTvContentRatingSystemInfo() 53 return new TvContentRatingSystemInfo(uri, applicationInfo); in createTvContentRatingSystemInfo() 56 private TvContentRatingSystemInfo(Uri xmlUri, ApplicationInfo applicationInfo) { in TvContentRatingSystemInfo() argument 58 mApplicationInfo = applicationInfo; in TvContentRatingSystemInfo()
|
/frameworks/base/services/backup/java/com/android/server/backup/utils/ |
D | AppBackupUtils.java | 125 ApplicationInfo applicationInfo = packageInfo.applicationInfo; in appIsRunningAndEligibleForBackupWithTransport() local 126 if (!appIsEligibleForBackup(applicationInfo, userId) in appIsRunningAndEligibleForBackupWithTransport() 127 || appIsStopped(applicationInfo) in appIsRunningAndEligibleForBackupWithTransport() 128 || appIsDisabled(applicationInfo, userId)) { in appIsRunningAndEligibleForBackupWithTransport() 192 if (pkg.applicationInfo.backupAgentName != null) { in appGetsFullBackup() 194 return (pkg.applicationInfo.flags & ApplicationInfo.FLAG_FULL_BACKUP_ONLY) != 0; in appGetsFullBackup() 238 if ((target.applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) != 0) { in signaturesMatch()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/backup/ |
D | BackupUtilsTest.java | 81 packageInfo.applicationInfo = new ApplicationInfo(); in signaturesMatch_systemApplication_returnsTrue() 82 packageInfo.applicationInfo.flags |= ApplicationInfo.FLAG_SYSTEM; in signaturesMatch_systemApplication_returnsTrue() 103 packageInfo.applicationInfo = new ApplicationInfo(); in signaturesMatch_disallowsUnsignedApps_storedSignatureNull_returnsFalse() 122 packageInfo.applicationInfo = new ApplicationInfo(); in signaturesMatch_disallowsUnsignedApps_storedSignatureEmpty_returnsFalse() 139 packageInfo.applicationInfo = new ApplicationInfo(); in signaturesMatch_disallowsUnsignedApps_targetSignatureEmpty_returnsFalse() 156 packageInfo.applicationInfo = new ApplicationInfo(); in signaturesMatch_disallowsUnsignedApps_targetSignatureNull_returnsFalse() 172 packageInfo.applicationInfo = new ApplicationInfo(); in signaturesMatch_disallowsUnsignedApps_bothSignaturesNull_returnsFalse() 186 packageInfo.applicationInfo = new ApplicationInfo(); in signaturesMatch_disallowsUnsignedApps_bothSignaturesEmpty_returnsFalse() 205 packageInfo.applicationInfo = new ApplicationInfo(); in signaturesMatch_equalSignatures_returnsTrue() 227 packageInfo.applicationInfo = new ApplicationInfo(); in signaturesMatch_extraSignatureInTarget_returnsTrue() [all …]
|
/frameworks/base/core/java/android/webkit/ |
D | UserPackage.java | 70 return mPackageInfo.applicationInfo.enabled; in isEnabledPackage() 78 return (((mPackageInfo.applicationInfo.flags & ApplicationInfo.FLAG_INSTALLED) != 0) in isInstalledPackage() 79 && ((mPackageInfo.applicationInfo.privateFlags in isInstalledPackage() 88 return packageInfo.applicationInfo.targetSdkVersion >= MINIMUM_SUPPORTED_SDK; in hasCorrectTargetSdkVersion()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | RootActivityContainerTests.java | 550 info.applicationInfo = new ApplicationInfo(); in testCanStartHomeWhenInstrumented() 619 info.applicationInfo = new ApplicationInfo(); in testStartResolverActivityForHome() 620 info.applicationInfo.packageName = "android"; in testStartResolverActivityForHome() 681 aInfoSecondary.applicationInfo = new ApplicationInfo(); in testResolveSecondaryHomeActivityForced() 682 aInfoSecondary.applicationInfo.packageName = secondaryComp.getPackageName(); in testResolveSecondaryHomeActivityForced() 688 aInfoDefault.applicationInfo = new ApplicationInfo(); in testResolveSecondaryHomeActivityForced() 689 aInfoDefault.applicationInfo.packageName = "fakeHomePackage"; in testResolveSecondaryHomeActivityForced() 698 resolveInfo1.activityInfo.applicationInfo = aInfoDefault.applicationInfo; in testResolveSecondaryHomeActivityForced() 706 resolveInfo2.activityInfo.applicationInfo = aInfoSecondary.applicationInfo; in testResolveSecondaryHomeActivityForced() 718 resolvedInfo.first.applicationInfo.packageName); in testResolveSecondaryHomeActivityForced() [all …]
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | LaunchWarningWindow.java | 46 icon.setImageDrawable(next.info.applicationInfo.loadIcon(context.getPackageManager())); in LaunchWarningWindow() 49 next.info.applicationInfo.loadLabel(context.getPackageManager()).toString())); in LaunchWarningWindow() 51 icon.setImageDrawable(cur.info.applicationInfo.loadIcon(context.getPackageManager())); in LaunchWarningWindow() 54 cur.info.applicationInfo.loadLabel(context.getPackageManager()).toString())); in LaunchWarningWindow()
|
/frameworks/base/core/tests/coretests/src/android/view/textclassifier/ |
D | FakeContextBuilder.java | 116 ApplicationInfo applicationInfo = invocation.getArgument(0); in build() local 117 return mAppLabels.get(applicationInfo.packageName); in build() 141 info.activityInfo.applicationInfo = new ApplicationInfo(); in getResolveInfo() 142 info.activityInfo.applicationInfo.packageName = component.getPackageName(); in getResolveInfo() 143 info.activityInfo.applicationInfo.icon = 0; in getResolveInfo()
|
/frameworks/base/core/java/com/android/internal/app/ |
D | HarmfulAppWarningActivity.java | 61 final ApplicationInfo applicationInfo; in onCreate() local 63 applicationInfo = getPackageManager().getApplicationInfo(mPackageName, 0 /*flags*/); in onCreate() 72 p.mView = createView(applicationInfo); in onCreate() 82 private View createView(ApplicationInfo applicationInfo) { in createView() argument 86 .setText(applicationInfo.loadSafeLabel(getPackageManager(), in createView()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | PackageDexOptimizer.java | 116 if ((pkg.applicationInfo.flags & ApplicationInfo.FLAG_HAS_CODE) == 0) { in canOptimizePackage() 133 if (pkg.applicationInfo.uid == -1) { in performDexOpt() 141 final long acquireTime = acquireWakeLockLI(pkg.applicationInfo.uid); in performDexOpt() 161 targetInstructionSets : getAppDexInstructionSets(pkg.applicationInfo); in performDexOptLI() 165 int sharedGid = UserHandle.getSharedAppGid(pkg.applicationInfo.uid); in performDexOptLI() 167 Slog.wtf(TAG, "Well this is awkward; package " + pkg.applicationInfo.name + " had UID " in performDexOptLI() 168 + pkg.applicationInfo.uid, new Throwable()); in performDexOptLI() 176 pathsWithCode[0] = (pkg.applicationInfo.flags & ApplicationInfo.FLAG_HAS_CODE) != 0; in performDexOptLI() 181 pkg.applicationInfo, sharedLibraries, pathsWithCode); in performDexOptLI() 185 String[] splitCodePaths = pkg.applicationInfo.getSplitCodePaths(); in performDexOptLI() [all …]
|
D | SharedUserSetting.java | 101 seInfoTargetSdkVersion = packageSetting.pkg.applicationInfo.targetSdkVersion; in addPackage() 140 if (pkg.applicationInfo.targetSdkVersion < seInfoTargetSdkVersion) { in fixSeInfoLocked() 141 seInfoTargetSdkVersion = pkg.applicationInfo.targetSdkVersion; in fixSeInfoLocked() 146 pkg.applicationInfo.seInfo = SELinuxMMAC.getSeInfo(pkg, isPrivileged, in fixSeInfoLocked() 147 pkg.applicationInfo.targetSandboxVersion, seInfoTargetSdkVersion); in fixSeInfoLocked()
|
/frameworks/base/services/core/java/com/android/server/om/ |
D | IdmapManager.java | 87 final int sharedGid = UserHandle.getSharedAppGid(targetPackage.applicationInfo.uid); in createIdmap() 88 final String targetPath = targetPackage.applicationInfo.getBaseCodePath(); in createIdmap() 89 final String overlayPath = overlayPackage.applicationInfo.getBaseCodePath(); in createIdmap() 132 return new File(getIdmapPath(overlayPackage.applicationInfo.getBaseCodePath(), userId)) in idmapExists() 188 final ApplicationInfo ai = overlayPackage.applicationInfo; in enforceOverlayable() 211 final ApplicationInfo ai = overlayPackage.applicationInfo; in calculateFulfilledPolicies()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/dex/ |
D | DexManagerTests.java | 309 mBarUser0.mPackageInfo.applicationInfo.sourceDir, in testNotifyPackageUpdated() 310 mBarUser0.mPackageInfo.applicationInfo.splitSourceDirs); in testNotifyPackageUpdated() 331 mBarUser0.mPackageInfo.applicationInfo.sourceDir, in testNotifyPackageUpdatedCodeLocations() 332 mBarUser0.mPackageInfo.applicationInfo.splitSourceDirs); in testNotifyPackageUpdatedCodeLocations() 559 mDexManager.notifyDexLoadInternal(testData.mPackageInfo.applicationInfo, classLoaders, in notifyDexLoad() 620 pi.applicationInfo = getMockApplicationInfo(packageName, userId); in getMockPackageInfo() 659 paths.add(mPackageInfo.applicationInfo.dataDir + "/secondary1.dex"); in getSecondaryDexPaths() 660 paths.add(mPackageInfo.applicationInfo.dataDir + "/secondary2.dex"); in getSecondaryDexPaths() 661 paths.add(mPackageInfo.applicationInfo.dataDir + "/secondary3.dex"); in getSecondaryDexPaths() 667 paths.add(mPackageInfo.applicationInfo.dataDir + "/secondary4.dex"); in getSecondaryDexPathsForOwnUse() [all …]
|
/frameworks/base/core/tests/coretests/src/android/content/pm/ |
D | PackageBuilder.java | 46 pkg.applicationInfo.targetSdkVersion = mTargetSdkVersion; in build() 47 pkg.applicationInfo.flags = mFlags; in build() 86 pkg.applicationInfo.targetSdkVersion); in check()
|
D | PackageParserTest.java | 512 assertEquals("com.google.android.tzdata", pi.applicationInfo.packageName); in testApexPackageInfoGeneration() 513 assertTrue(pi.applicationInfo.enabled); in testApexPackageInfoGeneration() 514 assertEquals(28, pi.applicationInfo.targetSdkVersion); in testApexPackageInfoGeneration() 515 assertEquals(191000070, pi.applicationInfo.longVersionCode); in testApexPackageInfoGeneration() 516 assertNotNull(pi.applicationInfo.metaData); in testApexPackageInfoGeneration() 517 assertEquals(apexFile.getPath(), pi.applicationInfo.sourceDir); in testApexPackageInfoGeneration() 519 pi.applicationInfo.metaData.toString()); in testApexPackageInfoGeneration() 526 assertTrue((pi.applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) == 0); in testApexPackageInfoGeneration() 527 assertTrue((pi.applicationInfo.flags & ApplicationInfo.FLAG_INSTALLED) != 0); in testApexPackageInfoGeneration()
|
D | AppsQueryHelperTests.java | 143 p1.applicationInfo = new ApplicationInfo(); in getPackagesHoldingPermission() 144 p1.applicationInfo.flags |= ApplicationInfo.FLAG_SYSTEM; in getPackagesHoldingPermission() 154 sysApp1.serviceInfo.applicationInfo = new ApplicationInfo(); in queryIntentServicesAsUser() 155 sysApp1.serviceInfo.applicationInfo.flags |= ApplicationInfo.FLAG_SYSTEM; in queryIntentServicesAsUser() 160 app4.serviceInfo.applicationInfo = new ApplicationInfo(); in queryIntentServicesAsUser()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/am/ |
D | BroadcastRecordTest.java | 109 final ApplicationInfo appInfo = resolveInfo.activityInfo.applicationInfo; in verifyRemaining() 114 expectedReceiver.activityInfo.applicationInfo; in verifyRemaining() 138 activityInfo.applicationInfo = appInfo; in createResolveInfo() 166 && !packageName.equals(receiver.activityInfo.applicationInfo.packageName)) in excludeReceivers() 168 .getUserId(receiver.activityInfo.applicationInfo.uid))) { in excludeReceivers()
|
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/inputmethod/ |
D | InputMethodPreferenceTest.java | 137 resolveInfo.serviceInfo.applicationInfo = new ApplicationInfo(); in createInputMethodInfo() 138 resolveInfo.serviceInfo.applicationInfo.enabled = true; in createInputMethodInfo() 140 resolveInfo.serviceInfo.applicationInfo.flags |= ApplicationInfo.FLAG_SYSTEM; in createInputMethodInfo() 142 resolveInfo.serviceInfo.applicationInfo.flags &= ~ApplicationInfo.FLAG_SYSTEM; in createInputMethodInfo()
|