Home
last modified time | relevance | path

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

/packages/modules/Permission/SafetyLabel/java/com/android/permission/safetylabel/
DSafetyLabel.java53 PersistableBundle safetyLabelBundle = bundle.getPersistableBundle(KEY_SAFETY_LABEL); in getSafetyLabelFromMetadata() local
54 if (safetyLabelBundle == null) { in getSafetyLabelFromMetadata()
58 long safetyLabelsVersion = safetyLabelBundle.getLong(KEY_VERSION, 0L); in getSafetyLabelFromMetadata()
65 DataLabel dataLabel = DataLabel.getDataLabel(safetyLabelBundle); in getSafetyLabelFromMetadata()
DDataLabel.java49 public static DataLabel getDataLabel(@Nullable PersistableBundle safetyLabelBundle) { in getDataLabel() argument
50 if (safetyLabelBundle == null) { in getDataLabel()
54 PersistableBundle dataLabelBundle = safetyLabelBundle.getPersistableBundle(KEY_DATA_LABEL); in getDataLabel()
/packages/modules/Permission/tests/cts/permissionui/src/android/permissionui/cts/
DAppMetadata.kt44 val safetyLabelBundle = in createDefaultAppMetadata() constant
52 putPersistableBundle(KEY_SAFETY_LABELS, safetyLabelBundle) in createDefaultAppMetadata()
186 val safetyLabelBundle = in createMetadataWithDataShared() constant
194 putPersistableBundle(KEY_SAFETY_LABELS, safetyLabelBundle) in createMetadataWithDataShared()
/packages/modules/Permission/SafetyLabel/tests/java/com/android/permission/safetylabel/
DSafetyLabelTest.kt83 val safetyLabelBundle = bundle.getPersistableBundle(KEY_SAFETY_LABEL) in getSafetyLabelFromMetadata_validBundle_hasDataShared() constant
84 val safetyLabelsVersion = safetyLabelBundle?.getLong(KEY_VERSION) in getSafetyLabelFromMetadata_validBundle_hasDataShared()
/packages/modules/Permission/PermissionController/tests/mocking/src/com/android/permissioncontroller/tests/mocking/safetylabel/
DAppsSafetyLabelHistoryTest.kt325 val safetyLabelBundle = in createMetadataWithDataShared() constant
333 putPersistableBundle(SAFETY_LABEL_KEY, safetyLabelBundle) in createMetadataWithDataShared()
/packages/modules/Permission/tests/cts/permissionmultiuser/src/android/permissionmultiuser/cts/
DAppDataSharingUpdatesTest.kt393 val safetyLabelBundle = in <lambda>() constant
401 putPersistableBundle(KEY_SAFETY_LABELS, safetyLabelBundle) in <lambda>()