Home
last modified time | relevance | path

Searched refs:packageManager (Results 1 – 25 of 109) sorted by relevance

12345

/frameworks/base/telephony/common/com/android/internal/telephony/
DCarrierAppUtils.java79 IPackageManager packageManager, TelephonyManager telephonyManager, in disableCarrierAppsUntilPrivileged() argument
90 disableCarrierAppsUntilPrivileged(callingPackage, packageManager, telephonyManager, in disableCarrierAppsUntilPrivileged()
107 IPackageManager packageManager, int userId, Context context) { in disableCarrierAppsUntilPrivileged() argument
119 disableCarrierAppsUntilPrivileged(callingPackage, packageManager, in disableCarrierAppsUntilPrivileged()
145 IPackageManager packageManager, @Nullable TelephonyManager telephonyManager, in disableCarrierAppsUntilPrivileged() argument
150 packageManager, userId, systemCarrierAppsDisabledUntilUsed); in disableCarrierAppsUntilPrivileged()
156 packageManager, in disableCarrierAppsUntilPrivileged()
175 packageManager.setSystemAppHiddenUntilInstalled(packageName, true); in disableCarrierAppsUntilPrivileged()
179 packageManager.setSystemAppHiddenUntilInstalled( in disableCarrierAppsUntilPrivileged()
186 int enabledSetting = packageManager.getApplicationEnabledSetting(packageName, in disableCarrierAppsUntilPrivileged()
[all …]
DSmsApplication.java249 PackageManager packageManager = context.getPackageManager(); in getApplicationCollectionInternal() local
257 List<ResolveInfo> smsReceivers = packageManager.queryBroadcastReceiversAsUser(intent, in getApplicationCollectionInternal()
284 List<ResolveInfo> mmsReceivers = packageManager.queryBroadcastReceiversAsUser(intent, in getApplicationCollectionInternal()
305 List<ResolveInfo> respondServices = packageManager.queryIntentServicesAsUser(intent, in getApplicationCollectionInternal()
326 List<ResolveInfo> sendToActivities = packageManager.queryIntentActivitiesAsUser(intent, in getApplicationCollectionInternal()
344 packageManager.queryBroadcastReceiversAsUser(intent, in getApplicationCollectionInternal()
371 packageManager.queryBroadcastReceiversAsUser(intent, in getApplicationCollectionInternal()
398 packageManager.queryBroadcastReceiversAsUser(intent, in getApplicationCollectionInternal()
540 PackageManager packageManager = context.getPackageManager(); in defaultSmsAppChanged() local
544 assignExclusiveSmsPermissionsToSystemApp(context, packageManager, appOps, in defaultSmsAppChanged()
[all …]
DCellBroadcastUtils.java38 PackageManager packageManager = context.getPackageManager(); in getDefaultCellBroadcastReceiverPackageName() local
39 ResolveInfo resolveInfo = packageManager.resolveActivity( in getDefaultCellBroadcastReceiverPackageName()
55 if (TextUtils.isEmpty(packageName) || packageManager.checkPermission( in getDefaultCellBroadcastReceiverPackageName()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DPackageBasedTokenUtil.java46 PackageManager packageManager = context.getPackageManager(); in generateToken() local
47 String token = generatePackageBasedToken(packageManager, packageName); in generateToken()
51 packageManager.getInstalledPackages(PackageManager.GET_META_DATA); in generateToken()
59 String otherToken = generatePackageBasedToken(packageManager, otherPackageName); in generateToken()
70 PackageManager packageManager, String packageName) { in generatePackageBasedToken() argument
76 signatures = packageManager.getPackageInfo( in generatePackageBasedToken()
/frameworks/base/core/java/android/content/pm/
DInstantAppInfo.java93 public @NonNull CharSequence loadLabel(@NonNull PackageManager packageManager) { in loadLabel() argument
95 return mApplicationInfo.loadLabel(packageManager); in loadLabel()
104 public @NonNull Drawable loadIcon(@NonNull PackageManager packageManager) { in loadIcon() argument
106 return mApplicationInfo.loadIcon(packageManager); in loadIcon()
108 return packageManager.getInstantAppIcon(mPackageName); in loadIcon()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DPreviewInflater.java95 PackageManager packageManager = mContext.getPackageManager(); in getWidgetInfoFromService() local
98 Bundle metaData = packageManager.getServiceInfo( in getWidgetInfoFromService()
124 PackageManager packageManager = mContext.getPackageManager(); in getWidgetInfo() local
128 final List<ResolveInfo> appList = packageManager.queryIntentActivitiesAsUser( in getWidgetInfo()
133 ResolveInfo resolved = packageManager.resolveActivityAsUser(intent, in getWidgetInfo()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
DUiccCarrierPrivilegeRules.java304 public int getCarrierPrivilegeStatus(PackageManager packageManager, String packageName) { in getCarrierPrivilegeStatus() argument
320 PackageInfo pInfo = packageManager.getPackageInfo(packageName, in getCarrierPrivilegeStatus()
360 public int getCarrierPrivilegeStatusForCurrentTransaction(PackageManager packageManager) { in getCarrierPrivilegeStatusForCurrentTransaction() argument
361 return getCarrierPrivilegeStatusForUid(packageManager, Binder.getCallingUid()); in getCarrierPrivilegeStatusForCurrentTransaction()
371 PackageManager packageManager, int uid) { in getCarrierPrivilegeStatusForUid() argument
372 String[] packages = packageManager.getPackagesForUid(uid); in getCarrierPrivilegeStatusForUid()
375 int accessStatus = getCarrierPrivilegeStatus(packageManager, pkg); in getCarrierPrivilegeStatusForUid()
393 PackageManager packageManager, Intent intent) { in getCarrierPackageNamesForIntent() argument
396 receivers.addAll(packageManager.queryBroadcastReceivers(intent, 0)); in getCarrierPackageNamesForIntent()
397 receivers.addAll(packageManager.queryIntentContentProviders(intent, 0)); in getCarrierPackageNamesForIntent()
[all …]
DUiccCard.java416 public int getCarrierPrivilegeStatus(PackageManager packageManager, String packageName) { in getCarrierPrivilegeStatus() argument
418 return mUiccProfile.getCarrierPrivilegeStatus(packageManager, packageName); in getCarrierPrivilegeStatus()
443 public int getCarrierPrivilegeStatusForCurrentTransaction(PackageManager packageManager) { in getCarrierPrivilegeStatusForCurrentTransaction() argument
445 return mUiccProfile.getCarrierPrivilegeStatusForCurrentTransaction(packageManager); in getCarrierPrivilegeStatusForCurrentTransaction()
459 PackageManager packageManager, Intent intent) { in getCarrierPackageNamesForIntent() argument
461 return mUiccProfile.getCarrierPackageNamesForIntent(packageManager, intent); in getCarrierPackageNamesForIntent()
/frameworks/base/services/core/java/com/android/server/policy/
DShortcutManager.java105 PackageManager packageManager = mContext.getPackageManager(); in loadShortcuts() local
142 info = packageManager.getActivityInfo(componentName, in loadShortcuts()
147 String[] packages = packageManager.canonicalToCurrentPackageNames( in loadShortcuts()
151 info = packageManager.getActivityInfo(componentName, in loadShortcuts()
165 title = info.loadLabel(packageManager).toString(); in loadShortcuts()
/frameworks/base/core/java/android/widget/
DShareActionProvider.java203 PackageManager packageManager = mContext.getPackageManager(); in onPrepareSubMenu() local
211 subMenu.add(0, i, i, activity.loadLabel(packageManager)) in onPrepareSubMenu()
212 .setIcon(activity.loadIcon(packageManager)) in onPrepareSubMenu()
223 expandedSubMenu.add(0, i, i, activity.loadLabel(packageManager)) in onPrepareSubMenu()
224 .setIcon(activity.loadIcon(packageManager)) in onPrepareSubMenu()
/frameworks/base/services/core/java/com/android/server/accounts/
DAccountManagerBackupHelper.java101 public boolean apply(PackageManager packageManager) { in apply() argument
126 packageInfo = packageManager.getPackageInfoAsUser(packageName, in apply()
171 PackageManager packageManager = mAccountManagerService.mContext in backupAccountAccessPermissions() local
177 final String[] packageNames = packageManager.getPackagesForUid(uid); in backupAccountAccessPermissions()
185 packageInfo = packageManager.getPackageInfoAsUser(packageName, in backupAccountAccessPermissions()
221 PackageManager packageManager = mAccountManagerService.mContext.getPackageManager(); in restoreAccountAccessPermissions() local
249 if (!pendingAppPermission.apply(packageManager)) { in restoreAccountAccessPermissions()
/frameworks/base/services/tests/servicestests/test-apps/SuspendTestApp/src/com/android/servicestests/apps/suspendtestapp/
DSuspendTestReceiver.java42 final PackageManager packageManager = context.getPackageManager(); in onReceive() local
48 final boolean suspended = packageManager.isPackageSuspended(); in onReceive()
49 appExtras = packageManager.getSuspendedPackageAppExtras(); in onReceive()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DNotificationFilter.java148 static boolean showNotificationEvenIfUnprovisioned(IPackageManager packageManager, in showNotificationEvenIfUnprovisioned() argument
150 return checkUidPermission(packageManager, Manifest.permission.NOTIFICATION_DURING_SETUP, in showNotificationEvenIfUnprovisioned()
155 private static int checkUidPermission(IPackageManager packageManager, String permission, in checkUidPermission() argument
158 return packageManager.checkUidPermission(permission, uid); in checkUidPermission()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DActivityIntentHelper.java64 PackageManager packageManager = mContext.getPackageManager(); in getTargetActivityInfo() local
70 final List<ResolveInfo> appList = packageManager.queryIntentActivitiesAsUser( in getTargetActivityInfo()
75 ResolveInfo resolved = packageManager.resolveActivityAsUser(intent, in getTargetActivityInfo()
/frameworks/base/services/core/java/com/android/server/compat/
DOverrideValidatorImpl.java68 PackageManager packageManager = mContext.getPackageManager(); in getOverrideAllowedState() local
69 if (packageManager == null) { in getOverrideAllowedState()
74 applicationInfo = packageManager.getApplicationInfo(packageName, 0); in getOverrideAllowedState()
/frameworks/base/services/backup/java/com/android/server/backup/utils/
DAppBackupUtils.java74 ApplicationInfo app, PackageManagerInternal packageManager, int userId) { in appIsEligibleForBackup() argument
104 return !appIsDisabled(app, packageManager, userId); in appIsEligibleForBackup()
156 ApplicationInfo app, PackageManagerInternal packageManager, int userId) { in appIsDisabled() argument
157 int enabledSetting = packageManager.getApplicationEnabledState(app.packageName, userId); in appIsDisabled()
DRestoreUtils.java86 PackageManager packageManager = context.getPackageManager(); in installApk() local
87 PackageInstaller installer = packageManager.getPackageInstaller(); in installApk()
149 PackageInfo pkg = packageManager.getPackageInfoAsUser(info.packageName, in installApk()
189 packageManager.deletePackage( in installApk()
/frameworks/base/core/java/android/view/textclassifier/intent/
DLabeledIntent.java156 private String resolveDescription(ResolveInfo resolveInfo, PackageManager packageManager) { in resolveDescription() argument
159 String applicationName = getApplicationName(resolveInfo, packageManager); in resolveDescription()
169 ResolveInfo resolveInfo, PackageManager packageManager) { in getApplicationName() argument
179 return (String) packageManager.getApplicationLabel( in getApplicationName()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/
DMediaProjectionPermissionActivity.java74 PackageManager packageManager = getPackageManager(); in onCreate() local
77 aInfo = packageManager.getApplicationInfo(mPackageName, 0); in onCreate()
101 if (Utils.isHeadlessRemoteDisplayProvider(packageManager, mPackageName)) { in onCreate()
104 String label = aInfo.loadLabel(packageManager).toString(); in onCreate()
/frameworks/base/packages/StatementService/src/com/android/statementservice/
DIntentFilterVerificationReceiver.java69 private static void sendErrorToPackageManager(PackageManager packageManager, in sendErrorToPackageManager() argument
71 packageManager.verifyIntentFilter(verificationId, in sendErrorToPackageManager()
188 public IsAssociatedResultReceiver(Handler handler, PackageManager packageManager, in IsAssociatedResultReceiver() argument
192 mPackageManager = packageManager; in IsAssociatedResultReceiver()
/frameworks/base/telephony/java/android/telephony/mbms/
DMbmsUtils.java90 PackageManager packageManager = context.getPackageManager(); in getMiddlewareServiceInfo() local
97 services = packageManager.queryIntentServices(queryIntent, in getMiddlewareServiceInfo()
101 services = packageManager.queryIntentServices(queryIntent, in getMiddlewareServiceInfo()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/
DAppUtils.java113 PackageManager packageManager, String packageName) { in getApplicationLabel() argument
116 packageManager.getApplicationInfo( in getApplicationLabel()
120 return appInfo.loadLabel(packageManager); in getApplicationLabel()
/frameworks/base/packages/SettingsLib/Tile/src/com/android/settingslib/drawer/
DTile.java169 final PackageManager packageManager = context.getPackageManager(); in getTitle() local
174 packageManager.getResourcesForApplication(mActivityPackage); in getTitle()
190 title = activityInfo.loadLabel(packageManager); in getTitle()
211 final PackageManager packageManager = context.getPackageManager(); in getSummary() local
220 packageManager.getResourcesForApplication(mActivityPackage); in getSummary()
/frameworks/base/packages/CompanionDeviceManager/src/com/android/companiondevicemanager/
DDeviceChooserActivity.java108 final PackageManager packageManager = getPackageManager(); in getCallingAppName() local
112 return packageManager.getApplicationLabel( in getCallingAppName()
113 packageManager.getApplicationInfo(callingPackage, 0)); in getCallingAppName()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/integration/
DCameraBinderTestUtils.java72 final PackageManager packageManager = context.getPackageManager(); in isFeatureAvailable() local
73 final FeatureInfo[] featuresList = packageManager.getSystemAvailableFeatures(); in isFeatureAvailable()

12345