Home
last modified time | relevance | path

Searched refs:KEY_PURPOSES (Results 1 – 5 of 5) sorted by relevance

/packages/modules/Permission/tests/cts/permissionui/src/android/permissionui/cts/
DAppMetadata.kt31 PersistableBundle().apply { putIntArray(KEY_PURPOSES, (1..7).toList().toIntArray()) } in createDefaultAppMetadata()
146 KEY_PURPOSES, in createAppMetadataWithLocationSharingNoAds()
169 putIntArray(KEY_PURPOSES, listOf(PURPOSE_ADVERTISING).toIntArray()) in createAppMetadataWithLocationSharingAds()
213 private const val KEY_PURPOSES = "purposes" constant
/packages/modules/Permission/SafetyLabel/tests/java/com/android/permission/safetylabel/
DDataTypeTest.kt25 import com.android.permission.safetylabel.DataType.KEY_PURPOSES
229 val purposes: IntArray = typePersistableBundle.getIntArray(KEY_PURPOSES)!! in getDataType_validDataTypeWithAddedInvalidPurpose_onlyValidPurposes()
231 typePersistableBundle.putIntArray(KEY_PURPOSES, updatedPurposes) in getDataType_validDataTypeWithAddedInvalidPurpose_onlyValidPurposes()
245 typePersistableBundle.remove(KEY_PURPOSES) in getDataType_dataTypeWithInvalidPurpose_nullDataType()
247 typePersistableBundle.putIntArray(KEY_PURPOSES, updatedPurposes) in getDataType_dataTypeWithInvalidPurpose_nullDataType()
258 typePersistableBundle.remove(KEY_PURPOSES) in getDataType_noPurpose_nullDataType()
DSafetyLabelTestPersistableBundles.kt28 import com.android.permission.safetylabel.DataType.KEY_PURPOSES in <lambda>()
343 putIntArray(KEY_PURPOSES, intArrayOf(PURPOSE_APP_FUNCTIONALITY, PURPOSE_ADVERTISING)) in <lambda>()
/packages/modules/Permission/SafetyLabel/java/com/android/permission/safetylabel/
DDataType.java38 @VisibleForTesting static final String KEY_PURPOSES = "purposes"; field in DataType
95 int[] purposeList = dataTypeBundle.getIntArray(KEY_PURPOSES); in getDataType()
/packages/modules/Permission/tests/cts/permissionmultiuser/src/android/permissionmultiuser/cts/
DAppDataSharingUpdatesTest.kt229 private const val KEY_PURPOSES = "purposes" in <lambda>() constant
366 KEY_PURPOSES, in <lambda>()