Home
last modified time | relevance | path

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

12

/system/update_engine/update_manager/
Dumtest_utils.h41 static void ExpectVariableHasValue(const T& expected, Variable<T>* variable) { in ExpectVariableHasValue() argument
42 ASSERT_NE(nullptr, variable); in ExpectVariableHasValue()
44 variable->GetValue(DefaultTimeout(), nullptr)); in ExpectVariableHasValue()
45 ASSERT_NE(nullptr, value.get()) << "Variable: " << variable->GetName(); in ExpectVariableHasValue()
46 EXPECT_EQ(expected, *value) << "Variable: " << variable->GetName(); in ExpectVariableHasValue()
51 static void ExpectVariableNotSet(Variable<T>* variable) { in ExpectVariableNotSet() argument
52 ASSERT_NE(nullptr, variable); in ExpectVariableNotSet()
54 variable->GetValue(DefaultTimeout(), nullptr)); in ExpectVariableNotSet()
55 EXPECT_EQ(nullptr, value.get()) << "Variable: " << variable->GetName(); in ExpectVariableNotSet()
Dvariable_unittest.cc87 void ValueChanged(BaseVariable* variable) { calls_.push_back(variable); } in ValueChanged() argument
136 void ValueChanged(BaseVariable* variable) override { in ValueChanged() argument
138 variable->RemoveObserver(observer); in ValueChanged()
/system/linkerconfig/modules/
Dvariables.cc29 std::optional<std::string> Variables::GetValue(const std::string& variable) { in GetValue() argument
31 if (variables_.find(variable) != variables_.end() && in GetValue()
32 !variables_[variable].empty()) { in GetValue()
33 return {variables_[variable]}; in GetValue()
37 std::string prop_value = android::base::GetProperty(variable, ""); in GetValue()
/system/core/libunwindstack/
DGlobal.cpp42 uint64_t Global::GetVariableOffset(MapInfo* info, const std::string& variable) { in GetVariableOffset() argument
60 if (elf->GetGlobalVariable(variable, &ptr) && ptr != 0) { in GetVariableOffset()
67 std::string variable(var_str); in FindAndReadVariable() local
85 uint64_t ptr = GetVariableOffset(map_start, variable); in FindAndReadVariable()
/system/testing/gtest_extras/
DOptions.cpp78 std::string variable(arg); in PrintError() local
79 std::transform(variable.begin(), variable.end(), variable.begin(), in PrintError()
81 printf("env[%s] %s\n", variable.c_str(), msg.c_str()); in PrintError()
239 std::string variable(entry.first); in Process() local
240 std::transform(variable.begin(), variable.end(), variable.begin(), in Process()
242 char* env = getenv(variable.c_str()); in Process()
/system/tools/aidl/
Dgenerate_java.cpp106 for (const auto& variable : parcel->GetFields()) { in generate_parcel_class() local
107 const Type* type = variable->GetType().GetLanguageType<Type>(); in generate_parcel_class()
110 out << variable->GetType().GetComments() << "\n"; in generate_parcel_class()
111 for (const auto& a : generate_java_annotations(variable->GetType())) { in generate_parcel_class()
114 out << "public " << type->JavaType() << (variable->GetType().IsArray() ? "[]" : "") << " " in generate_parcel_class()
115 << variable->GetName(); in generate_parcel_class()
116 if (variable->GetDefaultValue()) { in generate_parcel_class()
117 out << " = " << variable->ValueString(AidlConstantValueDecorator); in generate_parcel_class()
Dgenerate_ndk.cpp773 for (const auto& variable : defined_type.GetFields()) { in GenerateParcelHeader() local
774 out << NdkNameOf(types, variable->GetType(), StorageMode::STACK) << " " << variable->GetName(); in GenerateParcelHeader()
775 if (variable->GetDefaultValue()) { in GenerateParcelHeader()
776 out << " = " << variable->ValueString(AidlConstantValueDecorator); in GenerateParcelHeader()
820 for (const auto& variable : defined_type.GetFields()) { in GenerateParcelSource() local
822 ReadFromParcelFor({out, types, variable->GetType(), "parcel", "&" + variable->GetName()}); in GenerateParcelSource()
846 for (const auto& variable : defined_type.GetFields()) { in GenerateParcelSource() local
848 WriteToParcelFor({out, types, variable->GetType(), "parcel", variable->GetName()}); in GenerateParcelSource()
Dgenerate_cpp.cpp1011 for (const auto& variable : parcel.GetFields()) { in BuildParcelHeader() local
1012 const Type* type = variable->GetType().GetLanguageType<Type>(); in BuildParcelHeader()
1016 for (const auto& variable : parcel.GetFields()) { in BuildParcelHeader() local
1017 const Type* type = variable->GetType().GetLanguageType<Type>(); in BuildParcelHeader()
1020 out << type->CppType().c_str() << " " << variable->GetName().c_str(); in BuildParcelHeader()
1021 if (variable->GetDefaultValue()) { in BuildParcelHeader()
1023 << variable->ValueString(ConstantValueDecorator) << ")"; in BuildParcelHeader()
1059 for (const auto& variable : parcel.GetFields()) { in BuildParcelSource() local
1060 string method = variable->GetType().GetLanguageType<Type>()->ReadFromParcelMethod(); in BuildParcelSource()
1064 ArgList("&" + variable->GetName())))); in BuildParcelSource()
[all …]
/system/core/libunwindstack/include/unwindstack/
DGlobal.h48 uint64_t GetVariableOffset(MapInfo* info, const std::string& variable);
49 void FindAndReadVariable(Maps* maps, const char* variable);
/system/tools/hidl/test/error_test/missing_variable_type/1.0/
Drequired_error1 is missing a variable name
/system/extras/simpleperf/demo/SimpleperfExampleWithNative/
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/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/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/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/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/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/bpf/libbpf_android/
DAndroid.bp76 "-Wno-error=unused-variable",
97 "-Wno-error=unused-variable",
/system/chre/build/
Dcommon.mk8 $(warning The OPT_LEVEL variable is unset. Defaulting to 0.)
/system/extras/simpleperf/scripts/
Dpylintrc9 variable-rgx=[a-z_][a-z0-9_]{0,30}$
/system/bt/build/
DAndroid.bp38 // struct BT_HDR is defined as a variable-size header in a struct.
39 "-Wno-gnu-variable-sized-type-not-at-end",
/system/extras/simpleperf/demo/SimpleperfExampleWithNative/app/
DCMakeLists.txt23 # variable. Because CMake includes system libraries in the search path by
28 find_library( # Sets the name of the path variable.
/system/keymaster/
DAndroid.bp130 "-Wno-error=unused-const-variable",
178 "-Wno-error=unused-const-variable",
217 "-Wno-error=unused-const-variable",
264 "-Wno-error=unused-const-variable",
305 "-Wno-error=unused-const-variable",
/system/core/toolbox/
DAndroid.bp7 "-Wno-unused-const-variable",

12