Home
last modified time | relevance | path

Searched refs:withSafetyLabel (Results 1 – 3 of 3) sorted by relevance

/packages/modules/Permission/PermissionController/tests/mocking/src/com/android/permissioncontroller/tests/mocking/safetylabel/
DAppsSafetyLabelHistoryTest.kt77 appSafetyLabelHistory.withSafetyLabel(SAFETY_LABEL_PKG_2_V1, 20) in withSafetyLabel_forDifferentApp_throwsIllegalArgumentException()
89 assertThat(appSafetyLabelHistory.withSafetyLabel(SAFETY_LABEL_PKG_1_V2, 20)) in withSafetyLabel_returnsOrderdSafetyLabels()
106 assertThat(appSafetyLabelHistory.withSafetyLabel(SAFETY_LABEL_PKG_1_V2, 2)) in withSafetyLabel_dropsOldLabelsWhenMaxPersisted()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/safetylabel/
DAppsSafetyLabelHistory.kt55 fun withSafetyLabel(safetyLabel: SafetyLabel, maxToPersist: Int): AppSafetyLabelHistory = in <lambda>() method
DAppsSafetyLabelHistoryPersistence.kt573 else this.withSafetyLabel(safetyLabel, getMaxSafetyLabelsToPersist()) in <lambda>()
584 updatedAppHistory = updatedAppHistory.withSafetyLabel(safetyLabel, maxSafetyLabels) in <lambda>()