Home
last modified time | relevance | path

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

/packages/modules/OnDevicePersonalization/src/com/android/libraries/pcc/chronicle/api/policy/capabilities/
DCapabilities.kt32 ranges = capabilities.map { it -> it.toRange() } in <lambda>()
92 ranges.add(it.toRange()) in <lambda>()
94 Capability.Encryption.fromAnnotations(annotations)?.let { ranges.add(it.toRange()) } in <lambda>()
95 Capability.Ttl.fromAnnotations(annotations)?.let { ranges.add(it.toRange()) } in <lambda>()
96 Capability.Queryable.fromAnnotations(annotations)?.let { ranges.add(it.toRange()) } in <lambda>()
97 Capability.Shareable.fromAnnotations(annotations)?.let { ranges.add(it.toRange()) } in <lambda>()
DCapability.kt27 is Range -> toRange().isEquivalent(other) in isEquivalent()
34 is Range -> toRange().contains(other) in contains()
72 open fun toRange() = Range(this, this) in toRange() method in com.android.libraries.pcc.chronicle.api.policy.capabilities.Capability
327 override fun toRange() = this in toRange() method in com.android.libraries.pcc.chronicle.api.policy.capabilities.Range
/packages/modules/OnDevicePersonalization/tests/chronicletests/src/com/android/libraries/pcc/chronicle/test/
DChronicleApiPolicyCapabilitiesTest.kt52 Capabilities(listOf(Ttl.Days(1).toRange(), Ttl.Hours(3))) in testCapabilitiesUnique()
116 Persistence.ON_DISK.toRange(), in testCapabilitiesContains()
118 Capability.Queryable(true).toRange() in testCapabilitiesContains()
141 Persistence.ON_DISK.toRange(), in testCapabilitiesContains()
142 Capability.Ttl.Days(10).toRange() in testCapabilitiesContains()
152 Capability.Ttl.Days(10).toRange(), in testCapabilitiesContains()
153 Capability.Shareable(true).toRange() in testCapabilitiesContains()