Home
last modified time | relevance | path

Searched refs:default_value (Results 1 – 25 of 63) sorted by relevance

123

/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/
Darenastring_unittest.cc60 ::std::string default_value = "default"; in TEST()
61 field.UnsafeSetDefault(&default_value); in TEST()
62 EXPECT_EQ(string("default"), field.Get(&default_value)); in TEST()
63 field.Set(&default_value, WrapString("Test short"), NULL); in TEST()
64 EXPECT_EQ(string("Test short"), field.Get(&default_value)); in TEST()
65 field.Set(&default_value, WrapString("Test long long long long value"), NULL); in TEST()
66 EXPECT_EQ(string("Test long long long long value"), field.Get(&default_value)); in TEST()
67 field.Set(&default_value, string(""), NULL); in TEST()
68 field.Destroy(&default_value, NULL); in TEST()
71 field2.UnsafeSetDefault(&default_value); in TEST()
[all …]
Darenastring.h57 inline void Set(const ::std::string* default_value, in Set()
59 if (ptr_ == default_value) { in Set()
71 inline ::std::string* Mutable(const ::std::string* default_value, in Mutable()
73 if (ptr_ == default_value) { in Mutable()
74 CreateInstance(arena, default_value); in Mutable()
83 inline ::std::string* Release(const ::std::string* default_value, in Release()
85 if (ptr_ == default_value) { in Release()
95 ptr_ = const_cast< ::std::string* >(default_value); in Release()
104 inline ::std::string* UnsafeArenaRelease(const ::std::string* default_value, in UnsafeArenaRelease()
106 if (ptr_ == default_value) { in UnsafeArenaRelease()
[all …]
Darenastring.cc41 void ArenaStringPtr::AssignWithDefault(const ::std::string* default_value, in AssignWithDefault() argument
47 SetNoArena(default_value, value.GetNoArena(default_value)); in AssignWithDefault()
Dextension_set.h229 int32 GetInt32 (int number, int32 default_value) const;
230 int64 GetInt64 (int number, int64 default_value) const;
231 uint32 GetUInt32(int number, uint32 default_value) const;
232 uint64 GetUInt64(int number, uint64 default_value) const;
233 float GetFloat (int number, float default_value) const;
234 double GetDouble(int number, double default_value) const;
235 bool GetBool (int number, bool default_value) const;
236 int GetEnum (int number, int default_value) const;
237 const string & GetString (int number, const string& default_value) const;
239 const MessageLite& default_value) const;
[all …]
Ddynamic_message.cc384 const string* default_value; in SharedCtor() local
386 default_value = &field->default_value_string(); in SharedCtor()
388 default_value = in SharedCtor()
394 asp->UnsafeSetDefault(default_value); in SharedCtor()
452 const ::std::string* default_value = in ~DynamicMessage() local
459 default_value, NULL); in ~DynamicMessage()
513 const ::std::string* default_value = in ~DynamicMessage() local
518 default_value, NULL); in ~DynamicMessage()
/frameworks/base/core/tests/coretests/src/android/provider/
DDeviceConfigTest.java85 final String default_value = "default_value"; in getString_empty() local
86 final String result = DeviceConfig.getString(sNamespace, sKey, default_value); in getString_empty()
87 assertThat(result).isEqualTo(default_value); in getString_empty()
99 final String default_value = "default"; in getString_nonEmpty() local
102 final String result = DeviceConfig.getString(sNamespace, sKey, default_value); in getString_nonEmpty()
128 final boolean default_value = true; in getBoolean_empty()
129 final boolean result = DeviceConfig.getBoolean(sNamespace, sKey, default_value); in getBoolean_empty()
130 assertThat(result).isEqualTo(default_value); in getBoolean_empty()
136 final boolean default_value = false; in getBoolean_valid()
139 final boolean result = DeviceConfig.getBoolean(sNamespace, sKey, default_value); in getBoolean_valid()
[all …]
/frameworks/opt/gamesdk/src/swappy/
DSystemProperties.cpp26 std::string getSystemPropViaGet(const char* key, std::string default_value = "") { in getSystemPropViaGet() argument
30 return default_value; in getSystemPropViaGet()
35 int getSystemPropViaGetAsInt(const char* key, int default_value = 0) { in getSystemPropViaGetAsInt() argument
39 return default_value; in getSystemPropViaGetAsInt()
44 int getSystemPropViaGetAsBool(const char* key, bool default_value = false) { in getSystemPropViaGetAsBool() argument
45 return getSystemPropViaGetAsInt(key, default_value) != 0; in getSystemPropViaGetAsBool()
DSystemProperties.h26 std::string getSystemPropViaGet(const char* key, std::string default_value = "");
28 int getSystemPropViaGetAsInt(const char* key, int default_value = 0);
30 int getSystemPropViaGetAsBool(const char* key, bool default_value = false);
/frameworks/compile/libbcc/lib/
DProperties.h28 static inline int property_get(const char *key, char *value, const char *default_value) { in property_get() argument
35 if (default_value) { in property_get()
36 len = strlen(default_value); in property_get()
37 memcpy(value, default_value, len + 1); in property_get()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/python/google/protobuf/
Ddescriptor_pool.py562 default_value=None,
631 field_desc.default_value = []
636 field_desc.default_value = float(field_proto.default_value)
638 field_desc.default_value = field_proto.default_value
640 field_desc.default_value = field_proto.default_value.lower() == 'true'
642 field_desc.default_value = field_desc.enum_type.values_by_name[
643 field_proto.default_value].number
645 field_desc.default_value = text_encoding.CUnescape(
646 field_proto.default_value)
649 field_desc.default_value = int(field_proto.default_value)
[all …]
/frameworks/rs/
DrsCppUtils.cpp106 int property_get(const char *key, char *value, const char *default_value) { in property_get() argument
113 if (default_value) { in property_get()
114 len = strlen(default_value); in property_get()
115 memcpy(value, default_value, len + 1); in property_get()
/frameworks/rs/cpp/
DrsCppUtils.cpp106 int property_get(const char *key, char *value, const char *default_value) { in property_get() argument
113 if (default_value) { in property_get()
114 len = strlen(default_value); in property_get()
115 memcpy(value, default_value, len + 1); in property_get()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/util/internal/
Ddefault_value_objectwriter.cc52 T default_value) { in ConvertTo() argument
53 if (value.empty()) return default_value; in ConvertTo()
55 return result.ok() ? result.ValueOrDie() : default_value; in ConvertTo()
397 if (!field.default_value().empty()) in FindEnumDefault()
398 return DataPiece(field.default_value(), true); in FindEnumDefault()
418 field.default_value(), &DataPiece::ToDouble, static_cast<double>(0))); in CreateDefaultDataPieceForField()
422 field.default_value(), &DataPiece::ToFloat, static_cast<float>(0))); in CreateDefaultDataPieceForField()
428 field.default_value(), &DataPiece::ToInt64, static_cast<int64>(0))); in CreateDefaultDataPieceForField()
433 field.default_value(), &DataPiece::ToUint64, static_cast<uint64>(0))); in CreateDefaultDataPieceForField()
439 field.default_value(), &DataPiece::ToInt32, static_cast<int32>(0))); in CreateDefaultDataPieceForField()
[all …]
Dutility.cc61 const string& option_name, bool default_value) { in GetBoolOptionOrDefault() argument
64 return default_value; in GetBoolOptionOrDefault()
71 const string& option_name, int64 default_value) { in GetInt64OptionOrDefault() argument
74 return default_value; in GetInt64OptionOrDefault()
81 const string& option_name, double default_value) { in GetDoubleOptionOrDefault() argument
84 return default_value; in GetDoubleOptionOrDefault()
91 const string& option_name, const string& default_value) { in GetStringOptionOrDefault() argument
94 return default_value; in GetStringOptionOrDefault()
Dutility.h76 const string& option_name, bool default_value);
82 const string& option_name, int64 default_value);
88 const string& option_name, double default_value);
94 const string& option_name, const string& default_value);
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/python/google/protobuf/internal/
Ddescriptor_pool_test.py159 1776, msg2.fields_by_name['int_with_default'].default_value)
164 9.99, msg2.fields_by_name['double_with_default'].default_value)
169 'hello world', msg2.fields_by_name['string_with_default'].default_value)
172 self.assertFalse(msg2.fields_by_name['bool_with_default'].default_value)
176 1, msg2.fields_by_name['enum_with_default'].default_value)
185 msg2.fields_by_name['bytes_with_default'].default_value)
293 default_value = (file_descriptor
296 .default_value)
297 self.assertEqual(default_value,
432 def __init__(self, number, type_name, default_value): argument
[all …]
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DAudioGain.cpp48 config->values[0] = mGain.default_value; in getDefaultConfig()
57 config->values[i] = mGain.default_value; in getDefaultConfig()
108 dst->appendFormat("%*s- default_value: %d mB\n", spaces, "", mGain.default_value); in dump()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/python/google/protobuf/pyext/
Dmap_container.cc495 PyObject* default_value = NULL; in ScalarMapGet() local
496 if (PyArg_ParseTuple(args, "O|O", &key, &default_value) < 0) { in ScalarMapGet()
508 if (default_value != NULL) { in ScalarMapGet()
509 Py_INCREF(default_value); in ScalarMapGet()
510 return default_value; in ScalarMapGet()
744 PyObject* default_value = NULL; in MessageMapGet() local
745 if (PyArg_ParseTuple(args, "O|O", &key, &default_value) < 0) { in MessageMapGet()
757 if (default_value != NULL) { in MessageMapGet()
758 Py_INCREF(default_value); in MessageMapGet()
759 return default_value; in MessageMapGet()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/compiler/csharp/
Dcsharp_field_base.cc79 (*variables)["default_value"] = default_value(); in SetCommonFieldVariables()
303 std::string FieldGeneratorBase::default_value() { in default_value() function in google::protobuf::compiler::csharp::FieldGeneratorBase
304 return default_value(descriptor_); in default_value()
307 std::string FieldGeneratorBase::default_value(const FieldDescriptor* descriptor) { in default_value() function in google::protobuf::compiler::csharp::FieldGeneratorBase
317 return default_value(wrapped_field); in default_value()
Dcsharp_field_base.h86 std::string default_value();
87 std::string default_value(const FieldDescriptor* descriptor);
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/
DAudioGain.h45 void setDefaultValueInMb(int defaultValue) { mGain.default_value = defaultValue; } in setDefaultValueInMb()
46 int getDefaultValueInMb() const { return mGain.default_value; } in getDefaultValueInMb()
/frameworks/base/tools/aapt2/configuration/
DConfigurationParser.h119 inline int GetMinSdk(int default_value = -1) const {
121 return default_value;
/frameworks/native/cmds/installd/
Dinstalld_deps.h34 const char *default_value);
Dotapreopt.cpp153 int GetProperty(const char* key, char* value, const char* default_value) const { in GetProperty()
156 if (default_value == nullptr) { in GetProperty()
160 strlcpy(value, default_value, kPropertyValueMax - 1); in GetProperty()
162 return strlen(default_value);// TODO: Need to truncate? in GetProperty()
699 int get_property(const char *key, char *value, const char *default_value) { in get_property() argument
700 return gOps.GetProperty(key, value, default_value); in get_property()
Dinstalld.cpp50 int get_property(const char *key, char *value, const char *default_value) { in get_property() argument
51 return property_get(key, value, default_value); in get_property()

123