/tools/tradefederation/core/tests/src/com/android/tradefed/config/ |
D | OptionSetterTest.java | 566 AllTypesOptionSource optionSource = new AllTypesOptionSource(); in testSetOptionValue_string() local 568 assertSetOptionValue(optionSource, "string", expectedValue); in testSetOptionValue_string() 569 assertEquals(expectedValue, optionSource.mString); in testSetOptionValue_string() 576 AllTypesOptionSource optionSource = new AllTypesOptionSource(); in testSetOptionValue_collection() local 578 assertSetOptionValue(optionSource, "string_collection", expectedValue); in testSetOptionValue_collection() 579 assertEquals(1, optionSource.mStringCollection.size()); in testSetOptionValue_collection() 580 assertTrue(optionSource.mStringCollection.contains(expectedValue)); in testSetOptionValue_collection() 587 AllTypesOptionSource optionSource = new AllTypesOptionSource(); in testSetOptionValue_map() local 592 OptionSetter parser = new OptionSetter(optionSource); in testSetOptionValue_map() 595 assertEquals(1, optionSource.mStringMap.size()); in testSetOptionValue_map() [all …]
|
/tools/loganalysis/tests/src/com/android/loganalysis/util/config/ |
D | OptionSetterTest.java | 468 AllTypesOptionSource optionSource = new AllTypesOptionSource(); in testSetOptionValue_string() local 470 assertSetOptionValue(optionSource, "string", expectedValue); in testSetOptionValue_string() 471 assertEquals(expectedValue, optionSource.mString); in testSetOptionValue_string() 478 AllTypesOptionSource optionSource = new AllTypesOptionSource(); in testSetOptionValue_collection() local 480 assertSetOptionValue(optionSource, "string_collection", expectedValue); in testSetOptionValue_collection() 481 assertEquals(1, optionSource.mStringCollection.size()); in testSetOptionValue_collection() 482 assertTrue(optionSource.mStringCollection.contains(expectedValue)); in testSetOptionValue_collection() 489 AllTypesOptionSource optionSource = new AllTypesOptionSource(); in testSetOptionValue_map() local 494 OptionSetter parser = new OptionSetter(optionSource); in testSetOptionValue_map() 497 assertEquals(1, optionSource.mStringMap.size()); in testSetOptionValue_map() [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/config/ |
D | OptionSetter.java | 206 private Handler getHandlerOrTimeVal(Field field, Object optionSource) in getHandlerOrTimeVal() argument 215 field.getName(), optionSource.getClass().getName())); in getHandlerOrTimeVal() 390 final Object optionSource = fieldEntry.getKey(); in setOptionValue() local 392 final Handler handler = getHandlerOrTimeVal(field, optionSource); in setOptionValue() 423 if (setFieldValue(optionName, optionSource, field, key, value)) { in setOptionValue() 424 ret.add(new FieldDef(optionSource, field, key)); in setOptionValue() 445 static boolean setFieldValue(String optionName, Object optionSource, Field field, Object key, in setFieldValue() argument 458 Collection collection = (Collection)field.get(optionSource); in setFieldValue() 478 Map map = (Map) field.get(optionSource); in setFieldValue() 500 MultiMap map = (MultiMap)field.get(optionSource); in setFieldValue() [all …]
|
D | ConfigurationDef.java | 132 String optionSource, in addOptionDef() argument 134 mOptionList.add(new OptionDef(optionName, optionKey, optionValue, optionSource, type)); in addOptionDef() 138 String optionSource) { in addOptionDef() argument 139 mOptionList.add(new OptionDef(optionName, optionKey, optionValue, optionSource, null)); in addOptionDef()
|
D | IConfiguration.java | 247 String optionSource) throws ConfigurationException; in injectOptionValueWithSource() argument
|
/tools/loganalysis/src/com/android/loganalysis/util/config/ |
D | OptionSetter.java | 249 Object optionSource = fieldEntry.getKey(); in setOptionValue() local 259 setFieldValue(optionName, optionSource, field, value); in setOptionValue() 273 static void setFieldValue(String optionName, Object optionSource, Field field, Object value) in setFieldValue() argument 278 Collection collection = (Collection)field.get(optionSource); in setFieldValue() 283 field.getName(), optionName, optionSource.getClass().getName())); in setFieldValue() 291 Map map = (Map)field.get(optionSource); in setFieldValue() 296 field.getName(), optionName, optionSource.getClass().getName())); in setFieldValue() 304 field.getName(), optionName, optionSource.getClass().getName())); in setFieldValue() 314 field.getName(), optionSource.getClass().getName())); in setFieldValue() 317 field.set(optionSource, rule.update(optionName, optionSource, field, value)); in setFieldValue() [all …]
|
D | OptionUpdateRule.java | 99 public Object update(String optionName, Object optionSource, Field field, Object update) in update() argument 103 current = field.get(optionSource); in update()
|
/tools/tradefederation/core/common_util/com/android/tradefed/config/ |
D | OptionUpdateRule.java | 86 public boolean shouldUpdate(String optionName, Object optionSource, Field field, Object update) in shouldUpdate() argument 90 current = field.get(optionSource); in shouldUpdate()
|