Home
last modified time | relevance | path

Searched refs:mPackageManager (Results 1 – 17 of 17) sorted by relevance

/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactDirectoryManagerTest.java53 private ContactsMockPackageManager mPackageManager; field in ContactDirectoryManagerTest
118 mPackageManager = (ContactsMockPackageManager) getProvider() in setUp()
146 mPackageManager.setInstalledPackages( in testScanAllProviders()
195 mPackageManager.setInstalledPackages( in testPackageInstalled()
224 mPackageManager.getInstalledPackages(0).add( in testPackageInstalled()
246 mPackageManager.setInstalledPackages( in testPackageUninstalled()
276 mPackageManager.getInstalledPackages(0).remove(1); in testPackageUninstalled()
292 mPackageManager.setInstalledPackages( in testPackageReplaced()
350 mPackageManager.setInstalledPackages( in testPackageRenamed()
380 PackageInfo info = mPackageManager.getInstalledPackages(0).get(1); in testPackageRenamed()
[all …]
DContactsActor.java236 private final ContactsMockPackageManager mPackageManager; field in ContactsActor.RestrictionMockContext
254 mPackageManager = new ContactsMockPackageManager(); in RestrictionMockContext()
255 mPackageManager.addPackage(1000, PACKAGE_GREY); in RestrictionMockContext()
256 mPackageManager.addPackage(2000, PACKAGE_RED); in RestrictionMockContext()
257 mPackageManager.addPackage(3000, PACKAGE_GREEN); in RestrictionMockContext()
258 mPackageManager.addPackage(4000, PACKAGE_BLUE); in RestrictionMockContext()
274 return mPackageManager; in getPackageManager()
/packages/apps/MusicFX/src/com/android/musicfx/
DCompatibility.java110 PackageManager mPackageManager; field in Compatibility.Service
119 if (mPackageManager == null) { in onHandleIntent()
120 mPackageManager = getPackageManager(); in onHandleIntent()
150 …List<ResolveInfo> ris = mPackageManager.queryIntentActivities(i, PackageManager.GET_DISABLED_COMPO… in pickDefaultControlPanel()
200 …List<ResolveInfo> ris = mPackageManager.queryBroadcastReceivers(i, PackageManager.GET_DISABLED_COM… in setDefault()
204 … ris = mPackageManager.queryBroadcastReceivers(i, PackageManager.GET_DISABLED_COMPONENTS); in setDefault()
226 mPackageManager.setComponentEnabledSetting(comp, in setupReceivers()
231 mPackageManager.setComponentEnabledSetting(comp, in setupReceivers()
/packages/apps/Contacts/src/com/android/contacts/quickcontact/
DResolveCache.java64 private final PackageManager mPackageManager; field in ResolveCache
116 mPackageManager = context.getPackageManager(); in ResolveCache()
136 final List<ResolveInfo> matches = mPackageManager.queryIntentActivities(intent, in getEntry()
149 final Drawable icon = bestResolve.loadIcon(mPackageManager); in getEntry()
171 final ResolveInfo foundResolve = mPackageManager.resolveActivity(intent, in getBestResolve()
211 final CharSequence infoStr = info != null ? info.loadLabel(mPackageManager) : null; in getDescription()
/packages/apps/Launcher2/src/com/android/launcher2/
DIconCache.java49 private final PackageManager mPackageManager; field in IconCache
59 mPackageManager = context.getPackageManager(); in IconCache()
85 resources = mPackageManager.getResourcesForApplication(packageName); in getFullResIcon()
105 resources = mPackageManager.getResourcesForApplication( in getFullResIcon()
164 final ResolveInfo resolveInfo = mPackageManager.resolveActivity(intent, 0); in getIcon()
204 entry.title = info.loadLabel(mPackageManager).toString(); in cacheLocked()
DLauncherModel.java2544 private PackageManager mPackageManager;
2547 mPackageManager = pm;
2552 mPackageManager = pm;
2563 labelA = a.loadLabel(mPackageManager).toString();
2570 labelB = b.loadLabel(mPackageManager).toString();
2579 private PackageManager mPackageManager;
2582 mPackageManager = pm;
2593 ((ResolveInfo) a).loadLabel(mPackageManager).toString();
2601 ((ResolveInfo) b).loadLabel(mPackageManager).toString();
DWidgetPreviewLoader.java111 private PackageManager mPackageManager; field in WidgetPreviewLoader
144 mPackageManager = mContext.getPackageManager(); in WidgetPreviewLoader()
430 drawable = mPackageManager.getDrawable(packageName, previewImage, null); in generateWidgetPreview()
DAppsCustomizePagedView.java166 private final PackageManager mPackageManager; field in AppsCustomizePagedView
249 mPackageManager = context.getPackageManager(); in AppsCustomizePagedView()
1220 widget.applyFromResolveInfo(mPackageManager, info, mWidgetPreviewLoader); in syncWidgetPageItems()
1642 Log.d(tag, " label=\"" + info.loadLabel(mPackageManager) + "\" icon="
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DContactDirectoryManager.java102 private final PackageManager mPackageManager; field in ContactDirectoryManager
107 mPackageManager = mContext.getPackageManager(); in ContactDirectoryManager()
119 final String[] callerPackages = mPackageManager.getPackagesForUid(callingUid); in scanPackagesByUid()
164 Resources resources = mPackageManager.getResourcesForApplication(packageName); in getResourceNameById()
256 for (String packageName : getDirectoryProviderPackages(mPackageManager)) { in scanAllPackages()
268 packageInfo = mPackageManager.getPackageInfo(packageName, in scanAllPackages()
338 packageInfo = mPackageManager.getPackageInfo(packageName, in onPackageChanged()
/packages/apps/Phone/src/com/android/phone/sip/
DSipSettings.java75 private PackageManager mPackageManager; field in SipSettings
133 String[] pkgs = mPackageManager.getPackagesForUid(uid); in getPackageNameFromUid()
135 mPackageManager.getApplicationInfo(pkgs[0], 0); in getPackageNameFromUid()
136 return ai.loadLabel(mPackageManager).toString(); in getPackageNameFromUid()
151 mPackageManager = getPackageManager(); in onCreate()
/packages/wallpapers/LivePicker/src/com/android/wallpaper/livepicker/
DLiveWallpaperListAdapter.java56 private final PackageManager mPackageManager; field in LiveWallpaperListAdapter
63 mPackageManager = context.getPackageManager(); in LiveWallpaperListAdapter()
65 List<ResolveInfo> list = mPackageManager.queryIntentServices( in LiveWallpaperListAdapter()
117 holder.title.setText(wallpaperInfo.info.loadLabel(mPackageManager)); in getView()
/packages/apps/Nfc/src/com/android/nfc/
DP2pLinkManager.java192 PackageManager mPackageManager; field in P2pLinkManager
225 mPackageManager = context.getPackageManager(); in P2pLinkManager()
287 mValidCallbackPackages = mPackageManager.getPackagesForUid(callingUid); in setNdefCallback()
384 mPackageManager = mContext.createPackageContextAsUser("android", 0, in onUserSwitched()
464 ApplicationInfo ai = mPackageManager.getApplicationInfo(pkgName, in beamDefaultDisabled()
/packages/apps/ContactsCommon/TestCommon/src/com/android/contacts/common/test/mocks/
DContactsMockContext.java35 private ContactsMockPackageManager mPackageManager; field in ContactsMockContext
43 mPackageManager = new ContactsMockPackageManager(); in ContactsMockContext()
68 return mPackageManager; in getPackageManager()
/packages/apps/Settings/src/com/android/settings/
DAppWidgetPickActivity.java60 private PackageManager mPackageManager; field in AppWidgetPickActivity
64 mPackageManager = getPackageManager(); in onCreate()
121 Resources packageResources = mPackageManager. in createItem()
DKeyguardAppWidgetPickActivity.java202 private PackageManager mPackageManager; field in KeyguardAppWidgetPickActivity.Item.WidgetPreviewLoader
208 mPackageManager = context.getPackageManager(); in WidgetPreviewLoader()
309 drawable = mPackageManager.getDrawable(packageName, previewImage, null); in getWidgetPreview()
399 resources = mPackageManager.getResourcesForApplication(packageName); in getFullResIcon()
/packages/apps/Settings/src/com/android/settings/users/
DAppRestrictionsFragment.java110 private PackageManager mPackageManager; field in AppRestrictionsFragment
288 mPackageManager = getActivity().getPackageManager(); in onCreate()
395 final PackageInfo pi = mPackageManager.getPackageInfo(packageName, 0); in isSystemPackage()
442 final PackageManager pm = mPackageManager; in addSystemApps()
490 final PackageManager pm = mPackageManager; in fetchAndMergeApps()
582 final PackageManager pm = mPackageManager; in populateApps()
/packages/apps/Contacts/src/com/android/contacts/detail/
DContactDetailDisplayUtils.java444 private final PackageManager mPackageManager; field in ContactDetailDisplayUtils.DefaultImageGetter
447 mPackageManager = packageManager; in DefaultImageGetter()
507 return mPackageManager.getResourcesForApplication(packageName); in getResourcesForResourceName()