Home
last modified time | relevance | path

Searched refs:AppSafetyLabelHistory (Results 1 – 4 of 4) sorted by relevance

/packages/modules/Permission/PermissionController/tests/mocking/src/com/android/permissioncontroller/tests/mocking/safetylabel/
DAppsSafetyLabelHistoryPersistenceTest.kt29 import com.android.permissioncontroller.safetylabel.AppsSafetyLabelHistory.AppSafetyLabelHistory
116 AppSafetyLabelHistory(AppInfo(PACKAGE_NAME_2), listOf(SAFETY_LABEL_PKG_2_V2)) in read_afterWrite_noSharing_returnsIdenticalAppsSafetyLabelHistory()
130 AppSafetyLabelHistory(AppInfo(PACKAGE_NAME_1), listOf(SAFETY_LABEL_PKG_1_V1)), in read_afterWrite_returnsIdenticalAppsSafetyLabelHistory()
131 AppSafetyLabelHistory( in read_afterWrite_returnsIdenticalAppsSafetyLabelHistory()
153 AppSafetyLabelHistory(AppInfo(PACKAGE_NAME_2), listOf(SAFETY_LABEL_PKG_2_V2)) in read_afterWrite_defaultVersion_returnsInitialVersion()
166 AppSafetyLabelHistory(AppInfo(PACKAGE_NAME_2), listOf(SAFETY_LABEL_PKG_2_V2)) in read_afterWrite_specifiedVersion_returnsSpecifiedVersion()
187 AppSafetyLabelHistory( in recordSafetyLabel_noAppsHistory_addsAppsHistory()
201 AppSafetyLabelHistory(AppInfo(PACKAGE_NAME_1), listOf(SAFETY_LABEL_PKG_1_V1)) in recordSafetyLabel_noAppHistory_addsAppHistory()
212 AppSafetyLabelHistory( in recordSafetyLabel_noAppHistory_addsAppHistory()
216 AppSafetyLabelHistory( in recordSafetyLabel_noAppHistory_addsAppHistory()
[all …]
DAppsSafetyLabelHistoryTest.kt26 import com.android.permissioncontroller.safetylabel.AppsSafetyLabelHistory.AppSafetyLabelHistory
51 AppSafetyLabelHistory( in createAppSafetyLabelHistory_requiresAllSafetyLabelsHaveSameApp()
61 AppSafetyLabelHistory( in createAppSafetyLabelHistory_requiresOrderedByReceivedAt()
71 AppSafetyLabelHistory( in withSafetyLabel_forDifferentApp_throwsIllegalArgumentException()
84 AppSafetyLabelHistory( in withSafetyLabel_returnsOrderdSafetyLabels()
91 AppSafetyLabelHistory( in withSafetyLabel_returnsOrderdSafetyLabels()
101 AppSafetyLabelHistory( in withSafetyLabel_dropsOldLabelsWhenMaxPersisted()
108 AppSafetyLabelHistory( in withSafetyLabel_dropsOldLabelsWhenMaxPersisted()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/safetylabel/
DAppsSafetyLabelHistoryPersistence.kt28 import com.android.permissioncontroller.safetylabel.AppsSafetyLabelHistory.AppSafetyLabelHistory in <lambda>()
139 add(AppSafetyLabelHistory(appInfo, listOf(safetyLabel))) in <lambda>()
175 var updatedAppHistories: List<AppSafetyLabelHistory> = in <lambda>()
176 currentAppHistories.map { currentAppHistory: AppSafetyLabelHistory -> in <lambda>()
192 add(AppSafetyLabelHistory(newAppInfo, safetyLabelsForNewApp)) in <lambda>()
239 AppSafetyLabelHistory( in <lambda>()
318 private fun AppSafetyLabelHistory.getLastReceiptTime(): Instant? = in <lambda>() method
358 val appSafetyLabelHistories = mutableListOf<AppSafetyLabelHistory>() in <lambda>()
372 private fun XmlPullParser.parseAppSafetyLabelHistory(): AppSafetyLabelHistory { in <lambda>()
386 return AppSafetyLabelHistory(appInfo, safetyLabels) in <lambda>()
[all …]
DAppsSafetyLabelHistory.kt27 data class AppsSafetyLabelHistory(val appSafetyLabelHistories: List<AppSafetyLabelHistory>) { in <lambda>()
30 data class AppSafetyLabelHistory( in <lambda>() class in com.android.permissioncontroller.safetylabel.AppsSafetyLabelHistory
55 fun withSafetyLabel(safetyLabel: SafetyLabel, maxToPersist: Int): AppSafetyLabelHistory = in <lambda>()
56 AppSafetyLabelHistory( in <lambda>()