Home
last modified time | relevance | path

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

123

/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/
DMoveAppActivity.java45 private PackageManager mPackageManager; field in MoveAppActivity
76 mPackageManager = getPackageManager(); in onCreate()
77 mPackageManager.registerMoveCallback(mMoveCallback, new Handler()); in onCreate()
101 mPackageManager.unregisterMoveCallback(mMoveCallback); in onDestroy()
106 mAppMoveId = mPackageManager.movePackage(packageName, destination); in onRequestMovePackageToVolume()
109 applicationInfo = mPackageManager in onRequestMovePackageToVolume()
116 .newInstance(mPackageManager.getApplicationLabel(applicationInfo)); in onRequestMovePackageToVolume()
DEnableDisablePreference.java42 private final PackageManager mPackageManager; field in EnableDisablePreference
47 mPackageManager = context.getPackageManager(); in EnableDisablePreference()
70 packageInfo = mPackageManager.getPackageInfo(mEntry.info.packageName, in canDisable()
78 isSystemPackage(mPackageManager, packageInfo)); in canDisable()
85 mPackageManager.getHomeActivities(homeActivities); in getHomePackages()
93 if (signaturesMatch(mPackageManager, metaPkg, activityPkg)) { in getHomePackages()
DAppStoragePreference.java32 private final PackageManager mPackageManager; field in AppStoragePreference
37 mPackageManager = context.getPackageManager(); in AppStoragePreference()
44 final VolumeInfo volumeInfo = mPackageManager.getPackageCurrentVolume(applicationInfo); in refresh()
46 mPackageManager.getPackageCandidateVolumes(applicationInfo); in refresh()
DClearDefaultsPreference.java36 private final PackageManager mPackageManager; field in ClearDefaultsPreference
43 mPackageManager = context.getPackageManager(); in ClearDefaultsPreference()
52 mEntry, mUsbManager, mPackageManager, getContext())); in refresh()
DAppManagementFragment.java50 private PackageManager mPackageManager; field in AppManagementFragment
85 mPackageManager = activity.getPackageManager(); in onCreate()
174 mPackageManager.getLeanbackLaunchIntentForPackage(mEntry.info.packageName); in onCreatePreferences()
176 appLaunchIntent = mPackageManager.getLaunchIntentForPackage(mEntry.info.packageName); in onCreatePreferences()
292 mPackageManager.deleteApplicationCacheFiles(mEntry.info.packageName, in clearCache()
/packages/apps/ManagedProvisioning/tests/src/com/android/managedprovisioning/task/
DInstallPackageTaskTest.java52 private PackageManager mPackageManager; field in InstallPackageTaskTest
69 mPackageManager = mock(PackageManager.class); in setUp()
80 when(mPackageManager.getPackageArchiveInfo(eq(TEST_PACKAGE_LOCATION), anyInt())). in setUp()
85 when(mContext.getPackageManager()).thenReturn(mPackageManager); in setUp()
95 verify(mPackageManager, never()).installPackage( in testInstall_NoPackages()
120 doAnswer(installerAnswer).when(mPackageManager).installPackage( in testInstall_OnePackage()
143 doAnswer(installerAnswer).when(mPackageManager).installPackage( in testInstall_InstallFailedVersionDowngrade()
157 verify(mPackageManager, never()).installPackage( in testPackageHasNoReceivers()
DSetDevicePolicyTaskTest.java43 @Mock private PackageManager mPackageManager; field in SetDevicePolicyTaskTest
56 when(mContext.getPackageManager()).thenReturn(mPackageManager); in setUp()
59 when(mPackageManager.getApplicationEnabledSetting(ADMIN_PACKAGE_NAME)) in setUp()
70 when(mPackageManager.getApplicationEnabledSetting(ADMIN_PACKAGE_NAME)) in testEnableDevicePolicyApp()
73 verify(mPackageManager).setApplicationEnabledSetting(ADMIN_PACKAGE_NAME, in testEnableDevicePolicyApp()
81 when(mPackageManager.getApplicationEnabledSetting(ADMIN_PACKAGE_NAME)) in testEnableDevicePolicyApp_PackageNotFound()
/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/ManagedProvisioning/src/com/android/managedprovisioning/
DPreBootListener.java42 private PackageManager mPackageManager; field in PreBootListener
56 mPackageManager = context.getPackageManager(); in onReceive()
115 mPackageManager.installExistingPackageAsUser(TELECOM_PACKAGE, userId); in installTelecomAsUser()
132 mPackageManager.clearCrossProfileIntentFilters(userId); in resetCrossProfileIntentFilters()
139 mPackageManager.clearCrossProfileIntentFilters(profile.id); in resetCrossProfileIntentFilters()
141 mPackageManager, userId, profile.id); in resetCrossProfileIntentFilters()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/storage/
DMoveAppStepFragment.java45 private PackageManager mPackageManager; field in MoveAppStepFragment
69 mPackageManager = getActivity().getPackageManager(); in onCreate()
87 icon = mPackageManager.getApplicationIcon(mPackageName); in onCreateGuidance()
103 info = mPackageManager.getApplicationInfo(packageName, 0); in onCreateActions()
108 mCurrentVolume = mPackageManager.getPackageCurrentVolume(info); in onCreateActions()
109 mCandidateVolumes = mPackageManager.getPackageCandidateVolumes(info); in onCreateActions()
DBackupAppsStepFragment.java52 private PackageManager mPackageManager; field in BackupAppsStepFragment
74 mPackageManager = getActivity().getPackageManager(); in onCreate()
121 mPackageManager.getPrimaryStorageCurrentVolume().getId(); in onCreateGuidance()
149 final VolumeInfo currentExternal = mPackageManager.getPrimaryStorageCurrentVolume(); in getAppActions()
155 mPackageManager.getPrimaryStorageCandidateVolumes(); in getAppActions()
286 result.put(entry.info.packageName, mPackageManager.getApplicationIcon(entry.info)); in doInBackground()
/packages/apps/TV/src/com/android/tv/menu/
DAppLinkCardView.java72 private final PackageManager mPackageManager; field in AppLinkCardView
94 mPackageManager = context.getPackageManager(); in AppLinkCardView()
128 mAppInfoView.setText(mPackageManager.getApplicationLabel(appInfo)); in onBind()
134 Drawable appIcon = mPackageManager.getApplicationIcon(appInfo); in onBind()
143 mPackageManager.getApplicationLabel(appInfo))); in onBind()
266 banner = mPackageManager.getActivityBanner(mIntent);
268 banner = mPackageManager.getActivityIcon(mIntent);
277 banner = mPackageManager.getApplicationBanner(appInfo);
280 banner = mPackageManager.getApplicationIcon(appInfo);
/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/model/
DAppPermissionGroup.java46 private final PackageManager mPackageManager; field in AppPermissionGroup
190 mPackageManager = mContext.getPackageManager(); in AppPermissionGroup()
233 mPackageManager.updatePermissionFlags(permission.getName(), in resetReviewRequired()
346 mPackageManager.grantRuntimePermission(mPackageInfo.packageName, in grantRuntimePermissions()
357 mPackageManager.updatePermissionFlags(permission.getName(), in grantRuntimePermissions()
397 mPackageManager.updatePermissionFlags(permission.getName(), in grantRuntimePermissions()
435 mPackageManager.revokeRuntimePermission(mPackageInfo.packageName, in revokeRuntimePermissions()
445 mPackageManager.updatePermissionFlags(permission.getName(), in revokeRuntimePermissions()
456 mPackageManager.updatePermissionFlags(permission.getName(), in revokeRuntimePermissions()
497 mPackageManager.updatePermissionFlags(permission.getName(), in revokeRuntimePermissions()
[all …]
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactDirectoryManagerTest.java54 private ContactsMockPackageManager mPackageManager; field in ContactDirectoryManagerTest
119 mPackageManager = (ContactsMockPackageManager) getProvider() in setUp()
150 mPackageManager.setInstalledPackages( in testScanAllProviders()
213 mPackageManager.setInstalledPackages( in testPackageInstalled()
242 mPackageManager.getInstalledPackages(0).add( in testPackageInstalled()
264 mPackageManager.setInstalledPackages( in testPackageUninstalled()
294 mPackageManager.getInstalledPackages(0).remove(1); in testPackageUninstalled()
310 mPackageManager.setInstalledPackages( in testPackageReplaced()
368 mPackageManager.setInstalledPackages( in testPackageRenamed()
398 PackageInfo info = mPackageManager.getInstalledPackages(0).get(1); in testPackageRenamed()
[all …]
/packages/apps/Launcher3/WallpaperPicker/src/com/android/launcher3/
DThirdPartyWallpaperPickerListAdapter.java41 private final PackageManager mPackageManager; field in ThirdPartyWallpaperPickerListAdapter
67 mPackageManager = context.getPackageManager(); in ThirdPartyWallpaperPickerListAdapter()
69 final PackageManager pm = mPackageManager; in ThirdPartyWallpaperPickerListAdapter()
132 label.setText(info.loadLabel(mPackageManager)); in getView()
133 Drawable icon = info.loadIcon(mPackageManager); in getView()
DLiveWallpaperListAdapter.java52 private final PackageManager mPackageManager; field in LiveWallpaperListAdapter
59 mPackageManager = context.getPackageManager(); in LiveWallpaperListAdapter()
61 List<ResolveInfo> list = mPackageManager.queryIntentServices( in LiveWallpaperListAdapter()
102 icon.setImageDrawable(wallpaperInfo.mInfo.loadIcon(mPackageManager)); in getView()
107 label.setText(wallpaperInfo.mInfo.loadLabel(mPackageManager)); in getView()
/packages/apps/Contacts/src/com/android/contacts/quickcontact/
DResolveCache.java65 private final PackageManager mPackageManager; field in ResolveCache
117 mPackageManager = context.getPackageManager(); in ResolveCache()
135 final List<ResolveInfo> matches = mPackageManager.queryIntentActivities(intent, in getEntry()
148 final Drawable icon = bestResolve.loadIcon(mPackageManager); in getEntry()
170 final ResolveInfo foundResolve = mPackageManager.resolveActivity(intent, in getBestResolve()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/
DSetDevicePolicyTask.java43 private PackageManager mPackageManager; field in SetDevicePolicyTask
58 mPackageManager = mContext.getPackageManager(); in SetDevicePolicyTask()
86 int enabledSetting = mPackageManager.getApplicationEnabledSetting(packageName); in enableDevicePolicyApp()
88 mPackageManager.setApplicationEnabledSetting(packageName, in enableDevicePolicyApp()
/packages/apps/Launcher2/src/com/android/launcher2/
DIconCache.java74 private final PackageManager mPackageManager; field in IconCache
84 mPackageManager = context.getPackageManager(); in IconCache()
106 return mPackageManager.getUserBadgedIcon(d, user); in getFullResIcon()
115 resources = mPackageManager.getResourcesForApplication(packageName); in getFullResIcon()
134 resources = mPackageManager.getResourcesForApplication( in getFullResIcon()
247 entry.contentDescription = mPackageManager.getUserBadgedLabel(entry.title, user); in cacheLocked()
/packages/apps/Launcher3/src/com/android/launcher3/
DDefaultLayoutParser.java110 ResolveInfo resolved = mPackageManager.resolveActivity(metaIntent, in invalidPackageOrClass()
112 final List<ResolveInfo> appList = mPackageManager.queryIntentActivities( in invalidPackageOrClass()
130 final Intent intent = mPackageManager.getLaunchIntentForPackage(info.packageName); in invalidPackageOrClass()
137 return addShortcut(info.loadLabel(mPackageManager).toString(), intent, in invalidPackageOrClass()
146 ApplicationInfo info = mPackageManager.getApplicationInfo( in getSingleSystemActivity()
240 final Partner partner = Partner.get(mPackageManager); in parseAndAdd()
DAutoInstallsLayout.java156 protected final PackageManager mPackageManager; field in AutoInstallsLayout
177 mPackageManager = context.getPackageManager(); in AutoInstallsLayout()
348 info = mPackageManager.getActivityInfo(cn, 0); in parseAndAdd()
350 String[] packages = mPackageManager.currentToCanonicalPackageNames( in parseAndAdd()
353 info = mPackageManager.getActivityInfo(cn, 0); in parseAndAdd()
361 return addShortcut(info.loadLabel(mPackageManager).toString(), in parseAndAdd()
477 mPackageManager.getReceiverInfo(cn, 0); in parseAndAdd()
479 String[] packages = mPackageManager.currentToCanonicalPackageNames( in parseAndAdd()
483 mPackageManager.getReceiverInfo(cn, 0); in parseAndAdd()
/packages/apps/Settings/src/com/android/settings/display/
DAppGridView.java67 private final PackageManager mPackageManager; field in AppGridView.AppsAdapter
74 mPackageManager = context.getPackageManager(); in AppsAdapter()
84 final Drawable icon = entry.info.loadIcon(mPackageManager); in getView()
108 final PackageManager pm = mPackageManager; in loadAllApps()
/packages/apps/ContactsCommon/TestCommon/src/com/android/contacts/common/test/mocks/
DContactsMockContext.java35 private ContactsMockPackageManager mPackageManager; field in ContactsMockContext
47 mPackageManager = new ContactsMockPackageManager(); in ContactsMockContext()
70 return mPackageManager; in getPackageManager()
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapAccountLoader.java50 private PackageManager mPackageManager = null; field in BluetoothMapAccountLoader
83 mPackageManager = mContext.getPackageManager(); in parsePackages()
87 mPackageManager.queryIntentContentProviders(searchIntent, 0); in parsePackages()
136 String name = rInfo.loadLabel(mPackageManager).toString(); in createAppItem()
144 (includeIcon == false)? null : rInfo.loadIcon(mPackageManager), in createAppItem()
/packages/apps/Launcher3/src/com/android/launcher3/model/
DWidgetsAndShortcutNameComparator.java21 private final PackageManager mPackageManager; field in WidgetsAndShortcutNameComparator
28 mPackageManager = context.getPackageManager(); in WidgetsAndShortcutNameComparator()
97 return Utilities.trim(shortcutInfo.loadLabel(mPackageManager)); in getLabel()

123