Home
last modified time | relevance | path

Searched refs:ApplicationInfo (Results 1 – 25 of 59) sorted by relevance

123

/packages/apps/Launcher2/src/com/android/launcher2/
DAllAppsList.java37 public ArrayList<ApplicationInfo> data =
38 new ArrayList<ApplicationInfo>(DEFAULT_APPLICATIONS_NUMBER);
40 public ArrayList<ApplicationInfo> added =
41 new ArrayList<ApplicationInfo>(DEFAULT_APPLICATIONS_NUMBER);
43 public ArrayList<ApplicationInfo> removed = new ArrayList<ApplicationInfo>();
45 public ArrayList<ApplicationInfo> modified = new ArrayList<ApplicationInfo>();
62 public void add(ApplicationInfo info) { in add()
82 public ApplicationInfo get(int index) { in get()
94 add(new ApplicationInfo(context.getPackageManager(), info, mIconCache, null)); in addPackage()
103 final List<ApplicationInfo> data = this.data; in removePackage()
[all …]
DApplicationInfo.java33 class ApplicationInfo extends ItemInfo { class
58 ApplicationInfo() { in ApplicationInfo() method in ApplicationInfo
65 public ApplicationInfo(PackageManager pm, ResolveInfo info, IconCache iconCache, in ApplicationInfo() method in ApplicationInfo
76 if ((appFlags & android.content.pm.ApplicationInfo.FLAG_SYSTEM) == 0) { in ApplicationInfo()
79 if ((appFlags & android.content.pm.ApplicationInfo.FLAG_UPDATED_SYSTEM_APP) != 0) { in ApplicationInfo()
91 public ApplicationInfo(ApplicationInfo info) { in ApplicationInfo() method in ApplicationInfo
121 ArrayList<ApplicationInfo> list) { in dumpApplicationInfoList()
123 for (ApplicationInfo info: list) { in dumpApplicationInfoList()
DLauncherModel.java158 public void bindAllApplications(ArrayList<ApplicationInfo> apps); in bindAllApplications()
159 public void bindAppsAdded(ArrayList<ApplicationInfo> apps); in bindAppsAdded()
160 public void bindAppsUpdated(ArrayList<ApplicationInfo> apps); in bindAppsUpdated()
162 ArrayList<ApplicationInfo> appInfos, in bindComponentsRemoved()
1842 final ArrayList<ApplicationInfo> list in onlyBindAllApps()
1843 = (ArrayList<ApplicationInfo>) mBgAllAppsList.data.clone(); in onlyBindAllApps()
1928 mBgAllAppsList.add(new ApplicationInfo(packageManager, apps.get(i), in loadAllAppsByBatch()
1935 final ArrayList<ApplicationInfo> added = mBgAllAppsList.added; in loadAllAppsByBatch()
1936 mBgAllAppsList.added = new ArrayList<ApplicationInfo>(); in loadAllAppsByBatch()
2045 ArrayList<ApplicationInfo> added = null; in run()
[all …]
DAppsCustomizePagedView.java173 private ArrayList<ApplicationInfo> mApps;
250 mApps = new ArrayList<ApplicationInfo>(); in AppsCustomizePagedView()
507 final ApplicationInfo appInfo = (ApplicationInfo) v.getTag(); in onClick()
1034 ApplicationInfo info = mApps.get(i); in syncAppsPageItems()
1548 public void setApps(ArrayList<ApplicationInfo> list) {
1553 private void addAppsWithoutInvalidate(ArrayList<ApplicationInfo> list) {
1557 ApplicationInfo info = list.get(i);
1564 public void addApps(ArrayList<ApplicationInfo> list) {
1568 private int findAppByComponent(List<ApplicationInfo> list, ApplicationInfo item) {
1572 ApplicationInfo info = list.get(i);
[all …]
DDeleteDropTarget.java92 return (source instanceof AppsCustomizePagedView) && (info instanceof ApplicationInfo); in isAllAppsApplication()
148 ApplicationInfo appInfo = (ApplicationInfo) info; in onDragStart()
149 if ((appInfo.flags & ApplicationInfo.DOWNLOADED_FLAG) != 0) { in onDragStart()
223 mLauncher.startApplicationUninstallActivity((ApplicationInfo) item); in completeDrop()
DPagedViewIconCache.java43 public Key(ApplicationInfo info) { in Key()
98 public void retainAllApps(ArrayList<ApplicationInfo> keys) { in retainAllApps()
100 for (ApplicationInfo info : keys) { in retainAllApps()
/packages/apps/Settings/src/com/android/settings/applications/
DApplicationsState.java8 import android.content.pm.ApplicationInfo;
56 public boolean filterApp(ApplicationInfo info); in filterApp()
108 ApplicationInfo info;
118 AppEntry(Context context, ApplicationInfo info, long id) { in AppEntry()
168 && (object1.info.flags&ApplicationInfo.FLAG_INSTALLED) != 0;
170 && (object2.info.flags&ApplicationInfo.FLAG_INSTALLED) != 0;
216 public boolean filterApp(ApplicationInfo info) {
217 if ((info.flags & ApplicationInfo.FLAG_UPDATED_SYSTEM_APP) != 0) {
219 } else if ((info.flags & ApplicationInfo.FLAG_SYSTEM) == 0) {
235 public boolean filterApp(ApplicationInfo info) {
[all …]
DInstalledAppDetails.java40 import android.content.pm.ApplicationInfo;
245 if ((mAppEntry.info.flags&(ApplicationInfo.FLAG_SYSTEM in initDataButtons()
246 | ApplicationInfo.FLAG_ALLOW_CLEAR_USER_DATA)) in initDataButtons()
247 == ApplicationInfo.FLAG_SYSTEM in initDataButtons()
290 } else if ((mAppEntry.info.flags & ApplicationInfo.FLAG_EXTERNAL_STORAGE) != 0) { in initMoveButton()
346 mUpdatedSysApp = (mAppEntry.info.flags & ApplicationInfo.FLAG_UPDATED_SYSTEM_APP) != 0; in initUninstallButtons()
351 if ((mAppEntry.info.flags & ApplicationInfo.FLAG_SYSTEM) != 0) { in initUninstallButtons()
358 if ((mAppEntry.info.flags & ApplicationInfo.FLAG_SYSTEM) != 0) { in initUninstallButtons()
361 & ApplicationInfo.FLAG_INSTALLED) == 0 in initUninstallButtons()
495 } else if ((mAppEntry.info.flags & ApplicationInfo.FLAG_SYSTEM) != 0) { in onPrepareOptionsMenu()
[all …]
DManageApplications.java34 import android.content.pm.ApplicationInfo;
102 boolean check(ApplicationInfo info) { in check()
104 if ((info.flags & ApplicationInfo.FLAG_EXTERNAL_STORAGE) != 0) { in check()
107 if ((info.flags & ApplicationInfo.FLAG_SYSTEM) == 0) { in check()
789 if ((entry.info.flags&ApplicationInfo.FLAG_INSTALLED) == 0) { in getView()
801 & ApplicationInfo.FLAG_EXTERNAL_STORAGE) != 0); in getView()
1129 List<ApplicationInfo> apps = pm.getInstalledApplications( in onClick()
1132 ApplicationInfo app = apps.get(i); in onClick()
DAppOpsState.java21 import android.content.pm.ApplicationInfo;
182 private final ApplicationInfo mInfo;
192 public AppEntry(AppOpsState state, ApplicationInfo info) { in AppEntry()
211 public ApplicationInfo getApplicationInfo() { in getApplicationInfo()
437 final String packageName, ApplicationInfo appInfo) { in getAppEntry()
DRunningState.java27 import android.content.pm.ApplicationInfo;
382 ApplicationInfo ai = pm.getApplicationInfo(mProcessName, in ensureLabel()
400 ApplicationInfo ai = pm.getApplicationInfo(pkgs[0], in ensureLabel()
432 ApplicationInfo ai = mServices.values().iterator().next() in ensureLabel()
442 ApplicationInfo ai = pm.getApplicationInfo(pkgs[0], in ensureLabel()
1122 & ApplicationInfo.FLAG_SYSTEM) != 0) { in update()
/packages/apps/PackageInstaller/src/com/android/packageinstaller/
DPackageInstallerActivity.java28 import android.content.pm.ApplicationInfo;
73 ApplicationInfo mSourceInfo;
76 private ApplicationInfo mAppInfo = null;
111 msg = (mAppInfo.flags & ApplicationInfo.FLAG_SYSTEM) != 0 in startInstallConfirm()
161 msg = (mAppInfo.flags & ApplicationInfo.FLAG_SYSTEM) != 0 in startInstallConfirm()
330 if ((mAppInfo.flags&ApplicationInfo.FLAG_INSTALLED) == 0) {
413 if ((mSourceInfo.flags&ApplicationInfo.FLAG_SYSTEM) != 0) {
447 private ApplicationInfo getSourceInfo() {
470 ApplicationInfo sourceInfo = getSourceInfo();
473 (mSourceInfo.flags & ApplicationInfo.FLAG_SYSTEM) != 0) {
[all …]
DPackageUtil.java21 import android.content.pm.ApplicationInfo;
51 public static ApplicationInfo getApplicationInfo(File sourcePath) { in getApplicationInfo()
101 ApplicationInfo appInfo, View snippetView) { in initSnippetForInstalledApp()
157 Activity pContext, ApplicationInfo appInfo, File sourceFile) { in getAppSnippet()
DUninstallAppProgress.java22 import android.content.pm.ApplicationInfo;
47 private ApplicationInfo mAppInfo;
133 boolean isUpdate = ((mAppInfo.flags & ApplicationInfo.FLAG_UPDATED_SYSTEM_APP) != 0); in initView()
DUninstallerActivity.java27 import android.content.pm.ApplicationInfo;
56 private ApplicationInfo mAppInfo;
156 boolean isUpdate = ((mAppInfo.flags & ApplicationInfo.FLAG_UPDATED_SYSTEM_APP) != 0);
/packages/apps/Settings/src/com/android/settings/users/
DAppRestrictionsFragment.java31 import android.content.pm.ApplicationInfo;
141 private List<ApplicationInfo> mUserApps;
367 ApplicationInfo info = ipm.getApplicationInfo(packageName, 0, userId); in updateUserAppList()
379 ApplicationInfo info = ipm.getApplicationInfo(packageName, 0, userId); in updateUserAppList()
398 if ((flags & ApplicationInfo.FLAG_SYSTEM) != 0 in isSystemPackage()
399 || (flags & ApplicationInfo.FLAG_UPDATED_SYSTEM_APP) != 0) { in isSystemPackage()
448 if ((flags & ApplicationInfo.FLAG_SYSTEM) != 0 in addSystemApps()
449 || (flags & ApplicationInfo.FLAG_UPDATED_SYSTEM_APP) != 0) { in addSystemApps()
505 List<ApplicationInfo> installedApps = pm.getInstalledApplications(0); in fetchAndMergeApps()
506 for (ApplicationInfo app : installedApps) { in fetchAndMergeApps()
[all …]
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DPowerUsageDetail.java30 import android.content.pm.ApplicationInfo;
135 ApplicationInfo mApp;
182 ApplicationInfo ai = pm.getPackageInfo(iconPackage, 0).applicationInfo; in createDetails()
350 ApplicationInfo ai = pi != null? pi.applicationInfo : null; in fillControlsSection()
351 boolean isSystem = ai != null? (ai.flags & ApplicationInfo.FLAG_SYSTEM) != 0 : false; in fillControlsSection()
455 ApplicationInfo info = mPm.getApplicationInfo(mPackages[i], 0); in checkForceStop()
456 if ((info.flags&ApplicationInfo.FLAG_STOPPED) == 0) { in checkForceStop()
481 report.systemApp = (mApp.flags & ApplicationInfo.FLAG_SYSTEM) != 0; in reportBatteryUse()
518 ApplicationInfo ai = pm.getApplicationInfo(mPackages[i], 0); in fillPackagesSection()
/packages/apps/Settings/src/com/android/settings/
DAppPicker.java31 import android.content.pm.ApplicationInfo;
78 ApplicationInfo info;
89 List<ApplicationInfo> pkgs = context.getPackageManager().getInstalledApplications(0); in AppListAdapter()
91 ApplicationInfo ai = pkgs.get(i); in AppListAdapter()
98 if ((ai.flags&ApplicationInfo.FLAG_DEBUGGABLE) == 0 in AppListAdapter()
DUtils.java27 import android.content.pm.ApplicationInfo;
136 if ((resolveInfo.activityInfo.applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) in updatePreferenceToSpecificActivityOrRemove()
199 & ApplicationInfo.FLAG_SYSTEM) != 0) { in updatePreferenceToSpecificActivityFromMetaDataOrRemove()
259 if ((resolveInfo.activityInfo.applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) in updateHeaderToSpecificActivityFromMetaDataOrRemove()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsMockPackageManager.java19 import android.content.pm.ApplicationInfo;
69 public ApplicationInfo getApplicationInfo(String packageName, int flags) { in getApplicationInfo()
70 ApplicationInfo info = new ApplicationInfo(); in getApplicationInfo()
DContactsActor.java33 import android.content.pm.ApplicationInfo;
288 public ApplicationInfo getApplicationInfo() { in getApplicationInfo()
289 ApplicationInfo ai = new ApplicationInfo(); in getApplicationInfo()
/packages/apps/Settings/tests/src/com/android/settings/
DSettingsHookTests.java26 import android.content.pm.ApplicationInfo;
77 ApplicationInfo applicationInfo = pm.getApplicationInfo(PACKAGE_NAME, 0); in testSettingsHookTestAppAvailable()
78 assertTrue((applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) != 0); in testSettingsHookTestAppAvailable()
/packages/apps/Settings/src/com/android/settings/net/
DUidDetailProvider.java20 import android.content.pm.ApplicationInfo;
134 final ApplicationInfo info = pm.getApplicationInfo(packageNames[0], 0); in buildUidDetail()
142 final ApplicationInfo appInfo = pm.getApplicationInfo(packageName, 0); in buildUidDetail()
/packages/apps/Email/src/com/android/email/
DVendorPolicyLoader.java23 import android.content.pm.ApplicationInfo;
133 ApplicationInfo ai = context.getPackageManager().getApplicationInfo(packageName, 0); in isSystemPackage()
134 return (ai.flags & ApplicationInfo.FLAG_SYSTEM) != 0; in isSystemPackage()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DSettings.java21 import android.content.pm.ApplicationInfo;
303 final ApplicationInfo appInfo = context.getApplicationInfo(); in readShowSetupWizardIcon()
305 (appInfo.flags & ApplicationInfo.FLAG_SYSTEM) != 0; in readShowSetupWizardIcon()

123