Home
last modified time | relevance | path

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

/tools/metalava/src/main/java/com/android/tools/metalava/model/psi/
DPsiFieldItem.kt37 private val initialValue: Any? constant
47 override fun initialValue(requireConstant: Boolean): Any? { in type() method
48 if (initialValue != null) { in type()
49 return initialValue in type()
123 val initialValue = null // compute lazily in toString() constant
134 initialValue = initialValue in toString()
/tools/metalava/src/main/java/com/android/tools/metalava/
DJDiffXmlWriter.kt198 val initialValue = field.initialValue(true) in <lambda>() constant
199 val value = if (initialValue != null) { in <lambda>()
200 if (initialValue is Char && compatibility.xmlCharAsInt) { in <lambda>()
201 initialValue.toInt().toString() in <lambda>()
203 escapeAttributeValue(CodePrinter.constantToSource(initialValue)) in <lambda>()
DApiLint.kt512 …} else if ((field.type().primitive || field.type().isString()) && field.initialValue(true) == null… in <lambda>()
696 val value = field.initialValue(true) as? String ?: return in <lambda>()
768 val value = field.initialValue(true) as? String ?: return in <lambda>()
1242 if (field.initialValue(true) != fieldValue) { in <lambda>()
1840 val value = field.initialValue() as? Int ?: continue in <lambda>()
3273 val value = field.initialValue(requireConstant = true) as? String in <lambda>()
DCompatibilityCheck.kt613 val prevValue = old.initialValue(true) in compare()
620 val newValue = new.initialValue(true) in compare()
DSdkFileWriter.kt77 val value = field.initialValue() ?: continue in generate()
DDocAnalyzer.kt175 it.initialValue(requireConstant = false)?.toString() == perm in <lambda>()
/tools/metalava/src/main/java/com/android/tools/metalava/model/
DFieldItem.kt32 fun initialValue(requireConstant: Boolean = true): Any? in <lambda>() method
86 val thisConstant = initialValue(true) in <lambda>()
87 val otherConstant = other.initialValue(true) in <lambda>()
139 if (modifiers.isFinal() && initialValue(true) != null) { in <lambda>()
160 initialValue(!allowDefaultValue) in <lambda>()
DAnnotationItem.kt616 … (item.isEnumConstant() || item.modifiers.isFinal() && item.initialValue(false) != null) in getImplicitNullness()
/tools/metalava/src/main/java/com/android/tools/metalava/model/text/
DTextFieldItem.kt52 override fun initialValue(requireConstant: Boolean): Any? = constantValue in hashCode() method
/tools/metalava/src/main/java/com/android/tools/metalava/stub/
DJavaStubWriter.kt412 … field.modifiers.isFinal() && field.initialValue(true) == null && field.containingClass().isClass() in <lambda>()