Home
last modified time | relevance | path

Searched refs:ai (Results 1 – 25 of 41) sorted by relevance

12

/packages/apps/Settings/src/com/android/settings/inputmethod/
DAvailableVirtualKeyboardFragment.java110 final ApplicationInfo ai = si.applicationInfo; in getInputMethodIcon() local
112 if (si == null || ai == null || packageName == null) { in getInputMethodIcon()
117 Drawable drawable = loadDrawable(packageManager, packageName, si.logo, ai); in getInputMethodIcon()
121 drawable = loadDrawable(packageManager, packageName, si.icon, ai); in getInputMethodIcon()
127 drawable = loadDrawable(packageManager, packageName, ai.logo, ai); in getInputMethodIcon()
131 drawable = loadDrawable(packageManager, packageName, ai.icon, ai); in getInputMethodIcon()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/development/
DAppPicker.java100 for (final ApplicationInfo ai : pkgs) { in onCreateActions()
101 if (ai.uid == Process.SYSTEM_UID) { in onCreateActions()
110 if ((ai.flags&ApplicationInfo.FLAG_DEBUGGABLE) == 0 in onCreateActions()
120 PackageInfo pi = pm.getPackageInfo(ai.packageName, in onCreateActions()
140 ai.packageName, ai.loadLabel(pm).toString(), ai.loadIcon(pm))); in onCreateActions()
/packages/apps/Settings/src/com/android/settings/applications/
DRunningProcessesView.java186 ActiveItem ai = new ActiveItem(); in bind() local
187 ai.mRootView = rootView; in bind()
188 ai.mItem = item; in bind()
189 ai.mHolder = this; in bind()
190 ai.mFirstRunTime = item.mActiveSince; in bind()
199 ai.updateTime(rootView.getContext(), builder); in bind()
200 return ai; in bind()
313 ActiveItem ai = vh.bind(mState, item, mBuilder); in bindView() local
314 mActiveItems.put(view, ai); in bindView()
489 ActiveItem ai = it.next(); in updateTimes() local
[all …]
DRunningState.java423 ApplicationInfo ai = pm.getApplicationInfo(mProcessName, in ensureLabel() local
425 if (ai.uid == mUid) { in ensureLabel()
426 mDisplayLabel = ai.loadLabel(pm); in ensureLabel()
428 mPackageInfo = ai; in ensureLabel()
441 ApplicationInfo ai = pm.getApplicationInfo(pkgs[0], in ensureLabel() local
443 mDisplayLabel = ai.loadLabel(pm); in ensureLabel()
445 mPackageInfo = ai; in ensureLabel()
473 ApplicationInfo ai = mServices.values().iterator().next() in ensureLabel() local
475 mPackageInfo = ai; in ensureLabel()
483 ApplicationInfo ai = pm.getApplicationInfo(pkgs[0], in ensureLabel() local
[all …]
DProcStatsEntry.java190 ApplicationInfo ai = pm.getApplicationInfo(subProc.mPackage, 0); in evaluateTargetPackage() local
191 if (ai.icon == 0) { in evaluateTargetPackage()
196 if ((ai.flags&ApplicationInfo.FLAG_PERSISTENT) != 0) { in evaluateTargetPackage()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
DAppWorkaroundsTests.java37 for (ApplicationInfo ai : pm.getInstalledApplications(0 /* flags */)) { in setUp()
38 if (ai.targetSdkVersion < VERSION_CODES.JELLY_BEAN) { in setUp()
39 packageNameOfAppBeforeJellyBean = ai.packageName; in setUp()
41 packageNameOfAppAfterJellyBean = ai.packageName; in setUp()
/packages/apps/Settings/src/com/android/settings/
DAppPicker.java100 ApplicationInfo ai = pkgs.get(i); in AppListAdapter() local
101 if (ai.uid == Process.SYSTEM_UID) { in AppListAdapter()
110 if ((ai.flags&ApplicationInfo.FLAG_DEBUGGABLE) == 0 in AppListAdapter()
120 PackageInfo pi = getPackageManager().getPackageInfo(ai.packageName, in AppListAdapter()
140 info.info = ai; in AppListAdapter()
DShowAdminSupportDetailsDialog.java113 ActivityInfo ai = null; in initializeDialogViews() local
115 ai = AppGlobals.getPackageManager().getReceiverInfo(admin, 0 /* flags */, in initializeDialogViews()
120 if (ai != null) { in initializeDialogViews()
121 Drawable icon = ai.loadIcon(getPackageManager()); in initializeDialogViews()
DDeviceAdminSettings.java395 final ActivityInfo ai; in addActiveAdminsForProfile() local
397 ai = iPackageManager.getReceiverInfo(activeAdmin, in addActiveAdminsForProfile()
405 final DeviceAdminInfo deviceAdminInfo = createDeviceAdminInfo(ai); in addActiveAdminsForProfile()
427 private DeviceAdminInfo createDeviceAdminInfo(ActivityInfo ai) { in createDeviceAdminInfo() argument
429 return new DeviceAdminInfo(getActivity(), ai); in createDeviceAdminInfo()
431 Log.w(TAG, "Skipping " + ai, e); in createDeviceAdminInfo()
DDeviceAdminAdd.java185 ActivityInfo ai; in onCreate() local
187 ai = packageManager.getReceiverInfo(who, PackageManager.GET_META_DATA); in onCreate()
205 if (ai.packageName.equals(ri.activityInfo.packageName) in onCreate()
206 && ai.name.equals(ri.activityInfo.name)) { in onCreate()
210 ri.activityInfo = ai; in onCreate()
229 ri.activityInfo = ai; in onCreate()
DAllowBindAppWidgetActivity.java105 ApplicationInfo ai = pm.getApplicationInfo(mCallingPackage, 0); in onCreate() local
106 label = pm.getApplicationLabel(ai); in onCreate()
/packages/apps/Nfc/src/com/android/nfc/
DRegisteredComponentCache.java180 ActivityInfo ai = info.activityInfo; in parseComponentInfo() local
184 parser = ai.loadXmlMetaData(pm, mMetaDataName); in parseComponentInfo()
189 parseTechLists(pm.getResourcesForApplication(ai.applicationInfo), ai.packageName, in parseComponentInfo()
192 throw new XmlPullParserException("Unable to load resources for " + ai.packageName); in parseComponentInfo()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DApplicationUtils.java38 final ActivityInfo ai = context.getPackageManager().getActivityInfo(cn, 0); in getActivityTitleResId() local
39 if (ai != null) { in getActivityTitleResId()
40 return ai.labelRes; in getActivityTitleResId()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DContactLocaleUtils.java107 AlphabeticIndex ai = new AlphabeticIndex(locales.getPrimaryLocale()) in ContactLocaleUtilsBase() local
114 addLabels(ai, localeList.get(i), addedLocales); in ContactLocaleUtilsBase()
118 addLabels(ai, sDefaultLabelLocales[i], addedLocales); in ContactLocaleUtilsBase()
120 mAlphabeticIndex = ai.buildImmutableIndex(); in ContactLocaleUtilsBase()
126 AlphabeticIndex ai, Locale locale, ArraySet<Locale> addedLocales) { in addLabels() argument
130 ai.addLabels(locale); in addLabels()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DRequestIgnoreBatteryOptimizations.java73 ApplicationInfo ai; in onCreate() local
75 ai = getPackageManager().getApplicationInfo(mPackageName, 0); in onCreate()
93 p.mMessage = getString(R.string.high_power_prompt_body, ai.loadLabel(getPackageManager())); in onCreate()
DBatteryEntry.java259 final ApplicationInfo ai = ipm.getApplicationInfo(packageLabels[i], in loadNameAndIcon() local
261 if (ai == null) { in loadNameAndIcon()
266 CharSequence label = ai.loadLabel(pm); in loadNameAndIcon()
270 if (ai.icon != 0) { in loadNameAndIcon()
272 icon = ai.loadIcon(pm); in loadNameAndIcon()
DPowerUsageDetail.java470 ApplicationInfo ai = pm.getPackageInfo(pkg, 0).applicationInfo; in setupHeader() local
471 if (ai != null) { in setupHeader()
472 appIcon = ai.loadIcon(pm); in setupHeader()
473 uid = ai.uid; in setupHeader()
594 ApplicationInfo ai = pi != null? pi.applicationInfo : null; in fillControlsSection() local
770 ApplicationInfo ai = pm.getApplicationInfo(mPackages[i], 0); in fillPackagesSection() local
771 CharSequence label = ai.loadLabel(pm); in fillPackagesSection()
/packages/apps/Settings/src/com/android/settings/wifi/
DWifiScanModeActivity.java47 ApplicationInfo ai; in onCreate() local
51 ai = pm.getApplicationInfo(mApp, 0); in onCreate()
52 mApp = (String)pm.getApplicationLabel(ai); in onCreate()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/
DUtils.java225 for (ActivityInfo ai : pi.receivers) { in checkAdminComponent()
226 if (mdmComponentName.getClassName().equals(ai.name)) { in checkAdminComponent()
237 for (ActivityInfo ai : pi.receivers) { in findDeviceAdminInPackage()
238 if (!TextUtils.isEmpty(ai.permission) && in findDeviceAdminInPackage()
239 ai.permission.equals(android.Manifest.permission.BIND_DEVICE_ADMIN)) { in findDeviceAdminInPackage()
244 mdmComponentName = new ComponentName(mdmPackageName, ai.name); in findDeviceAdminInPackage()
DMdmPackageInfo.java63 ApplicationInfo ai = pm.getApplicationInfo(packageName, /* default flags */ 0); in createFromPackageName() local
65 pm.getApplicationLabel(ai).toString()); in createFromPackageName()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/
DInstallPackageTask.java134 for (ActivityInfo ai : pi.receivers) { in packageContentIsCorrect()
135 if (!TextUtils.isEmpty(ai.permission) && in packageContentIsCorrect()
136 ai.permission.equals(android.Manifest.permission.BIND_DEVICE_ADMIN)) { in packageContentIsCorrect()
/packages/apps/ManagedProvisioning/tests/src/com/android/managedprovisioning/common/
DUtilsTest.java306 ApplicationInfo ai = new ApplicationInfo(); in createApplicationInfo() local
307 ai.packageName = packageName; in createApplicationInfo()
309 ai.flags = ApplicationInfo.FLAG_SYSTEM; in createApplicationInfo()
311 return ai; in createApplicationInfo()
/packages/experimental/NotificationShowcase/src/com/android/example/notificationshowcase/
DNotificationService.java134 PendingIntent ai = UpdateService.getPendingIntent(context, update + 1, id, when); in makeSmsNotification() local
143 .addAction(R.drawable.ic_media_next, context.getString(R.string.sms_reply), ai) in makeSmsNotification()
279 PendingIntent ai = ToastService.getPendingIntent(this, R.string.picture_add_click); in onHandleIntent() local
288 .addAction(R.drawable.add, getString(R.string.picture_add), ai) in onHandleIntent()
/packages/apps/Settings/src/com/android/settings/notification/
DNotificationStation.java401 for (int ai=0; ai<n.actions.length; ai++) { in loadNotifications()
402 final Notification.Action action = n.actions[ai]; in loadNotifications()
403 sb.append("\n ").append(String.valueOf(ai)).append(' ') in loadNotifications()
/packages/apps/ManagedProvisioning/tests/src/com/android/managedprovisioning/task/
DDeleteNonRequiredAppsTaskTest.java469 ActivityInfo ai = new ActivityInfo(); in queryIntentActivitiesAsUser() local
470 ai.packageName = packageName; in queryIntentActivitiesAsUser()
472 ri.activityInfo = ai; in queryIntentActivitiesAsUser()

12