Home
last modified time | relevance | path

Searched refs:OptionUpdateRule (Results 1 – 10 of 10) sorted by relevance

/tools/tradefederation/core/tests/src/com/android/tradefed/config/
DOptionUpdateRuleTest.java32 assertTrue(OptionUpdateRule.FIRST.shouldUpdate(OPTION_NAME, null, UPDATE)); in testFirst_simple()
33 assertFalse(OptionUpdateRule.FIRST.shouldUpdate(OPTION_NAME, CURRENT, UPDATE)); in testFirst_simple()
37 assertTrue(OptionUpdateRule.LAST.shouldUpdate(OPTION_NAME, null, UPDATE)); in testLast_simple()
38 assertTrue(OptionUpdateRule.LAST.shouldUpdate(OPTION_NAME, CURRENT, UPDATE)); in testLast_simple()
42 assertTrue(OptionUpdateRule.GREATEST.shouldUpdate(OPTION_NAME, null, SMALL_UPDATE)); in testGreatest_simple()
43 assertFalse(OptionUpdateRule.GREATEST.shouldUpdate(OPTION_NAME, CURRENT, SMALL_UPDATE)); in testGreatest_simple()
44 assertTrue(OptionUpdateRule.GREATEST.shouldUpdate(OPTION_NAME, CURRENT, BIG_UPDATE)); in testGreatest_simple()
48 assertTrue(OptionUpdateRule.LEAST.shouldUpdate(OPTION_NAME, null, BIG_UPDATE)); in testLeast_simple()
49 assertTrue(OptionUpdateRule.LEAST.shouldUpdate(OPTION_NAME, CURRENT, SMALL_UPDATE)); in testLeast_simple()
50 assertFalse(OptionUpdateRule.LEAST.shouldUpdate(OPTION_NAME, CURRENT, BIG_UPDATE)); in testLeast_simple()
[all …]
DArgsOptionParserTest.java195 @Option(name = "first", updateRule = OptionUpdateRule.FIRST)
198 @Option(name = "last", updateRule = OptionUpdateRule.LAST)
201 @Option(name = "greatest", updateRule = OptionUpdateRule.GREATEST)
204 @Option(name = "least", updateRule = OptionUpdateRule.LEAST)
207 @Option(name = "immutable", updateRule = OptionUpdateRule.IMMUTABLE)
210 @Option(name = "null-immutable", updateRule = OptionUpdateRule.IMMUTABLE)
/tools/loganalysis/tests/src/com/android/loganalysis/util/config/
DOptionUpdateRuleTest.java32 assertEquals(UPDATE, OptionUpdateRule.FIRST.update(OPTION_NAME, null, UPDATE)); in testFirst_simple()
33 assertEquals(CURRENT, OptionUpdateRule.FIRST.update(OPTION_NAME, CURRENT, UPDATE)); in testFirst_simple()
37 assertEquals(UPDATE, OptionUpdateRule.LAST.update(OPTION_NAME, null, UPDATE)); in testLast_simple()
38 assertEquals(UPDATE, OptionUpdateRule.LAST.update(OPTION_NAME, CURRENT, UPDATE)); in testLast_simple()
43 SMALL_UPDATE, OptionUpdateRule.GREATEST.update(OPTION_NAME, null, SMALL_UPDATE)); in testGreatest_simple()
44 assertEquals(CURRENT, OptionUpdateRule.GREATEST.update(OPTION_NAME, CURRENT, SMALL_UPDATE)); in testGreatest_simple()
46 BIG_UPDATE, OptionUpdateRule.GREATEST.update(OPTION_NAME, CURRENT, BIG_UPDATE)); in testGreatest_simple()
50 assertEquals(BIG_UPDATE, OptionUpdateRule.LEAST.update(OPTION_NAME, null, BIG_UPDATE)); in testLeast_simple()
52 SMALL_UPDATE, OptionUpdateRule.LEAST.update(OPTION_NAME, CURRENT, SMALL_UPDATE)); in testLeast_simple()
53 assertEquals(CURRENT, OptionUpdateRule.LEAST.update(OPTION_NAME, CURRENT, BIG_UPDATE)); in testLeast_simple()
[all …]
DArgsOptionParserTest.java179 @Option(name = "first", updateRule = OptionUpdateRule.FIRST)
182 @Option(name = "last", updateRule = OptionUpdateRule.LAST)
185 @Option(name = "greatest", updateRule = OptionUpdateRule.GREATEST)
188 @Option(name = "least", updateRule = OptionUpdateRule.LEAST)
191 @Option(name = "immutable", updateRule = OptionUpdateRule.IMMUTABLE)
194 @Option(name = "null-immutable", updateRule = OptionUpdateRule.IMMUTABLE)
/tools/tradefederation/core/src/com/android/tradefed/config/
DOption.java112 OptionUpdateRule updateRule() default OptionUpdateRule.LAST; in updateRule()
DOptionSetter.java520 OptionUpdateRule rule = option.updateRule(); in setFieldValue()
628 if ((option.updateRule() == OptionUpdateRule.GREATEST) || in addOptionsForObject()
629 (option.updateRule() == OptionUpdateRule.LEAST)) { in addOptionsForObject()
/tools/loganalysis/src/com/android/loganalysis/util/config/
DOption.java94 OptionUpdateRule updateRule() default OptionUpdateRule.LAST; in updateRule()
DOptionUpdateRule.java28 public enum OptionUpdateRule { enum
DOptionSetter.java316 OptionUpdateRule rule = option.updateRule(); in setFieldValue()
454 if ((option.updateRule() == OptionUpdateRule.GREATEST) || in addOptionsForObject()
455 (option.updateRule() == OptionUpdateRule.LEAST)) { in addOptionsForObject()
/tools/tradefederation/core/src/com/android/tradefed/command/
DCommandOptions.java22 import com.android.tradefed.config.OptionUpdateRule;
72 updateRule = OptionUpdateRule.LEAST)