/frameworks/base/services/tests/servicestests/src/com/android/server/backup/utils/ |
D | AppBackupUtilsTest.java | 48 ApplicationInfo applicationInfo = new ApplicationInfo(); in appIsEligibleForBackup_backupNotAllowed_returnsFalse() local 49 applicationInfo.flags = 0; in appIsEligibleForBackup_backupNotAllowed_returnsFalse() 50 applicationInfo.uid = Process.FIRST_APPLICATION_UID; in appIsEligibleForBackup_backupNotAllowed_returnsFalse() 51 applicationInfo.backupAgentName = CUSTOM_BACKUP_AGENT_NAME; in appIsEligibleForBackup_backupNotAllowed_returnsFalse() 52 applicationInfo.packageName = TEST_PACKAGE_NAME; in appIsEligibleForBackup_backupNotAllowed_returnsFalse() 54 boolean isEligible = AppBackupUtils.appIsEligibleForBackup(applicationInfo); in appIsEligibleForBackup_backupNotAllowed_returnsFalse() 62 ApplicationInfo applicationInfo = new ApplicationInfo(); in appIsEligibleForBackup_systemAppWithoutCustomBackupAgent_returnsFalse() local 63 applicationInfo.flags |= ApplicationInfo.FLAG_ALLOW_BACKUP; in appIsEligibleForBackup_systemAppWithoutCustomBackupAgent_returnsFalse() 64 applicationInfo.uid = Process.SYSTEM_UID; in appIsEligibleForBackup_systemAppWithoutCustomBackupAgent_returnsFalse() 65 applicationInfo.backupAgentName = null; in appIsEligibleForBackup_systemAppWithoutCustomBackupAgent_returnsFalse() [all …]
|
D | TarBackupReaderTest.java | 306 packageInfo.applicationInfo = new ApplicationInfo(); in chooseRestorePolicy_doesNotAllowsBackup_returnsIgnore() 307 packageInfo.applicationInfo.flags = ~ApplicationInfo.FLAG_ALLOW_BACKUP; in chooseRestorePolicy_doesNotAllowsBackup_returnsIgnore() 330 packageInfo.applicationInfo = new ApplicationInfo(); in chooseRestorePolicy_systemAppWithNoAgent_returnsIgnore() 331 packageInfo.applicationInfo.flags |= ApplicationInfo.FLAG_ALLOW_BACKUP; in chooseRestorePolicy_systemAppWithNoAgent_returnsIgnore() 332 packageInfo.applicationInfo.uid = Process.SYSTEM_UID; in chooseRestorePolicy_systemAppWithNoAgent_returnsIgnore() 333 packageInfo.applicationInfo.backupAgentName = null; in chooseRestorePolicy_systemAppWithNoAgent_returnsIgnore() 358 packageInfo.applicationInfo = new ApplicationInfo(); in chooseRestorePolicy_nonSystemAppSignaturesDoNotMatch_returnsIgnore() 359 packageInfo.applicationInfo.flags |= ApplicationInfo.FLAG_ALLOW_BACKUP; in chooseRestorePolicy_nonSystemAppSignaturesDoNotMatch_returnsIgnore() 360 packageInfo.applicationInfo.uid = Process.FIRST_APPLICATION_UID; in chooseRestorePolicy_nonSystemAppSignaturesDoNotMatch_returnsIgnore() 361 packageInfo.applicationInfo.backupAgentName = null; in chooseRestorePolicy_nonSystemAppSignaturesDoNotMatch_returnsIgnore() [all …]
|
/frameworks/base/core/java/android/content/pm/ |
D | ComponentInfo.java | 38 public ApplicationInfo applicationInfo; field in ComponentInfo 90 applicationInfo = orig.applicationInfo; in ComponentInfo() 103 ApplicationInfo ai = applicationInfo; in loadLabel() 127 return enabled && applicationInfo.enabled; in isEnabled() 138 return icon != 0 ? icon : applicationInfo.icon; in getIconResource() 149 return logo != 0 ? logo : applicationInfo.logo; in getLogoResource() 160 return banner != 0 ? banner : applicationInfo.banner; in getBannerResource() 189 if (applicationInfo != null) { in dumpBack() 191 applicationInfo.dump(pw, prefix + " ", dumpFlags); in dumpBack() 205 applicationInfo.writeToParcel(dest, parcelableFlags); in writeToParcel() [all …]
|
D | PackageInfo.java | 86 public ApplicationInfo applicationInfo; field in PackageInfo 335 if (applicationInfo != null) { in writeToParcel() 337 applicationInfo.writeToParcel(dest, parcelableFlags); in writeToParcel() 391 applicationInfo = ApplicationInfo.CREATOR.createFromParcel(source); in PackageInfo() 420 if (applicationInfo != null) { in PackageInfo() 421 propagateApplicationInfo(applicationInfo, activities); in PackageInfo() 422 propagateApplicationInfo(applicationInfo, receivers); in PackageInfo() 423 propagateApplicationInfo(applicationInfo, services); in PackageInfo() 424 propagateApplicationInfo(applicationInfo, providers); in PackageInfo() 431 ci.applicationInfo = appInfo; in propagateApplicationInfo()
|
D | PackageParser.java | 657 if (!checkUseInstalledOrHidden(flags, state, p.applicationInfo) || !p.isMatch(flags)) { in generatePackageInfo() 669 pi.applicationInfo = generateApplicationInfo(p, flags, state, userId); in generatePackageInfo() 673 if ((pi.applicationInfo.flags&ApplicationInfo.FLAG_SYSTEM) != 0 in generatePackageInfo() 674 || (pi.applicationInfo.flags&ApplicationInfo.FLAG_UPDATED_SYSTEM_APP) != 0) { in generatePackageInfo() 1243 pkg.applicationInfo.splitNames = pkg.splitNames; in parseClusterPackage() 1244 pkg.applicationInfo.splitDependencies = splitDependencies; in parseClusterPackage() 1245 pkg.applicationInfo.splitClassLoaderNames = new String[num]; in parseClusterPackage() 1571 if (pkg.applicationInfo.isStaticSharedLibrary()) { in collectCertificates() 1995 childPkg.applicationInfo.targetSdkVersion = parentPkg.applicationInfo.targetSdkVersion; in parseBaseApkChild() 1996 childPkg.applicationInfo.minSdkVersion = parentPkg.applicationInfo.minSdkVersion; in parseBaseApkChild() [all …]
|
D | LauncherActivityInfo.java | 110 = mPm.getResourcesForApplication(mActivityInfo.applicationInfo); in getIcon() 129 return mActivityInfo.applicationInfo.flags; in getApplicationFlags() 137 return mActivityInfo.applicationInfo; in getApplicationInfo()
|
/frameworks/base/core/java/android/app/ |
D | WallpaperInfo.java | 109 Resources res = pm.getResourcesForApplication(si.applicationInfo); in WallpaperInfo() 238 mService.serviceInfo.applicationInfo); in loadThumbnail() 247 ApplicationInfo applicationInfo = null; in loadAuthor() local 250 applicationInfo = mService.serviceInfo.applicationInfo; in loadAuthor() 252 return pm.getText(packageName, mAuthorResource, applicationInfo); in loadAuthor() 260 ApplicationInfo applicationInfo = null; in loadDescription() local 263 applicationInfo = mService.serviceInfo.applicationInfo; in loadDescription() 267 applicationInfo); in loadDescription() 272 mService.serviceInfo.applicationInfo); in loadDescription() 284 ApplicationInfo applicationInfo = null; in loadContextUri() local [all …]
|
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/users/ |
D | AppRestrictionsHelperTest.java | 192 packageInfo.applicationInfo = ri.activityInfo.applicationInfo; in addSystemAppsWithRequiredAccounts() 193 packageInfo.applicationInfo.flags |= ApplicationInfo.FLAG_INSTALLED; in addSystemAppsWithRequiredAccounts() 196 mInstalledAppInfos.add(packageInfo.applicationInfo); in addSystemAppsWithRequiredAccounts() 214 packageInfo.applicationInfo = ri.activityInfo.applicationInfo; in addInstalledApp() 215 packageInfo.applicationInfo.flags |= ApplicationInfo.FLAG_INSTALLED; in addInstalledApp() 216 mInstalledAppInfos.add(packageInfo.applicationInfo); in addInstalledApp() 222 ri.activityInfo.applicationInfo.flags |= ApplicationInfo.FLAG_SYSTEM; in createResolveInfoForSystemApp() 223 ri.serviceInfo.applicationInfo.flags |= ApplicationInfo.FLAG_SYSTEM; in createResolveInfoForSystemApp() 229 final ApplicationInfo applicationInfo = new ApplicationInfo(); in createResolveInfo() local 230 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/tests/servicestests/src/com/android/server/pm/dex/ |
D | DexManagerTests.java | 268 mBarUser0.mPackageInfo.applicationInfo.sourceDir, in testNotifyPackageUpdated() 269 mBarUser0.mPackageInfo.applicationInfo.splitSourceDirs); in testNotifyPackageUpdated() 289 mBarUser0.mPackageInfo.applicationInfo.sourceDir, in testNotifyPackageUpdatedCodeLocations() 290 mBarUser0.mPackageInfo.applicationInfo.splitSourceDirs); in testNotifyPackageUpdatedCodeLocations() 490 mDexManager.notifyDexLoad(testData.mPackageInfo.applicationInfo, classLoader, classPaths, in notifyDexLoad() 506 pi.applicationInfo = getMockApplicationInfo(packageName, userId); in getMockPackageInfo() 543 paths.add(mPackageInfo.applicationInfo.dataDir + "/secondary1.dex"); in getSecondaryDexPaths() 544 paths.add(mPackageInfo.applicationInfo.dataDir + "/secondary2.dex"); in getSecondaryDexPaths() 545 paths.add(mPackageInfo.applicationInfo.dataDir + "/secondary3.dex"); in getSecondaryDexPaths() 551 paths.add(mPackageInfo.applicationInfo.dataDir + "/secondary4.dex"); in getSecondaryDexPathsForOwnUse() [all …]
|
/frameworks/base/services/core/java/com/android/server/om/ |
D | IdmapManager.java | 58 final int sharedGid = UserHandle.getSharedAppGid(targetPackage.applicationInfo.uid); in createIdmap() 59 final String targetPath = targetPackage.applicationInfo.getBaseCodePath(); in createIdmap() 60 final String overlayPath = overlayPackage.applicationInfo.getBaseCodePath(); in createIdmap() 92 return new File(getIdmapPath(overlayPackage.applicationInfo.getBaseCodePath())).isFile(); in idmapExists() 97 return isDangerous(getIdmapPath(overlayPackage.applicationInfo.getBaseCodePath())); in isDangerous()
|
/frameworks/base/core/java/android/webkit/ |
D | UserPackage.java | 68 return mPackageInfo.applicationInfo.enabled; in isEnabledPackage() 76 return (((mPackageInfo.applicationInfo.flags & ApplicationInfo.FLAG_INSTALLED) != 0) in isInstalledPackage() 77 && ((mPackageInfo.applicationInfo.privateFlags in isInstalledPackage() 86 return packageInfo.applicationInfo.targetSdkVersion >= Build.VERSION_CODES.O_MR1; in hasCorrectTargetSdkVersion()
|
/frameworks/base/services/core/java/com/android/server/am/ |
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()
|
D | BroadcastQueue.java | 302 mService.compatibilityInfoForPackageLocked(r.curReceiver.applicationInfo), in processCurBroadcastLocked() 447 || receiver.applicationInfo.uid != nextReceiver.applicationInfo.uid in finishReceiverLocked() 1054 info.activityInfo.applicationInfo.packageName, in processNextBroadcast() 1059 (info.activityInfo.applicationInfo.targetSdkVersion in processNextBroadcast() 1061 info.activityInfo.applicationInfo.targetSdkVersion in processNextBroadcast() 1066 r.callingPid, r.callingUid, info.activityInfo.applicationInfo.uid, in processNextBroadcast() 1074 + " is not exported from uid " + info.activityInfo.applicationInfo.uid in processNextBroadcast() 1101 if (!skip && info.activityInfo.applicationInfo.uid != Process.SYSTEM_UID && in processNextBroadcast() 1108 info.activityInfo.applicationInfo.packageName, in processNextBroadcast() 1110 .getUserId(info.activityInfo.applicationInfo.uid)); in processNextBroadcast() [all …]
|
D | ServiceRecord.java | 326 appInfo = sInfo.applicationInfo; in ServiceRecord() 327 packageName = sInfo.applicationInfo.packageName; in ServiceRecord() 342 if ((serviceInfo.applicationInfo.flags&ApplicationInfo.FLAG_PERSISTENT) == 0) { in getTracker() 344 serviceInfo.applicationInfo.uid, serviceInfo.applicationInfo.versionCode, in getTracker() 360 if ((serviceInfo.applicationInfo.flags&ApplicationInfo.FLAG_PERSISTENT) == 0) { in makeRestarting() 362 serviceInfo.applicationInfo.uid, serviceInfo.applicationInfo.versionCode, in makeRestarting() 526 final ApplicationInfo applicationInfo = in postNotification() 529 targetSdkVersion = applicationInfo.targetSdkVersion; in postNotification()
|
/frameworks/base/core/java/com/android/internal/app/ |
D | AssistUtils.java | 166 return new ComponentName(info.activityInfo.applicationInfo.packageName, in getAssistComponentForUser() 176 ApplicationInfo applicationInfo; in isPreinstalledAssistant() local 178 applicationInfo = context.getPackageManager().getApplicationInfo( in isPreinstalledAssistant() 183 return applicationInfo.isSystemApp() || applicationInfo.isUpdatedSystemApp(); in isPreinstalledAssistant()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | PackageDexOptimizer.java | 106 return (pkg.applicationInfo.flags & ApplicationInfo.FLAG_HAS_CODE) != 0; in canOptimizePackage() 123 final long acquireTime = acquireWakeLockLI(pkg.applicationInfo.uid); in performDexOpt() 142 targetInstructionSets : getAppDexInstructionSets(pkg.applicationInfo); in performDexOptLI() 145 final int sharedGid = UserHandle.getSharedAppGid(pkg.applicationInfo.uid); in performDexOptLI() 151 pathsWithCode[0] = (pkg.applicationInfo.flags & ApplicationInfo.FLAG_HAS_CODE) != 0; in performDexOptLI() 156 pkg.applicationInfo, sharedLibraries, pathsWithCode); in performDexOptLI() 160 String[] splitCodePaths = pkg.applicationInfo.getSplitCodePaths(); in performDexOptLI() 164 + " pkg.applicationInfo.getBaseCodePath=" + pkg.applicationInfo.getBaseCodePath() in performDexOptLI() 193 final String compilerFilter = getRealCompilerFilter(pkg.applicationInfo, in performDexOptLI() 241 + " pkg=" + pkg.applicationInfo.packageName + " isa=" + isa in dexOptPath() [all …]
|
D | SELinuxMMAC.java | 286 pkg.applicationInfo.seInfo = seInfo; in assignSeInfoValue() 292 if (pkg.applicationInfo.targetSandboxVersion == 2) in assignSeInfoValue() 293 pkg.applicationInfo.seInfo += SANDBOX_V2_STR; in assignSeInfoValue() 295 if (pkg.applicationInfo.isPrivilegedApp()) in assignSeInfoValue() 296 pkg.applicationInfo.seInfo += PRIVILEGED_APP_STR; in assignSeInfoValue() 298 pkg.applicationInfo.seInfo += TARGETSDKVERSION_STR + pkg.applicationInfo.targetSdkVersion; in assignSeInfoValue() 302 "seinfo=" + pkg.applicationInfo.seInfo); in assignSeInfoValue()
|
/frameworks/base/services/backup/java/com/android/server/backup/utils/ |
D | AppBackupUtils.java | 78 if (pkg.applicationInfo.backupAgentName != null) { in appGetsFullBackup() 80 return (pkg.applicationInfo.flags & ApplicationInfo.FLAG_FULL_BACKUP_ONLY) != 0; in appGetsFullBackup() 118 if ((target.applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) != 0) { in signaturesMatch()
|
D | RestoreUtils.java | 127 if ((pkg.applicationInfo.flags & ApplicationInfo.FLAG_ALLOW_BACKUP) in installApk() 139 if ((pkg.applicationInfo.uid < Process.FIRST_APPLICATION_UID) in installApk() 140 && (pkg.applicationInfo.backupAgentName == null)) { in installApk()
|
/frameworks/base/core/tests/coretests/src/android/content/pm/ |
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/multidex/library/src/android/support/multidex/ |
D | MultiDex.java | 106 ApplicationInfo applicationInfo = getApplicationInfo(context); in install() local 107 if (applicationInfo == null) { in install() 114 new File(applicationInfo.sourceDir), in install() 115 new File(applicationInfo.dataDir), in install() 159 ApplicationInfo applicationInfo = getApplicationInfo(targetContext); in installInstrumentation() local 160 if (applicationInfo == null) { in installInstrumentation() 168 File dataDir = new File(applicationInfo.dataDir); in installInstrumentation() 177 new File(applicationInfo.sourceDir), in installInstrumentation()
|
/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/media/utils/ |
D | ResourceHelper.java | 41 ApplicationInfo applicationInfo = in getThemeColor() local 43 packageContext.setTheme(applicationInfo.theme); in getThemeColor()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/am/ |
D | ActivityTestsBase.java | 98 aInfo.applicationInfo = new ApplicationInfo(); in createActivity() 99 aInfo.applicationInfo.packageName = component.getPackageName(); in createActivity() 100 aInfo.applicationInfo.uid = uid; in createActivity() 119 aInfo.applicationInfo = new ApplicationInfo(); in createTask() 120 aInfo.applicationInfo.packageName = component.getPackageName(); in createTask()
|
/frameworks/base/services/core/java/com/android/server/pm/dex/ |
D | DexManager.java | 283 ApplicationInfo ai = pi.applicationInfo; in cachePackageInfo() 337 codePaths.add(pi.applicationInfo.sourceDir); in loadInternal() 338 if (pi.applicationInfo.splitSourceDirs != null) { in loadInternal() 339 Collections.addAll(codePaths, pi.applicationInfo.splitSourceDirs); in loadInternal() 422 int result = pdo.dexOptSecondaryDexPath(pkg.applicationInfo, dexPath, in dexoptSecondaryDex() 469 ApplicationInfo info = pkg.applicationInfo; in reconcileSecondaryDexFiles() 489 pkg.applicationInfo.uid, isas, pkg.applicationInfo.volumeUuid, flags); in reconcileSecondaryDexFiles()
|