/frameworks/base/core/tests/coretests/src/com/android/internal/app/ |
D | ResolverDataProvider.java | 60 ActivityInfo ai = new ActivityInfo(); in createActivityInfo() local 61 ai.name = "activity_name" + i; in createActivityInfo() 62 ai.packageName = "foo_bar" + i; in createActivityInfo() 63 ai.enabled = true; in createActivityInfo() 64 ai.exported = true; in createActivityInfo() 65 ai.permission = null; in createActivityInfo() 66 ai.applicationInfo = createApplicationInfo(); in createActivityInfo() 67 return ai; in createActivityInfo() 71 ApplicationInfo ai = new ApplicationInfo(); in createApplicationInfo() local 72 ai.name = "app_name"; in createApplicationInfo() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | ShortcutManagerTest5.java | 91 ApplicationInfo ai = mShortcutService.getApplicationInfo( in testGetApplicationInfo() local 93 assertEquals(mMyPackage, ai.packageName); in testGetApplicationInfo() 95 ai = mShortcutService.getApplicationInfo( in testGetApplicationInfo() 97 assertNull(ai); in testGetApplicationInfo() 102 ActivityInfo ai = mShortcutService.getActivityInfoWithMetadata( in testGetActivityInfoWithMetadata() local 104 assertNull(ai); in testGetActivityInfoWithMetadata() 107 ai = mShortcutService.getActivityInfoWithMetadata( in testGetActivityInfoWithMetadata() 109 assertNull(ai); in testGetActivityInfoWithMetadata() 112 ai = mShortcutService.getActivityInfoWithMetadata( in testGetActivityInfoWithMetadata() 114 assertEquals(mMyPackage, ai.packageName); in testGetActivityInfoWithMetadata() [all …]
|
/frameworks/base/core/java/android/os/ |
D | GraphicsEnvironment.java | 51 ApplicationInfo ai = context.getApplicationInfo(); in chooseDriver() local 52 if (ai.isPrivilegedApp() || (ai.isSystemApp() && !ai.isUpdatedSystemApp())) { in chooseDriver() 114 private static String chooseAbi(ApplicationInfo ai) { in chooseAbi() argument 116 if (ai.primaryCpuAbi != null && in chooseAbi() 117 isa.equals(VMRuntime.getInstructionSet(ai.primaryCpuAbi))) { in chooseAbi() 118 return ai.primaryCpuAbi; in chooseAbi() 120 if (ai.secondaryCpuAbi != null && in chooseAbi() 121 isa.equals(VMRuntime.getInstructionSet(ai.secondaryCpuAbi))) { in chooseAbi() 122 return ai.secondaryCpuAbi; in chooseAbi()
|
/frameworks/base/core/java/android/content/pm/ |
D | InstrumentationInfo.java | 200 public void copyTo(ApplicationInfo ai) { in copyTo() argument 201 ai.packageName = packageName; in copyTo() 202 ai.sourceDir = sourceDir; in copyTo() 203 ai.publicSourceDir = publicSourceDir; in copyTo() 204 ai.splitNames = splitNames; in copyTo() 205 ai.splitSourceDirs = splitSourceDirs; in copyTo() 206 ai.splitPublicSourceDirs = splitPublicSourceDirs; in copyTo() 207 ai.splitDependencies = splitDependencies; in copyTo() 208 ai.dataDir = dataDir; in copyTo() 209 ai.deviceProtectedDataDir = deviceProtectedDataDir; in copyTo() [all …]
|
D | ComponentInfo.java | 103 ApplicationInfo ai = applicationInfo; in loadLabel() local 106 label = pm.getText(packageName, labelRes, ai); in loadLabel() 111 if (ai.nonLocalizedLabel != null) { in loadLabel() 112 return ai.nonLocalizedLabel; in loadLabel() 114 if (ai.labelRes != 0) { in loadLabel() 115 label = pm.getText(packageName, ai.labelRes, ai); in loadLabel()
|
D | PackageParser.java | 3453 final ApplicationInfo ai = owner.applicationInfo; in parseBaseApplication() local 3459 if (!parsePackageItemInfo(owner, ai, outError, in parseBaseApplication() 3472 if (ai.name != null) { in parseBaseApplication() 3473 ai.className = ai.name; in parseBaseApplication() 3480 ai.manageSpaceActivityName = buildClassName(pkgName, manageSpaceActivity, in parseBaseApplication() 3487 ai.flags |= ApplicationInfo.FLAG_ALLOW_BACKUP; in parseBaseApplication() 3496 ai.backupAgentName = buildClassName(pkgName, backupAgent, outError); in parseBaseApplication() 3498 Slog.v(TAG, "android:backupAgent = " + ai.backupAgentName in parseBaseApplication() 3505 ai.flags |= ApplicationInfo.FLAG_KILL_AFTER_RESTORE; in parseBaseApplication() 3510 ai.flags |= ApplicationInfo.FLAG_RESTORE_ANY_VERSION; in parseBaseApplication() [all …]
|
/frameworks/base/telephony/java/com/android/internal/telephony/ |
D | CarrierAppUtils.java | 138 for (ApplicationInfo ai : candidates) { in disableCarrierAppsUntilPrivileged() 139 String packageName = ai.packageName; in disableCarrierAppsUntilPrivileged() 147 if (!ai.isUpdatedSystemApp() in disableCarrierAppsUntilPrivileged() 148 && (ai.enabledSetting == in disableCarrierAppsUntilPrivileged() 150 || ai.enabledSetting == in disableCarrierAppsUntilPrivileged() 183 enabledCarrierPackages.add(ai.packageName); in disableCarrierAppsUntilPrivileged() 187 if (!ai.isUpdatedSystemApp() in disableCarrierAppsUntilPrivileged() 188 && ai.enabledSetting == in disableCarrierAppsUntilPrivileged() 263 ApplicationInfo ai = candidates.get(i); in getDefaultCarrierApps() local 264 String packageName = ai.packageName; in getDefaultCarrierApps() [all …]
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | CompatModePackages.java | 172 ApplicationInfo ai = null; in handlePackageAddedLocked() local 174 ai = AppGlobals.getPackageManager().getApplicationInfo(packageName, 0, 0); in handlePackageAddedLocked() 177 if (ai == null) { in handlePackageAddedLocked() 180 CompatibilityInfo ci = compatibilityInfoForPackageLocked(ai); in handlePackageAddedLocked() 200 public CompatibilityInfo compatibilityInfoForPackageLocked(ApplicationInfo ai) { in compatibilityInfoForPackageLocked() argument 202 CompatibilityInfo ci = new CompatibilityInfo(ai, globalConfig.screenLayout, in compatibilityInfoForPackageLocked() 204 (getPackageFlags(ai.packageName)&COMPAT_FLAG_ENABLED) != 0); in compatibilityInfoForPackageLocked() 209 public int computeCompatModeLocked(ApplicationInfo ai) { in computeCompatModeLocked() argument 210 final boolean enabled = (getPackageFlags(ai.packageName)&COMPAT_FLAG_ENABLED) != 0; in computeCompatModeLocked() 212 final CompatibilityInfo info = new CompatibilityInfo(ai, globalConfig.screenLayout, in computeCompatModeLocked() [all …]
|
D | RecentTasks.java | 325 ActivityInfo ai = mTmpAvailActCache.get(task.realActivity); in cleanupLocked() local 326 if (ai == null) { in cleanupLocked() 331 ai = pm.getActivityInfo(task.realActivity, in cleanupLocked() 337 if (ai == null) { in cleanupLocked() 338 ai = mTmpActivityInfo; in cleanupLocked() 340 mTmpAvailActCache.put(task.realActivity, ai); in cleanupLocked() 342 if (ai == mTmpActivityInfo) { in cleanupLocked() 375 if (!ai.enabled || !ai.applicationInfo.enabled in cleanupLocked() 376 || (ai.applicationInfo.flags in cleanupLocked() 380 + " (enabled=" + ai.enabled + "/" in cleanupLocked() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
D | DpmTestBase.java | 112 private void markPackageAsInstalled(String packageName, ApplicationInfo ai, int userId) in markPackageAsInstalled() argument 119 if (ai != null) { in markPackageAsInstalled() 120 pi.applicationInfo = ai; in markPackageAsInstalled() 128 doReturn(ai.uid).when(mServices.packageManager).getPackageUidAsUser( in markPackageAsInstalled() 170 final ApplicationInfo ai = DpmTestUtils.cloneParcelable( in setUpPackageManagerForFakeAdmin() local 174 ai.enabledSetting = enabledSetting == null in setUpPackageManagerForFakeAdmin() 178 ai.targetSdkVersion = appTargetSdk; in setUpPackageManagerForFakeAdmin() 180 ai.uid = packageUid; in setUpPackageManagerForFakeAdmin() 181 ai.packageName = admin.getPackageName(); in setUpPackageManagerForFakeAdmin() 182 ai.name = admin.getClassName(); in setUpPackageManagerForFakeAdmin() [all …]
|
/frameworks/base/core/java/android/webkit/ |
D | WebViewLibraryLoader.java | 235 ApplicationInfo ai = packageInfo.applicationInfo; in getWebViewNativeLibraryPaths() local 236 final String nativeLibFileName = WebViewFactory.getWebViewLibrary(ai); in getWebViewNativeLibraryPaths() 240 boolean primaryArchIs64bit = VMRuntime.is64BitAbi(ai.primaryCpuAbi); in getWebViewNativeLibraryPaths() 241 if (!TextUtils.isEmpty(ai.secondaryCpuAbi)) { in getWebViewNativeLibraryPaths() 245 path64 = ai.nativeLibraryDir; in getWebViewNativeLibraryPaths() 246 path32 = ai.secondaryNativeLibraryDir; in getWebViewNativeLibraryPaths() 249 path64 = ai.secondaryNativeLibraryDir; in getWebViewNativeLibraryPaths() 250 path32 = ai.nativeLibraryDir; in getWebViewNativeLibraryPaths() 254 path64 = ai.nativeLibraryDir; in getWebViewNativeLibraryPaths() 258 path32 = ai.nativeLibraryDir; in getWebViewNativeLibraryPaths() [all …]
|
D | WebViewFactory.java | 111 public static String getWebViewLibrary(ApplicationInfo ai) { in getWebViewLibrary() argument 112 if (ai.metaData != null) in getWebViewLibrary() 113 return ai.metaData.getString("com.android.webview.WebViewLibrary"); in getWebViewLibrary() 272 private static void fixupStubApplicationInfo(ApplicationInfo ai, PackageManager pm) in fixupStubApplicationInfo() argument 275 if (ai.metaData != null) { in fixupStubApplicationInfo() 276 donorPackageName = ai.metaData.getString("com.android.webview.WebViewDonorPackage"); in fixupStubApplicationInfo() 294 ai.sourceDir = donorInfo.sourceDir; in fixupStubApplicationInfo() 295 ai.splitSourceDirs = donorInfo.splitSourceDirs; in fixupStubApplicationInfo() 296 ai.nativeLibraryDir = donorInfo.nativeLibraryDir; in fixupStubApplicationInfo() 297 ai.secondaryNativeLibraryDir = donorInfo.secondaryNativeLibraryDir; in fixupStubApplicationInfo() [all …]
|
/frameworks/base/services/core/java/com/android/server/search/ |
D | Searchables.java | 130 ActivityInfo ai = null; in getSearchableInfo() local 132 ai = mPm.getActivityInfo(activity, PackageManager.GET_META_DATA, mUserId); in getSearchableInfo() 140 Bundle md = ai.metaData; in getSearchableInfo() 146 md = ai.applicationInfo.metaData; in getSearchableInfo() 236 ActivityInfo ai = info.activityInfo; in updateSearchableList() local 238 if (newSearchablesMap.get(new ComponentName(ai.packageName, ai.name)) == null) { in updateSearchableList() 239 SearchableInfo searchable = SearchableInfo.getActivityMetaData(mContext, ai, in updateSearchableList() 371 ActivityInfo ai = providerList.get(0).activityInfo; in getDefaultGlobalSearchProvider() local 372 return new ComponentName(ai.packageName, ai.name); in getDefaultGlobalSearchProvider() 399 ActivityInfo ai = activities.get(0).activityInfo; in findWebSearchActivity() local [all …]
|
/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 | 100 ActivityInfo ai = mContext.getPackageManager().getActivityInfo( in testActivityWithData() local 103 checkMetaData(cn, ai); in testActivityWithData() 105 ai = mContext.getPackageManager().getActivityInfo(cn, 0); in testActivityWithData() 107 assertNull("Meta data returned when not requested", ai.metaData); in testActivityWithData() 113 ActivityInfo ai = mContext.getPackageManager().getReceiverInfo( in testReceiverWithData() local 116 checkMetaData(cn, ai); in testReceiverWithData() 118 ai = mContext.getPackageManager().getReceiverInfo(cn, 0); in testReceiverWithData() 120 assertNull("Meta data returned when not requested", ai.metaData); in testReceiverWithData()
|
/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/core/java/com/android/internal/app/ |
D | ResolverListController.java | 172 ActivityInfo ai = inputList.get(i) in filterIneligibleActivities() local 175 ai.permission, mLaunchedFromUid, in filterIneligibleActivities() 176 ai.applicationInfo.uid, ai.exported); in filterIneligibleActivities() 177 boolean suspended = (ai.applicationInfo.flags in filterIneligibleActivities() 180 || isComponentFiltered(ai.getComponentName())) { in filterIneligibleActivities() 272 final ActivityInfo ai = a.activityInfo; in isSameResolvedComponent() local 273 return ai.packageName.equals(b.name.getPackageName()) in isSameResolvedComponent() 274 && ai.name.equals(b.name.getClassName()); in isSameResolvedComponent()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | PreferredComponent.java | 209 ActivityInfo ai = ri.activityInfo; in sameSet() local 212 if (mSetPackages[j].equals(ai.packageName) in sameSet() 213 && mSetClasses[j].equals(ai.name)) { in sameSet() 259 ActivityInfo ai = ri.activityInfo; in isSuperset() local 262 if (mSetPackages[j].equals(ai.packageName) && mSetClasses[j].equals(ai.name)) { in isSuperset() 282 ActivityInfo ai = ri.activityInfo; in discardObsoleteComponents() local 284 if (mSetPackages[j].equals(ai.packageName) && mSetClasses[j].equals(ai.name)) { in discardObsoleteComponents()
|
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/ |
D | instance.rs | 20 rs_allocation ai; 24 rsSetElementAt_int(ai, i, 0);
|
/frameworks/rs/tests/java_api/RSTest_CompatLibLegacy/src/com/android/rs/test/ |
D | instance.rs | 4 rs_allocation ai; 8 rsSetElementAt_int(ai, i, 0);
|
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/ |
D | instance.rs | 22 rs_allocation ai; 26 rsSetElementAt_int(ai, i, 0);
|
/frameworks/base/services/core/java/com/android/server/pm/dex/ |
D | DexManager.java | 283 ApplicationInfo ai = pi.applicationInfo; in cachePackageInfo() local 284 String[] dataDirs = new String[] {ai.dataDir, ai.deviceProtectedDataDir, in cachePackageInfo() 285 ai.credentialProtectedDataDir}; in cachePackageInfo() 286 cachePackageCodeLocation(pi.packageName, ai.sourceDir, ai.splitSourceDirs, in cachePackageInfo() 655 public PackageCodeLocations(ApplicationInfo ai, int userId) { in PackageCodeLocations() argument 656 this(ai.packageName, ai.sourceDir, ai.splitSourceDirs); in PackageCodeLocations() 657 mergeAppDataDirs(ai.dataDir, userId); in PackageCodeLocations()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/inputmethod/ |
D | InputMethodSubtypeSwitchingControllerTest.java | 59 final ApplicationInfo ai = new ApplicationInfo(); in addDummyImeSubtypeListItems() local 60 ai.packageName = DUMMY_PACKAGE_NAME; in addDummyImeSubtypeListItems() 61 ai.enabled = true; in addDummyImeSubtypeListItems() 62 si.applicationInfo = ai; in addDummyImeSubtypeListItems() 95 final ApplicationInfo ai = new ApplicationInfo(); in createDummyItem() local 96 ai.packageName = DUMMY_PACKAGE_NAME; in createDummyItem() 97 ai.enabled = true; in createDummyItem() 98 si.applicationInfo = ai; in createDummyItem()
|
/frameworks/base/core/java/android/app/ |
D | NativeActivity.java | 126 ActivityInfo ai; in onCreate() local 144 ai = getPackageManager().getActivityInfo( in onCreate() 146 if (ai.metaData != null) { in onCreate() 147 String ln = ai.metaData.getString(META_DATA_LIB_NAME); in onCreate() 149 ln = ai.metaData.getString(META_DATA_FUNC_NAME); in onCreate()
|