/packages/providers/MediaProvider/tests/src/com/android/providers/media/util/ |
D | PermissionUtilsTest.java | 129 final String packageName = context.getPackageName(); in testSelfPermissions() local 133 assertThat(checkPermissionManager(context, pid, uid, packageName, null)).isFalse(); in testSelfPermissions() 135 assertThat(checkPermissionManageMedia(context, pid, uid, packageName, null)).isFalse(); in testSelfPermissions() 137 packageName, null, true)).isFalse(); in testSelfPermissions() 139 assertThat(checkPermissionReadStorage(context, pid, uid, packageName, null)).isTrue(); in testSelfPermissions() 140 assertThat(checkPermissionWriteStorage(context, pid, uid, packageName, null)).isTrue(); in testSelfPermissions() 142 assertThat(checkPermissionReadAudio(context, pid, uid, packageName, null, false)).isTrue(); in testSelfPermissions() 143 assertThat(checkPermissionWriteAudio(context, pid, uid, packageName, null)).isFalse(); in testSelfPermissions() 144 assertThat(checkPermissionReadVideo(context, pid, uid, packageName, null, false)).isTrue(); in testSelfPermissions() 145 assertThat(checkPermissionWriteVideo(context, pid, uid, packageName, null)).isFalse(); in testSelfPermissions() [all …]
|
/packages/providers/MediaProvider/src/com/android/providers/media/util/ |
D | PermissionUtils.java | 114 int uid, @NonNull String packageName, @Nullable String attributionTag) { in checkPermissionManager() argument 116 packageName, attributionTag, in checkPermissionManager() 117 generateAppOpMessage(packageName,sOpDescription.get())); in checkPermissionManager() 138 @NonNull String packageName, @Nullable String attributionTag) { in checkPermissionWriteStorage() argument 140 packageName, attributionTag, in checkPermissionWriteStorage() 141 generateAppOpMessage(packageName,sOpDescription.get())); in checkPermissionWriteStorage() 145 @NonNull String packageName, @Nullable String attributionTag) { in checkPermissionReadStorage() argument 147 packageName, attributionTag, in checkPermissionReadStorage() 148 generateAppOpMessage(packageName,sOpDescription.get())); in checkPermissionReadStorage() 156 int uid, @NonNull String packageName, @Nullable String attributionTag, in checkPermissionAccessMediaLocation() argument [all …]
|
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/permission/ |
D | HealthConnectPermissionHelper.java | 98 @NonNull String packageName, @NonNull String permissionName, @NonNull UserHandle user) { in grantHealthPermission() 99 Objects.requireNonNull(packageName); in grantHealthPermission() 104 enforceValidPackage(packageName, checkedUser); in grantHealthPermission() 105 enforceSupportPermissionsUsageIntent(packageName, checkedUser); in grantHealthPermission() 108 mPackageManager.grantRuntimePermission(packageName, permissionName, checkedUser); in grantHealthPermission() 111 packageName, in grantHealthPermission() 115 addToPriorityListIfRequired(packageName, permissionName); in grantHealthPermission() 124 @NonNull String packageName, in revokeHealthPermission() 128 Objects.requireNonNull(packageName); in revokeHealthPermission() 133 enforceValidPackage(packageName, checkedUser); in revokeHealthPermission() [all …]
|
/packages/modules/Permission/tests/cts/permission/permissionTestUtilLib/src/android/permission/cts/ |
D | PermissionUtils.java | 93 public static int getAppOp(@NonNull String packageName, @NonNull String permission) in getAppOp() argument 97 sContext.getPackageManager().getPackageUid(packageName, 0), packageName); in getAppOp() 120 public static void uninstallApp(@NonNull String packageName) { in uninstallApp() argument 121 runShellCommand("pm uninstall " + packageName); in uninstallApp() 131 public static void setAppOp(@NonNull String packageName, @NonNull String permission, int mode) { in setAppOp() argument 132 setAppOpByName(packageName, permissionToOp(permission), mode); in setAppOp() 142 public static void setAppOpByName(@NonNull String packageName, @NonNull String op, int mode) { in setAppOpByName() argument 145 sContext.getPackageManager().getPackageUid(packageName, 0), mode), in setAppOpByName() 159 public static boolean isPermissionGranted(@NonNull String packageName, in isPermissionGranted() argument 162 sContext.getPackageManager().getPackageUid(packageName, 0)) in isPermissionGranted() [all …]
|
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/datatypehelpers/ |
D | AppInfoHelper.java | 140 final String packageName = requireNonNull(record.getPackageName()); in populateAppInfoId() local 141 AppInfoInternal appInfo = getAppInfoMap().get(packageName); in populateAppInfoId() 145 appInfo = getAppInfo(packageName, context); in populateAppInfoId() 153 DEFAULT_LONG, packageName, record.getAppName(), null, null); in populateAppInfoId() 156 insertIfNotPresent(packageName, appInfo); in populateAppInfoId() 173 @NonNull String packageName, in addOrUpdateAppInfoIfNotInstalled() argument 177 if (!isAppInstalled(context, packageName)) { in addOrUpdateAppInfoIfNotInstalled() 181 containsAppInfo(packageName) in addOrUpdateAppInfoIfNotInstalled() 182 ? mAppInfoMap.get(packageName).getRecordTypesUsed() in addOrUpdateAppInfoIfNotInstalled() 186 DEFAULT_LONG, packageName, name, decodeBitmap(icon), recordTypesUsed); in addOrUpdateAppInfoIfNotInstalled() [all …]
|
/packages/modules/Permission/service/java/com/android/ecm/ |
D | EnhancedConfirmationService.java | 96 signedPackage.getPackageName(), packageName -> new ArrayList<>(1)); in toTrustedPackageMap() 153 public boolean isRestricted(@NonNull String packageName, @NonNull String settingIdentifier, in isRestricted() argument 161 Preconditions.checkStringNotEmpty(packageName, "packageName cannot be null or empty"); in isRestricted() 166 return isSettingEcmProtected(settingIdentifier) && isPackageEcmGuarded(packageName, in isRestricted() 173 public void clearRestriction(@NonNull String packageName, @UserIdInt int userId) { in clearRestriction() argument 179 Preconditions.checkStringNotEmpty(packageName, "packageName cannot be null or empty"); in clearRestriction() 182 int state = getAppEcmState(packageName, userId); in clearRestriction() 187 setAppEcmState(packageName, EcmState.ECM_STATE_NOT_GUARDED, userId); in clearRestriction() 189 getPackageUid(packageName, userId)); in clearRestriction() 195 public boolean isClearRestrictionAllowed(@NonNull String packageName, in isClearRestrictionAllowed() argument [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/role-controller/java/com/android/role/controller/model/ |
D | Permissions.java | 103 public static boolean grantAsUser(@NonNull String packageName, in grantAsUser() argument 112 PackageInfo packageInfo = getPackageInfoAsUser(packageName, user, context); in grantAsUser() 149 PackageInfo disabledSystemPackageInfo = getFactoryPackageInfoAsUser(packageName, user, in grantAsUser() 187 userPackageManager.getWhitelistedRestrictedPermissions(packageName, in grantAsUser() 196 userPackageManager.addWhitelistedRestrictedPermission(packageName, permission, in grantAsUser() 200 permissionOrAppOpChanged |= grantSingleAsUser(packageName, permission, in grantAsUser() 208 private static boolean grantSingleAsUser(@NonNull String packageName, in grantSingleAsUser() argument 212 boolean wasPermissionOrAppOpGranted = isPermissionAndAppOpGrantedAsUser(packageName, in grantSingleAsUser() 214 if (isPermissionFixedAsUser(packageName, permission, false, in grantSingleAsUser() 228 if (isPermissionAndAppOpGrantedAsUser(packageName, foregroundPermission, user, in grantSingleAsUser() [all …]
|
D | Role.java | 467 String packageName = getQualifiedDefaultHolderPackageNameAsUser(defaultHolders, user, in getDefaultHoldersAsUser() local 469 if (packageName == null) { in getDefaultHoldersAsUser() 472 return Collections.singletonList(packageName); in getDefaultHoldersAsUser() 476 String packageName = getQualifiedDefaultHolderPackageNameAsUser(defaultHolder, in getDefaultHoldersAsUser() local 478 if (packageName != null) { in getDefaultHoldersAsUser() 479 packageNames.add(packageName); in getDefaultHoldersAsUser() 489 String packageName; in getQualifiedDefaultHolderPackageNameAsUser() local 493 packageName = defaultHolder.substring(0, certificateSeparatorIndex); in getQualifiedDefaultHolderPackageNameAsUser() 502 packageName = defaultHolder; in getQualifiedDefaultHolderPackageNameAsUser() 509 if (!userPackageManager.hasSigningCertificate(packageName, certificate, in getQualifiedDefaultHolderPackageNameAsUser() [all …]
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissions/app/ |
D | AppPermissionViewModel.kt | 139 fun loadPermissionsForPackage(packageName: String) { in <lambda>() 144 viewModelScope.launch { _appInfo.postValue(appInfoReader.getAppMetadata(packageName)) } in <lambda>() 145 if (isPackageSupported(packageName)) { in <lambda>() 146 loadAllPermissions(packageName) in <lambda>() 150 loadGrantedPermissionsForPackage(packageName) in <lambda>() 154 private fun loadAllPermissions(packageName: String) { in <lambda>() 156 permissionsList = loadAppPermissionsStatusUseCase.invoke(packageName) in <lambda>() 174 private fun loadGrantedPermissionsForPackage(packageName: String) { in <lambda>() 179 loadAppPermissionsStatusUseCase.invoke(packageName).filter { it.isGranted } in <lambda>() 197 fun loadAccessDate(packageName: String): Instant? { in <lambda>() [all …]
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/consent/ |
D | AppConsentDao.java | 128 String packageName = datastoreKeyToPackageName(key); in getKnownAppsWithConsent() local 129 if (installedPackages.contains(packageName)) { in getKnownAppsWithConsent() 130 apps.add(packageName); in getKnownAppsWithConsent() 147 String packageName = datastoreKeyToPackageName(key); in getAppsWithRevokedConsent() local 148 if (installedPackages.contains(packageName)) { in getAppsWithRevokedConsent() 149 apps.add(packageName); in getAppsWithRevokedConsent() 163 public void setConsentForApp(@NonNull String packageName, boolean isConsentRevoked) in setConsentForApp() argument 166 mDatastore.put(toDatastoreKey(packageName), isConsentRevoked); in setConsentForApp() 180 public boolean setConsentForAppIfNew(@NonNull String packageName, boolean isConsentRevoked) in setConsentForAppIfNew() argument 183 return mDatastore.putIfNew(toDatastoreKey(packageName), isConsentRevoked); in setConsentForAppIfNew() [all …]
|
/packages/modules/Wifi/framework/java/android/net/wifi/ |
D | IWifiManager.aidl | 106 …ParceledListSlice getConfiguredNetworks(String packageName, String featureId, boolean callerNetwor… in getConfiguredNetworks() argument 108 …ParceledListSlice getPrivilegedConfiguredNetworks(String packageName, String featureId, in Bundle … in getPrivilegedConfiguredNetworks() argument 110 …WifiConfiguration getPrivilegedConnectedNetwork(String packageName, String featureId, in Bundle ex… in getPrivilegedConnectedNetwork() argument 114 void setSsidsAllowlist(String packageName, in List<WifiSsid> ssids); in setSsidsAllowlist() argument 116 List getSsidsAllowlist(String packageName); in getSsidsAllowlist() argument 122 int addOrUpdateNetwork(in WifiConfiguration config, String packageName, in Bundle extras); in addOrUpdateNetwork() argument 124 …ger.AddNetworkResult addOrUpdateNetworkPrivileged(in WifiConfiguration config, String packageName); in addOrUpdateNetworkPrivileged() argument 126 boolean addOrUpdatePasspointConfiguration(in PasspointConfiguration config, String packageName); in addOrUpdatePasspointConfiguration() argument 128 boolean removePasspointConfiguration(in String fqdn, String packageName); in removePasspointConfiguration() argument 130 List<PasspointConfiguration> getPasspointConfigurations(in String packageName); in getPasspointConfigurations() argument [all …]
|
D | BaseWifiService.java | 72 public ParceledListSlice getConfiguredNetworks(String packageName, String featureId, in getConfiguredNetworks() argument 78 public ParceledListSlice getPrivilegedConfiguredNetworks(String packageName, String featureId, in getPrivilegedConfiguredNetworks() argument 85 String packageName, String featureId, Bundle extras) { in getPrivilegedConnectedNetwork() argument 126 public void setSsidsAllowlist(String packageName, List<WifiSsid> ssids) { in setSsidsAllowlist() argument 131 public List<WifiSsid> getSsidsAllowlist(String packageName) { in getSsidsAllowlist() argument 148 public int addOrUpdateNetwork(WifiConfiguration config, String packageName, Bundle extras) { in addOrUpdateNetwork() argument 154 String packageName) { in addOrUpdateNetworkPrivileged() argument 160 PasspointConfiguration config, String packageName) { in addOrUpdatePasspointConfiguration() argument 165 public boolean removePasspointConfiguration(String fqdn, String packageName) { in removePasspointConfiguration() argument 170 public List<PasspointConfiguration> getPasspointConfigurations(String packageName) { in getPasspointConfigurations() argument [all …]
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/utils/di/ |
D | FakeHealthPermissionManager.kt | 28 fun setHealthPermissionFlags(packageName: String, flags: Map<String, Int>) { in setHealthPermissionFlags() 29 healthPermissionFlags[packageName] = flags in setHealthPermissionFlags() 32 fun setGrantedPermissionsForTest(packageName: String, permissions: List<String>) { in setGrantedPermissionsForTest() 33 grantedPermissions[packageName] = permissions.toMutableList() in setGrantedPermissionsForTest() 36 override fun getGrantedHealthPermissions(packageName: String): List<String> { in getGrantedHealthPermissions() 37 return grantedPermissions.getOrDefault(packageName, emptyList()) in getGrantedHealthPermissions() 41 packageName: String, in getHealthPermissionsFlags() 44 return healthPermissionFlags.getOrDefault(packageName, mapOf()) in getHealthPermissionsFlags() 48 packageName: String, in setHealthPermissionsUserFixedFlagValue() 55 override fun grantHealthPermission(packageName: String, permissionName: String) { in grantHealthPermission() [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/modules/HealthFitness/apk/src/com/android/healthconnect/controller/shared/app/ |
D | AppInfoReader.kt | 39 suspend fun getAppMetadata(packageName: String): AppMetadata { in getAppMetadata() 40 if (cache.containsKey(packageName)) { in getAppMetadata() 41 return cache[packageName]!! in getAppMetadata() 42 } else if (isAppInstalled(packageName)) { in getAppMetadata() 45 packageName = packageName, in getAppMetadata() 47 packageManager.getApplicationLabel(getPackageInfo(packageName)).toString(), in getAppMetadata() 48 icon = packageManager.getApplicationIcon(packageName)) in getAppMetadata() 49 cache[packageName] = app in getAppMetadata() 54 return if (contributorApps.containsKey(packageName)) { in getAppMetadata() 55 contributorApps[packageName]!! in getAppMetadata() [all …]
|
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/data/ |
D | CloudProviderInfo.java | 31 public final String packageName; field in CloudProviderInfo 36 this.packageName = null; in CloudProviderInfo() 40 public CloudProviderInfo(@NonNull String authority, @NonNull String packageName, int uid) { in CloudProviderInfo() argument 42 Objects.requireNonNull(packageName); in CloudProviderInfo() 45 this.packageName = packageName; in CloudProviderInfo() 61 public boolean matches(@Nullable String packageName) { in matches() argument 62 return packageName != null && packageName.equals(this.packageName); in matches() 75 public boolean matches(@Nullable String authority, @Nullable String packageName) { in matches() argument 76 return authority != null && authority.equals(this.authority) && matches(packageName); in matches() 87 && Objects.equals(packageName, that.packageName) in equals() [all …]
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/role/model/ |
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/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissions/api/ |
D | HealthPermissionManagerImplTest.kt | 54 val packageName = "package.name" in getHealthPermissionsFlags_callsHealthConnectManager() constant 56 healthPermissionManager.getHealthPermissionsFlags(packageName, permissions) in getHealthPermissionsFlags_callsHealthConnectManager() 58 verify(healthConnectManager, times(1)).getHealthPermissionsFlags(packageName, permissions) in getHealthPermissionsFlags_callsHealthConnectManager() 64 val packageName = "package.name" in setHealthPermissionsUserFixedFlagValue_callsHealthConnectManager() constant 67 packageName, permissions, true) in setHealthPermissionsUserFixedFlagValue_callsHealthConnectManager() 70 .setHealthPermissionsUserFixedFlagValue(packageName, permissions, true) in setHealthPermissionsUserFixedFlagValue_callsHealthConnectManager() 75 val packageName = "package.name" in grantHealthPermission_callsHealthConnectManager() constant 77 healthPermissionManager.grantHealthPermission(packageName, permission) in grantHealthPermission_callsHealthConnectManager() 79 verify(healthConnectManager, times(1)).grantHealthPermission(packageName, permission) in grantHealthPermission_callsHealthConnectManager() 84 val packageName = "package.name" in revokeHealthPermission_callsHealthConnectManager() constant [all …]
|
/packages/apps/Settings/src/com/android/settings/applications/ |
D | AppLocaleUtil.java | 56 boolean isDisallowedPackage = isDisallowedPackage(context, app.packageName); in canDisplayLocaleUi() 57 boolean hasLauncherEntry = hasLauncherEntry(app.packageName, infos); in canDisplayLocaleUi() 62 && isAppLocaleSupported(context, app.packageName); in canDisplayLocaleUi() 64 Log.i(TAG, "Can display preference - [" + app.packageName + "] :" in canDisplayLocaleUi() 72 private static boolean isDisallowedPackage(Context context, String packageName) { in isDisallowedPackage() argument 76 if (TextUtils.equals(packageName, disallowedPackage)) { in isDisallowedPackage() 83 private static boolean hasLauncherEntry(String packageName, List<ResolveInfo> infos) { in hasLauncherEntry() argument 85 .anyMatch(info -> info.activityInfo.packageName.equals(packageName)); in hasLauncherEntry() 91 public static boolean isAppLocaleSupported(Context context, String packageName) { in isAppLocaleSupported() argument 96 localeList = getPackageLocales(context, packageName); in isAppLocaleSupported() [all …]
|
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/device/apps/ |
D | AppUtils.java | 61 public static boolean hasUsbDefaults(IUsbManager usbManager, String packageName) { in hasUsbDefaults() argument 64 return usbManager.hasDefaults(packageName, UserHandle.myUserId()); in hasUsbDefaults() 74 String packageName = appEntry.info.packageName; in getLaunchByDefaultSummary() local 75 boolean hasPreferred = hasPreferredActivities(pm, packageName) in getLaunchByDefaultSummary() 76 || hasUsbDefaults(usbManager, packageName); in getLaunchByDefaultSummary() 77 int status = pm.getIntentVerificationStatusAsUser(packageName, UserHandle.myUserId()); in getLaunchByDefaultSummary() 86 public static boolean hasPreferredActivities(PackageManager pm, String packageName) { in hasPreferredActivities() argument 91 pm.getPreferredActivities(intentList, prefActList, packageName); in hasPreferredActivities() 112 if (propVal != null && !propVal.isEmpty() && info.packageName != null) { in isInstant() 116 if (info.packageName.contains(term)) { in isInstant() [all …]
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/role/ui/wear/ |
D | WearRequestRoleFragment.kt | 47 private lateinit var packageName: String in <lambda>() variable in com.android.permissioncontroller.role.ui.wear.WearRequestRoleFragment 62 packageName = arguments?.getString(Intent.EXTRA_PACKAGE_NAME) ?: "" in <lambda>() 74 if (currentPackageNames.contains(packageName)) { in <lambda>() 77 "Application is already a role holder, role: $roleName, package: $packageName" in <lambda>() 87 val appInfo = PackageUtils.getApplicationInfo(packageName, context) in <lambda>() 89 Log.w(TAG, "Unknown application: $packageName") in <lambda>() 118 packageName, in <lambda>() 129 ", package: $packageName" in <lambda>() 143 Log.i(TAG, "Dialog cancelled, role: $roleName , package: $packageName") in <lambda>() 168 if (lastPackageName == packageName) { in <lambda>() [all …]
|
/packages/modules/Permission/PermissionController/role-controller/java/com/android/role/controller/service/ |
D | RoleControllerServiceImpl.java | 131 String packageName = currentPackageNames.get(currentPackageNamesIndex); in onGrantDefaultRoles() local 133 if (role.isPackageQualifiedAsUser(packageName, mUser, mContext)) { in onGrantDefaultRoles() 138 addRoleHolderInternal(role, packageName, false, false, true); in onGrantDefaultRoles() 142 + " package: " + packageName + ", role: " + roleName); in onGrantDefaultRoles() 143 removeRoleHolderInternal(role, packageName, false); in onGrantDefaultRoles() 165 String packageName = packageNamesToAdd.get(packageNamesToAddIndex); in onGrantDefaultRoles() local 167 if (currentPackageNames.contains(packageName)) { in onGrantDefaultRoles() 172 if (!role.isPackageQualifiedAsUser(packageName, mUser, mContext)) { in onGrantDefaultRoles() 174 + " the role, package: " + packageName + ", role: " + roleName); in onGrantDefaultRoles() 178 + packageName + ", role: " + roleName); in onGrantDefaultRoles() [all …]
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissions/api/ |
D | HealthPermissionManagerImpl.kt | 25 override fun getGrantedHealthPermissions(packageName: String): List<String> { in getGrantedHealthPermissions() 26 return manager.getGrantedHealthPermissions(packageName) in getGrantedHealthPermissions() 30 packageName: String, in getHealthPermissionsFlags() 33 return manager.getHealthPermissionsFlags(packageName, permissions) in getHealthPermissionsFlags() 37 packageName: String, in setHealthPermissionsUserFixedFlagValue() 41 manager.setHealthPermissionsUserFixedFlagValue(packageName, permissions, value) in setHealthPermissionsUserFixedFlagValue() 44 override fun grantHealthPermission(packageName: String, permissionName: String) { in grantHealthPermission() 45 manager.grantHealthPermission(packageName, permissionName) in grantHealthPermission() 48 override fun revokeHealthPermission(packageName: String, permissionName: String) { in revokeHealthPermission() 49 manager.revokeHealthPermission(packageName, permissionName, /* reason= */ "") in revokeHealthPermission() [all …]
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/data/ |
D | PackageBroadcastReceiver.kt | 51 fun addChangeCallback(packageName: String, listener: PackageBroadcastListener) { in <lambda>() 55 changeCallbacks.getOrPut(packageName, { mutableSetOf() }).add(listener) in <lambda>() 112 fun removeChangeCallback(packageName: String?, listener: PackageBroadcastListener) { in <lambda>() 116 changeCallbacks[packageName]?.let { callbackSet -> in <lambda>() 119 changeCallbacks.remove(packageName) in <lambda>() 147 val packageName = intent.data?.schemeSpecificPart ?: return in <lambda>() constant 150 callback.onPackageUpdate(packageName) in <lambda>() 154 changeCallbacks[packageName]?.toList()?.let { callbacks -> in <lambda>() 156 callback.onPackageUpdate(packageName) in <lambda>() 163 LightPackageInfoLiveData.invalidateAllForPackage(packageName) in <lambda>() [all …]
|