Home
last modified time | relevance | path

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

12

/packages/apps/Settings/src/com/android/settings/applications/
DRunningProcessesView.java187 ActiveItem ai = new ActiveItem(); in bind() local
188 ai.mRootView = rootView; in bind()
189 ai.mItem = item; in bind()
190 ai.mHolder = this; in bind()
191 ai.mFirstRunTime = item.mActiveSince; in bind()
200 ai.updateTime(rootView.getContext(), builder); in bind()
201 return ai; in bind()
314 ActiveItem ai = vh.bind(mState, item, mBuilder); in bindView() local
315 mActiveItems.put(view, ai); in bindView()
490 ActiveItem ai = it.next(); in updateTimes() local
[all …]
DRunningState.java383 ApplicationInfo ai = pm.getApplicationInfo(mProcessName, in ensureLabel() local
385 if (ai.uid == mUid) { in ensureLabel()
386 mDisplayLabel = ai.loadLabel(pm); in ensureLabel()
388 mPackageInfo = ai; in ensureLabel()
401 ApplicationInfo ai = pm.getApplicationInfo(pkgs[0], in ensureLabel() local
403 mDisplayLabel = ai.loadLabel(pm); in ensureLabel()
405 mPackageInfo = ai; in ensureLabel()
433 ApplicationInfo ai = mServices.values().iterator().next() in ensureLabel() local
435 mPackageInfo = ai; in ensureLabel()
443 ApplicationInfo ai = pm.getApplicationInfo(pkgs[0], in ensureLabel() local
[all …]
DProcessStatsDetail.java175 ApplicationInfo ai = mPm.getApplicationInfo(packageName, 0); in addPackageHeaderItem() local
176 icon.setImageDrawable(ai.loadIcon(mPm)); in addPackageHeaderItem()
177 nameView.setText(ai.loadLabel(mPm)); in addPackageHeaderItem()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/resolver/
DResolverActivity.java450 ActivityInfo ai = currentResolveList.get(i).activityInfo; in rebuildList() local
452 ai.permission, mLaunchedFromUid, in rebuildList()
453 ai.applicationInfo.uid, ai.exported); in rebuildList()
494 ActivityInfo ai = ii.resolveActivityInfo( in rebuildList() local
496 if (ai == null) { in rebuildList()
502 ri.activityInfo = ai; in rebuildList()
599 ActivityInfo ai = dri.ri.activityInfo; in intentForPosition() local
601 ai.applicationInfo.packageName, ai.name)); in intentForPosition()
/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()
DP2pLinkManager.java513 ApplicationInfo ai = mPackageManager.getApplicationInfo(pkgName, in beamDefaultDisabled() local
515 if (ai == null || ai.metaData == null) { in beamDefaultDisabled()
518 return ai.metaData.getBoolean(DISABLE_BEAM_DEFAULT); in beamDefaultDisabled()
/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/
DDeviceAdminAdd.java152 ActivityInfo ai; in onCreate() local
154 ai = packageManager.getReceiverInfo(who, PackageManager.GET_META_DATA); in onCreate()
172 if (ai.packageName.equals(ri.activityInfo.packageName) in onCreate()
173 && ai.name.equals(ri.activityInfo.name)) { in onCreate()
177 ri.activityInfo = ai; in onCreate()
196 ri.activityInfo = ai; in onCreate()
DAppPicker.java91 ApplicationInfo ai = pkgs.get(i); in AppListAdapter() local
92 if (ai.uid == Process.SYSTEM_UID) { in AppListAdapter()
98 if ((ai.flags&ApplicationInfo.FLAG_DEBUGGABLE) == 0 in AppListAdapter()
103 info.info = ai; in AppListAdapter()
DAllowBindAppWidgetActivity.java105 ApplicationInfo ai = pm.getApplicationInfo(mCallingPackage, 0); in onCreate() local
106 label = pm.getApplicationLabel(ai); in onCreate()
DSettingsActivity.java1253 ActivityInfo ai = getPackageManager().getActivityInfo(getComponentName(), in getMetaData() local
1255 if (ai == null || ai.metaData == null) return; in getMetaData()
1256 mFragmentClass = ai.metaData.getString(META_DATA_KEY_FRAGMENT_CLASS); in getMetaData()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryEntry.java268 final ApplicationInfo ai = ipm.getApplicationInfo(packageLabels[i], in loadNameAndIcon() local
270 if (ai == null) { in loadNameAndIcon()
275 CharSequence label = ai.loadLabel(pm); in loadNameAndIcon()
279 if (ai.icon != 0) { in loadNameAndIcon()
281 icon = ai.loadIcon(pm); in loadNameAndIcon()
DPowerUsageDetail.java374 ApplicationInfo ai = pm.getPackageInfo(iconPackage, 0).applicationInfo; in createDetails() local
375 if (ai != null) { in createDetails()
376 mAppIcon = ai.loadIcon(pm); in createDetails()
551 ApplicationInfo ai = pi != null? pi.applicationInfo : null; in fillControlsSection() local
743 ApplicationInfo ai = pm.getApplicationInfo(mPackages[i], 0); in fillPackagesSection() local
744 CharSequence label = ai.loadLabel(pm); in fillPackagesSection()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/
DSetDevicePolicyTask.java70 for (ActivityInfo ai : pi.receivers) { in isPackageInstalled()
71 if (!TextUtils.isEmpty(ai.permission) && in isPackageInstalled()
72 ai.permission.equals(android.Manifest.permission.BIND_DEVICE_ADMIN)) { in isPackageInstalled()
73 mAdminReceiver = ai.name; in isPackageInstalled()
DInstallPackageTask.java104 for (ActivityInfo ai : pi.receivers) { in packageContentIsCorrect()
105 if (!TextUtils.isEmpty(ai.permission) && in packageContentIsCorrect()
106 ai.permission.equals(android.Manifest.permission.BIND_DEVICE_ADMIN)) { in packageContentIsCorrect()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/
DManagedProvisioningService.java139 for (ActivityInfo ai : pi.receivers) { in getAdminReceiverComponent()
140 if (!TextUtils.isEmpty(ai.permission) && in getAdminReceiverComponent()
141 ai.permission.equals(BIND_DEVICE_ADMIN)) { in getAdminReceiverComponent()
142 adminReceiverComponent = new ComponentName(packageName, ai.name); in getAdminReceiverComponent()
DManagedProvisioningActivity.java235 ApplicationInfo ai = pm.getApplicationInfo(packageName, /* default flags */ 0); in setMdmIcon() local
236 if (ai != null) { in setMdmIcon()
241 String appLabel = pm.getApplicationLabel(ai).toString(); in setMdmIcon()
/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/apps/Settings/src/com/android/settings/wifi/
DWifiScanModeActivity.java48 ApplicationInfo ai; in onCreate() local
52 ai = pm.getApplicationInfo(mApp, 0); in onCreate()
53 mApp = (String)pm.getApplicationLabel(ai); in onCreate()
/packages/apps/Settings/src/com/android/settings/quicklaunch/
DBookmarkPicker.java265 ActivityInfo ai = info.activityInfo; in getIntentForResolveInfo() local
266 intent.setClassName(ai.packageName, ai.name); in getIntentForResolveInfo()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DContactLocaleUtils.java91 AlphabeticIndex ai = new AlphabeticIndex(locales.getPrimaryLocale()) in ContactLocaleUtilsBase() local
94 ai.addLabels(secondaryLocale); in ContactLocaleUtilsBase()
96 mAlphabeticIndex = ai.addLabels(Locale.ENGLISH) in ContactLocaleUtilsBase()
/packages/apps/Settings/src/com/android/settings/location/
DSettingsInjector.java151 ApplicationInfo ai = si.applicationInfo; in parseServiceInfo() local
153 if ((ai.flags & ApplicationInfo.FLAG_SYSTEM) == 0) { in parseServiceInfo()
182 Resources res = pm.getResourcesForApplication(ai); in parseServiceInfo()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/
DDeveloperOptionsActivity.java596 ApplicationInfo ai = pkgs.get(i); in getApps() local
597 if (ai.uid == Process.SYSTEM_UID) { in getApps()
603 if ((ai.flags & ApplicationInfo.FLAG_DEBUGGABLE) == 0 in getApps()
608 info.info = ai; in getApps()
/packages/apps/Browser/src/com/android/browser/search/
DDefaultSearchEngine.java59 ActivityInfo ai = pm.getActivityInfo(activityName, 0); in loadLabel() local
60 return ai.loadLabel(pm); in loadLabel()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsActor.java427 ApplicationInfo ai = new ApplicationInfo(); in getApplicationInfo() local
428 ai.packageName = "contactsTestPackage"; in getApplicationInfo()
429 return ai; in getApplicationInfo()

12