Home
last modified time | relevance | path

Searched refs:str_value (Results 1 – 25 of 42) sorted by relevance

12

/aosp12/packages/modules/StatsD/statsd/src/
H A DFieldValue.cpp156 str_value = from.str_value; in Value()
177 return str_value + "[S]"; in toString()
196 return str_value.size() == 0; in isZero()
217 return str_value == that.str_value; in operator ==()
237 return str_value != that.str_value; in operator !=()
258 return str_value < that.str_value; in operator <()
279 return str_value > that.str_value; in operator >()
300 return str_value >= that.str_value; in operator >=()
359 str_value = that.str_value; in operator =()
H A Dstats_log_util.cpp139 dim.mValue.str_value); in writeDimensionToProtoHelper()
141 str_set->insert(dim.mValue.str_value); in writeDimensionToProtoHelper()
144 (long long)Hash64(dim.mValue.str_value)); in writeDimensionToProtoHelper()
206 dim.mValue.str_value); in writeDimensionLeafToProtoHelper()
208 str_set->insert(dim.mValue.str_value); in writeDimensionLeafToProtoHelper()
211 (long long)Hash64(dim.mValue.str_value)); in writeDimensionLeafToProtoHelper()
365 protoOutput->write(FIELD_TYPE_STRING | fieldNum, dim.mValue.str_value); in writeFieldValueTreeToStreamHelper()
/aosp12/system/update_engine/common/
H A Dprefs.cc70 string str_value; in GetInt64() local
71 if (!GetString(key, &str_value)) in GetInt64()
73 base::TrimWhitespaceASCII(str_value, base::TRIM_ALL, &str_value); in GetInt64()
74 TEST_AND_RETURN_FALSE(base::StringToInt64(str_value, value)); in GetInt64()
83 string str_value; in GetBoolean() local
84 if (!GetString(key, &str_value)) in GetBoolean()
86 base::TrimWhitespaceASCII(str_value, base::TRIM_ALL, &str_value); in GetBoolean()
87 if (str_value == "false") { in GetBoolean()
91 if (str_value == "true") { in GetBoolean()
/aosp12/packages/modules/StatsD/statsd/tests/external/
H A Dpuller_util_test.cpp250 EXPECT_EQ("tag1", actualFieldValues->at(1).mValue.str_value); in TEST()
252 EXPECT_EQ("tag2", actualFieldValues->at(3).mValue.str_value); in TEST()
281 EXPECT_EQ("tag1", actualFieldValues->at(1).mValue.str_value); in TEST()
283 EXPECT_EQ("tag2", actualFieldValues->at(3).mValue.str_value); in TEST()
290 EXPECT_EQ("tag1", actualFieldValues->at(1).mValue.str_value); in TEST()
292 EXPECT_EQ("tag2", actualFieldValues->at(3).mValue.str_value); in TEST()
317 EXPECT_EQ("tag1", actualFieldValues->at(1).mValue.str_value); in TEST()
319 EXPECT_EQ("tag2", actualFieldValues->at(3).mValue.str_value); in TEST()
326 EXPECT_EQ("tag1", actualFieldValues->at(1).mValue.str_value); in TEST()
328 EXPECT_EQ("tag2", actualFieldValues->at(3).mValue.str_value); in TEST()
[all …]
/aosp12/system/extras/simpleperf/
H A Dcommand_test.cpp102 ASSERT_EQ(*values[0].str_value, "str1"); in TEST()
103 ASSERT_EQ(*values[1].str_value, "str1_2"); in TEST()
109 ASSERT_TRUE(values[0].str_value == nullptr); in TEST()
110 ASSERT_EQ(*values[1].str_value, "opt_str"); in TEST()
124 ASSERT_EQ(*(ordered_options[0].second.str_value), "str1"); in TEST()
128 ASSERT_EQ(*(ordered_options[2].second.str_value), "str2"); in TEST()
H A DRecordFilter.cpp28 if (auto pids = GetTidsFromString(*value.str_value, false); pids) { in ParseOptions()
35 if (auto tids = GetTidsFromString(*value.str_value, false); tids) { in ParseOptions()
42 AddProcessNameRegex(*value.str_value, exclude); in ParseOptions()
45 AddThreadNameRegex(*value.str_value, exclude); in ParseOptions()
48 if (auto uids = ParseUintVector<uid_t>(*value.str_value); uids) { in ParseOptions()
H A Dcmd_report.cpp548 std::vector<std::string> strs = Split(*value.str_value, ","); in ParseOptions()
552 if (auto cpus = GetCpusFromString(*value.str_value); cpus) { in ParseOptions()
560 std::vector<std::string> strs = Split(*value.str_value, ","); in ParseOptions()
568 if (value->str_value != nullptr) { in ParseOptions()
569 if (*value->str_value == "callee") { in ParseOptions()
571 } else if (*value->str_value == "caller") { in ParseOptions()
605 if (auto pids = GetTidsFromString(*value.str_value, false); pids) { in ParseOptions()
622 sort_keys = Split(*value->str_value, ","); in ParseOptions()
626 std::vector<std::string> symbols = Split(*value.str_value, ";"); in ParseOptions()
631 if (!Dso::SetSymFsDir(*value->str_value)) { in ParseOptions()
[all …]
H A Dcmd_stat.cpp633 app_package_name_ = *value->str_value; in ParseOptions()
636 if (auto cpus = GetCpusFromString(*value->str_value); cpus) { in ParseOptions()
654 for (const auto& event_type : Split(*value.str_value, ",")) { in ParseOptions()
662 if (!event_selection_set_.AddEventGroup(Split(*value.str_value, ","))) { in ParseOptions()
671 output_filename_ = *value->str_value; in ParseOptions()
681 if (auto pids = GetTidsFromString(*value.str_value, true); pids) { in ParseOptions()
689 sort_keys_ = Split(*value->str_value, ","); in ParseOptions()
697 if (auto tids = GetTidsFromString(*value.str_value, true); tids) { in ParseOptions()
705 if (!EventTypeManager::Instance().ReadTracepointsFromFile(*value->str_value)) { in ParseOptions()
H A Dcmd_record.cpp806 const std::string& s = *value.str_value; in ParseOptions()
816 auto filters = ParseAddrFilterOption(*value->str_value); in ParseOptions()
824 app_package_name_ = *value->str_value; in ParseOptions()
846 clockid_ = *value->str_value; in ParseOptions()
860 if (auto cpus = GetCpusFromString(*value->str_value); cpus) { in ParseOptions()
904 std::vector<std::string> cmds = android::base::Split(*value.str_value, ","); in ParseOptions()
929 record_filename_ = *value->str_value; in ParseOptions()
937 if (auto pids = GetTidsFromString(*value.str_value, true); pids) { in ParseOptions()
970 if (!Dso::SetSymFsDir(*value->str_value)) { in ParseOptions()
976 if (auto tids = GetTidsFromString(*value.str_value, true); tids) { in ParseOptions()
[all …]
H A Dcommand.h68 const std::string* str_value; member
106 CHECK(option_value->str_value != nullptr); in PullStringValue()
107 *value = *option_value->str_value; in PullStringValue()
H A Dcmd_api.cpp113 app_name_ = *value->str_value; in ParseOptions()
118 output_filepath_ = *value->str_value; in ParseOptions()
H A Dcmd_inject.cpp179 binary_name_regex_ = *value->str_value; in ParseOptions()
182 if (!ParseEtmDumpOption(*value->str_value, &etm_dump_option_)) { in ParseOptions()
190 const std::string& output = *value->str_value; in ParseOptions()
201 if (!Dso::AddSymbolDir(*value->str_value)) { in ParseOptions()
H A Dcommand.cpp78 value.str_value = &args[++i]; in PreprocessOptions()
82 value.str_value = &args[++i]; in PreprocessOptions()
/aosp12/hardware/qcom/audio/hal/voice_extn/
H A Dvoice_extn.c461 char str_value[256] = {0}; in voice_extn_set_parameters() local
490 err = str_parms_get_str(parms, AUDIO_PARAMETER_KEY_DEVICE_MUTE, str_value, in voice_extn_set_parameters()
491 sizeof(str_value)); in voice_extn_set_parameters()
496 if (!strncmp("true", str_value, sizeof("true"))) { in voice_extn_set_parameters()
500 err = str_parms_get_str(parms, AUDIO_PARAMETER_KEY_DIRECTION, str_value, in voice_extn_set_parameters()
501 sizeof(str_value)); in voice_extn_set_parameters()
510 ret = platform_set_device_mute(adev->platform, mute, str_value); in voice_extn_set_parameters()
/aosp12/art/openjdkjvmti/
H A Dti_search.cc147 std::string str_value; in Update() local
156 str_value = self->DecodeJObject(old_value.get())->AsString()->ToModifiedUtf8(); in Update()
162 if (!str_value.empty()) { in Update()
163 str_value += ":"; in Update()
165 str_value += segment; in Update()
173 art::mirror::String::AllocFromModifiedUtf8(self, str_value.c_str()); in Update()
/aosp12/hardware/samsung/nfc/halimpl/src/
H A Dconfig.cpp134 const char* str_value() const { return m_str_value.c_str(); } in str_value() function in CNfcParam
501 memcpy(pValue, pParam->str_value(), pParam->str_len()); in getValue()
515 memcpy(pValue, pParam->str_value(), pParam->str_len()); in getValue()
604 ALOGD("%s found %s=%s\n", __func__, p_name, (*it)->str_value()); in _find()
623 ALOGD("%s found %s=%s\n", __func__, p_name, (*it)->str_value()); in find()
813 const unsigned char* p = (const unsigned char*)pParam->str_value(); in GetNumValue()
/aosp12/hardware/st/nfc/st21nfc/adaptation/
H A Dconfig.cpp50 const char* str_value() const { return m_str_value.c_str(); } in str_value() function in CNfcParam
427 memcpy(pValue, pParam->str_value(), len); in getValue()
449 memcpy(pValue, pParam->str_value(), pParam->str_len()); in getValue()
517 STLOG_HAL_D("%s found %s=%s\n", __func__, p_name, (*it)->str_value()); in find()
708 const unsigned char* p = (const unsigned char*)pParam->str_value(); in GetNumValue()
/aosp12/hardware/nxp/nfc/snxxx/halimpl/utils/
H A DphNxpConfig.cc127 const char* str_value() const { return m_str_value.c_str(); } in str_value() function in CNfcParam
532 memcpy(pValue, pParam->str_value(), pParam->str_len()); in getValue()
546 memcpy(pValue, pParam->str_value(), pParam->str_len()); in getValue()
617 (*it)->str_value()); in find()
721 ALOGD("%s %s \t= %s", __func__, (*it)->c_str(), (*it)->str_value()); in dump()
1003 const unsigned char* p = (const unsigned char*)pParam->str_value(); in GetNxpNumValue()
/aosp12/hardware/nxp/nfc/pn8x/halimpl/utils/
H A DphNxpConfig.cpp115 const char* str_value() const { return m_str_value.c_str(); } in str_value() function in CNfcParam
495 memcpy(pValue, pParam->str_value(), pParam->str_len()); in getValue()
509 memcpy(pValue, pParam->str_value(), pParam->str_len()); in getValue()
580 (*it)->str_value()); in find()
802 const unsigned char* p = (const unsigned char*)pParam->str_value(); in GetNxpNumValue()
/aosp12/hardware/st/nfc/1.0/adaptation/
H A Dconfig.cpp49 const char* str_value() const { return m_str_value.c_str(); } in str_value() function in CNfcParam
396 memcpy(pValue, pParam->str_value(), len); in getValue()
461 STLOG_HAL_D("%s found %s=%s\n", __func__, p_name, (*it)->str_value()); in find()
628 const unsigned char* p = (const unsigned char*)pParam->str_value(); in GetNumValue()
/aosp12/packages/modules/StatsD/statsd/src/matchers/
H A Dmatcher_util.cpp95 return fieldValue.mValue.str_value == str_match; in tryMatchString()
241 for (const auto& str : str_list.str_value()) { in matchesSimple()
256 for (const auto& str : str_list.str_value()) { in matchesSimple()
/aosp12/packages/modules/StatsD/statsd/tests/
H A DFieldValue_test.cpp135 EXPECT_EQ("location1", output.getValues()[1].mValue.str_value); in TEST()
140 EXPECT_EQ("location2", output.getValues()[3].mValue.str_value); in TEST()
145 EXPECT_EQ("location3", output.getValues()[5].mValue.str_value); in TEST()
148 EXPECT_EQ("some value", output.getValues()[6].mValue.str_value); in TEST()
353 value1.int_value, value2.str_value); in TEST()
356 value3.int_value, value4.str_value); in TEST()
H A DLogEvent_test.cpp156 EXPECT_EQ(str, stringItem.mValue.str_value); in TEST()
193 EXPECT_EQ(empty, item.mValue.str_value); in TEST()
270 EXPECT_EQ(tag1, tag1Item.mValue.str_value); in TEST()
283 EXPECT_EQ(tag2, tag2Item.mValue.str_value); in TEST()
/aosp12/system/extras/simpleperf/scripts/
H A Dpprof_proto_generator.py359 def get_string_id(self, str_value): argument
360 if not str_value:
362 str_id = self.string_table.get(str_value)
366 self.string_table[str_value] = str_id
367 self.profile.string_table.append(str_value)
/aosp12/hardware/knowles/athletico/sound_trigger_hal/
H A Dsound_trigger_intf.h148 char str_value[ST_EVENT_CONFIG_MAX_STR_VALUE]; member

12