/packages/modules/Permission/PermissionController/tests/mocking/src/com/android/permissioncontroller/tests/mocking/safetylabel/ |
D | TestSafetyLabels.kt | 22 import com.android.permissioncontroller.safetylabel.AppsSafetyLabelHistory.SafetyLabel 41 val SAFETY_LABEL_PKG_1_V1: SafetyLabel = 42 SafetyLabel( 49 val SAFETY_LABEL_PKG_1_V2: SafetyLabel = 50 SafetyLabel( 57 val SAFETY_LABEL_PKG_1_V3: SafetyLabel = 58 SafetyLabel( 65 val SAFETY_LABEL_PKG_2_V1: SafetyLabel = 66 SafetyLabel( 78 val SAFETY_LABEL_PKG_2_V2: SafetyLabel = [all …]
|
D | AppsSafetyLabelHistoryTest.kt | 22 import com.android.permission.safetylabel.SafetyLabel as AppMetadataSafetyLabel 23 import com.android.permission.safetylabel.SafetyLabel.KEY_VERSION 29 import com.android.permissioncontroller.safetylabel.AppsSafetyLabelHistory.SafetyLabel 122 SafetyLabel.extractLocationSharingSafetyLabel( in extractLocationSharingSafetyLabel_noSharing_returnsSafetyLabelForPersistence() 129 .isEqualTo(SafetyLabel(AppInfo(PACKAGE_NAME_1), DATE_2022_09_01, DataLabel(mapOf()))) in extractLocationSharingSafetyLabel_noSharing_returnsSafetyLabelForPersistence() 139 SafetyLabel.extractLocationSharingSafetyLabel( in extractLocationSharingSafetyLabel_locationSharingNoAds_returnsSafetyLabelForPersistence() 147 SafetyLabel( in extractLocationSharingSafetyLabel_locationSharingNoAds_returnsSafetyLabelForPersistence() 162 SafetyLabel.extractLocationSharingSafetyLabel( in extractLocationSharingSafetyLabel_locationSharingAds_returnsSafetyLabelForPersistence() 170 SafetyLabel( in extractLocationSharingSafetyLabel_locationSharingAds_returnsSafetyLabelForPersistence() 185 SafetyLabel.extractLocationSharingSafetyLabel( in extractLocationSharingSafetyLabel_financeCategory_returnsEmptySafetyLabel() [all …]
|
/packages/modules/Permission/SafetyLabel/tests/java/com/android/permission/safetylabel/ |
D | SafetyLabelTest.kt | 20 import com.android.permission.safetylabel.SafetyLabel.KEY_SAFETY_LABEL 21 import com.android.permission.safetylabel.SafetyLabel.KEY_VERSION 41 val safetyLabel = SafetyLabel.getSafetyLabelFromMetadata(null) in getSafetyLabelFromMetadata_nullMetadataBundle_nullSafetyLabel() 49 SafetyLabel.getSafetyLabelFromMetadata(createNonVersionedEmptyMetadataPersistableBundle()) in getSafetyLabelFromMetadata_emptyMetadataBundle_nullSafetyLabel() 57 SafetyLabel.getSafetyLabelFromMetadata(createVersionedEmptyMetadataPersistableBundle()) in getSafetyLabelFromMetadata_emptyVersionedMetadataBundle_nullSafetyLabel() 65 SafetyLabel.getSafetyLabelFromMetadata(createInvalidMetadataPersistableBundle()) in getSafetyLabelFromMetadata_invalidMetadataBundle_nullSafetyLabel() 73 SafetyLabel.getSafetyLabelFromMetadata( in getSafetyLabelFromMetadata_invalidSafetyLabelBundle_dataSharedEmpty() 85 val safetyLabel = SafetyLabel.getSafetyLabelFromMetadata(bundle) in getSafetyLabelFromMetadata_validBundle_hasDataShared() 96 SafetyLabel.getSafetyLabelFromMetadata(createMetadataPersistableBundleWithoutVersion()) in getSafetyLabelFromMetadata_invalidBundle_noTopLevelBundleVersion() 103 SafetyLabel.getSafetyLabelFromMetadata(createMetadataPersistableBundleInvalidVersion()) in getSafetyLabelFromMetadata_invalidBundle_InvalidTopLevelBundleVersion() [all …]
|
D | SafetyLabelTestPersistableBundles.kt | 30 import com.android.permission.safetylabel.SafetyLabel.KEY_VERSION in <lambda>() 70 putPersistableBundle(SafetyLabel.KEY_SAFETY_LABEL, in <lambda>() 90 SafetyLabel.KEY_SAFETY_LABEL, createInvalidSafetyLabelPersistableBundle()) in <lambda>()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/safetylabel/ |
D | AppsSafetyLabelHistory.kt | 23 import com.android.permission.safetylabel.SafetyLabel as AppMetadataSafetyLabel in <lambda>() 40 val safetyLabelHistory: List<SafetyLabel> in <lambda>() 55 fun withSafetyLabel(safetyLabel: SafetyLabel, maxToPersist: Int): AppSafetyLabelHistory = in <lambda>() 72 data class SafetyLabel( in <lambda>() class in com.android.permissioncontroller.safetylabel.AppsSafetyLabelHistory 90 ): SafetyLabel = in <lambda>() 91 SafetyLabel( in <lambda>() 147 val safetyLabelBefore: SafetyLabel, in <lambda>() 148 val safetyLabelAfter: SafetyLabel in <lambda>()
|
D | AppsSafetyLabelHistoryPersistence.kt | 31 import com.android.permissioncontroller.safetylabel.AppsSafetyLabelHistory.SafetyLabel in <lambda>() 128 fun recordSafetyLabel(safetyLabel: SafetyLabel, file: File) { in <lambda>() 159 fun recordSafetyLabels(safetyLabelsToAdd: Set<SafetyLabel>, file: File) { in <lambda>() 378 val safetyLabels = mutableListOf<SafetyLabel>() in <lambda>() 389 private fun XmlPullParser.parseSafetyLabel(appInfo: AppInfo): SafetyLabel { in <lambda>() 412 return SafetyLabel(appInfo, receivedAt, dataLabel) in <lambda>() 536 private fun XmlSerializer.serializeSafetyLabel(safetyLabel: SafetyLabel) { in <lambda>() 569 safetyLabel: SafetyLabel in <lambda>() 577 safetyLabels: List<SafetyLabel> in <lambda>()
|
D | SafetyLabelChangedBroadcastReceiver.kt | 32 import com.android.permission.safetylabel.SafetyLabel as AppMetadataSafetyLabel 41 import com.android.permissioncontroller.safetylabel.AppsSafetyLabelHistory.SafetyLabel as SafetyLab… 170 AppsSafetyLabelHistory.SafetyLabel.extractLocationSharingSafetyLabel( in writeSafetyLabel()
|
/packages/modules/Permission/SafetyLabel/java/com/android/permission/safetylabel/ |
D | SafetyLabel.java | 29 public class SafetyLabel { class 35 private SafetyLabel(@NonNull DataLabel dataLabel) { in SafetyLabel() method in SafetyLabel 41 public static SafetyLabel getSafetyLabelFromMetadata(@Nullable PersistableBundle bundle) { in getSafetyLabelFromMetadata() 69 return new SafetyLabel(dataLabel); in getSafetyLabelFromMetadata()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/data/v34/ |
D | SafetyLabelInfoLiveData.kt | 25 import com.android.permission.safetylabel.SafetyLabel 108 val safetyLabel: SafetyLabel? = getSafetyLabel(userContext, packageName) in loadDataAndPostValue() 124 private fun getSafetyLabel(userContext: Context, packageName: String): SafetyLabel? { in getSafetyLabel() 125 return SafetyLabel.getSafetyLabelFromMetadata( in getSafetyLabel()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/model/v34/ |
D | AppDataSharingUpdate.kt | 26 import com.android.permissioncontroller.safetylabel.AppsSafetyLabelHistory.SafetyLabel 91 private fun SafetyLabel.sharesData(category: String) = in SafetyLabel() method 94 private fun SafetyLabel.sharesDataForAdsPurpose(category: String) = in SafetyLabel() method
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/model/livedatatypes/v34/ |
D | SafetyLabelInfo.kt | 19 import com.android.permission.safetylabel.SafetyLabel 29 val safetyLabel: SafetyLabel?,
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/utils/v34/ |
D | SafetyLabelUtils.kt | 27 import com.android.permission.safetylabel.SafetyLabel in <lambda>() 38 safetyLabel: SafetyLabel, in <lambda>()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/service/v34/ |
D | SafetyLabelChangesJobService.kt | 46 import com.android.permission.safetylabel.SafetyLabel as AppMetadataSafetyLabel in <lambda>() 73 import com.android.permissioncontroller.safetylabel.AppsSafetyLabelHistory.SafetyLabel as SafetyLab… in <lambda>() 375 AppsSafetyLabelHistory.SafetyLabel.extractLocationSharingSafetyLabel( in <lambda>()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/model/ |
D | GrantPermissionsViewModel.kt | 49 import com.android.permission.safetylabel.SafetyLabel in <lambda>() 453 safetyLabel: SafetyLabel?, in <lambda>()
|