Home
last modified time | relevance | path

Searched refs:safetyLabel (Results 1 – 10 of 10) sorted by relevance

/packages/modules/Permission/SafetyLabel/tests/java/com/android/permission/safetylabel/
DSafetyLabelTest.kt41 val safetyLabel = SafetyLabel.getSafetyLabelFromMetadata(null) in getSafetyLabelFromMetadata_nullMetadataBundle_nullSafetyLabel() constant
43 assertThat(safetyLabel).isNull() in getSafetyLabelFromMetadata_nullMetadataBundle_nullSafetyLabel()
48 val safetyLabel = in getSafetyLabelFromMetadata_emptyMetadataBundle_nullSafetyLabel() constant
51 assertThat(safetyLabel).isNull() in getSafetyLabelFromMetadata_emptyMetadataBundle_nullSafetyLabel()
56 val safetyLabel = in getSafetyLabelFromMetadata_emptyVersionedMetadataBundle_nullSafetyLabel() constant
59 assertThat(safetyLabel).isNull() in getSafetyLabelFromMetadata_emptyVersionedMetadataBundle_nullSafetyLabel()
64 val safetyLabel = in getSafetyLabelFromMetadata_invalidMetadataBundle_nullSafetyLabel() constant
67 assertThat(safetyLabel).isNull() in getSafetyLabelFromMetadata_invalidMetadataBundle_nullSafetyLabel()
72 val safetyLabel = in getSafetyLabelFromMetadata_invalidSafetyLabelBundle_dataSharedEmpty() constant
76 assertThat(safetyLabel).isNull() in getSafetyLabelFromMetadata_invalidSafetyLabelBundle_dataSharedEmpty()
[all …]
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/safetylabel/
DAppsSafetyLabelHistoryPersistence.kt128 fun recordSafetyLabel(safetyLabel: SafetyLabel, file: File) { in <lambda>()
132 val appInfo = safetyLabel.appInfo in <lambda>()
139 add(AppSafetyLabelHistory(appInfo, listOf(safetyLabel))) in <lambda>()
146 else it.addSafetyLabelIfChanged(safetyLabel) in <lambda>()
536 private fun XmlSerializer.serializeSafetyLabel(safetyLabel: SafetyLabel) { in <lambda>()
538 attribute(null, ATTRIBUTE_RECEIVED_AT, safetyLabel.receivedAt.toEpochMilli().toString()) in <lambda>()
539 serializeDataLabel(safetyLabel.dataLabel) in <lambda>()
569 safetyLabel: SafetyLabel in <lambda>()
572 return if (latestSafetyLabel?.dataLabel == safetyLabel.dataLabel) this in <lambda>()
573 else this.withSafetyLabel(safetyLabel, getMaxSafetyLabelsToPersist()) in <lambda>()
[all …]
DAppsSafetyLabelHistory.kt55 fun withSafetyLabel(safetyLabel: SafetyLabel, maxToPersist: Int): AppSafetyLabelHistory = in <lambda>()
60 .apply { add(safetyLabel) } in <lambda>()
DSafetyLabelChangedBroadcastReceiver.kt164 val safetyLabel: AppMetadataSafetyLabel = in writeSafetyLabel() constant
173 safetyLabel in writeSafetyLabel()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/data/v34/
DSafetyLabelInfoLiveData.kt108 val safetyLabel: SafetyLabel? = getSafetyLabel(userContext, packageName) in loadDataAndPostValue() constant
109 if (safetyLabel != null) { in loadDataAndPostValue()
110 SafetyLabelInfo(safetyLabel, lightInstallSourceInfo) in loadDataAndPostValue()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/utils/v34/
DSafetyLabelUtils.kt38 safetyLabel: SafetyLabel, in <lambda>()
45 val dataCategory: DataCategory? = safetyLabel.dataLabel.dataShared[category] in <lambda>()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/model/
DGrantPermissionsViewModel.kt391 val safetyLabel = safetyLabelInfoLiveData?.value?.safetyLabel in <lambda>() constant
398 safetyLabel, in <lambda>()
453 safetyLabel: SafetyLabel?, in <lambda>()
456 if (safetyLabel == null || permissionGroupName == null) { in <lambda>()
461 SafetyLabelUtils.getSafetyLabelSharingPurposesForGroup(safetyLabel, permissionGroupName) in <lambda>()
1014 safetyLabelInfoLiveData?.value?.safetyLabel, in <lambda>()
DAppPermissionViewModel.kt210 val safetyLabel = safetyLabelInfoLiveData?.value?.safetyLabel in <lambda>() constant
211 if (safetyLabel == null) { in <lambda>()
218 safetyLabel, in <lambda>()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/model/livedatatypes/v34/
DSafetyLabelInfo.kt29 val safetyLabel: SafetyLabel?, constant in com.android.permissioncontroller.permission.model.livedatatypes.v34.SafetyLabelInfo
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/model/v34/
DPermissionRationaleViewModel.kt116 if (safetyLabelInfo?.safetyLabel == null) { in <lambda>()
131 safetyLabelInfo.safetyLabel, in <lambda>()