Home
last modified time | relevance | path

Searched refs:forRange (Results 1 – 4 of 4) sorted by relevance

/packages/modules/AdServices/shared/tests/side-less/java/com/android/adservices/shared/testing/
DAndroidSdkRangeTest.java22 import static com.android.adservices.shared.testing.AndroidSdk.Range.forRange;
40 assertThrows(IllegalArgumentException.class, () -> forRange(33, 32)); in testInvalidRanges()
64 Range exactly33Indirectly = forRange(33, 33); in testIsInRange()
122 Range anotherOnly33Exactly = forRange(33, 33); in testEqualsHashCode()
125 Range only33Range = forRange(33, 33); in testEqualsHashCode()
126 Range anotherOnly33Range = forRange(33, 33); in testEqualsHashCode()
188 forExactly(32), forAtLeast(32), forExactly(32), forRange(32, 32), forAtMost(32)); in testMergeRange_valid()
190 mergeValidAndAssertResult(forRange(32, 34), forAtLeast(32), forAtMost(34)); in testMergeRange_valid()
193 mergeValidAndAssertResult(forRange(33, 34), forRange(32, 35), forRange(33, 34)); in testMergeRange_valid()
194 mergeValidAndAssertResult(forRange(33, 34), forRange(33, 35), forRange(33, 34)); in testMergeRange_valid()
[all …]
DAbstractSdkLevelSupportedRuleTest.java144 var ruleRange = Range.forRange(R.getLevel(), U.getLevel()); in testPassesWhenDeviceLevelIsInRange()
160 var ruleRange = Range.forRange(R.getLevel(), S.getLevel()); in testSkipsWhenDeviceLevelIsOutsideRange()
185 assertGetRequiredRangeForUnannotatedTest(/* ruleRange= */ Range.forRange(42, 108)); in testGetRequiredRange_unannotatedTest()
248 Range.forRange(R.getLevel(), S2.getLevel()), in testGetRequiredRange_annotatedTest()
254 var ruleForClosedRange = Range.forRange(R.getLevel(), U.getLevel()); in testGetRequiredRange_annotatedTest()
256 Range.forRange(R.getLevel(), U.getLevel()), in testGetRequiredRange_annotatedTest()
261 Range.forRange(S.getLevel(), U.getLevel()), in testGetRequiredRange_annotatedTest()
266 Range.forRange(S2.getLevel(), U.getLevel()), in testGetRequiredRange_annotatedTest()
271 Range.forRange(T.getLevel(), U.getLevel()), in testGetRequiredRange_annotatedTest()
276 Range.forRange(U.getLevel(), U.getLevel()), in testGetRequiredRange_annotatedTest()
[all …]
/packages/modules/AdServices/shared/libraries/side-less/java/com/android/adservices/shared/testing/
DAndroidSdk.java151 public static Range forRange(int minLevel, int maxLevel) { in forRange() method in AndroidSdk.Range
189 return forRange(minRange, maxRange); in merge()
DAbstractSdkLevelSupportedRule.java205 ranges.add(Range.forRange(range.atLeast(), range.atMost()));