/tools/tradefederation/core/tests/src/com/android/tradefed/config/ |
D | OptionSetterTest.java | 562 AllTypesOptionSource optionSource = new AllTypesOptionSource(); in testSetOptionValue_string() local 564 assertSetOptionValue(optionSource, "string", expectedValue); in testSetOptionValue_string() 565 assertEquals(expectedValue, optionSource.mString); in testSetOptionValue_string() 572 AllTypesOptionSource optionSource = new AllTypesOptionSource(); in testSetOptionValue_collection() local 574 assertSetOptionValue(optionSource, "string_collection", expectedValue); in testSetOptionValue_collection() 575 assertEquals(1, optionSource.mStringCollection.size()); in testSetOptionValue_collection() 576 assertTrue(optionSource.mStringCollection.contains(expectedValue)); in testSetOptionValue_collection() 583 AllTypesOptionSource optionSource = new AllTypesOptionSource(); in testSetOptionValue_map() local 588 OptionSetter parser = new OptionSetter(optionSource); in testSetOptionValue_map() 591 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/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/src/com/android/tradefed/config/ |
D | OptionSetter.java | 204 private Handler getHandlerOrTimeVal(Field field, Object optionSource) in getHandlerOrTimeVal() argument 213 field.getName(), optionSource.getClass().getName())); in getHandlerOrTimeVal() 380 final Object optionSource = fieldEntry.getKey(); in setOptionValue() local 382 final Handler handler = getHandlerOrTimeVal(field, optionSource); in setOptionValue() 413 if (setFieldValue(optionName, optionSource, field, key, value)) { in setOptionValue() 414 ret.add(new FieldDef(optionSource, field, key)); in setOptionValue() 435 static boolean setFieldValue(String optionName, Object optionSource, Field field, Object key, in setFieldValue() argument 448 Collection collection = (Collection)field.get(optionSource); in setFieldValue() 468 Map map = (Map) field.get(optionSource); in setFieldValue() 490 MultiMap map = (MultiMap)field.get(optionSource); in setFieldValue() [all …]
|
D | ConfigurationDef.java | 165 String optionSource, in addOptionDef() argument 167 mOptionList.add(new OptionDef(optionName, optionKey, optionValue, optionSource, type)); in addOptionDef() 171 String optionSource) { in addOptionDef() argument 172 mOptionList.add(new OptionDef(optionName, optionKey, optionValue, optionSource, null)); in addOptionDef()
|
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()
|
D | IConfiguration.java | 243 String optionSource) throws ConfigurationException; in injectOptionValueWithSource() argument
|