Home
last modified time | relevance | path

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

12

/frameworks/libs/binary_translation/base/
Dmemfd_backed_mmap_test.cc35 uintptr_t default_value = 42; in TEST() local
36 int memfd = CreateAndFillMemfd("uintptr", kMemfdFileSize, default_value); in TEST()
38 CreateMemfdBackedMapOrDie(memfd, kTableSize * sizeof(default_value), kMemfdFileSize)); in TEST()
41 ASSERT_EQ(ptr[3], default_value); in TEST()
46 ASSERT_EQ(ptr[73], default_value); in TEST()
47 ASSERT_EQ(ptr[kMemfdFileSize + 3], default_value); in TEST()
48 ASSERT_EQ(ptr[kMemfdFileSize + 73], default_value); in TEST()
49 ASSERT_EQ(ptr[3 * kMemfdFileSize + 3], default_value); in TEST()
51 MunmapOrDie(ptr, kTableSize * sizeof(default_value)); in TEST()
/frameworks/base/core/tests/coretests/src/android/provider/
DDeviceConfigTest.java188 final String default_value = "default_value"; in getString_empty() local
189 final String result = DeviceConfig.getString(NAMESPACE, KEY, default_value); in getString_empty()
190 assertThat(result).isEqualTo(default_value); in getString_empty()
202 final String default_value = "default"; in getString_nonEmpty() local
205 final String result = DeviceConfig.getString(NAMESPACE, KEY, default_value); in getString_nonEmpty()
231 final boolean default_value = true; in getBoolean_empty()
232 final boolean result = DeviceConfig.getBoolean(NAMESPACE, KEY, default_value); in getBoolean_empty()
233 assertThat(result).isEqualTo(default_value); in getBoolean_empty()
239 final boolean default_value = false; in getBoolean_valid()
242 final boolean result = DeviceConfig.getBoolean(NAMESPACE, KEY, default_value); in getBoolean_valid()
[all …]
/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/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/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()
DrsCppUtils.h201 int property_get(const char *key, char *value, const char *default_value);
/frameworks/native/cmds/installd/
Drun_dex2oat.cpp341 const std::string& default_value) { in GetProperty() argument
342 return android::base::GetProperty(key, default_value); in GetProperty()
345 bool RunDex2Oat::GetBoolProperty(const std::string& key, bool default_value) { in GetBoolProperty() argument
346 return android::base::GetBoolProperty(key, default_value); in GetBoolProperty()
351 const std::string& default_value) { in MapPropertyToArg() argument
352 std::string prop = GetProperty(property, default_value); in MapPropertyToArg()
363 const std::string& default_value) { in MapPropertyToArgWithBackup() argument
364 std::string value = GetProperty(property, default_value); in MapPropertyToArgWithBackup()
368 return MapPropertyToArg(backupProperty, format, default_value); in MapPropertyToArgWithBackup()
Drun_dex2oat.h84 virtual std::string GetProperty(const std::string& key, const std::string& default_value);
85 virtual bool GetBoolProperty(const std::string& key, bool default_value);
93 const std::string& default_value = "");
98 const std::string& default_value = "");
Dotapreopt.cpp159 int GetProperty(const char* key, char* value, const char* default_value) const { in GetProperty()
162 if (default_value == nullptr) { in GetProperty()
166 strlcpy(value, default_value, kPropertyValueMax - 1); in GetProperty()
168 return strlen(default_value);// TODO: Need to truncate? in GetProperty()
598 int get_property(const char *key, char *value, const char *default_value) { in get_property() argument
599 return gOps.GetProperty(key, value, default_value); in get_property()
Dinstalld_deps.h34 const char *default_value);
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()
Drun_dex2oat_test.cpp64 const std::string& default_value) override { in GetProperty() argument
66 return default_value; in GetProperty()
70 return default_value; in GetProperty()
75 virtual bool GetBoolProperty(const std::string& key, bool default_value) override { in GetBoolProperty() argument
78 return default_value; in GetBoolProperty()
/frameworks/av/media/libaudiofoundation/
DAudioGain.cpp46 config->values[0] = mGain.default_value; in getDefaultConfig()
52 config->values[i] = mGain.default_value; in getDefaultConfig()
100 dst->append(base::StringPrintf("%*s- default_value: %d mB\n", spaces, "", mGain.default_value)); in dump()
116 mGain.default_value == other->mGain.default_value && in equals()
/frameworks/libs/binary_translation/tools/nogrod/
Ddwarf_info.h63 [[nodiscard]] uint64_t GetUint64AttributeOr(uint16_t attr_name, uint64_t default_value) const { in GetUint64AttributeOr() argument
64 return GetUint64Attribute(attr_name).value_or(default_value); in GetUint64AttributeOr()
67 [[nodiscard]] bool GetBoolAttributeOr(uint16_t attr_name, bool default_value) const;
Ddwarf_info.cc439 bool DwarfDie::GetBoolAttributeOr(uint16_t attr_name, bool default_value) const { in GetBoolAttributeOr()
448 return default_value; in GetBoolAttributeOr()
/frameworks/av/media/libaudiofoundation/include/media/
DAudioGain.h49 void setDefaultValueInMb(int defaultValue) { mGain.default_value = defaultValue; } in setDefaultValueInMb()
50 int getDefaultValueInMb() const { return mGain.default_value; } in getDefaultValueInMb()
/frameworks/base/tools/aapt2/configuration/
DConfigurationParser.h118 inline int GetMinSdk(int default_value = -1) const {
120 return default_value;
/frameworks/libs/binary_translation/runtime_primitives/include/berberis/runtime_primitives/
Dtable_of_tables.h35 explicit TableOfTables(T default_value) : default_value_(default_value) { in TableOfTables() argument
/frameworks/base/core/proto/android/providers/settings/
Dcommon.proto36 optional string default_value = 5; field
/frameworks/native/cmds/installd/tests/
Dinstalld_cache_test.cpp47 int get_property(const char *key, char *value, const char *default_value) { in get_property() argument
48 return property_get(key, value, default_value); in get_property()
Dinstalld_dexopt_test.cpp58 int get_property(const char *key, char *value, const char *default_value) { in get_property() argument
59 return property_get(key, value, default_value); in get_property()
Dinstalld_service_test.cpp101 int get_property(const char *key, char *value, const char *default_value) { in get_property() argument
102 return property_get(key, value, default_value); in get_property()
/frameworks/av/media/libaudioclient/tests/
Daudio_aidl_legacy_conversion_tests.cpp735 .default_value = 0, in TEST_P()
743 .default_value = 0, in TEST_P()
759 EXPECT_EQ(initial.default_value, convBack.value().default_value); in TEST_P()
/frameworks/av/media/libstagefright/include/media/stagefright/
DVideoRenderQualityTracker.h133 const std::string& default_value);
/frameworks/av/media/audioaidlconversion/
DAidlConversionCppNdk.cpp2723 legacy.default_value = VALUE_OR_RETURN(convertIntegral<int>(aidl.defaultValue)); in aidl2legacy_AudioGain_audio_gain()
2738 aidl.defaultValue = VALUE_OR_RETURN(convertIntegral<int32_t>(legacy.default_value)); in legacy2aidl_audio_gain_AudioGain()

12