Home
last modified time | relevance | path

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

12345678910>>...17

/packages/apps/Settings/src/com/android/settings/deviceinfo/
DStorageWizardMoveConfirm.java47 mApp = getPackageManager().getApplicationInfo(mPackageName, 0); in onCreate()
55 getPackageManager().getPackageCandidateVolumes(mApp).contains(mVolume)); in onCreate()
57 final String appName = getPackageManager().getApplicationLabel(mApp).toString(); in onCreate()
70 final String appName = getPackageManager().getApplicationLabel(mApp).toString(); in onNavigateNext()
71 final int moveId = getPackageManager().movePackage(mPackageName, mVolume); in onNavigateNext()
DStorageWizardMoveProgress.java56 getPackageManager().registerMoveCallback(mCallback, new Handler()); in onCreate()
57 mCallback.onStatusChanged(mMoveId, getPackageManager().getMoveStatus(mMoveId), -1); in onCreate()
63 getPackageManager().unregisterMoveCallback(mCallback); in onDestroy()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DBaseVoicemailProviderTest.java50 .getContext().getPackageManager(); in setUp()
109 public PackageManager getPackageManager() { in createMockProviderCalls() method in BaseVoicemailProviderTest
110 return mActor.getProviderContext().getPackageManager(); in createMockProviderCalls()
159 public PackageManager getPackageManager();
185 public PackageManager getPackageManager() {
186 return mDelegate.getPackageManager();
/packages/apps/Settings/src/com/android/settings/voice/
DVoiceInputHelper.java102 mAvailableVoiceInteractions = mContext.getPackageManager().queryIntentServices( in VoiceInputHelper()
105 mAvailableRecognition = mContext.getPackageManager().queryIntentServices( in VoiceInputHelper()
132 mContext.getPackageManager(), resolveInfo.serviceInfo); in buildUi()
139 mAvailableInteractionInfos.add(new InteractionInfo(mContext.getPackageManager(), info)); in buildUi()
168 parser = si.loadXmlMetaData(mContext.getPackageManager(), in buildUi()
175 Resources res = mContext.getPackageManager().getResourcesForApplication( in buildUi()
205 mAvailableRecognizerInfos.add(new RecognizerInfo(mContext.getPackageManager(), in buildUi()
/packages/apps/TV/src/com/android/tv/util/
DPermissionUtils.java22 sHasAccessAllEpgPermission = context.getPackageManager().checkPermission( in hasAccessAllEpg()
37 sHasAccessWatchedHistoryPermission = context.getPackageManager().checkPermission( in hasAccessWatchedHistory()
52 sHasModifyParentalControlsPermission = context.getPackageManager().checkPermission( in hasModifyParentalControls()
65 return context.getPackageManager().checkPermission( in hasReadTvListings()
/packages/apps/Settings/src/com/android/settings/accessibility/
DToggleAccessibilityServicePreferenceFragment.java139 info.getResolveInfo().loadLabel(getPackageManager()))) in onCreateDialog()
173 info.getResolveInfo().loadLabel(getPackageManager()))) in onCreateDialog()
175 info.getResolveInfo().loadLabel(getPackageManager()))) in onCreateDialog()
216 info.getResolveInfo().loadLabel(getPackageManager())); in createEnableDialogContentView()
226 info.getResolveInfo().loadLabel(getPackageManager()))); in createEnableDialogContentView()
343 .loadLabel(getPackageManager())); in createConfirmCredentialReasonMessage()
376 if (!getPackageManager().queryIntentActivities(settingsIntent, 0).isEmpty()) { in onProcessArguments()
/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/model/
DAppPermissionGroup.java65 permissionInfo = context.getPackageManager().getPermissionInfo(permissionName, 0); in create()
79 groupInfo = context.getPackageManager().getPermissionGroupInfo( in create()
89 permissionInfos = context.getPackageManager().queryPermissionsByGroup( in create()
105 groupInfo.packageName, groupInfo.loadLabel(context.getPackageManager()), in create()
157 final int flags = context.getPackageManager().getPermissionFlags( in create()
172 context.getPackageManager()); in loadGroupDescription()
175 context.getPackageManager()); in loadGroupDescription()
190 mPackageManager = mContext.getPackageManager(); in AppPermissionGroup()
DPermissionGroups.java110 PackageManager packageManager = getContext().getPackageManager(); in loadInBackground()
155 List<PackageInfo> installedPackages = getContext().getPackageManager() in loadInBackground()
207 CharSequence label = itemInfo.loadLabel(getContext().getPackageManager()); in loadItemInfoLabel()
217 icon = Utils.loadDrawable(getContext().getPackageManager(), in loadItemInfoIcon()
DPermissionApps.java68 mPm = mContext.getPackageManager(); in PermissionApps()
234 return mContext.getPackageManager().getPermissionGroupInfo(groupName, 0); in getGroupInfo()
239 return mContext.getPackageManager().getPermissionInfo(groupName, 0); in getGroupInfo()
248 return mContext.getPackageManager().queryPermissionsByGroup(groupName, 0); in getGroupPermissionInfos()
253 PermissionInfo permissionInfo = mContext.getPackageManager() in getGroupPermissionInfos()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DApplicationUtils.java38 final ActivityInfo ai = context.getPackageManager().getActivityInfo(cn, 0); in getActivityTitleResId()
58 final PackageInfo info = context.getPackageManager().getPackageInfo(packageName, 0); in getVersionName()
76 final PackageInfo info = context.getPackageManager().getPackageInfo(packageName, 0); in getVersionCode()
/packages/apps/Settings/src/com/android/settings/
DDeviceAdminSettings.java282 Drawable activityIcon = item.loadIcon(activity.getPackageManager()); in bindView()
283 Drawable badgedIcon = activity.getPackageManager().getUserBadgedIcon( in bindView()
286 vh.name.setText(item.loadLabel(activity.getPackageManager())); in bindView()
290 vh.description.setText(item.loadDescription(activity.getPackageManager())); in bindView()
348 final PackageManager pm = getActivity().getPackageManager(); in addDeviceAdminBroadcastReceiversForProfile()
390 final PackageManager packageManager = getActivity().getPackageManager(); in addActiveAdminsForProfile()
391 final IPackageManager iPackageManager = AppGlobals.getPackageManager(); in addActiveAdminsForProfile()
DAppPicker.java98 List<ApplicationInfo> pkgs = context.getPackageManager().getInstalledApplications(0); in AppListAdapter()
120 PackageInfo pi = getPackageManager().getPackageInfo(ai.packageName, in AppListAdapter()
141 info.label = info.info.loadLabel(getPackageManager()).toString(); in AppListAdapter()
160 holder.appIcon.setImageDrawable(info.info.loadIcon(getPackageManager())); in getView()
DShowAdminSupportDetailsDialog.java99 return AppGlobals.getPackageManager().checkUidPermission(permission, uid) in checkIfCallerHasPermission()
115 ai = AppGlobals.getPackageManager().getReceiverInfo(admin, 0 /* flags */, in initializeDialogViews()
121 Drawable icon = ai.loadIcon(getPackageManager()); in initializeDialogViews()
122 Drawable badgedIcon = getPackageManager().getUserBadgedIcon( in initializeDialogViews()
/packages/apps/Settings/src/com/android/settings/applications/
DDefaultHomePreference.java58 getContext().getPackageManager().replacePreferredActivity(mHomeFilter, in persistString()
69 PackageManager pm = getContext().getPackageManager(); in refreshHomeOptions()
120 PackageManager pm = context.getPackageManager(); in hasHomePreference()
132 PackageManager pm = context.getPackageManager(); in isHomeDefault()
DDefaultBrowserPreference.java49 mPm = context.getPackageManager(); in DefaultBrowserPreference()
93 final PackageManager pm = getContext().getPackageManager(); in updateDefaultBrowserPreference()
184 context.getPackageManager().queryIntentActivities(intent, 0); in hasBrowserPreference()
189 String defaultPackage = context.getPackageManager() in isBrowserDefault()
DDefaultEmergencyPreference.java92 PackageManager packageManager = getContext().getPackageManager(); in resolveAssistPackageAndQueryApps()
149 && context.getPackageManager().resolveActivity(QUERY_INTENT, 0) != null; in isAvailable()
156 context.getPackageManager().queryIntentActivities(i, 0); in hasEmergencyPreference()
/packages/apps/PackageInstaller/src/com/android/packageinstaller/
DPackageUtil.java95 final PackageManager pm = pContext.getPackageManager(); in initSnippetForInstalledApp()
98 icon = pContext.getPackageManager().getUserBadgedIcon(icon, user); in initSnippetForInstalledApp()
125 List<PackageInfo> installedList = context.getPackageManager().getInstalledPackages( in isPackageAlreadyInstalled()
183 icon = pContext.getPackageManager().getDefaultActivityIcon(); in getAppSnippet()
/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/ui/television/
DAllAppPermissionsFragment.java84 mPackageInfo = getActivity().getPackageManager().getPackageInfo(pkg, in onCreate()
131 PackageManager pm = getActivity().getPackageManager(); in updateUi()
235 pref.setTitle(perm.loadLabel(getActivity().getPackageManager())); in getMutablePreference()
255 final PackageManager pm = getActivity().getPackageManager(); in getImmutablePreference()
282 icon = perm.loadIcon(context.getPackageManager()); in getTintedPermissionIcon()
284 icon = group.loadIcon(context.getPackageManager()); in getTintedPermissionIcon()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
DVoiceSearch.java57 ResolveInfo ri = mContext.getPackageManager(). in getResolveInfo()
96 return getContext().getPackageManager().getPackageInfo(ci.packageName, 0).versionCode; in getVersion()
104 return createVoiceSearchIntent().resolveActivity(getContext().getPackageManager()); in getComponent()
/packages/apps/Settings/tests/app/src/com/android/settings/
DSettingsHookTests.java71 PackageManager pm = context.getPackageManager(); in testSettingsHookTestAppAvailable()
83 PackageManager pm = context.getPackageManager(); in testOperatorIntentFilter()
101 PackageManager pm = context.getPackageManager(); in testManufacturerIntentFilter()
/packages/apps/Settings/src/com/android/settings/search/
DDynamicIndexableContentMonitor.java115 boolean hasFeaturePrinting = mContext.getPackageManager().hasSystemFeature( in register()
117 mHasFeatureIme = mContext.getPackageManager().hasSystemFeature( in register()
202 final int state = mContext.getPackageManager().getApplicationEnabledSetting( in onPackageModified()
240 List<?> services = mContext.getPackageManager().queryIntentServices(intent, 0); in handlePackageAvailable()
251 List<?> services = mContext.getPackageManager().queryIntentServices(intent, 0); in handlePackageAvailable()
/packages/services/Car/car-support-lib/src/android/support/car/ui/
DCarUiResourceLoader.java44 res = context.getPackageManager().getResourcesForApplication(CAR_UI_PACKAGE); in getDrawable()
66 res = context.getPackageManager().getResourcesForApplication(CAR_UI_PACKAGE); in getBoolean()
84 res = context.getPackageManager().getResourcesForApplication(CAR_UI_PACKAGE); in getDimen()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DRequestIgnoreBatteryOptimizations.java75 ai = getPackageManager().getApplicationInfo(mPackageName, 0); in onCreate()
82 if (getPackageManager().checkPermission( in onCreate()
93 p.mMessage = getString(R.string.high_power_prompt_body, ai.loadLabel(getPackageManager())); in onCreate()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DRealSystemFacade.java82 return mContext.getPackageManager().getApplicationInfo(packageName, 0).uid == uid; in userOwnsPackage()
87 PackageManager packageManager = mContext.getPackageManager(); in isCleartextTrafficPermitted()
123 PackageManager packageManager = mContext.getPackageManager(); in isCleartextTrafficPermitted()
/packages/apps/Settings/src/com/android/settings/datausage/
DAppDataUsage.java143 PackageManager pm = getPackageManager(); in onCreate()
167 PackageManager pm = getPackageManager(); in onCreate()
199 final PackageManager pm = getPackageManager(); in onCreate()
279 String[] packages = getPackageManager().getPackagesForUid(uid); in addUid()
330 uid = pkg != null ? getPackageManager().getPackageUid(pkg, 0) : 0; in onViewCreated()
381 PackageManager pm = getPackageManager(); in doInBackground()

12345678910>>...17