Home
last modified time | relevance | path

Searched refs:value (Results 1 – 25 of 79) sorted by relevance

1234

/platform_testing/libraries/app-helpers/interfaces/auto/src/android/platform/helpers/
DIAutoSUWHelper.java59 private final String value; field in IAutoSUWHelper.EnableDisable
61 EnableDisable(String value) { in EnableDisable() argument
62 this.value = value; in EnableDisable()
66 return value; in getValue()
79 private final String value; field in IAutoSUWHelper.ButtonID
81 ButtonID(String value) { in ButtonID() argument
82 this.value = value; in ButtonID()
86 return value; in getID()
99 private final String value; field in IAutoSUWHelper.ButtonText
101 ButtonText(String value) { in ButtonText() argument
[all …]
DIAutoSettingHelper.java34 private final int value; field in IAutoSettingHelper.DayNightMode
36 DayNightMode(int value) { in DayNightMode() argument
37 this.value = value; in DayNightMode()
41 return value; in getValue()
159 void setValue(String setting, int value); in setValue() argument
/platform_testing/libraries/compatibility-common-util/src/com/android/compatibility/common/util/
DInfoStore.java73 abstract void addResult(String name, int value) throws IOException; in addResult() argument
78 abstract void addResult(String name, long value) throws IOException; in addResult() argument
83 abstract void addResult(String name, float value) throws IOException; in addResult() argument
88 abstract void addResult(String name, double value) throws IOException; in addResult() argument
93 abstract void addResult(String name, boolean value) throws IOException; in addResult() argument
98 abstract void addResult(String name, String value) throws IOException; in addResult() argument
177 protected static String checkString(String value) { in checkString() argument
178 if (value == null || value.isEmpty()) { in checkString()
181 if (value.length() > MAX_STRING_LENGTH) { in checkString()
182 return value.substring(0, MAX_STRING_LENGTH); in checkString()
[all …]
DResultType.java42 public static ResultType parseReportString(String value) { in parseReportString() argument
43 return ResultType.valueOf(value.toUpperCase()); in parseReportString()
DResultUnit.java56 public static ResultUnit parseReportString(String value) { in parseReportString() argument
57 return ResultUnit.valueOf(value.toUpperCase()); in parseReportString()
DTestStatus.java47 static TestStatus getStatus(String value) { in getStatus() argument
49 if (value.compareToIgnoreCase(status.getValue()) == 0) { in getStatus()
/platform_testing/libraries/collectors-helper/utilities/src/com/android/helpers/
DMetricUtility.java47 resultMap.compute(metricKey, (key, value) -> (value == null) ? in addMetric()
48 new StringBuilder().append(metric) : value.append(METRIC_SEPARATOR).append(metric)); in addMetric()
62 (key, value) -> in addMetric()
63 (value == null ? new StringBuilder() : value.append(METRIC_SEPARATOR)) in addMetric()
75 resultMap.compute(metricKey, (key, value) -> (value == null) ? 1 : value + 1); in addMetric()
92 String value = resultMap.get(metricKey).toString(); in getMetricDoubles() local
93 if (value.length() == 0) { in getMetricDoubles()
97 String[] values = value.split(METRIC_SEPARATOR); in getMetricDoubles()
106 metricKey, i, value)); in getMetricDoubles()
/platform_testing/libraries/power-helper/src/com/android/helper/
DPowerTestHelper.java80 String value = getProperty(key); in getPropertyString() local
81 if (value != null && !value.isEmpty()) in getPropertyString()
82 return value; in getPropertyString()
103 String value = getProperty(key); in getPropertyLong() local
104 if (value != null && !value.trim().isEmpty()) in getPropertyLong()
105 return Long.valueOf(value.trim()); in getPropertyLong()
111 String value; in getProperty() local
117 value = prop.getProperty(key); in getProperty()
120 return value; in getProperty()
/platform_testing/libraries/health/options/tests/src/android/platform/test/options/
DStringOptionTest.java43 public void stubValue(String value) { in stubValue() argument
44 mArguments.putString(mName, value); in stubValue()
52 String value = "val"; in testRetrieval() local
53 option.stubValue(value); in testRetrieval()
58 Assert.assertEquals(value, option.get()); in testRetrieval()
DIntegerOptionTest.java47 public void stubValue(String value) { in stubValue() argument
48 mArguments.putString(mName, value); in stubValue()
57 Integer value = 7; in testParsing_valid() local
58 option.stubValue(String.valueOf(value)); in testParsing_valid()
63 Assert.assertEquals(value, option.get()); in testParsing_valid()
DDoubleOptionTest.java47 public void stubValue(String value) { in stubValue() argument
48 mArguments.putString(mName, value); in stubValue()
57 Double value = 1.1; in testParsing_valid() local
58 option.stubValue(String.valueOf(value)); in testParsing_valid()
63 Assert.assertEquals(value, option.get()); in testParsing_valid()
DLongOptionTest.java47 public void stubValue(String value) { in stubValue() argument
48 mArguments.putString(mName, value); in stubValue()
57 Long value = 7L; in testParsing_valid() local
58 option.stubValue(String.valueOf(value)); in testParsing_valid()
63 Assert.assertEquals(value, option.get()); in testParsing_valid()
/platform_testing/libraries/health/runners/longevity/platform/tests/assets/
DtestExtraArgs_unregisteredAfterTest.textpb7 value: "class-level-override"
14 value: "class-level-option"
21 value: "test-level-override"
28 value: "test-level-option"
35 value: "in-test-override"
42 value: "in-test-option"
DtestExtraArgs_registeredBeforeTest.textpb7 value: "class-level-override"
14 value: "test-level-override"
21 value: "in-test-override"
/platform_testing/libraries/device-collectors/src/main/java/android/device/collectors/
DDataRecord.java40 public void addStringMetric(String key, String value) { in addStringMetric() argument
41 mCurrentStringMetrics.put(key, value); in addStringMetric()
51 public void addFileMetric(String fileKey, File value) { in addFileMetric() argument
52 mCurrentFileMetrics.put(fileKey, value); in addFileMetric()
61 public void addBinaryMetric(String key, byte[] value) { in addBinaryMetric() argument
62 mCurrentBinaryMetrics.put(key, value); in addBinaryMetric()
/platform_testing/libraries/flicker/src/com/android/server/wm/traces/common/
DCondition.kt50 fun isSatisfied(value: T): Boolean { in isSatisfied()
51 return condition.invoke(value) in isSatisfied()
65 open fun getMessage(value: T): String = "$message(passed=${isSatisfied(value)})"
DFloatFormatter.kt28 fun format(value: Float): String { in format()
29 val strValue = value.toString() in format()
DConditionList.kt39 override fun getMessage(value: T): String = conditions in getMessage()
40 .joinToString(" and ") { it.getMessage(value) } in getMessage()
/platform_testing/libraries/health/options/src/android/platform/test/option/
DStringOption.java25 protected String parseValueFromString(String value) { in parseValueFromString() argument
26 return value; in parseValueFromString()
DLongOption.java25 protected Long parseValueFromString(String value) { in parseValueFromString() argument
26 return Long.valueOf(value); in parseValueFromString()
DDoubleOption.java25 protected Double parseValueFromString(String value) { in parseValueFromString() argument
26 return Double.valueOf(value); in parseValueFromString()
DIntegerOption.java25 protected Integer parseValueFromString(String value) { in parseValueFromString() argument
26 return Integer.valueOf(value); in parseValueFromString()
DBooleanOption.java25 protected Boolean parseValueFromString(String value) { in parseValueFromString() argument
26 return Boolean.valueOf(value); in parseValueFromString()
/platform_testing/libraries/system-helpers/accessibility-helper/src/android/system/helpers/
DAccessibilityHelper.java76 public void setTalkBackSetting(SwitchStatus value) throws Exception { in setTalkBackSetting() argument
81 if (swtBar != null && !swtBar.getText().equals(value.toString())) { in setTalkBackSetting()
102 public void setHighContrast(SwitchStatus value) throws Exception { in setHighContrast() argument
104 setSettingSwitchValue("High contrast text", value); in setHighContrast()
147 private boolean setSettingSwitchValue(String settingTag, SwitchStatus value) in setSettingSwitchValue() argument
152 if (!cellSwitch.getText().equals(value.toString())) { in setSettingSwitchValue()
160 return cellSwitch.getText().equals(value.toString()); in setSettingSwitchValue()
/platform_testing/libraries/collectors-helper/statsd/src/com/android/helpers/
DDeviceConfigHelper.java27 public static String setConfigValue(String namespace, String setting, String value) { in setConfigValue() argument
30 String command = String.format("device_config put %s %s %s", namespace, setting, value); in setConfigValue()

1234