Home
last modified time | relevance | path

Searched refs:defaultValue (Results 1 – 25 of 39) sorted by relevance

12

/tools/metalava/metalava-model-psi/src/main/java/com/android/tools/metalava/model/psi/
DPsiParameterItem.kt122 defaultValue() != INVALID_VALUE in hasDefaultValue()
177 private var defaultValue: String? = null variable
179 override fun defaultValue(): String? { in defaultValue() method
180 if (defaultValue == null) { in defaultValue()
181 defaultValue = computeDefaultValue() in defaultValue()
183 return defaultValue in defaultValue()
202 val defaultValue = in computeDefaultValue() constant
203 (symbol.psi as? KtParameter)?.defaultValue ?: return INVALID_VALUE in computeDefaultValue()
204 if (defaultValue is KtConstantExpression) { in computeDefaultValue()
205 return defaultValue.text in computeDefaultValue()
[all …]
DPsiMethodItem.kt214 override fun defaultValue(): String { in <lambda>() method
220 psiMethod.defaultValue?.let { codebase.printer.toSourceExpression(it, this) } in <lambda>()
221 ?: super.defaultValue() in <lambda>()
223 else -> super.defaultValue() in <lambda>()
/tools/loganalysis/src/com/android/loganalysis/util/config/
DArgsOptionParser.java338 String defaultValue = OptionSetter.getFieldValueAsString(field, optionObject); in getOptionHelp() local
340 if (shouldOutputHelpForOption(importantOnly, option, defaultValue)) { in getOptionHelp()
358 out.append(getDefaultValueHelp(defaultValue)); in getOptionHelp()
375 String defaultValue) { in shouldOutputHelpForOption() argument
383 return defaultValue == null; in shouldOutputHelpForOption()
423 private static String getDefaultValueHelp(String defaultValue) { in getDefaultValueHelp() argument
424 if (defaultValue == null) { in getDefaultValueHelp()
427 return String.format(" Default: %s.", defaultValue); in getDefaultValueHelp()
/tools/metalava/metalava-model-psi/src/test/java/com/android/tools/metalava/model/psi/
DPsiParameterItemTest.kt92 assertEquals("\"\"", parameter.defaultValue()) in actuals get params from expects()
105 assertEquals("\"\"", parameter.defaultValue()) in actuals get params from expects()
114 assertEquals("\"\"", parameters[0].defaultValue()) in actuals get params from expects()
117 assertEquals("param + \"\"", parameters[1].defaultValue()) in actuals get params from expects()
/tools/metalava/metalava-model-turbine/src/main/java/com/android/tools/metalava/model/turbine/
DTurbineMethodItem.kt40 private val defaultValue: String, constant
113 defaultValue, in duplicate()
146 override fun defaultValue(): String = defaultValue method
DTurbineConstructorItem.kt37 private val defaultValue: String, constant
48 defaultValue,
DTurbineParameterItem.kt55 override fun defaultValue(): String? { in defaultValue() method
DTurbineCodebaseInitialiser.kt700 val defaultValue = in <lambda>() constant
701 if (method.defaultValue() != null) in <lambda>()
702 extractAnnotationDefaultValue(method.defaultValue()!!, defaultValueExpr) in <lambda>()
727 defaultValue, in <lambda>()
963 val optExpr = method.decl()?.defaultValue() in <lambda>()
/tools/tradefederation/core/util_apps/WifiUtil/src/com/android/tradefed/utils/wifi/
DWifiUtil.java112 private String getString(String arg, String defaultValue) { in getString() argument
115 return defaultValue; in getString()
151 private int getInteger(String arg, int defaultValue) { in getInteger() argument
155 return defaultValue; in getInteger()
159 private boolean getBoolean(String arg, boolean defaultValue) { in getBoolean() argument
163 return defaultValue; in getBoolean()
/tools/tradefederation/core/src/com/android/tradefed/config/
DArgsOptionParser.java501 String defaultValue = OptionSetter.getFieldValueAsString(field, optionObject); in getOptionHelp() local
503 if (shouldOutputHelpForOption(importantOnly, option, defaultValue)) { in getOptionHelp()
521 out.append(getDefaultValueHelp(defaultValue)); in getOptionHelp()
538 String defaultValue) { in shouldOutputHelpForOption() argument
546 return defaultValue == null; in shouldOutputHelpForOption()
587 private static String getDefaultValueHelp(String defaultValue) { in getDefaultValueHelp() argument
588 if (defaultValue == null) { in getDefaultValueHelp()
591 return String.format(" Default: %s.", defaultValue); in getDefaultValueHelp()
/tools/aadevtools/avd/
Dcreate_avd.sh32 defaultValue=$2
34 export "${var}=$defaultValue"
35 echo "${var}=$defaultValue"
/tools/apksig/src/apksigner/java/com/android/apksigner/
DOptionsParser.java155 public boolean getOptionalBooleanValue(boolean defaultValue) throws OptionsException { in getOptionalBooleanValue() argument
172 return defaultValue; in getOptionalBooleanValue()
183 return defaultValue; in getOptionalBooleanValue()
/tools/metalava/metalava/src/main/java/com/android/tools/metalava/
DSignatureWriter.kt186 val default = method.defaultValue() in <lambda>()
359 val defaultValue = parameter.defaultValue() in <lambda>() constant
360 if (defaultValue != null) { in <lambda>()
361 write(defaultValue) in <lambda>()
/tools/tradefederation/core/src/com/android/tradefed/util/
DBundletoolUtil.java276 protected static long parseCmdTimeout(List<String> args, long defaultValue) in parseCmdTimeout() argument
283 return Long.max(timeout, defaultValue); in parseCmdTimeout()
295 return defaultValue; in parseCmdTimeout()
/tools/metalava/metalava-model-text/src/main/java/com/android/tools/metalava/model/text/
DApiFile.kt1565 var defaultValue = UNKNOWN_DEFAULT_VALUE in parseParameterList() variable
1567 defaultValue = tokenizer.requireToken(true) in parseParameterList()
1568 val sb = StringBuilder(defaultValue) in parseParameterList()
1569 if (defaultValue == "{") { in parseParameterList()
1585 var balance = if (defaultValue == "(") 1 else 0 in parseParameterList()
1603 defaultValue = sb.toString() in parseParameterList()
1605 if (defaultValue != UNKNOWN_DEFAULT_VALUE) { in parseParameterList()
1624 defaultValue, in parseParameterList()
1645 val defaultValue: String?, constant in com.android.tools.metalava.model.text.ApiFile.ParameterInfo
1673 defaultValue, in create()
DTextParameterItem.kt59 override fun defaultValue(): String? = defaultValueBody in type() method
DTextMethodItem.kt167 override fun defaultValue(): String { in defaultValue() method
/tools/metalava/metalava-model/src/main/java/com/android/tools/metalava/model/
DParameterItem.kt80 fun defaultValue(): String? in name() method
DTypeItem.kt160 fun defaultValue(): Any? = null in <lambda>() method
795 val defaultValue: Any?, constant in com.android.tools.metalava.model.PrimitiveTypeItem.Primitive
809 override fun defaultValue(): Any? = kind.defaultValue in defaultValue() method
DMethodItem.kt367 fun defaultValue(): String = "" in <lambda>() method
370 return defaultValue() != "" in <lambda>()
/tools/test/graphicsbenchmark/performance_tests/helper/src/com/android/game/qualification/
DGameCoreConfigurationXmlParser.java65 Field(String tag, String defaultValue) { in Field() argument
67 mDefaultValue = defaultValue; in Field()
/tools/metalava/metalava/src/main/java/com/android/tools/metalava/compatibility/
DCompatibilityCheck.kt457 new.defaultValue() != old.defaultValue() in compare()
459 val prevValue = old.defaultValue() in compare()
467 val newValue = new.defaultValue() in compare()
482 new.containingClass().isAnnotationType() && old.defaultValue().isEmpty() in compare()
/tools/tradefederation/core/device_build_interfaces/com/android/tradefed/device/
DINativeDevice.java105 public long getIntProperty(String name, long defaultValue) throws DeviceNotAvailableException; in getIntProperty() argument
117 public boolean getBooleanProperty(String name, boolean defaultValue) in getBooleanProperty() argument
/tools/metalava/metalava-model-testsuite/src/main/java/com/android/tools/metalava/model/testsuite/methoditem/
DCommonMethodItemTest.kt439 assertEquals(values, classItem.methods().map { it.defaultValue() }) in <lambda>()
/tools/apksig/gradle/wrapper/
Dgradle-wrapper.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/gradle/ org/ ...

12