Home
last modified time | relevance | path

Searched refs:ai (Results 1 – 25 of 45) 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.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.java187 ApplicationInfo ai = pm.getApplicationInfo(subProc.mPackage, 0); in evaluateTargetPackage() local
188 if (ai.icon == 0) { in evaluateTargetPackage()
193 if ((ai.flags&ApplicationInfo.FLAG_PERSISTENT) != 0) { in evaluateTargetPackage()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/
DUtils.java160 for (ActivityInfo ai : pi.receivers) { in checkAdminComponent()
161 if (mdmComponentName.getClassName().equals(ai.name)) { in checkAdminComponent()
172 for (ActivityInfo ai : pi.receivers) { in findDeviceAdminInPackage()
173 if (!TextUtils.isEmpty(ai.permission) && in findDeviceAdminInPackage()
174 ai.permission.equals(android.Manifest.permission.BIND_DEVICE_ADMIN)) { in findDeviceAdminInPackage()
179 mdmComponentName = new ComponentName(mdmPackageName, ai.name); in findDeviceAdminInPackage()
193 ApplicationInfo ai = pm.getApplicationInfo(packageName, /* default flags */ 0); in getMdmPackageInfo() local
194 if (ai != null) { in getMdmPackageInfo()
196 pm.getApplicationLabel(ai).toString()); in getMdmPackageInfo()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/resolver/
DResolverActivity.java447 ActivityInfo ai = currentResolveList.get(i).activityInfo; in rebuildList() local
449 ai.permission, mLaunchedFromUid, in rebuildList()
450 ai.applicationInfo.uid, ai.exported); in rebuildList()
491 ActivityInfo ai = ii.resolveActivityInfo( in rebuildList() local
493 if (ai == null) { in rebuildList()
499 ri.activityInfo = ai; in rebuildList()
595 ActivityInfo ai = dri.ri.activityInfo; in intentForPosition() local
597 ai.applicationInfo.packageName, ai.name)); in intentForPosition()
/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()
DDeviceAdminAdd.java151 ActivityInfo ai; in onCreate() local
153 ai = packageManager.getReceiverInfo(who, PackageManager.GET_META_DATA); in onCreate()
171 if (ai.packageName.equals(ri.activityInfo.packageName) in onCreate()
172 && ai.name.equals(ri.activityInfo.name)) { in onCreate()
176 ri.activityInfo = ai; in onCreate()
195 ri.activityInfo = ai; in onCreate()
DDevelopmentSettings.java717 ApplicationInfo ai = getActivity().getPackageManager().getApplicationInfo( in writeMockLocation() local
719 appOpsManager.setMode(AppOpsManager.OP_MOCK_LOCATION, ai.uid, in writeMockLocation()
731 ApplicationInfo ai = getActivity().getPackageManager().getApplicationInfo( in writeMockLocation() local
733 appOpsManager.setMode(AppOpsManager.OP_MOCK_LOCATION, ai.uid, in writeMockLocation()
757 ApplicationInfo ai = getActivity().getPackageManager().getApplicationInfo(mDebugApp, in updateDebuggerOptions() local
759 CharSequence lab = getActivity().getPackageManager().getApplicationLabel(ai); in updateDebuggerOptions()
789 ApplicationInfo ai = getActivity().getPackageManager().getApplicationInfo( in updateMockLocation() local
791 CharSequence appLabel = getPackageManager().getApplicationLabel(ai); in updateMockLocation()
DAllowBindAppWidgetActivity.java105 ApplicationInfo ai = pm.getApplicationInfo(mCallingPackage, 0); in onCreate() local
106 label = pm.getApplicationLabel(ai); in onCreate()
DSettingsActivity.java1428 ActivityInfo ai = getPackageManager().getActivityInfo(getComponentName(), in getMetaData() local
1430 if (ai == null || ai.metaData == null) return; in getMetaData()
1431 mFragmentClass = ai.metaData.getString(META_DATA_KEY_FRAGMENT_CLASS); in getMetaData()
/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.java503 ApplicationInfo ai = mPackageManager.getApplicationInfo(pkgName, in beamDefaultDisabled() local
505 if (ai == null || ai.metaData == null) { in beamDefaultDisabled()
508 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/fuelgauge/
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.java469 ApplicationInfo ai = pm.getPackageInfo(pkg, 0).applicationInfo; in setupHeader() local
470 if (ai != null) { in setupHeader()
471 appIcon = ai.loadIcon(pm); in setupHeader()
593 ApplicationInfo ai = pi != null? pi.applicationInfo : null; in fillControlsSection() local
769 ApplicationInfo ai = pm.getApplicationInfo(mPackages[i], 0); in fillPackagesSection() local
770 CharSequence label = ai.loadLabel(pm); in fillPackagesSection()
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()
/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.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/task/
DInstallPackageTask.java133 for (ActivityInfo ai : pi.receivers) { in packageContentIsCorrect()
134 if (!TextUtils.isEmpty(ai.permission) && in packageContentIsCorrect()
135 ai.permission.equals(android.Manifest.permission.BIND_DEVICE_ADMIN)) { in packageContentIsCorrect()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DContactLocaleUtils.java92 AlphabeticIndex ai = new AlphabeticIndex(locales.getPrimaryLocale()) in ContactLocaleUtilsBase() local
95 ai.addLabels(secondaryLocale); in ContactLocaleUtilsBase()
97 mAlphabeticIndex = ai.addLabels(Locale.ENGLISH) in ContactLocaleUtilsBase()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/
DDeveloperOptionsActivity.java319 for (final ApplicationInfo ai : pkgs) { in getDebugAppHeader()
320 if (ai.uid == Process.SYSTEM_UID) { in getDebugAppHeader()
326 if ((ai.flags & ApplicationInfo.FLAG_DEBUGGABLE) == 0 in getDebugAppHeader()
330 MyApplicationInfo info = new MyApplicationInfo(ai, in getDebugAppHeader()
331 ai.loadLabel(getPackageManager()).toString()); in getDebugAppHeader()
/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.java445 ApplicationInfo ai = new ApplicationInfo(); in getApplicationInfo() local
446 ai.packageName = "contactsTestPackage"; in getApplicationInfo()
447 return ai; in getApplicationInfo()
/packages/apps/Email/emailcommon/src/com/android/emailcommon/
DVendorPolicyLoader.java132 ApplicationInfo ai = context.getPackageManager().getApplicationInfo(packageName, 0); in isSystemPackage() local
133 return (ai.flags & ApplicationInfo.FLAG_SYSTEM) != 0; in isSystemPackage()
/packages/services/Telephony/sip/src/com/android/services/telephony/sip/
DSipSettings.java123 ApplicationInfo ai = mPackageManager.getApplicationInfo(pkgs[0], 0); in getPackageNameFromUid() local
124 return ai.loadLabel(mPackageManager).toString(); in getPackageNameFromUid()

12