/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | ShortcutManagerTest5.java | 93 ApplicationInfo ai = mShortcutService.getApplicationInfo( in testGetApplicationInfo() local 95 assertEquals(mMyPackage, ai.packageName); in testGetApplicationInfo() 97 ai = mShortcutService.getApplicationInfo( in testGetApplicationInfo() 99 assertNull(ai); in testGetApplicationInfo() 104 ActivityInfo ai = mShortcutService.getActivityInfoWithMetadata( in testGetActivityInfoWithMetadata() local 106 assertNull(ai); in testGetActivityInfoWithMetadata() 109 ai = mShortcutService.getActivityInfoWithMetadata( in testGetActivityInfoWithMetadata() 111 assertNull(ai); in testGetActivityInfoWithMetadata() 114 ai = mShortcutService.getActivityInfoWithMetadata( in testGetActivityInfoWithMetadata() 116 assertEquals(mMyPackage, ai.packageName); in testGetActivityInfoWithMetadata() [all …]
|
/frameworks/base/core/java/android/content/pm/ |
D | InstrumentationInfo.java | 212 public void copyTo(ApplicationInfo ai) { in copyTo() argument 213 ai.packageName = packageName; in copyTo() 214 ai.sourceDir = sourceDir; in copyTo() 215 ai.publicSourceDir = publicSourceDir; in copyTo() 216 ai.splitNames = splitNames; in copyTo() 217 ai.splitSourceDirs = splitSourceDirs; in copyTo() 218 ai.splitPublicSourceDirs = splitPublicSourceDirs; in copyTo() 219 ai.splitDependencies = splitDependencies; in copyTo() 220 ai.dataDir = dataDir; in copyTo() 221 ai.deviceProtectedDataDir = deviceProtectedDataDir; in copyTo() [all …]
|
D | ComponentInfo.java | 105 ApplicationInfo ai = applicationInfo; in loadUnsafeLabel() local 108 label = pm.getText(packageName, labelRes, ai); in loadUnsafeLabel() 113 if (ai.nonLocalizedLabel != null) { in loadUnsafeLabel() 114 return ai.nonLocalizedLabel; in loadUnsafeLabel() 116 if (ai.labelRes != 0) { in loadUnsafeLabel() 117 label = pm.getText(packageName, ai.labelRes, ai); in loadUnsafeLabel()
|
D | PackageParser.java | 3472 final ApplicationInfo ai = owner.applicationInfo; in parseBaseApplication() local 3478 ai.iconRes = sa.getResourceId( in parseBaseApplication() 3480 ai.roundIconRes = sa.getResourceId( in parseBaseApplication() 3483 if (!parsePackageItemInfo(owner, ai, outError, in parseBaseApplication() 3496 if (ai.name != null) { in parseBaseApplication() 3497 ai.className = ai.name; in parseBaseApplication() 3504 ai.manageSpaceActivityName = buildClassName(pkgName, manageSpaceActivity, in parseBaseApplication() 3511 ai.flags |= ApplicationInfo.FLAG_ALLOW_BACKUP; in parseBaseApplication() 3520 ai.backupAgentName = buildClassName(pkgName, backupAgent, outError); in parseBaseApplication() 3522 Slog.v(TAG, "android:backupAgent = " + ai.backupAgentName in parseBaseApplication() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
D | DpmTestBase.java | 115 private void markPackageAsInstalled(String packageName, ApplicationInfo ai, int userId) in markPackageAsInstalled() argument 122 if (ai != null) { in markPackageAsInstalled() 123 pi.applicationInfo = ai; in markPackageAsInstalled() 131 doReturn(ai.uid).when(mServices.packageManager).getPackageUidAsUser( in markPackageAsInstalled() 137 final ApplicationInfo ai = new ApplicationInfo(); in markDelegatedCertInstallerAsInstalled() local 138 ai.enabledSetting = PackageManager.COMPONENT_ENABLED_STATE_ENABLED; in markDelegatedCertInstallerAsInstalled() 139 ai.flags = ApplicationInfo.FLAG_HAS_CODE; in markDelegatedCertInstallerAsInstalled() 141 ai.uid = UserHandle.getUid(DpmMockContext.CALLER_USER_HANDLE, in markDelegatedCertInstallerAsInstalled() 143 ai.packageName = delegateCertInstaller.getPackageName(); in markDelegatedCertInstallerAsInstalled() 144 ai.name = delegateCertInstaller.getClassName(); in markDelegatedCertInstallerAsInstalled() [all …]
|
/frameworks/base/core/tests/coretests/src/com/android/internal/app/ |
D | ResolverDataProvider.java | 62 ActivityInfo ai = new ActivityInfo(); in createActivityInfo() local 63 ai.name = "activity_name" + i; in createActivityInfo() 64 ai.packageName = "foo_bar" + i; in createActivityInfo() 65 ai.enabled = true; in createActivityInfo() 66 ai.exported = true; in createActivityInfo() 67 ai.permission = null; in createActivityInfo() 68 ai.applicationInfo = createApplicationInfo(); in createActivityInfo() 69 return ai; in createActivityInfo() 73 ApplicationInfo ai = new ApplicationInfo(); in createApplicationInfo() local 74 ai.name = "app_name"; in createApplicationInfo() [all …]
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | CompatModePackages.java | 174 ApplicationInfo ai = null; in handlePackageAddedLocked() local 176 ai = AppGlobals.getPackageManager().getApplicationInfo(packageName, 0, 0); in handlePackageAddedLocked() 179 if (ai == null) { in handlePackageAddedLocked() 182 CompatibilityInfo ci = compatibilityInfoForPackageLocked(ai); in handlePackageAddedLocked() 202 public CompatibilityInfo compatibilityInfoForPackageLocked(ApplicationInfo ai) { in compatibilityInfoForPackageLocked() argument 204 CompatibilityInfo ci = new CompatibilityInfo(ai, globalConfig.screenLayout, in compatibilityInfoForPackageLocked() 206 (getPackageFlags(ai.packageName)&COMPAT_FLAG_ENABLED) != 0); in compatibilityInfoForPackageLocked() 211 public int computeCompatModeLocked(ApplicationInfo ai) { in computeCompatModeLocked() argument 212 final boolean enabled = (getPackageFlags(ai.packageName)&COMPAT_FLAG_ENABLED) != 0; in computeCompatModeLocked() 214 final CompatibilityInfo info = new CompatibilityInfo(ai, globalConfig.screenLayout, in computeCompatModeLocked() [all …]
|
/frameworks/base/telephony/common/com/android/internal/telephony/ |
D | CarrierAppUtils.java | 130 private static boolean isUpdatedSystemApp(ApplicationInfo ai) { in isUpdatedSystemApp() argument 131 if ((ai.flags & ApplicationInfo.FLAG_UPDATED_SYSTEM_APP) != 0) { in isUpdatedSystemApp() 165 for (ApplicationInfo ai : candidates) { in disableCarrierAppsUntilPrivileged() 166 String packageName = ai.packageName; in disableCarrierAppsUntilPrivileged() 191 if (!isUpdatedSystemApp(ai) && enabledSetting in disableCarrierAppsUntilPrivileged() 195 || (ai.flags & ApplicationInfo.FLAG_INSTALLED) == 0) { in disableCarrierAppsUntilPrivileged() 239 enabledCarrierPackages.add(ai.packageName); in disableCarrierAppsUntilPrivileged() 243 if (!isUpdatedSystemApp(ai) && enabledSetting in disableCarrierAppsUntilPrivileged() 245 && (ai.flags & ApplicationInfo.FLAG_INSTALLED) != 0) { in disableCarrierAppsUntilPrivileged() 317 ApplicationInfo ai = candidates.get(i); in getDefaultCarrierApps() local [all …]
|
/frameworks/base/services/core/java/com/android/server/om/ |
D | IdmapManager.java | 149 final ApplicationInfo ai = overlayPackage.applicationInfo; in enforceOverlayable() local 150 if (ai.targetSdkVersion >= VERSION_CODES.Q) { in enforceOverlayable() 155 if (ai.isVendor()) { in enforceOverlayable() 164 return !(ai.isSystemApp() || ai.isSignedWithPlatformKey()); in enforceOverlayable() 172 final ApplicationInfo ai = overlayPackage.applicationInfo; in calculateFulfilledPolicies() local 182 if (ai.isVendor()) { in calculateFulfilledPolicies() 187 if (ai.isProduct()) { in calculateFulfilledPolicies() 192 if (ai.isOdm()) { in calculateFulfilledPolicies() 197 if (ai.isOem()) { in calculateFulfilledPolicies() 203 if (ai.isSystemApp() || ai.isSystemExt()) { in calculateFulfilledPolicies()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/dex/ |
D | DexoptUtilsTest.java | 60 ApplicationInfo ai = new ApplicationInfo(); in createMockApplicationInfo() local 62 ai.setBaseCodePath(codeDir + "/base.dex"); in createMockApplicationInfo() 63 ai.classLoaderName = baseClassLoader; in createMockApplicationInfo() 64 ai.privateFlags = ai.privateFlags | ApplicationInfo.PRIVATE_FLAG_ISOLATED_SPLIT_LOADING; in createMockApplicationInfo() 73 ai.setSplitCodePaths(new String[]{ in createMockApplicationInfo() 83 ai.splitClassLoaderNames = new String[]{ in createMockApplicationInfo() 93 ai.splitDependencies = new SparseArray<>(ai.splitClassLoaderNames.length + 1); in createMockApplicationInfo() 94 ai.splitDependencies.put(0, new int[] {-1}); // base has no dependency in createMockApplicationInfo() 95 ai.splitDependencies.put(1, new int[] {2}); // split 1 depends on 2 in createMockApplicationInfo() 96 ai.splitDependencies.put(2, new int[] {4}); // split 2 depends on 4 in createMockApplicationInfo() [all …]
|
/frameworks/base/core/tests/coretests/src/android/app/activity/ |
D | MetaDataTest.java | 103 ActivityInfo ai = mContext.getPackageManager().getActivityInfo( in testActivityWithData() local 106 checkMetaData(cn, ai); in testActivityWithData() 108 ai = mContext.getPackageManager().getActivityInfo(cn, 0); in testActivityWithData() 110 assertNull("Meta data returned when not requested", ai.metaData); in testActivityWithData() 116 ActivityInfo ai = mContext.getPackageManager().getReceiverInfo( in testReceiverWithData() local 119 checkMetaData(cn, ai); in testReceiverWithData() 121 ai = mContext.getPackageManager().getReceiverInfo(cn, 0); in testReceiverWithData() 123 assertNull("Meta data returned when not requested", ai.metaData); in testReceiverWithData()
|
/frameworks/base/services/core/java/com/android/server/search/ |
D | Searchables.java | 142 ActivityInfo ai = null; in getSearchableInfo() local 144 ai = mPm.getActivityInfo(activity, PackageManager.GET_META_DATA, mUserId); in getSearchableInfo() 152 Bundle md = ai.metaData; in getSearchableInfo() 158 md = ai.applicationInfo.metaData; in getSearchableInfo() 256 ActivityInfo ai = info.activityInfo; in updateSearchableList() local 258 if (newSearchablesMap.get(new ComponentName(ai.packageName, ai.name)) == null) { in updateSearchableList() 259 SearchableInfo searchable = SearchableInfo.getActivityMetaData(mContext, ai, in updateSearchableList() 391 ActivityInfo ai = providerList.get(0).activityInfo; in getDefaultGlobalSearchProvider() local 392 return new ComponentName(ai.packageName, ai.name); in getDefaultGlobalSearchProvider() 419 ActivityInfo ai = activities.get(0).activityInfo; in findWebSearchActivity() local [all …]
|
/frameworks/base/core/java/android/hardware/soundtrigger/ |
D | KeyphraseEnrollmentInfo.java | 118 ApplicationInfo ai = pm.getApplicationInfo( in KeyphraseEnrollmentInfo() local 120 if ((ai.privateFlags & ApplicationInfo.PRIVATE_FLAG_PRIVILEGED) == 0) { in KeyphraseEnrollmentInfo() 123 Slog.w(TAG, ai.packageName + "is not a privileged system app"); in KeyphraseEnrollmentInfo() 126 if (!Manifest.permission.MANAGE_VOICE_KEYPHRASES.equals(ai.permission)) { in KeyphraseEnrollmentInfo() 129 Slog.w(TAG, ai.packageName + " does not require MANAGE_VOICE_KEYPHRASES"); in KeyphraseEnrollmentInfo() 134 getKeyphraseMetadataFromApplicationInfo(pm, ai, parseErrors); in KeyphraseEnrollmentInfo() 136 mKeyphrasePackageMap.put(metadata, ai.packageName); in KeyphraseEnrollmentInfo() 162 ApplicationInfo ai, List<String> parseErrors) { in getKeyphraseMetadataFromApplicationInfo() argument 164 String packageName = ai.packageName; in getKeyphraseMetadataFromApplicationInfo() 167 parser = ai.loadXmlMetaData(pm, VOICE_KEYPHRASE_META_DATA); in getKeyphraseMetadataFromApplicationInfo() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/search/ |
D | SearchablesTest.java | 167 ActionKeyInfo ai = si.findActionKey(KeyEvent.KEYCODE_CALL); in checkSearchable() local 168 if (ai != null) { in checkSearchable() 169 assertEquals(ai.getKeyCode(), KeyEvent.KEYCODE_CALL); in checkSearchable() 171 boolean m1 = (ai.getQueryActionMsg() != null) && (ai.getQueryActionMsg().length() > 0); in checkSearchable() 172 … boolean m2 = (ai.getSuggestActionMsg() != null) && (ai.getSuggestActionMsg().length() > 0); in checkSearchable() 173 boolean m3 = (ai.getSuggestActionMsgColumn() != null) && in checkSearchable() 174 (ai.getSuggestActionMsgColumn().length() > 0); in checkSearchable()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | PreferredComponent.java | 214 ActivityInfo ai = ri.activityInfo; in sameSet() local 219 if (excludeSetupWizardPackage && ai.packageName.equals(mSetupWizardPackageName)) { in sameSet() 224 if (mSetPackages[j].equals(ai.packageName) in sameSet() 225 && mSetClasses[j].equals(ai.name)) { in sameSet() 271 ActivityInfo ai = ri.activityInfo; in isSuperset() local 276 if (excludeSetupWizardPackage && ai.packageName.equals(mSetupWizardPackageName)) { in isSuperset() 281 if (mSetPackages[j].equals(ai.packageName) && mSetClasses[j].equals(ai.name)) { in isSuperset() 301 ActivityInfo ai = ri.activityInfo; in discardObsoleteComponents() local 303 if (mSetPackages[j].equals(ai.packageName) && mSetClasses[j].equals(ai.name)) { in discardObsoleteComponents()
|
D | ApexManager.java | 334 for (ApexInfo ai : allPkgs) { in populateAllPackagesCacheIfNeeded() 337 if ((new File(ai.modulePath)).isDirectory()) { in populateAllPackagesCacheIfNeeded() 345 File apexFile = new File(ai.modulePath); in populateAllPackagesCacheIfNeeded() 350 throw new IllegalStateException("Unable to parse: " + ai, pe); in populateAllPackagesCacheIfNeeded() 354 PackageParser.generatePackageInfo(pkg, ai, flags); in populateAllPackagesCacheIfNeeded() 356 if (ai.isActive) { in populateAllPackagesCacheIfNeeded() 364 if (ai.isFactory) { in populateAllPackagesCacheIfNeeded()
|
/frameworks/base/core/java/com/android/internal/app/ |
D | ResolverListController.java | 184 ActivityInfo ai = inputList.get(i) in filterIneligibleActivities() local 187 ai.permission, mLaunchedFromUid, in filterIneligibleActivities() 188 ai.applicationInfo.uid, ai.exported); in filterIneligibleActivities() 191 || isComponentFiltered(ai.getComponentName())) { in filterIneligibleActivities() 283 final ActivityInfo ai = a.activityInfo; in isSameResolvedComponent() local 284 return ai.packageName.equals(b.name.getPackageName()) in isSameResolvedComponent() 285 && ai.name.equals(b.name.getClassName()); in isSameResolvedComponent()
|
/frameworks/base/core/java/android/os/ |
D | GraphicsEnvironment.java | 699 ApplicationInfo ai; in chooseDriverInternal() local 702 ai = pm.getApplicationInfo(packageName, PackageManager.GET_META_DATA); in chooseDriverInternal() 706 ai = context.getApplicationInfo(); in chooseDriverInternal() 708 if (ai.isPrivilegedApp() || (ai.isSystemApp() && !ai.isUpdatedSystemApp())) { in chooseDriverInternal() 714 (ai.metaData != null && ai.metaData.getBoolean(METADATA_DEVELOPER_DRIVER_ENABLE)) in chooseDriverInternal() 739 final String appPackageName = ai.packageName; in chooseDriverInternal() 855 private static String chooseAbi(ApplicationInfo ai) { in chooseAbi() argument 857 if (ai.primaryCpuAbi != null && in chooseAbi() 858 isa.equals(VMRuntime.getInstructionSet(ai.primaryCpuAbi))) { in chooseAbi() 859 return ai.primaryCpuAbi; in chooseAbi() [all …]
|
/frameworks/rs/tests/java_api/RSTest_CompatLibLegacy/src/com/android/rs/test/ |
D | instance.rscript | 4 rs_allocation ai; 8 rsSetElementAt_int(ai, i, 0);
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/inputmethod/ |
D | InputMethodAndSubtypeUtilCompatTest.java | 240 final ApplicationInfo ai = new ApplicationInfo(); in createDummyIme() local 241 ai.packageName = "com.example.android.dummyime"; in createDummyIme() 242 ai.enabled = true; in createDummyIme() 243 ai.flags |= (isSystem ? ApplicationInfo.FLAG_SYSTEM : 0); in createDummyIme() 244 si.applicationInfo = ai; in createDummyIme()
|
D | InputMethodAndSubtypeUtilTest.java | 233 final ApplicationInfo ai = new ApplicationInfo(); in createDummyIme() local 234 ai.packageName = "com.example.android.dummyime"; in createDummyIme() 235 ai.enabled = true; in createDummyIme() 236 si.applicationInfo = ai; in createDummyIme()
|
/frameworks/base/services/core/java/com/android/server/pm/dex/ |
D | DexManager.java | 311 ApplicationInfo ai = pi.applicationInfo; in cachePackageInfo() local 312 String[] dataDirs = new String[] {ai.dataDir, ai.deviceProtectedDataDir, in cachePackageInfo() 313 ai.credentialProtectedDataDir}; in cachePackageInfo() 314 cachePackageCodeLocation(pi.packageName, ai.sourceDir, ai.splitSourceDirs, in cachePackageInfo() 783 public PackageCodeLocations(ApplicationInfo ai, int userId) { in PackageCodeLocations() argument 784 this(ai.packageName, ai.sourceDir, ai.splitSourceDirs); in PackageCodeLocations() 785 mergeAppDataDirs(ai.dataDir, userId); in PackageCodeLocations()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/inputmethod/ |
D | InputMethodSubtypeSwitchingControllerTest.java | 71 final ApplicationInfo ai = new ApplicationInfo(); in addDummyImeSubtypeListItems() local 72 ai.packageName = DUMMY_PACKAGE_NAME; in addDummyImeSubtypeListItems() 73 ai.enabled = true; in addDummyImeSubtypeListItems() 74 si.applicationInfo = ai; in addDummyImeSubtypeListItems() 108 final ApplicationInfo ai = new ApplicationInfo(); in createDummyItem() local 109 ai.packageName = imeComponentName.getPackageName(); in createDummyItem() 110 ai.enabled = true; in createDummyItem() 111 si.applicationInfo = ai; in createDummyItem()
|
/frameworks/base/core/java/android/app/ |
D | NativeActivity.java | 129 ActivityInfo ai; in onCreate() local 147 ai = getPackageManager().getActivityInfo( in onCreate() 149 if (ai.metaData != null) { in onCreate() 150 String ln = ai.metaData.getString(META_DATA_LIB_NAME); in onCreate() 152 ln = ai.metaData.getString(META_DATA_FUNC_NAME); in onCreate()
|
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/ |
D | instance.rscript | 20 rs_allocation ai; 24 rsSetElementAt_int(ai, i, 0);
|