Home
last modified time | relevance | path

Searched refs:variable (Results 1 – 25 of 53) sorted by relevance

123

/system/linkerconfig/modules/
Dvariables.cc27 std::optional<std::string> Variables::GetValue(const std::string& variable) { in GetValue() argument
29 if (variables_.find(variable) != variables_.end() && in GetValue()
30 !variables_[variable].empty()) { in GetValue()
31 return {variables_[variable]}; in GetValue()
35 std::string prop_value = android::base::GetProperty(variable, ""); in GetValue()
/system/tools/aidl/
Dgenerate_java.cpp47 inline string GetterName(const AidlVariableDeclaration& variable) { in GetterName() argument
48 return "get" + variable.GetCapitalizedName(); in GetterName()
50 inline string SetterName(const AidlVariableDeclaration& variable) { in SetterName() argument
51 return "set" + variable.GetCapitalizedName(); in SetterName()
328 for (const auto& variable : parcel->GetFields()) { in GenerateParcelableClass() local
330 out << GenerateComments(*variable); in GenerateParcelableClass()
331 out << GenerateAnnotations(*variable); in GenerateParcelableClass()
334 if (variable->GetType().GetName() == "ParcelableHolder" || parcel->IsJavaOnlyImmutable()) { in GenerateParcelableClass()
337 out << JavaSignatureOf(variable->GetType()) << " " << variable->GetName(); in GenerateParcelableClass()
338 if (!parcel->IsJavaOnlyImmutable() && variable->GetDefaultValue()) { in GenerateParcelableClass()
[all …]
Dgenerate_rust.cpp845 for (const auto& variable : parcel->GetFields()) { in GenerateParcelBody() local
846 GenerateDeprecated(out, *variable); in GenerateParcelBody()
848 RustNameOf(variable->GetType(), typenames, StorageMode::PARCELABLE_FIELD, Lifetime::NONE); in GenerateParcelBody()
849 out << "pub " << variable->GetName() << ": " << field_type << ",\n"; in GenerateParcelBody()
862 for (const auto& variable : parcel->GetFields()) { in GenerateParcelDefault() local
863 out << variable->GetName() << ": "; in GenerateParcelDefault()
864 if (variable->GetDefaultValue()) { in GenerateParcelDefault()
865 out << variable->ValueString(ConstantValueDecorator); in GenerateParcelDefault()
870 if (variable->GetType().GetName() == "ParcelableHolder") { in GenerateParcelDefault()
878 } else if (variable->GetType().IsFixedSizeArray() && !variable->GetType().IsNullable()) { in GenerateParcelDefault()
[all …]
Daidl_to_cpp_common.cpp660 for (const auto& variable : decl.GetFields()) { in ReadFromParcel() local
661 if (variable->IsDeprecated()) { in ReadFromParcel()
665 out << fmt::format("case {}: {{\n", variable->GetName()); in ReadFromParcel()
667 const auto& type = variable->GetType(); in ReadFromParcel()
672 out << fmt::format("set<{}>({});\n", variable->GetName(), value); in ReadFromParcel()
679 out << fmt::format("set<{}>(std::move({}));\n", variable->GetName(), value); in ReadFromParcel()
684 if (variable->IsDeprecated()) { in ReadFromParcel()
706 for (const auto& variable : decl.GetFields()) { in WriteToParcel() local
707 if (variable->IsDeprecated()) { in WriteToParcel()
711 out << fmt::format("case {}: return ", variable->GetName()); in WriteToParcel()
[all …]
Dgenerate_cpp.cpp984 for (const auto& variable : parcel.GetFields()) { in GenerateReadFromParcel() local
985 string method = ParcelReadMethodOf(variable->GetType(), typenames); in GenerateReadFromParcel()
986 string arg = ParcelReadCastOf(variable->GetType(), typenames, "&" + variable->GetName()); in GenerateReadFromParcel()
1005 for (const auto& variable : parcel.GetFields()) { in GenerateWriteToParcel() local
1006 string method = ParcelWriteMethodOf(variable->GetType(), typenames); in GenerateWriteToParcel()
1007 string arg = ParcelWriteCastOf(variable->GetType(), typenames, variable->GetName()); in GenerateWriteToParcel()
1052 for (const auto& variable : decl.GetFields()) { in GenerateParcelFields() local
1053 const auto& type = variable->GetType(); in GenerateParcelFields()
1056 GenerateDeprecated(out, *variable); in GenerateParcelFields()
1057 out << " " << variable->GetName(); in GenerateParcelFields()
[all …]
Dgenerate_ndk.cpp1205 for (const auto& variable : defined_type.GetFields()) { in GenerateParcelClassDecl() local
1206 const auto& type = variable->GetType(); in GenerateParcelClassDecl()
1209 cpp::GenerateDeprecated(out, *variable); in GenerateParcelClassDecl()
1210 out << " " << variable->GetName(); in GenerateParcelClassDecl()
1217 if (variable->GetDefaultValue()) { in GenerateParcelClassDecl()
1218 out << " = " << variable->ValueString(ConstantValueDecorator); in GenerateParcelClassDecl()
1284 for (const auto& variable : defined_type.GetFields()) { in GenerateParcelSource() local
1291 ReadFromParcelFor({out, types, variable->GetType(), "_aidl_parcel", "&" + variable->GetName()}); in GenerateParcelSource()
1309 for (const auto& variable : defined_type.GetFields()) { in GenerateParcelSource() local
1311 WriteToParcelFor({out, types, variable->GetType(), "_aidl_parcel", variable->GetName()}); in GenerateParcelSource()
/system/testing/gtest_extras/
DOptions.cpp83 std::string variable(arg); in PrintError() local
84 std::transform(variable.begin(), variable.end(), variable.begin(), in PrintError()
86 printf("env[%s] %s\n", variable.c_str(), msg.c_str()); in PrintError()
338 std::string variable(entry.first); in Process() local
339 std::transform(variable.begin(), variable.end(), variable.begin(), in Process()
341 char* env = getenv(variable.c_str()); in Process()
/system/unwinding/libunwindstack/
DGlobal.cpp63 std::string variable(var_str); in FindAndReadVariable() local
86 if (elf->GetGlobalVariableOffset(variable, &ptr) && ptr != 0) { in FindAndReadVariable()
/system/tools/hidl/test/error_test/missing_variable_type/1.0/
Drequired_error1 is missing a variable name
/system/extras/power_profile/camera_flashlight/
Dgradlew.bat29 echo Please set the JAVA_HOME variable in your environment to match the
43 echo Please set the JAVA_HOME variable in your environment to match the
82 rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
/system/extras/simpleperf/demo/JavaApi/
Dgradlew.bat29 echo Please set the JAVA_HOME variable in your environment to match the
43 echo Please set the JAVA_HOME variable in your environment to match the
76 rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
/system/extras/simpleperf/demo/SimpleperfExampleOfKotlin/
Dgradlew.bat29 echo Please set the JAVA_HOME variable in your environment to match the
43 echo Please set the JAVA_HOME variable in your environment to match the
82 rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
/system/logging/liblog/
DREADME.protocol.md72 single character priority, followed by a variable length null terminated string for the tag, and
73 finally a variable length null terminated string for the message.
80 android_event_header_t struct followed by a variable number of android_event_*_t
/system/extras/simpleperf/demo/CppApi/
Dgradlew.bat29 echo Please set the JAVA_HOME variable in your environment to match the
43 echo Please set the JAVA_HOME variable in your environment to match the
76 rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
/system/extras/simpleperf/demo/SimpleperfExampleCpp/
Dgradlew.bat29 echo Please set the JAVA_HOME variable in your environment to match the
43 echo Please set the JAVA_HOME variable in your environment to match the
76 rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
/system/extras/simpleperf/demo/SimpleperfExamplePureJava/
Dgradlew.bat29 echo Please set the JAVA_HOME variable in your environment to match the
43 echo Please set the JAVA_HOME variable in your environment to match the
82 rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
/system/extras/power_profile/gps_on/
Dgradlew.bat29 echo Please set the JAVA_HOME variable in your environment to match the
43 echo Please set the JAVA_HOME variable in your environment to match the
82 rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
/system/extras/power_profile/camera_avg/
Dgradlew.bat29 echo Please set the JAVA_HOME variable in your environment to match the
43 echo Please set the JAVA_HOME variable in your environment to match the
82 rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
/system/extras/simpleperf/scripts/
Dpylintrc9 variable-rgx=[a-z_][a-z0-9_]{0,30}$
/system/extras/simpleperf/demo/SimpleperfExampleCpp/app/src/main/cpp/
DCMakeLists.txt27 # variable. Because CMake includes system libraries in the search path by
32 find_library( # Sets the name of the path variable.
/system/chre/build/
Dcommon.mk8 $(warning The OPT_LEVEL variable is unset. Defaulting to 0.)
/system/unwinding/libunwindstack/include/unwindstack/
DGlobal.h48 void FindAndReadVariable(Maps* maps, const char* variable);
/system/keymaster/tests/
DAndroid.bp33 "-Wunused-variable",
/system/core/toolbox/
DAndroid.bp23 "-Wno-unused-const-variable",
/system/update_engine/
Dpylintrc265 # Good variable names which should always be accepted, separated by a comma
268 # Bad variable names which should always be refused, separated by a comma
286 # Regular expression which should only match correct variable names
287 variable-rgx=^[a-z][a-z0-9_]*$
289 # Naming hint for variable names
290 variable-name-hint=[a-z_][a-z0-9_]{2,30}$
317 # generator expression variable names

123