diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-11-02 22:45:31 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-11-02 22:45:31 +0000 |
commit | 0200d6fbca83dca25736cdef8fa67f4c55552ae0 (patch) | |
tree | d4c2bbf2e2847a3569ebe3a3119ac5d6586eec16 /PermissionController/src/com/android/permissioncontroller/safetylabel/AppsSafetyLabelHistory.kt | |
parent | ec92dfe7d68b2aec544825ebe61c45df98cae6b7 (diff) | |
parent | 17440e9d4d86da90a850ad04dbc41cb59d30cdec (diff) | |
download | Permission-0200d6fbca83dca25736cdef8fa67f4c55552ae0.tar.gz |
Snap for 11041982 from 17440e9d4d86da90a850ad04dbc41cb59d30cdec to mainline-uwb-releaseaml_uwb_341310300aml_uwb_341310030android14-mainline-uwb-release
Change-Id: If31740c980b44eae1671d1a80e4f088e8f9ef7e4
Diffstat (limited to 'PermissionController/src/com/android/permissioncontroller/safetylabel/AppsSafetyLabelHistory.kt')
-rw-r--r-- | PermissionController/src/com/android/permissioncontroller/safetylabel/AppsSafetyLabelHistory.kt | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/PermissionController/src/com/android/permissioncontroller/safetylabel/AppsSafetyLabelHistory.kt b/PermissionController/src/com/android/permissioncontroller/safetylabel/AppsSafetyLabelHistory.kt index 26f327e96..69e696695 100644 --- a/PermissionController/src/com/android/permissioncontroller/safetylabel/AppsSafetyLabelHistory.kt +++ b/PermissionController/src/com/android/permissioncontroller/safetylabel/AppsSafetyLabelHistory.kt @@ -59,7 +59,8 @@ data class AppsSafetyLabelHistory(val appSafetyLabelHistories: List<AppSafetyLab .toMutableList() .apply { add(safetyLabel) } .sortedBy { it.receivedAt } - .takeLast(maxToPersist)) + .takeLast(maxToPersist) + ) } /** Data class representing the information about an app. */ @@ -90,7 +91,8 @@ data class AppsSafetyLabelHistory(val appSafetyLabelHistories: List<AppSafetyLab SafetyLabel( AppInfo(packageName), receivedAt, - DataLabel.extractLocationSharingDataLabel(appMetadataSafetyLabel.dataLabel)) + DataLabel.extractLocationSharingDataLabel(appMetadataSafetyLabel.dataLabel) + ) } } @@ -113,7 +115,8 @@ data class AppsSafetyLabelHistory(val appSafetyLabelHistories: List<AppSafetyLab .filter { it.key == DataCategoryConstants.CATEGORY_LOCATION } .mapValues { categoryEntry -> DataCategory.fromAppMetadataDataCategory(categoryEntry.value) - }) + } + ) } } @@ -134,7 +137,8 @@ data class AppsSafetyLabelHistory(val appSafetyLabelHistories: List<AppSafetyLab DataCategory( appMetadataDataCategory.dataTypes.values.any { it.purposeSet.contains(PURPOSE_ADVERTISING) - }) + } + ) } } |