Home
last modified time | relevance | path

Searched refs:lightPackageInfo (Results 1 – 6 of 6) sorted by relevance

/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/safetylabel/
DSafetyLabelChangedBroadcastReceiver.kt107 val lightPackageInfo = in processPackageChange() constant
109 if (!isAppRequestingLocationPermission(lightPackageInfo)) { in processPackageChange()
116 writeSafetyLabel(context, lightPackageInfo, user) in processPackageChange()
127 lightPackageInfo: LightPackageInfo, in writeSafetyLabel()
130 val packageName = lightPackageInfo.packageName in writeSafetyLabel()
167 val receivedAtMs: Long = lightPackageInfo.lastUpdateTime in writeSafetyLabel()
202 private fun isAppRequestingLocationPermission(lightPackageInfo: LightPackageInfo): Boolean { in isAppRequestingLocationPermission()
203 return lightPackageInfo.requestedPermissions.any { LOCATION_PERMISSIONS.contains(it) } in isAppRequestingLocationPermission()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/utils/v31/
DSubattributionUtils.java55 public static boolean isSubattributionSupported(LightPackageInfo lightPackageInfo) { in isSubattributionSupported() argument
56 return SdkLevel.isAtLeastS() && lightPackageInfo.getAreAttributionsUserVisible(); in isSubattributionSupported()
118 LightPackageInfo lightPackageInfo) { in getAttributionLabels() argument
119 if (!isSubattributionSupported(lightPackageInfo)) { in getAttributionLabels()
125 pkgContext = context.createPackageContext(lightPackageInfo.getPackageName(), 0); in getAttributionLabels()
132 lightPackageInfo.getAttributionTagsToLabels().entrySet()) { in getAttributionLabels()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/model/v33/
DReviewPermissionDecisionsViewModel.kt73 for (lightPackageInfo in userPackageInfosLiveData.value!!) { in loadDataAndPostValue() constant
74 packageToLightPackageInfo[lightPackageInfo.packageName] = lightPackageInfo in loadDataAndPostValue()
81 val lightPackageInfo = packageToLightPackageInfo[recentDecision.packageName] in loadDataAndPostValue() constant
82 if (lightPackageInfo == null) { in loadDataAndPostValue()
90 lightPackageInfo.grantedPermissions.map { in loadDataAndPostValue()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/model/v31/
DPermissionUsageDetailsViewModel.kt291 lightPackageInfo: LightPackageInfo? in <lambda>()
293 if (lightPackageInfo == null) return emptyList() in <lambda>()
305 else lightPackageInfo.attributionTagsToLabels[tag] ?: Resources.ID_NULL in <lambda>()
452 private fun shouldShowSubAttributionForApp(lightPackageInfo: LightPackageInfo?): Boolean { in <lambda>()
453 return lightPackageInfo != null && in <lambda>()
455 SubattributionUtils.isSubattributionSupported(lightPackageInfo) in <lambda>()
503 val lightPackageInfo = getLightPackageInfo(accessCluster.appPermissionId) in <lambda>() constant
504 getSubAttributionLabels(lightPackageInfo)?.get(accessCluster.attributionLabel) in <lambda>()
507 private fun getSubAttributionLabels(lightPackageInfo: LightPackageInfo?): Map<Int, String>? = in <lambda>()
508 if (lightPackageInfo == null) null in <lambda>()
[all …]
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/model/
DAppPermissionGroupsViewModel.kt340 val lightPackageInfo = LightPackageInfoLiveData[packageName, user].getInitializedValue() in <lambda>() constant
342 if (lightPackageInfo != null) { in <lambda>()
357 lightPackageInfo.uid, in <lambda>()
368 aom.setUidMode(OPSTR_AUTO_REVOKE_PERMISSIONS_IF_UNUSED, lightPackageInfo.uid, mode) in <lambda>()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/service/v34/
DSafetyLabelChangesJobService.kt333 val lightPackageInfo = LightPackageInfoLiveData[packageKey].getInitializedValue() in <lambda>() constant
334 val lastAppUpdateTime: Instant = Instant.ofEpochMilli(lightPackageInfo?.lastUpdateTime ?: 0) in <lambda>()