Home
last modified time | relevance | path

Searched refs:getPackageManager (Results 1 – 25 of 274) sorted by relevance

1234567891011

/frameworks/base/core/tests/coretests/src/android/app/activity/
DMetaDataTest.java59 XmlResourceParser xml = ci.loadXmlMetaData(mContext.getPackageManager(), in checkMetaData()
100 ActivityInfo ai = mContext.getPackageManager().getActivityInfo( in testActivityWithData()
105 ai = mContext.getPackageManager().getActivityInfo(cn, 0); in testActivityWithData()
113 ActivityInfo ai = mContext.getPackageManager().getReceiverInfo( in testReceiverWithData()
118 ai = mContext.getPackageManager().getReceiverInfo(cn, 0); in testReceiverWithData()
126 ServiceInfo si = mContext.getPackageManager().getServiceInfo( in testServiceWithData()
131 si = mContext.getPackageManager().getServiceInfo(cn, 0); in testServiceWithData()
139 ProviderInfo pi = mContext.getPackageManager().resolveContentProvider( in testProviderWithData()
144 pi = mContext.getPackageManager().resolveContentProvider( in testProviderWithData()
154 PermissionInfo pi = mContext.getPackageManager().getPermissionInfo( in testPermissionWithData()
[all …]
/frameworks/base/services/core/java/com/android/server/am/
DLaunchWarningWindow.java46 icon.setImageDrawable(next.info.applicationInfo.loadIcon(context.getPackageManager())); in LaunchWarningWindow()
49 next.info.applicationInfo.loadLabel(context.getPackageManager()).toString())); in LaunchWarningWindow()
51 icon.setImageDrawable(cur.info.applicationInfo.loadIcon(context.getPackageManager())); in LaunchWarningWindow()
54 cur.info.applicationInfo.loadLabel(context.getPackageManager()).toString())); in LaunchWarningWindow()
DCompatModePackages.java149 ai = AppGlobals.getPackageManager().getApplicationInfo(packageName, 0, 0); in handlePackageAddedLocked()
248 ai = AppGlobals.getPackageManager().getApplicationInfo(packageName, 0, 0); in getPackageScreenCompatModeLocked()
260 ai = AppGlobals.getPackageManager().getApplicationInfo(packageName, 0, 0); in setPackageScreenCompatModeLocked()
368 final IPackageManager pm = AppGlobals.getPackageManager(); in saveCompatModes()
DAppNotRespondingDialog.java52 ? activity.info.loadLabel(context.getPackageManager()) in AppNotRespondingDialog()
56 (name2=context.getPackageManager().getApplicationLabel(app.info)) != null) { in AppNotRespondingDialog()
/frameworks/base/core/java/android/app/
DAppGlobals.java46 public static IPackageManager getPackageManager() { in getPackageManager() method in AppGlobals
47 return ActivityThread.getPackageManager(); in getPackageManager()
DTaskStackBuilder.java109 target = nextIntent.resolveActivity(mSourceContext.getPackageManager()); in addNextIntentWithParentStack()
135 target = parent.resolveActivity(mSourceContext.getPackageManager()); in addParentStack()
166 PackageManager pm = mSourceContext.getPackageManager(); in addParentStack()
DAliasActivity.java58 ActivityInfo ai = getPackageManager().getActivityInfo( in onCreate()
60 parser = ai.loadXmlMetaData(getPackageManager(), in onCreate()
/frameworks/base/core/java/com/android/internal/app/
DHeavyWeightSwitcherActivity.java109 ApplicationInfo info = getPackageManager().getApplicationInfo( in setIconAndText()
111 appName = info.loadLabel(getPackageManager()); in setIconAndText()
112 appIcon = info.loadIcon(getPackageManager()); in setIconAndText()
DIntentForwarderActivity.java96 final android.content.pm.ResolveInfo ri = getPackageManager().resolveActivityAsUser( in onCreate()
135 IPackageManager ipm = AppGlobals.getPackageManager(); in canForward()
/frameworks/base/tests/StatusBar/src/com/android/statusbartest/
DPowerTest.java54 PackageManager pm = getPackageManager();
63 PackageManager pm = getPackageManager();
/frameworks/base/tests/SharedLibrary/lib/src/com/google/android/test/shared_library/
DVersionDialog.java52 activity.getApplicationInfo().loadLabel(activity.getPackageManager()), in onCreateDialog()
53 context.getApplicationInfo().loadLabel(context.getPackageManager()))); in onCreateDialog()
DSharedLibraryMain.java45 pi = context.getPackageManager().getPackageInfo(LIBRARY_PACKAGE, 0); in getVersion()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/util/
DMediaSizeUtils.java100 return lhs.getLabel(mContext.getPackageManager()). in compare()
101 compareTo(rhs.getLabel(mContext.getPackageManager())); in compare()
/frameworks/base/packages/SystemUI/src/com/android/systemui/recent/
DRecentTasksLoader.java152 final PackageManager pm = mContext.getPackageManager(); in isCurrentHomeActivity()
168 final PackageManager pm = mContext.getPackageManager(); in createTaskDescription()
169 final IPackageManager ipm = AppGlobals.getPackageManager(); in createTaskDescription()
201 final PackageManager pm = mContext.getPackageManager(); in loadThumbnailAndIcon()
206 icon = mContext.getPackageManager().getUserBadgedIcon(icon, new UserHandle(td.userId)); in loadThumbnailAndIcon()
451 final PackageManager pm = mContext.getPackageManager(); in loadTasksInBackground()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DPreviewInflater.java81 PackageManager packageManager = mContext.getPackageManager(); in getWidgetInfo()
110 PackageManager packageManager = ctx.getPackageManager(); in wouldLaunchResolverActivity()
/frameworks/base/services/tests/servicestests/src/com/android/server/search/
DSearchablesTest.java101 MyMockPackageManager mockPM = new MyMockPackageManager(mContext.getPackageManager()); in testSearchablesListReal()
121 MyMockPackageManager mockPM = new MyMockPackageManager(mContext.getPackageManager()); in testSearchablesListEmpty()
255 public PackageManager getPackageManager() { in getPackageManager() method in SearchablesTest.MyMockContext
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DDessertCase.java31 PackageManager pm = getPackageManager(); in onStart()
/frameworks/base/core/java/android/os/
DUserManager.java479 return mContext.getPackageManager() in isUserAGoat()
964 return mContext.getPackageManager().getUserBadgedIcon(icon, user); in getBadgedIconForUser()
994 return mContext.getPackageManager().getUserBadgedDrawableForDensity(badgedDrawable, user, in getBadgedDrawableForUser()
1011 return mContext.getPackageManager().getUserBadgedLabel(label, user); in getBadgedLabelForUser()
/frameworks/base/services/core/java/com/android/server/pm/
DLauncherAppsService.java82 mPm = mContext.getPackageManager(); in LauncherAppsImpl()
237 IPackageManager pm = AppGlobals.getPackageManager(); in isPackageEnabled()
255 IPackageManager pm = AppGlobals.getPackageManager(); in isActivityEnabled()
279 IPackageManager pm = AppGlobals.getPackageManager(); in startActivityAsUser()
/frameworks/base/core/java/android/appwidget/
DAppWidgetProviderInfo.java367 Resources resources = context.getPackageManager().getResourcesForApplication( in loadDrawable()
378 return loadDefaultIcon ? providerInfo.loadIcon(context.getPackageManager()) : null; in loadDrawable()
/frameworks/base/services/core/java/com/android/server/firewall/
DSenderPackageFilter.java43 IPackageManager pm = AppGlobals.getPackageManager(); in matches()
/frameworks/base/docs/html-intl/intl/zh-cn/training/monitoring-device-state/
Dmanifest-receivers.jd42 PackageManager pm = context.getPackageManager();
/frameworks/base/tests/permission/src/com/android/framework/permission/tests/
DPmPermissionsTests.java34 mPm = getContext().getPackageManager(); in setUp()
/frameworks/base/docs/html-intl/intl/ja/training/monitoring-device-state/
Dmanifest-receivers.jd42 PackageManager pm = context.getPackageManager();
/frameworks/base/docs/html-intl/intl/ko/training/monitoring-device-state/
Dmanifest-receivers.jd42 PackageManager pm = context.getPackageManager();

1234567891011