/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/ |
D | arenastring_unittest.cc | 60 ::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 …]
|
D | arenastring.h | 57 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 …]
|
D | arenastring.cc | 41 void ArenaStringPtr::AssignWithDefault(const ::std::string* default_value, in AssignWithDefault() argument 47 SetNoArena(default_value, value.GetNoArena(default_value)); in AssignWithDefault()
|
D | extension_set.h | 229 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 …]
|
D | dynamic_message.cc | 384 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/ |
D | DeviceConfigTest.java | 85 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/ |
D | SystemProperties.cpp | 26 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()
|
D | SystemProperties.h | 26 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/ |
D | Properties.h | 28 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/ |
D | descriptor_pool.py | 562 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/ |
D | rsCppUtils.cpp | 106 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/ |
D | rsCppUtils.cpp | 106 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/ |
D | default_value_objectwriter.cc | 52 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 …]
|
D | utility.cc | 61 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()
|
D | utility.h | 76 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/ |
D | descriptor_pool_test.py | 159 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/ |
D | AudioGain.cpp | 48 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/ |
D | map_container.cc | 495 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/ |
D | csharp_field_base.cc | 79 (*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()
|
D | csharp_field_base.h | 86 std::string default_value(); 87 std::string default_value(const FieldDescriptor* descriptor);
|
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/ |
D | AudioGain.h | 45 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/ |
D | ConfigurationParser.h | 119 inline int GetMinSdk(int default_value = -1) const { 121 return default_value;
|
/frameworks/native/cmds/installd/ |
D | installd_deps.h | 34 const char *default_value);
|
D | otapreopt.cpp | 153 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()
|
D | installd.cpp | 50 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()
|