Home
last modified time | relevance | path

Searched refs:consts (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/tools/codegen/src/com/android/codegen/
DGenerators.kt15 val consts = classAst.fields.filter { in <lambda>() constant
20 val intConsts = consts.filter { it.first.type.asString() == "int" } in <lambda>()
21 val strConsts = consts.filter { it.first.type.asString() == "String" } in <lambda>()
32 fun ClassPrinter.generateConstDef(consts: List<Pair<VariableDeclarator, FieldDeclaration>>) { in ClassPrinter()
33 if (consts.size <= 1) return in ClassPrinter()
35 val names = consts.map { it.first.nameAsString!! } in ClassPrinter()
48 val annotatedConst = consts.find { it.second.annotations.isNonEmpty } in ClassPrinter()
52 val type = consts[0].first.type.asString() in ClassPrinter()
53 … val flag = type == "int" && consts.all { it.first.initializer.get().toString().startsWith("0x") } in ClassPrinter()
60 values = consts.map { it.second } in ClassPrinter()
[all …]
/frameworks/native/libs/binder/rust/sys/
DBinderBindings.hpp74 namespace consts { namespace
/frameworks/native/libs/binder/rust/
DAndroid.bp68 "--constified-enum", "android::c_interface::consts::.*",