Searched refs:UsageType (Results 1 – 11 of 11) sorted by relevance
/packages/modules/OnDevicePersonalization/tests/chronicletests/src/com/android/libraries/pcc/chronicle/test/ |
D | ChronicleApiPolicyFieldBuilderTest.kt | 34 import com.android.libraries.pcc.chronicle.api.policy.UsageType in <lambda>() 58 .apply { rawUsage(UsageType.JOIN, UsageType.EGRESS) } in <lambda>() 61 assertThat(actual.rawUsages).containsExactly(UsageType.JOIN, UsageType.EGRESS) in <lambda>() 68 conditionalUsage("bucketed", UsageType.JOIN, UsageType.EGRESS) in <lambda>() 69 conditionalUsage("truncatedToDays", UsageType.ANY) in <lambda>() 74 ConditionalUsage.Bucketed.whenever(UsageType.JOIN, UsageType.EGRESS) in <lambda>() 75 ConditionalUsage.TruncatedToDays.whenever(UsageType.ANY) in <lambda>() 86 setOf(UsageType.JOIN, UsageType.EGRESS), in <lambda>() 88 setOf(UsageType.ANY) in <lambda>() 97 .apply { "name" { rawUsage(UsageType.EGRESS) } } in <lambda>() [all …]
|
D | ChronicleApiPolicyBuilderTest.kt | 36 import com.android.libraries.pcc.chronicle.api.policy.UsageType 61 "name" { rawUsage(UsageType.ANY) } in <lambda>() 66 "a" { rawUsage(UsageType.ANY) } in <lambda>() 67 "b" { rawUsage(UsageType.JOIN) } in <lambda>() 81 "name" { rawUsage(UsageType.ANY) } in testPolicyBuilder() 85 "a" { rawUsage(UsageType.ANY) } in testPolicyBuilder() 86 "b" { rawUsage(UsageType.JOIN) } in testPolicyBuilder()
|
D | ChronicleApiPolicyTest.kt | 25 import com.android.libraries.pcc.chronicle.api.policy.UsageType 65 mapOf("label1" to setOf(UsageType.EGRESS), "label2" to setOf(UsageType.JOIN)) in testPolicyAllRedactionLabels() 72 mapOf("label2" to setOf(UsageType.EGRESS), "label3" to setOf(UsageType.EGRESS)) in testPolicyAllRedactionLabels() 77 redactedUsages = mapOf("label4" to setOf(UsageType.EGRESS)) in testPolicyAllRedactionLabels()
|
D | ChronicleApiPolicyTargetBuilderTest.kt | 32 import com.android.libraries.pcc.chronicle.api.policy.UsageType 50 "name" { rawUsage(UsageType.ANY) } in <lambda>() 65 PolicyFieldBuilder(FOOBAR_DTD, listOf("name")).apply { rawUsage(UsageType.ANY) }.build() in testPolicyTargetBuilder()
|
/packages/modules/OnDevicePersonalization/src/com/android/ondevicepersonalization/services/policyengine/policy/ |
D | DataIngressPolicy.kt | 20 import com.android.libraries.pcc.chronicle.api.policy.UsageType 46 "timestampSec" {rawUsage(UsageType.ANY)} in <lambda>() 47 "timezoneUtcOffsetMins" {rawUsage(UsageType.ANY)} in <lambda>() 48 "orientation" {rawUsage(UsageType.ANY)} in <lambda>() 49 "availableStorageMB" {rawUsage(UsageType.ANY)} in <lambda>() 50 "batteryPercentage" {rawUsage(UsageType.ANY)} in <lambda>() 51 "carrier" {rawUsage(UsageType.ANY)} in <lambda>() 52 "dataNetworkType" {rawUsage(UsageType.ANY)} in <lambda>() 54 "packageName" {rawUsage(UsageType.ANY)} in <lambda>() 55 "installed" {rawUsage(UsageType.ANY)} in <lambda>()
|
/packages/modules/OnDevicePersonalization/src/com/android/libraries/pcc/chronicle/api/policy/builder/ |
D | PolicyBuilder.kt | 29 import com.android.libraries.pcc.chronicle.api.policy.UsageType 35 typealias UsageType = UsageType typealias 237 private val rawUsages = mutableSetOf<UsageType>() in build() 238 private val redactedUsages = mutableMapOf<String, Set<UsageType>>() in build() 243 fun rawUsage(vararg usageTypes: UsageType): PolicyFieldBuilder = apply { in build() 250 fun conditionalUsage(requiredLabel: String, vararg usageTypes: UsageType): PolicyFieldBuilder = in build() 255 fun ConditionalUsage.whenever(vararg usageTypes: UsageType): PolicyFieldBuilder { in build()
|
/packages/modules/OnDevicePersonalization/src/com/android/libraries/pcc/chronicle/api/policy/ |
D | Policy.kt | 84 val rawUsages: Set<UsageType> = emptySet(), 86 val redactedUsages: Map<String, Set<UsageType>> = emptyMap(), 113 enum class UsageType { class 124 fun Set<UsageType>.canEgress(): Boolean = any { it.canEgress } in canEgress()
|
/packages/modules/OnDevicePersonalization/src/com/android/libraries/pcc/chronicle/analysis/impl/ |
D | CantripFactoryImpl.kt | 34 import com.android.libraries.pcc.chronicle.api.policy.builder.UsageType in <lambda>() 54 usageType: UsageType in <lambda>() 84 usageType: UsageType in <lambda>() 91 .filter { (_, types) -> usageType in types || UsageType.ANY in types } in <lambda>()
|
D | ChroniclePolicyEngine.kt | 31 import com.android.libraries.pcc.chronicle.api.policy.UsageType in <lambda>() 121 { !(it.rawUsages.canEgress() || it.rawUsages.contains(UsageType.SANDBOX)) } in <lambda>()
|
/packages/modules/OnDevicePersonalization/src/com/android/libraries/pcc/chronicle/analysis/ |
D | CantripFactory.kt | 23 import com.android.libraries.pcc.chronicle.api.policy.builder.UsageType 38 usageType: UsageType
|
/packages/modules/AppSearch/service/java/com/android/server/appsearch/external/localstorage/ |
D | AppSearchImpl.java | 1848 UsageReport.UsageType usageType = in reportUsage() 1850 ? UsageReport.UsageType.USAGE_TYPE2 in reportUsage() 1851 : UsageReport.UsageType.USAGE_TYPE1; in reportUsage()
|