HomeSort by relevance Sort by last modified time
    Searched refs:default_value (Results 1 - 25 of 331) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/clang/test/CodeGenCXX/
catch-undef-behavior2.cpp 4 bool GetBool(bool default_value) {
8 return GetOptionalBool(&value) ? value : default_value;
  /external/protobuf/src/google/protobuf/
arenastring_unittest.cc 60 ::std::string default_value = "default"; local
61 field.UnsafeSetDefault(&default_value);
62 EXPECT_EQ(string("default"), field.Get(&default_value));
63 field.Set(&default_value, WrapString("Test short"), NULL);
64 EXPECT_EQ(string("Test short"), field.Get(&default_value));
65 field.Set(&default_value, WrapString("Test long long long long value"), NULL);
66 EXPECT_EQ(string("Test long long long long value"), field.Get(&default_value));
67 field.Set(&default_value, string(""), NULL);
68 field.Destroy(&default_value, NULL);
71 field2.UnsafeSetDefault(&default_value);
85 ::std::string default_value = "default"; local
    [all...]
arenastring.cc 41 void ArenaStringPtr::AssignWithDefault(const ::std::string* default_value,
47 SetNoArena(default_value, value.GetNoArena(default_value));
arenastring.h 57 inline void Set(const ::std::string* default_value,
59 if (ptr_ == default_value) {
67 inline const ::std::string& Get(const ::std::string* /* default_value */) const {
71 inline ::std::string* Mutable(const ::std::string* default_value,
73 if (ptr_ == default_value) {
74 CreateInstance(arena, default_value);
83 inline ::std::string* Release(const ::std::string* default_value,
85 if (ptr_ == default_value) {
95 ptr_ = const_cast< ::std::string* >(default_value);
104 inline ::std::string* UnsafeArenaRelease(const ::std::string* default_value,
    [all...]
  /hardware/qcom/gps/msm8998/utils/platform_lib_abstractions/loc_pla/src/
platform_lib_property_service.cpp 36 int platform_lib_abstraction_property_get(const char *key, char *value, const char *default_value)
38 return property_get(key, value, default_value);
  /system/bt/osi/src/
properties.cc 23 int osi_property_get(const char* key, char* value, const char* default_value) {
27 if (!default_value) return len;
29 len = strlen(default_value);
32 memcpy(value, default_value, len);
36 return property_get(key, value, default_value);
48 int32_t osi_property_get_int32(const char* key, int32_t default_value) {
50 return default_value;
52 return property_get_int32(key, default_value);
  /hardware/qcom/gps/msm8998/utils/platform_lib_abstractions/loc_stub/include/
loc_stub_property_service.h 36 int property_get(const char *key, char *value, const char *default_value);
  /system/bt/osi/include/
properties.h 32 // If the property read fails or returns an empty value, the |default_value|
33 // is used (if nonnull). If the |default_value| is null, zero is returned.
34 int osi_property_get(const char* key, char* value, const char* default_value);
44 // int32_t. If the property is not set, then the |default_value| is used.
45 int32_t osi_property_get_int32(const char* key, int32_t default_value);
  /frameworks/compile/libbcc/lib/
Properties.h 28 static inline int property_get(const char *key, char *value, const char *default_value) {
35 if (default_value) {
36 len = strlen(default_value);
37 memcpy(value, default_value, len + 1);
  /hardware/qcom/gps/msm8998/utils/platform_lib_abstractions/loc_pla/include/
platform_lib_property_service.h 38 int platform_lib_abstraction_property_get(const char *key, char *value, const char *default_value);
  /prebuilts/tools/darwin-x86_64/protoc/include/google/protobuf/
arenastring.h 57 inline void Set(const ::std::string* default_value,
59 if (ptr_ == default_value) {
67 inline const ::std::string& Get(const ::std::string* /* default_value */) const {
71 inline ::std::string* Mutable(const ::std::string* default_value,
73 if (ptr_ == default_value) {
74 CreateInstance(arena, default_value);
83 inline ::std::string* Release(const ::std::string* default_value,
85 if (ptr_ == default_value) {
95 ptr_ = const_cast< ::std::string* >(default_value);
104 inline ::std::string* UnsafeArenaRelease(const ::std::string* default_value,
    [all...]
  /hardware/qcom/gps/msm8998/utils/platform_lib_abstractions/loc_stub/src/
loc_stub_property_service.cpp 33 int property_get(const char *key, char * value, const char *default_value)
  /system/core/libcutils/
properties.cpp 33 int8_t property_get_bool(const char *key, int8_t default_value) {
35 return default_value;
38 int8_t result = default_value;
62 intmax_t default_value) {
64 return default_value;
67 intmax_t result = default_value;
80 result = default_value;
81 ALOGV("%s(%s,%" PRIdMAX ") - overflow", __FUNCTION__, key, default_value);
84 result = default_value;
85 ALOGV("%s(%s,%" PRIdMAX ") - out of range", __FUNCTION__, key, default_value);
    [all...]
  /system/core/libcutils/include/cutils/
properties.h 46 int property_get(const char *key, char *value, const char *default_value)
67 int8_t property_get_bool(const char *key, int8_t default_value);
88 int64_t property_get_int64(const char *key, int64_t default_value);
109 int32_t property_get_int32(const char *key, int32_t default_value);
132 int property_get(const char *key, char *value, const char *default_value)
150 int property_get(const char *key, char *value, const char *default_value) {
155 return __property_get_real(key, value, default_value);
  /system/core/debuggerd/libdebuggerd/test/
property_fake.cpp 34 extern "C" int property_get(const char* key, char* value, const char* default_value) {
36 if (default_value == nullptr) {
39 strncpy(value, default_value, PROP_VALUE_MAX-1);
  /art/runtime/
runtime_options.h 52 explicit RuntimeArgumentMapKey(TValue default_value)
53 : VariantMapKey<TValue>(std::move(default_value)) {}
  /system/extras/perfprofd/
configreader.h 53 unsigned default_value,
56 void addStringEntry(const char *key, const char *default_value);
  /external/pdfium/core/fpdfdoc/
fpdf_tagged.h 49 const CFX_ByteStringC& default_value,
55 FX_ARGB default_value,
61 FX_FLOAT default_value,
67 int default_value,
  /external/webrtc/webrtc/examples/peerconnection/client/
defaults.h 25 const char* default_value);
  /frameworks/rs/
rsCppUtils.cpp 103 int property_get(const char *key, char *value, const char *default_value) {
110 if (default_value) {
111 len = strlen(default_value);
112 memcpy(value, default_value, len + 1);
  /system/core/base/include/android-base/
properties.h 34 // or `default_value` if the property is empty or doesn't exist.
35 std::string GetProperty(const std::string& key, const std::string& default_value);
38 // false for "0", "n", "no", "off", or "false", or `default_value` otherwise.
39 bool GetBoolProperty(const std::string& key, bool default_value);
43 // the optional bounds, returns `default_value`.
45 T default_value,
51 // the optional bound, returns `default_value`.
53 T default_value,
  /development/testrunner/test_defs/
xml_suite_helper.py 75 False, default_value=False))
78 False, default_value=True))
80 default_value=None))
84 default_value=''))
86 suite_element, self._EXTRA_BUILD_ARGS_ATTR, False, default_value=''))
88 suite_element, self._FULL_MAKE_ATTR, False, default_value=False))
92 default_value=None):
95 if default_value in (True, False):
102 value = default_value
  /external/google-benchmark/src/
commandlineflags.cc 92 // the given flag; if it's not set, returns default_value.
95 bool BoolFromEnv(const char* flag, bool default_value) {
98 return string_value == nullptr ? default_value
104 // doesn't represent a valid 32-bit integer, returns default_value.
105 int32_t Int32FromEnv(const char* flag, int32_t default_value) {
110 return default_value;
113 int32_t result = default_value;
116 std::cout << "The default value " << default_value << " is used.\n"; local
117 return default_value;
124 // the given flag; if it's not set, returns default_value
    [all...]
  /external/harfbuzz_ng/src/
hb-ot-var-fvar-table.hh 116 info->default_value = axis.defaultValue / 65536.;
118 info->min_value = MIN<float> (info->default_value, axis.minValue / 65536.);
119 info->max_value = MAX<float> (info->default_value, axis.maxValue / 65536.);
170 if (v == axis.default_value)
172 else if (v < axis.default_value)
173 v = (v - axis.default_value) / (axis.default_value - axis.min_value);
175 v = (v - axis.default_value) / (axis.max_value - axis.default_value);
  /external/libcxx/utils/google-benchmark/src/
commandlineflags.cc 92 // the given flag; if it's not set, returns default_value.
95 bool BoolFromEnv(const char* flag, bool default_value) {
98 return string_value == nullptr ? default_value
104 // doesn't represent a valid 32-bit integer, returns default_value.
105 int32_t Int32FromEnv(const char* flag, int32_t default_value) {
110 return default_value;
113 int32_t result = default_value;
116 std::cout << "The default value " << default_value << " is used.\n"; local
117 return default_value;
124 // the given flag; if it's not set, returns default_value
    [all...]

Completed in 622 milliseconds

1 2 3 4 5 6 7 8 91011>>