Home
last modified time | relevance | path

Searched refs:DataLabel (Results 1 – 8 of 8) sorted by relevance

/packages/modules/Permission/SafetyLabel/tests/java/com/android/permission/safetylabel/
DDataLabelTest.kt38 val dataLabel: DataLabel? = DataLabel.getDataLabel(null) in getDataLabel_nullBundle_nullDataLabel()
45 val dataLabel: DataLabel? = DataLabel.getDataLabel(PersistableBundle.EMPTY) in getDataLabel_emptyBundle_nullDataLabel()
52 val dataLabel: DataLabel? = in getDataLabel_invalidBundle_nullDataLabel()
53 DataLabel.getDataLabel(createInvalidSafetyLabelPersistableBundle()) in getDataLabel_invalidBundle_nullDataLabel()
60 val dataLabel: DataLabel? = in getDataLabel_nullDataCollectedBundle_dataCollectedEmpty()
61 DataLabel.getDataLabel(createSafetyLabelPersistableBundleWithNullDataCollected()) in getDataLabel_nullDataCollectedBundle_dataCollectedEmpty()
70 val dataLabel: DataLabel? = in getDataLabel_nullDataSharedBundle_dataSharedEmpty()
71 DataLabel.getDataLabel(createSafetyLabelPersistableBundleWithNullDataShared()) in getDataLabel_nullDataSharedBundle_dataSharedEmpty()
80 val dataLabel: DataLabel? = in getDataLabel_emptyDataCollectedBundle_dataCollectedEmpty()
81 DataLabel.getDataLabel(createSafetyLabelPersistableBundleWithEmptyDataCollected()) in getDataLabel_emptyDataCollectedBundle_dataCollectedEmpty()
[all …]
DSafetyLabelTestPersistableBundles.kt127 putPersistableBundle(DataLabel.KEY_DATA_LABEL, createDataLabelPersistableBundle()) in <lambda>()
156 DataLabel.KEY_DATA_LABEL, createDataLabelPersistableBundleWithNullDataCollected()) in <lambda>()
164 DataLabel.KEY_DATA_LABEL, createDataLabelPersistableBundleWithNullDataShared()) in <lambda>()
172 DataLabel.KEY_DATA_LABEL, createDataLabelPersistableBundleWithEmptyDataCollected()) in <lambda>()
180 DataLabel.KEY_DATA_LABEL, createDataLabelPersistableBundleWithEmptyDataShared()) in <lambda>()
188 DataLabel.KEY_DATA_LABEL, createDataLabelPersistableBundleWithInvalidDataCollected()) in <lambda>()
196 DataLabel.KEY_DATA_LABEL, createDataLabelPersistableBundleWithInvalidDataShared()) in <lambda>()
/packages/modules/Permission/PermissionController/tests/mocking/src/com/android/permissioncontroller/tests/mocking/safetylabel/
DTestSafetyLabels.kt21 import com.android.permissioncontroller.safetylabel.AppsSafetyLabelHistory.DataLabel
45 DataLabel(mapOf(LOCATION_CATEGORY to DataCategory(true)))
53 DataLabel(mapOf(LOCATION_CATEGORY to DataCategory(false)))
61 DataLabel(mapOf(LOCATION_CATEGORY to DataCategory(false)))
69 DataLabel(
79 SafetyLabel(AppInfo(PACKAGE_NAME_2), DATE_2022_12_10, DataLabel(mapOf()))
86 DataLabel(mapOf(FINANCIAL_CATEGORY to DataCategory(true)))
94 DataLabel(mapOf(LOCATION_CATEGORY to DataCategory(true)))
DAppsSafetyLabelHistoryTest.kt28 import com.android.permissioncontroller.safetylabel.AppsSafetyLabelHistory.DataLabel
129 .isEqualTo(SafetyLabel(AppInfo(PACKAGE_NAME_1), DATE_2022_09_01, DataLabel(mapOf()))) in extractLocationSharingSafetyLabel_noSharing_returnsSafetyLabelForPersistence()
150 DataLabel(mapOf(LOCATION_CATEGORY to DataCategory(false))) in extractLocationSharingSafetyLabel_locationSharingNoAds_returnsSafetyLabelForPersistence()
173 DataLabel(mapOf(LOCATION_CATEGORY to DataCategory(true))) in extractLocationSharingSafetyLabel_locationSharingAds_returnsSafetyLabelForPersistence()
192 .isEqualTo(SafetyLabel(AppInfo(PACKAGE_NAME_2), DATE_2022_10_10, DataLabel(mapOf()))) in extractLocationSharingSafetyLabel_financeCategory_returnsEmptySafetyLabel()
214 DataLabel(mapOf(LOCATION_CATEGORY to DataCategory(true))) in extractLocationSharingSafetyLabel_locationFinance_returnsLocationSafetyLabel()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/safetylabel/
DAppsSafetyLabelHistory.kt21 import com.android.permission.safetylabel.DataLabel as AppMetadataDataLabel in <lambda>()
78 val dataLabel: DataLabel in <lambda>()
94 DataLabel.extractLocationSharingDataLabel(appMetadataSafetyLabel.dataLabel) in <lambda>()
100 data class DataLabel( in <lambda>() dataClass
112 ): DataLabel = in <lambda>()
113 DataLabel( in <lambda>()
DAppsSafetyLabelHistoryPersistence.kt30 import com.android.permissioncontroller.safetylabel.AppsSafetyLabelHistory.DataLabel in <lambda>()
415 private fun XmlPullParser.parseDataLabel(): DataLabel { in <lambda>()
424 return DataLabel(dataSharing) in <lambda>()
543 private fun XmlSerializer.serializeDataLabel(dataLabel: DataLabel) { in <lambda>()
/packages/modules/Permission/SafetyLabel/java/com/android/permission/safetylabel/
DSafetyLabel.java33 private final DataLabel mDataLabel;
35 private SafetyLabel(@NonNull DataLabel dataLabel) { in SafetyLabel()
65 DataLabel dataLabel = DataLabel.getDataLabel(safetyLabelBundle); in getSafetyLabelFromMetadata()
74 public DataLabel getDataLabel() { in getDataLabel()
DDataLabel.java34 public class DataLabel { class
39 public DataLabel( in DataLabel() method in DataLabel
49 public static DataLabel getDataLabel(@Nullable PersistableBundle safetyLabelBundle) { in getDataLabel()
63 return new DataLabel(dataCollectedCategoryMap, dataSharedCategoryMap); in getDataLabel()