/packages/providers/MediaProvider/src/com/android/providers/media/util/ |
D | PermissionUtils.java | 82 int uid, @NonNull String packageName, @Nullable String attributionTag) { in checkPermissionManager() argument 84 packageName, attributionTag, in checkPermissionManager() 85 generateAppOpMessage(packageName,sOpDescription.get())); in checkPermissionManager() 106 @NonNull String packageName, @Nullable String attributionTag) { in checkPermissionWriteStorage() argument 108 packageName, attributionTag, in checkPermissionWriteStorage() 109 generateAppOpMessage(packageName,sOpDescription.get())); in checkPermissionWriteStorage() 113 @NonNull String packageName, @Nullable String attributionTag) { in checkPermissionReadStorage() argument 115 packageName, attributionTag, in checkPermissionReadStorage() 116 generateAppOpMessage(packageName,sOpDescription.get())); in checkPermissionReadStorage() 124 int uid, @NonNull String packageName, @Nullable String attributionTag) { in checkPermissionAccessMediaLocation() argument [all …]
|
/packages/providers/MediaProvider/tests/src/com/android/providers/media/util/ |
D | PermissionUtilsTest.java | 110 final String packageName = context.getPackageName(); in testSelfPermissions() local 114 assertThat(checkPermissionManager(context, pid, uid, packageName, null)).isFalse(); in testSelfPermissions() 116 assertThat(checkPermissionManageMedia(context, pid, uid, packageName, null)).isFalse(); in testSelfPermissions() 118 packageName, null)).isFalse(); in testSelfPermissions() 120 assertThat(checkPermissionReadStorage(context, pid, uid, packageName, null)).isTrue(); in testSelfPermissions() 121 assertThat(checkPermissionWriteStorage(context, pid, uid, packageName, null)).isTrue(); in testSelfPermissions() 123 assertThat(checkPermissionReadAudio(context, pid, uid, packageName, null)).isTrue(); in testSelfPermissions() 124 assertThat(checkPermissionWriteAudio(context, pid, uid, packageName, null)).isFalse(); in testSelfPermissions() 125 assertThat(checkPermissionReadVideo(context, pid, uid, packageName, null)).isTrue(); in testSelfPermissions() 126 assertThat(checkPermissionWriteVideo(context, pid, uid, packageName, null)).isFalse(); in testSelfPermissions() [all …]
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/role/model/ |
D | Permissions.java | 99 public static boolean grant(@NonNull String packageName, @NonNull List<String> permissions, in grant() argument 108 PackageInfo packageInfo = getPackageInfo(packageName, context); in grant() 145 PackageInfo disabledSystemPackageInfo = getFactoryPackageInfo(packageName, context); in grant() 181 packageManager.getWhitelistedRestrictedPermissions(packageName, in grant() 194 packageManager.addWhitelistedRestrictedPermission(packageName, permission, in grant() 198 permissionOrAppOpChanged |= grantSingle(packageName, permission, in grant() 206 private static boolean grantSingle(@NonNull String packageName, @NonNull String permission, in grantSingle() argument 209 boolean wasPermissionOrAppOpGranted = isPermissionAndAppOpGranted(packageName, permission, in grantSingle() 211 if (isPermissionFixed(packageName, permission, false, overrideUserSetAndFixed, context) in grantSingle() 224 if (isPermissionAndAppOpGranted(packageName, foregroundPermission, context)) { in grantSingle() [all …]
|
D | Role.java | 454 for (String packageName : resourcePackageNames) { in getDefaultHolders() 455 if (isDefaultHolderQualified(packageName, context)) { in getDefaultHolders() 456 packageNames.add(packageName); in getDefaultHolders() 463 private boolean isDefaultHolderQualified(@NonNull String packageName, in isDefaultHolderQualified() argument 465 ApplicationInfo applicationInfo = PackageUtils.getApplicationInfo(packageName, context); in isDefaultHolderQualified() 467 Log.w(LOG_TAG, "Cannot get ApplicationInfo for default holder: " + packageName); in isDefaultHolderQualified() 472 Log.w(LOG_TAG, "Default holder is not a system app: " + packageName); in isDefaultHolderQualified() 598 public CharSequence getConfirmationMessage(@NonNull String packageName, in getConfirmationMessage() argument 601 return mBehavior.getConfirmationMessage(this, packageName, context); in getConfirmationMessage() 615 public boolean isPackageQualified(@NonNull String packageName, @NonNull Context context) { in isPackageQualified() argument [all …]
|
D | UserDeniedManager.java | 70 public boolean isDeniedOnce(@NonNull String roleName, @NonNull String packageName) { in isDeniedOnce() argument 71 return isDenied(roleName, packageName, false); in isDeniedOnce() 80 public void setDeniedOnce(@NonNull String roleName, @NonNull String packageName) { in setDeniedOnce() argument 81 setDenied(roleName, packageName, false, true); in setDeniedOnce() 92 public boolean isDeniedAlways(@NonNull String roleName, @NonNull String packageName) { in isDeniedAlways() argument 93 return isDenied(roleName, packageName, true); in isDeniedAlways() 102 public void setDeniedAlways(@NonNull String roleName, @NonNull String packageName) { in setDeniedAlways() argument 103 setDenied(roleName, packageName, true, true); in setDeniedAlways() 112 public void clearDenied(@NonNull String roleName, @NonNull String packageName) { in clearDenied() argument 113 setDenied(roleName, packageName, false, false); in clearDenied() [all …]
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | WifiNetworkSuggestionsManager.java | 191 public final String packageName; field in WifiNetworkSuggestionsManager.PerAppInfo 213 public PerAppInfo(int uid, @NonNull String packageName, @Nullable String featureId) { in PerAppInfo() argument 215 this.packageName = packageName; in PerAppInfo() 254 return packageName.equals(activeScorerPkg); in isExemptFromUserApproval() 264 && TextUtils.equals(packageName, otherPerAppInfo.packageName) in equals() 272 return Objects.hash(uid, packageName, extNetworkSuggestions, hasUserApproved); in hashCode() 279 .append(", packageName=").append(packageName) in toString() 309 this.wns.wifiConfiguration.creatorName = perAppInfo.packageName; in ExtendedWifiNetworkSuggestion() 323 return Objects.hash(wns, perAppInfo.uid, perAppInfo.packageName); in hashCode() 337 && TextUtils.equals(perAppInfo.packageName, other.perAppInfo.packageName); in equals() [all …]
|
D | BaseWifiService.java | 89 public ParceledListSlice getConfiguredNetworks(String packageName, String featureId) { in getConfiguredNetworks() argument 94 public ParceledListSlice getConfiguredNetworks(String packageName, String featureId, in getConfiguredNetworks() argument 100 public ParceledListSlice getPrivilegedConfiguredNetworks(String packageName, String featureId) { in getPrivilegedConfiguredNetworks() argument 123 public int addOrUpdateNetwork(WifiConfiguration config, String packageName) { in addOrUpdateNetwork() argument 129 String packageName) { in addOrUpdateNetworkPrivileged() argument 135 PasspointConfiguration config, String packageName) { in addOrUpdatePasspointConfiguration() argument 140 public boolean removePasspointConfiguration(String fqdn, String packageName) { in removePasspointConfiguration() argument 145 public List<PasspointConfiguration> getPasspointConfigurations(String packageName) { in getPasspointConfigurations() argument 165 public boolean removeNetwork(int netId, String packageName) { in removeNetwork() argument 170 public boolean removeNonCallerConfiguredNetworks(String packageName) { in removeNonCallerConfiguredNetworks() argument [all …]
|
D | ScanRequestProxy.java | 305 private void sendScanResultFailureBroadcastToPackage(String packageName) { in sendScanResultFailureBroadcastToPackage() argument 309 intent.setPackage(packageName); in sendScanResultFailureBroadcastToPackage() 329 int callingUid, String packageName) { in getOrCreateScanRequestTimestampsForForegroundApp() argument 330 Pair<Integer, String> uidAndPackageNamePair = Pair.create(callingUid, packageName); in getOrCreateScanRequestTimestampsForForegroundApp() 347 int callingUid, String packageName) { in shouldScanRequestBeThrottledForForegroundApp() argument 348 if (isPackageNameInExceptionList(packageName, true)) { in shouldScanRequestBeThrottledForForegroundApp() 352 getOrCreateScanRequestTimestampsForForegroundApp(callingUid, packageName); in shouldScanRequestBeThrottledForForegroundApp() 364 private boolean isPackageNameInExceptionList(String packageName, boolean isForeground) { in isPackageNameInExceptionList() argument 365 if (packageName == null) { in isPackageNameInExceptionList() 375 if (packageName.equals(name)) { in isPackageNameInExceptionList() [all …]
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | CarModeTracker.java | 48 public CarModeApp(@NonNull String packageName) { in CarModeApp() argument 49 this(true, 0, packageName); in CarModeApp() 52 public CarModeApp(int priority, @NonNull String packageName) { in CarModeApp() argument 53 this(false, priority, packageName); in CarModeApp() 56 … private CarModeApp(boolean automotiveProjection, int priority, @NonNull String packageName) { in CarModeApp() argument 59 mPackageName = Objects.requireNonNull(packageName); in CarModeApp() 83 public void setPackageName(String packageName) { in setPackageName() argument 84 mPackageName = packageName; in setPackageName() 112 public void handleEnterCarMode(@IntRange(from = 0) int priority, @NonNull String packageName) { in handleEnterCarMode() argument 119 if (mCarModeApps.stream().anyMatch(c -> c.getPackageName().equals(packageName))) { in handleEnterCarMode() [all …]
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/role/service/ |
D | RoleControllerServiceImpl.java | 112 String packageName = currentPackageNames.get(currentPackageNamesIndex); in onGrantDefaultRoles() local 114 if (role.isPackageQualified(packageName, this)) { in onGrantDefaultRoles() 118 addRoleHolderInternal(role, packageName, false, false, true); in onGrantDefaultRoles() 121 + " package: " + packageName + ", role: " + roleName); in onGrantDefaultRoles() 122 removeRoleHolderInternal(role, packageName, false); in onGrantDefaultRoles() 144 String packageName = packageNamesToAdd.get(packageNamesToAddIndex); in onGrantDefaultRoles() local 146 if (currentPackageNames.contains(packageName)) { in onGrantDefaultRoles() 151 if (!role.isPackageQualified(packageName, this)) { in onGrantDefaultRoles() 153 + " the role, package: " + packageName + ", role: " + roleName); in onGrantDefaultRoles() 157 + packageName + ", role: " + roleName); in onGrantDefaultRoles() [all …]
|
/packages/modules/Wifi/framework/java/android/net/wifi/ |
D | IWifiManager.aidl | 66 …ParceledListSlice getConfiguredNetworks(String packageName, String featureId, boolean callerNetwor… in getConfiguredNetworks() argument 68 ParceledListSlice getPrivilegedConfiguredNetworks(String packageName, String featureId); in getPrivilegedConfiguredNetworks() argument 76 int addOrUpdateNetwork(in WifiConfiguration config, String packageName); in addOrUpdateNetwork() argument 78 …ger.AddNetworkResult addOrUpdateNetworkPrivileged(in WifiConfiguration config, String packageName); in addOrUpdateNetworkPrivileged() argument 80 boolean addOrUpdatePasspointConfiguration(in PasspointConfiguration config, String packageName); in addOrUpdatePasspointConfiguration() argument 82 boolean removePasspointConfiguration(in String fqdn, String packageName); in removePasspointConfiguration() argument 84 List<PasspointConfiguration> getPasspointConfigurations(in String packageName); in getPasspointConfigurations() argument 92 boolean removeNetwork(int netId, String packageName); in removeNetwork() argument 94 boolean removeNonCallerConfiguredNetworks(String packageName); in removeNonCallerConfiguredNetworks() argument 96 boolean enableNetwork(int netId, boolean disableOthers, String packageName); in enableNetwork() argument [all …]
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/module/ |
D | DefaultPackageStatusNotifier.java | 74 private boolean isValidPackage(String packageName) { in isValidPackage() argument 75 mIntentFilter.setPackage(packageName); in isValidPackage() 83 public void onPackageRemoved(String packageName, UserHandle userHandle) { in onPackageRemoved() argument 86 mListener.onPackageChanged(packageName, PackageStatus.REMOVED); in onPackageRemoved() 90 public void onPackageAdded(String packageName, UserHandle userHandle) { in onPackageAdded() argument 91 if (isValidPackage(packageName)) { in onPackageAdded() 92 mListener.onPackageChanged(packageName, PackageStatus.ADDED); in onPackageAdded() 97 public void onPackageChanged(String packageName, UserHandle userHandle) { in onPackageChanged() argument 98 if (isValidPackage(packageName)) { in onPackageChanged() 99 mListener.onPackageChanged(packageName, PackageStatus.CHANGED); in onPackageChanged() [all …]
|
/packages/services/Car/service/src/com/android/car/pm/ |
D | CarPackageManagerService.java | 219 public void setAppBlockingPolicy(String packageName, CarAppBlockingPolicy policy, int flags) { in setAppBlockingPolicy() argument 221 Slog.d(TAG, "policy setting from binder call, client:" + packageName); in setAppBlockingPolicy() 223 doSetAppBlockingPolicy(packageName, policy, flags); in setAppBlockingPolicy() 239 private void doSetAppBlockingPolicy(String packageName, CarAppBlockingPolicy policy, in doSetAppBlockingPolicy() argument 246 CarServiceUtils.assertPackageName(mContext, packageName); in doSetAppBlockingPolicy() 260 mHandler.requestUpdatingPolicy(packageName, policy, flags); in doSetAppBlockingPolicy() 277 public boolean isActivityDistractionOptimized(String packageName, String className) { in isActivityDistractionOptimized() argument 278 if (!callerCanQueryPackage(packageName)) return false; in isActivityDistractionOptimized() 279 assertPackageAndClassName(packageName, className); in isActivityDistractionOptimized() 285 if (searchFromClientPolicyBlocklistsLocked(packageName)) { in isActivityDistractionOptimized() [all …]
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/model/ |
D | UnusedAppsViewModel.kt | 71 val packageName: String, in <lambda>() constant in com.android.permissioncontroller.permission.ui.model.UnusedAppsViewModel.UnusedPackageInfo 114 val key = packageInfo.packageName to user in <lambda>() 127 val statPackage = stat.packageName to user in <lambda>() 133 UnusedPackageInfo(stat.packageName, user, in <lambda>() 141 overSixMonthApps.forEach { (packageName, user) -> in <lambda>() method 144 if (pI.packageName == packageName) { in <lambda>() 155 val userPackage = packageName to user in <lambda>() 157 UnusedPackageInfo(packageName, user, disableActionApps.contains(userPackage), in <lambda>() 169 fun navigateToAppInfo(packageName: String, user: UserHandle, sessionId: Long) { in <lambda>() 171 val packageUri = Uri.parse("package:$packageName") in <lambda>() [all …]
|
/packages/apps/Settings/src/com/android/settings/applications/appinfo/ |
D | AppInfoDashboardFragment.java | 142 final String packageName = getPackageName(); in onAttach() local 145 timeSpentInAppPreferenceController.setPackageName(packageName); in onAttach() 151 installer.setPackageName(packageName); in onAttach() 157 .setPackageName(packageName) in onAttach() 161 use(AppPermissionPreferenceController.class).setPackageName(packageName); in onAttach() 163 .setPackageName(packageName) in onAttach() 168 use(ExtraAppInfoPreferenceController.class).setPackageName(packageName); in onAttach() 173 appHibernationSettings.setPackage(packageName); in onAttach() 187 pip.setPackageName(packageName); in onAttach() 192 externalSource.setPackageName(packageName); in onAttach() [all …]
|
D | AppButtonsPreferenceController.java | 135 Lifecycle lifecycle, String packageName, ApplicationsState state, in AppButtonsPreferenceController() argument 152 mPackageName = packageName; in AppButtonsPreferenceController() 162 if (packageName != null) { in AppButtonsPreferenceController() 163 mAppEntry = mState.getEntry(packageName, mUserId); in AppButtonsPreferenceController() 221 final String packageName = mAppEntry.info.packageName; in onClick() local 223 if (mDpm.packageHasActiveAdmins(mPackageInfo.packageName)) { in onClick() 227 packageName); in onClick() 235 packageName, mUserId); in onClick() 237 RestrictedLockUtilsInternal.hasBaseUserRestriction(mActivity, packageName, in onClick() 257 AsyncTask.execute(new DisableChangerRunnable(mPm, mAppEntry.info.packageName, in onClick() [all …]
|
/packages/apps/Settings/src/com/android/settings/users/ |
D | AppRestrictionsFragment.java | 299 String packageName = intent.getData().getSchemeSpecificPart(); in onPackageChanged() local 302 findPreference(getKeyForPackage(packageName)); in onPackageChanged() 316 public void onDisableUiForPackage(String packageName) { in onDisableUiForPackage() argument 318 getKeyForPackage(packageName)); in onDisableUiForPackage() 367 String packageName = app.packageName; in populateApps() local 368 if (packageName == null) continue; in populateApps() 369 final boolean isSettingsApp = packageName.equals(context.getPackageName()); in populateApps() 371 final boolean hasSettings = resolveInfoListHasPackage(receivers, packageName); in populateApps() 375 mHelper.setPackageSelected(packageName, true); in populateApps() 380 pi = ipm.getPackageInfo(packageName, in populateApps() [all …]
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/legal/ |
D | ModuleLicenseProvider.java | 91 String packageName = uri.getPathSegments().get(0); in openFile() local 92 File cachedFile = getCachedHtmlFile(context, packageName); in openFile() 93 if (isCachedHtmlFileOutdated(context, packageName)) { in openFile() 95 getPackageAssetManager(context.getPackageManager(), packageName) in openFile() 97 File directory = getCachedFileDirectory(context, packageName); in openFile() 106 packageName, in openFile() 107 getPackageInfo(context, packageName).getLongVersionCode()) in openFile() 127 static boolean isCachedHtmlFileOutdated(Context context, String packageName) in isCachedHtmlFileOutdated() argument 130 File file = getCachedHtmlFile(context, packageName); in isCachedHtmlFileOutdated() 131 return !prefs.contains(packageName) in isCachedHtmlFileOutdated() [all …]
|
/packages/modules/Permission/framework-s/java/android/app/role/ |
D | RoleControllerService.java | 95 public void onAddRoleHolder(String roleName, String packageName, int flags, in onBind() argument 100 Preconditions.checkStringNotEmpty(packageName, in onBind() 105 packageName, flags, callback)); in onBind() 109 public void onRemoveRoleHolder(String roleName, String packageName, int flags, in onBind() argument 114 Preconditions.checkStringNotEmpty(packageName, in onBind() 119 packageName, flags, callback)); in onBind() 141 public void isApplicationQualifiedForRole(String roleName, String packageName, in onBind() argument 146 Preconditions.checkStringNotEmpty(packageName, in onBind() 150 boolean qualified = onIsApplicationQualifiedForRole(roleName, packageName); in onBind() 155 public void isApplicationVisibleForRole(String roleName, String packageName, in onBind() argument [all …]
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
D | BatteryUtils.java | 264 public int getTargetSdkVersion(final String packageName) { in getTargetSdkVersion() argument 266 ApplicationInfo info = mPackageManager.getApplicationInfo(packageName, in getTargetSdkVersion() 271 Log.e(TAG, "Cannot find package: " + packageName, e); in getTargetSdkVersion() 281 final String packageName) { in isBackgroundRestrictionEnabled() argument 286 .checkOpNoThrow(AppOpsManager.OP_RUN_IN_BACKGROUND, uid, packageName); in isBackgroundRestrictionEnabled() 320 public int getPackageUid(String packageName) { in getPackageUid() argument 322 return packageName == null ? UID_NULL : mPackageManager.getPackageUid(packageName, in getPackageUid() 329 public void setForceAppStandby(int uid, String packageName, in setForceAppStandby() argument 331 final boolean isPreOApp = isPreOApp(packageName); in setForceAppStandby() 334 mAppOpsManager.setMode(AppOpsManager.OP_RUN_IN_BACKGROUND, uid, packageName, mode); in setForceAppStandby() [all …]
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/specialaccess/ |
D | AppStateAppOpsBridgeTest.java | 97 String packageName = "android"; in androidPackagesIgnored() local 99 PackageInfo packageInfo = createPackageInfo(packageName, uid); in androidPackagesIgnored() 110 String packageName = mContext.getPackageName(); in selfPackageIgnored() local 112 PackageInfo packageInfo = createPackageInfo(packageName, uid); in selfPackageIgnored() 123 String packageName = "test.package"; in packagesNotRequestingPermissionIgnored() local 125 PackageInfo packageInfo = createPackageInfo(packageName, uid); in packagesNotRequestingPermissionIgnored() 128 when(mIPackageManager.isPackageAvailable(packageInfo.packageName, in packagesNotRequestingPermissionIgnored() 139 String packageName = "test.package"; in unavailablePackageIgnored() local 141 PackageInfo packageInfo = createPackageInfo(packageName, uid); in unavailablePackageIgnored() 143 when(mIPackageManager.isPackageAvailable(packageInfo.packageName, in unavailablePackageIgnored() [all …]
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/data/ |
D | PackageBroadcastReceiver.kt | 54 fun addChangeCallback(packageName: String, listener: PackageBroadcastListener) { in <lambda>() 58 changeCallbacks.getOrPut(packageName, { mutableSetOf() }).add(listener) in <lambda>() 107 fun removeChangeCallback(packageName: String?, listener: PackageBroadcastListener) { in <lambda>() 111 changeCallbacks[packageName]?.let { callbackSet -> in <lambda>() 114 changeCallbacks.remove(packageName) in <lambda>() 142 val packageName = intent.data?.schemeSpecificPart ?: return in <lambda>() constant 145 callback.onPackageUpdate(packageName) in <lambda>() 149 changeCallbacks[packageName]?.toList()?.let { callbacks -> in <lambda>() 151 callback.onPackageUpdate(packageName) in <lambda>() 158 LightPackageInfoLiveData.invalidateAllForPackage(packageName) in <lambda>() [all …]
|
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/search/indexing/ |
D | PreIndexDataCollector.java | 91 final String packageName = info.providerInfo.packageName; in collectIndexableData() local 94 addIndexablesFromRemoteProvider(packageName, authority); in collectIndexableData() 98 addNonIndexablesKeysFromRemoteProvider(packageName, authority); in collectIndexableData() 101 Log.d(TAG, "performIndexing update non-indexable for package " + packageName in collectIndexableData() 109 private void addIndexablesFromRemoteProvider(String packageName, String authority) { in addIndexablesFromRemoteProvider() argument 111 final Context context = mContext.createPackageContext(packageName, 0); in addIndexablesFromRemoteProvider() 115 context, packageName, uriForResources, in addIndexablesFromRemoteProvider() 120 context, packageName, uriForRawData, in addIndexablesFromRemoteProvider() 126 Log.w(TAG, "Could not create context for " + packageName + ": " in addIndexablesFromRemoteProvider() 133 String packageName, Uri uri, String[] projection) { in getIndexablesForXmlResourceUri() argument [all …]
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/users/ |
D | AppRestrictionsFragment.java | 349 String packageName = intent.getData().getSchemeSpecificPart(); in onPackageChanged() local 352 findPreference(getKeyForPackage(packageName)); in onPackageChanged() 366 public void onDisableUiForPackage(String packageName) { in onDisableUiForPackage() argument 368 getKeyForPackage(packageName)); in onDisableUiForPackage() 417 String packageName = app.packageName; in populateApps() local 418 if (packageName == null) continue; in populateApps() 419 final boolean isSettingsApp = packageName.equals(context.getPackageName()); in populateApps() 422 final boolean hasSettings = resolveInfoListHasPackage(receivers, packageName); in populateApps() 425 mHelper.setPackageSelected(packageName, true); in populateApps() 430 pi = mIPm.getPackageInfo(packageName, in populateApps() [all …]
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | VoicemailPermissions.java | 107 public boolean packageHasOwnVoicemailAccess(String packageName) { in packageHasOwnVoicemailAccess() argument 108 return packageHasPermission(packageName, in packageHasOwnVoicemailAccess() 110 || packageHasCarrierPrivileges(packageName); in packageHasOwnVoicemailAccess() 114 public boolean packageHasReadAccess(String packageName) { in packageHasReadAccess() argument 115 return packageHasPermission(packageName, android.Manifest.permission.READ_VOICEMAIL); in packageHasReadAccess() 119 public boolean packageHasWriteAccess(String packageName) { in packageHasWriteAccess() argument 120 return packageHasPermission(packageName, android.Manifest.permission.WRITE_VOICEMAIL); in packageHasWriteAccess() 124 private boolean packageHasPermission(String packageName, String permission) { in packageHasPermission() argument 125 return ContactsPermissions.hasPackagePermission(mContext, permission, packageName); in packageHasPermission() 138 for (String packageName : packages) { in callerHasCarrierPrivileges() [all …]
|