Searched refs:ManagementStrategy (Results 1 – 10 of 10) sorted by relevance
19 import com.android.libraries.pcc.chronicle.api.ManagementStrategy26 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 …]
20 import com.android.libraries.pcc.chronicle.api.ManagementStrategy38 fun findManagementStrategies(dataTypeDescriptor: DataTypeDescriptor): Set<ManagementStrategy>
23 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>()
20 import com.android.libraries.pcc.chronicle.api.ManagementStrategy in <lambda>()42 ): Set<ManagementStrategy> = managementStrategies[dataTypeDescriptor.name] ?: emptySet() in <lambda>()
25 sealed class ManagementStrategy { class32 object PassThru : ManagementStrategy()44 ) : ManagementStrategy()71 fun ManagementStrategy.ttl(default: Duration = Duration.ZERO): Duration { in ManagementStrategy() method73 ManagementStrategy.PassThru -> Duration.ZERO in ManagementStrategy()74 is ManagementStrategy.Stored -> ttl ?: default in ManagementStrategy()79 fun ManagementStrategy.isPersisted(): Boolean { in ManagementStrategy() method81 ManagementStrategy.PassThru -> false in ManagementStrategy()82 is ManagementStrategy.Stored -> this.media != StorageMedia.MEMORY in ManagementStrategy()
27 override val managementStrategy: ManagementStrategy,36 managementStrategy: ManagementStrategy,
45 val managementStrategy: ManagementStrategy
19 import com.android.libraries.pcc.chronicle.api.ManagementStrategy31 internal fun ManagementStrategy.toAnnotations(): List<Annotation> { in toAnnotation()33 ManagementStrategy.PassThru -> listOf(ANNOTATION_IN_MEMORY) in toAnnotation()34 is ManagementStrategy.Stored -> { in toAnnotation()
24 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()
27 import com.android.libraries.pcc.chronicle.api.ManagementStrategy39 ManagementStrategy.Stored(false, StorageMedia.MEMORY, Duration.ofDays(30)),