Home
last modified time | relevance | path

Searched refs:thisDevice (Results 1 – 2 of 2) sorted by relevance

/platform_testing/libraries/health/rules/src/android/platform/test/rule/
DLimitDevicesRule.kt77 private val thisDevice: String = Build.PRODUCT, constant in android.platform.test.rule.LimitDevicesRule
92 if (thisDevice in deniedDevices) { in apply()
94 "Skipping test as $thisDevice is in $deniedDevices" in apply()
99 if (thisDevice in flakyDevices) { in apply()
102 "Skipping test as $thisDevice is flaky and this config excludes fakes" in apply()
108 if (allowedDevices.isEmpty() || thisDevice in allowedDevices) { in apply()
112 "Skipping test as $thisDevice in not in $allowedDevices" in apply()
165 fun readParamsFromInstrumentation(thisDevice: String = Build.PRODUCT) = in readParamsFromInstrumentation()
166 LimitDevicesRule(thisDevice, isRunningFlakyTests()) in readParamsFromInstrumentation()
/platform_testing/libraries/health/rules/tests/src/android/platform/test/rule/
DLimitDevicesRuleTest.kt42 val rule = LimitDevicesRule(thisDevice = CF_PHONE.product) in allowOnPhone_withPhone_succeeds()
51 val rule = LimitDevicesRule(thisDevice = CF_TABLET.product) in allowOnPhone_withTablet_fails()
60 val rule = LimitDevicesRule(thisDevice = CF_TABLET.product) in denyOnPhone_withTablet_succeeds()
69 val rule = LimitDevicesRule(thisDevice = CF_PHONE.product) in denyOnPhone_withPhone_fails()
78 val ruleOnTablet = LimitDevicesRule(thisDevice = CF_TABLET.product) in allowedOnBothPhonesAndTablets_withTabletAndPhone_succeeds()
79 val ruleOnPhone = LimitDevicesRule(thisDevice = CF_PHONE.product) in allowedOnBothPhonesAndTablets_withTabletAndPhone_succeeds()
132 LimitDevicesRule(thisDevice = device.product, runningFlakyTests = isFlakyConfig)