Home
last modified time | relevance | path

Searched refs:ManagementStrategy (Results 1 – 10 of 10) sorted by relevance

/packages/modules/OnDevicePersonalization/src/com/android/libraries/pcc/chronicle/analysis/
DUtils.kt19 import com.android.libraries.pcc.chronicle.api.ManagementStrategy
26 fun List<ManagementStrategy>.mostRestrained(): ManagementStrategy { in mostRestrained()
46 object ManagementStrategyComparator : Comparator<ManagementStrategy?> {
47 override fun compare(a: ManagementStrategy?, b: ManagementStrategy?): Int { in compare()
52 if (a is ManagementStrategy.PassThru) return -1 in compare()
53 if (b is ManagementStrategy.PassThru) return 1 in compare()
55 a as ManagementStrategy.Stored in compare()
56 b as ManagementStrategy.Stored in compare()
71 fun PolicyTarget.retentionsAsManagementStrategies(): List<ManagementStrategy> { in PolicyTarget()
72 if (maxAgeMs == 0L) return listOf(ManagementStrategy.PassThru) in PolicyTarget()
[all …]
DPolicySet.kt20 import com.android.libraries.pcc.chronicle.api.ManagementStrategy
38 fun findManagementStrategies(dataTypeDescriptor: DataTypeDescriptor): Set<ManagementStrategy>
DDefaultChronicleContext.kt23 import com.android.libraries.pcc.chronicle.api.ManagementStrategy in <lambda>()
41 private val mgmtStrategyByType: Map<Class<out Connection>, ManagementStrategy> in <lambda>()
48 val tempMgmtProperties = mutableMapOf<Class<out Connection>, ManagementStrategy>() in <lambda>()
DDefaultPolicySet.kt20 import com.android.libraries.pcc.chronicle.api.ManagementStrategy in <lambda>()
42 ): Set<ManagementStrategy> = managementStrategies[dataTypeDescriptor.name] ?: emptySet() in <lambda>()
/packages/modules/OnDevicePersonalization/src/com/android/libraries/pcc/chronicle/api/
DManagementStrategy.kt25 sealed class ManagementStrategy { class
32 object PassThru : ManagementStrategy()
44 ) : ManagementStrategy()
71 fun ManagementStrategy.ttl(default: Duration = Duration.ZERO): Duration { in ManagementStrategy() method
73 ManagementStrategy.PassThru -> Duration.ZERO in ManagementStrategy()
74 is ManagementStrategy.Stored -> ttl ?: default in ManagementStrategy()
79 fun ManagementStrategy.isPersisted(): Boolean { in ManagementStrategy() method
81 ManagementStrategy.PassThru -> false in ManagementStrategy()
82 is ManagementStrategy.Stored -> this.media != StorageMedia.MEMORY in ManagementStrategy()
DManagedDataType.kt27 override val managementStrategy: ManagementStrategy,
36 managementStrategy: ManagementStrategy,
DDataType.kt45 val managementStrategy: ManagementStrategy
/packages/modules/OnDevicePersonalization/src/com/android/libraries/pcc/chronicle/analysis/impl/
DAnnotations.kt19 import com.android.libraries.pcc.chronicle.api.ManagementStrategy
31 internal fun ManagementStrategy.toAnnotations(): List<Annotation> { in toAnnotation()
33 ManagementStrategy.PassThru -> listOf(ANNOTATION_IN_MEMORY) in toAnnotation()
34 is ManagementStrategy.Stored -> { in toAnnotation()
DManagementStrategyValidation.kt24 import com.android.libraries.pcc.chronicle.api.ManagementStrategy in <lambda>()
91 internal fun ManagementStrategy.satisfies(policyDeletionTrigger: DeletionTrigger): Boolean { in satisfies()
93 ManagementStrategy.PassThru -> true in satisfies()
94 is ManagementStrategy.Stored -> this.deletionTriggers.contains(policyDeletionTrigger) in satisfies()
/packages/modules/OnDevicePersonalization/src/com/android/ondevicepersonalization/services/policyengine/data/impl/
DUserDataConnectionProvider.kt27 import com.android.libraries.pcc.chronicle.api.ManagementStrategy
39 ManagementStrategy.Stored(false, StorageMedia.MEMORY, Duration.ofDays(30)),