Home
last modified time | relevance | path

Searched refs:Value (Results 1 – 25 of 87) sorted by relevance

1234

/packages/apps/Test/connectivity/sl4n/rapidjson/test/unittest/
Dvaluetest.cpp21 TEST(Value, DefaultConstructor) { in TEST() argument
22 Value x; in TEST()
39 TEST(Value, Traits) { in TEST() argument
40 typedef GenericValue<UTF8<>, CrtAllocator> Value; in TEST() typedef
41 static_assert(std::is_constructible<Value>::value, ""); in TEST()
42 static_assert(std::is_default_constructible<Value>::value, ""); in TEST()
44 static_assert(!std::is_copy_constructible<Value>::value, ""); in TEST()
46 static_assert(std::is_move_constructible<Value>::value, ""); in TEST()
49 static_assert(std::is_nothrow_constructible<Value>::value, ""); in TEST()
50 static_assert(std::is_nothrow_default_constructible<Value>::value, ""); in TEST()
[all …]
Dpointertest.cpp534 Pointer q = p.Append(Value("foo").Move()); in TEST()
536 q = q.Append(Value(1234).Move()); in TEST()
538 q = q.Append(Value(kStringType).Move()); in TEST()
570 Value* v = &Pointer("").Create(d, d.GetAllocator()); in TEST()
574 Value* v = &Pointer("/foo").Create(d, d.GetAllocator()); in TEST()
578 Value* v = &Pointer("/foo/0").Create(d, d.GetAllocator()); in TEST()
582 Value* v = &Pointer("/foo/-").Create(d, d.GetAllocator()); in TEST()
587 Value* v = &Pointer("/foo/-/-").Create(d, d.GetAllocator()); in TEST()
596 Value* v = &Pointer("/foo/-").Create(d); in TEST()
602 Value* v = &Pointer("/-").Create(d["foo"], d.GetAllocator()); in TEST()
[all …]
/packages/apps/Dialer/java/com/android/dialer/calllog/model/
Dcoalesced_row.proto16 // Value in column CoalescedAnnotatedCallLog._ID
19 // Value in column CoalescedAnnotatedCallLog.TIMESTAMP
22 // Value in column CoalescedAnnotatedCallLog.NUMBER
25 // Value in column CoalescedAnnotatedCallLog.FORMATTED_NUMBER
28 // Value in column CoalescedAnnotatedCallLog.NUMBER_PRESENTATION
31 // Value in column CoalescedAnnotatedCallLog.IS_READ
34 // Value in column CoalescedAnnotatedCallLog.NEW
37 // Value in column CoalescedAnnotatedCallLog.GEOCODED_LOCATION
40 // Value in column CoalescedAnnotatedCallLog.PHONE_ACCOUNT_COMPONENT_NAME
43 // Value in column CoalescedAnnotatedCallLog.PHONE_ACCOUNT_ID
[all …]
/packages/modules/StatsD/statsd/src/
DFieldValue.cpp128 bool isAttributionUidField(const Field& field, const Value& value) { in isAttributionUidField()
144 Value::Value(const Value& from) { in Value() function in android::os::statsd::Value
170 std::string Value::toString() const { in toString()
189 bool Value::isZero() const { in isZero()
208 bool Value::operator==(const Value& that) const { in operator ==()
229 bool Value::operator!=(const Value& that) const { in operator !=()
249 bool Value::operator<(const Value& that) const { in operator <()
270 bool Value::operator>(const Value& that) const { in operator >()
291 bool Value::operator>=(const Value& that) const { in operator >=()
312 Value Value::operator-(const Value& that) const { in operator -()
[all …]
DFieldValue.h269 struct Value { struct
270 Value() : type(UNKNOWN) {} in Value() function
272 Value(int32_t v) { in Value() function
277 Value(int64_t v) { in Value() argument
282 Value(float v) { in Value() function
287 Value(double v) { in Value() function
292 Value(const std::string& v) { in Value() argument
297 Value(const std::vector<uint8_t>& v) { in Value() function
345 Value(const Value& from); argument
347 bool operator==(const Value& that) const;
[all …]
Dmetadata_util.cpp26 void writeValueToProto(metadata::FieldValue* metadataFieldValue, const Value& value) { in writeValueToProto()
78 Value value; in writeFieldValuesFromMetadata()
81 value = Value(metadataFieldValue.value_int()); in writeFieldValuesFromMetadata()
84 value = Value(metadataFieldValue.value_long()); in writeFieldValuesFromMetadata()
87 value = Value(metadataFieldValue.value_float()); in writeFieldValuesFromMetadata()
90 value = Value(metadataFieldValue.value_double()); in writeFieldValuesFromMetadata()
93 value = Value(metadataFieldValue.value_str()); in writeFieldValuesFromMetadata()
96 value = Value(metadataFieldValue.value_storage()); in writeFieldValuesFromMetadata()
/packages/apps/Dialer/java/com/android/dialer/voicemail/model/
Dvoicemail_entry.proto14 // Value in column AnnotatedCallLog._ID
17 // Value in column AnnotatedCallLog.TIMESTAMP
20 // Value in column AnnotatedCallLog.NUMBER
23 // Value in column AnnotatedCallLog.FORMATTED_NUMBER
26 // Value in column AnnotatedCallLog.GEOCODED_LOCATION
29 // Value in column AnnotatedCallLog.DURATION
32 // Value in column AnnotatedCallLog.TRANSCRIPTION
35 // Value in column AnnotatedCallLog.VOICEMAIL_URI
38 // Value in column AnnotatedCallLog.CALL_TYPE
41 // Value in column AnnotatedCallLog.IS_READ
[all …]
/packages/apps/Test/connectivity/sl4n/rapidjson/doc/
Dtutorial.md9 # Value & Document {#ValueDocument}
11 …ch JSON value is stored in a type called `Value`. A `Document`, representing the DOM, contains the…
13 # Query Value {#QueryValue}
50 Let's query whether a `"hello"` member exists in the root object. Since a `Value` can contain diffe…
103 const Value& a = document["a"];
128 for (Value::ConstValueIterator itr = a.Begin(); itr != a.End(); ++itr)
144 for (Value::ConstMemberIterator itr = document.MemberBegin();
167 Value::ConstMemberIterator itr = document.FindMember("hello");
205 In addition to `GetString()`, the `Value` class also contains `GetStringLength()`. Here explains wh…
247 ## Change Value Type {#ChangeValueType}
[all …]
Dpointer.md47 if (Value* stars = Pointer("/stars").Get(d))
58 Value& hello = Pointer("/hello").GetWithDefault(d, "world");
63 Value x("C++");
88 if (Value* stars = GetValueByPointer(d, "/stars"))
93 Value& hello = GetValueByPointerWithDefault(d, "/hello", "world");
95 Value x("C++");
136 …et the other functions can resolve this for array, equivalent to calling `Value::PushBack()` to th…
145 ## Resolving Document and Value
147 When using `p.Get(root)` or `GetValueByPointer(root, p)`, `root` is a (const) `Value&`. That means,…
149 …ture. One group uses `Document& document` as parameter, another one uses `Value& root`. The first …
[all …]
/packages/modules/Bluetooth/system/audio_hal_interface/fuzzer/
DREADME.md33 | Parameter| Valid Values| Configured Value|
35 …TED` 4.`A2DP_CTRL_ACK_PENDING` 5.`A2DP_CTRL_ACK_DISCONNECT_IN_PROGRESS` | Value obtained from Fuzz…
36 … 6.`BTAV_A2DP_CODEC_INDEX_SINK_AAC` 7.`BTAV_A2DP_CODEC_INDEX_SINK_LDAC` | Value obtained from Fuzz…
37 …FLOAD_DATAPATH` 3.`SessionType::HEARING_AID_SOFTWARE_ENCODING_DATAPATH` | Value obtained from Fuzz…
38 …APATH` 7.`SessionType_2_1::LE_AUDIO_HARDWARE_OFFLOAD_DECODING_DATAPATH` | Value obtained from Fuzz…
39 …Rate::RATE_32000` 5.`SampleRate::RATE_44100` 6.`SampleRate::RATE_48000` | Value obtained from Fuzz…
40 …TE_32000` 5.`SampleRate_2_1::RATE_44100` 6.`SampleRate_2_1::RATE_48000` | Value obtained from Fuzz…
41 …TAV_A2DP_CODEC_SAMPLE_RATE_16000` 8.`BTAV_A2DP_CODEC_SAMPLE_RATE_24000` | Value obtained from Fuzz…
42 …rSample::BITS_16` 2.`BitsPerSample::BITS_24` 3.`BitsPerSample::BITS_32` | Value obtained from Fuzz…
43 …V_A2DP_CODEC_BITS_PER_SAMPLE_24` 3.`BTAV_A2DP_CODEC_BITS_PER_SAMPLE_32` | Value obtained from Fuzz…
[all …]
/packages/services/Car/cpp/watchdog/server/tests/
DUidProcStatsCollectorTestUtils.h30 return ::testing::Value(actual.comm, ::testing::Eq(expected.comm)) &&
31 ::testing::Value(actual.startTimeMillis, ::testing::Eq(expected.startTimeMillis)) &&
32 ::testing::Value(actual.cpuTimeMillis, ::testing::Eq(expected.cpuTimeMillis)) &&
33 ::testing::Value(actual.totalMajorFaults, ::testing::Eq(expected.totalMajorFaults)) &&
34 ::testing::Value(actual.totalTasksCount, ::testing::Eq(expected.totalTasksCount)) &&
35 ::testing::Value(actual.ioBlockedTasksCount,
43 ::testing::Value(actual.second, ProcessStatsEq(expected.second));
48 return ::testing::Value(actual.cpuTimeMillis, ::testing::Eq(expected.cpuTimeMillis)) &&
49 ::testing::Value(actual.totalMajorFaults, ::testing::Eq(expected.totalMajorFaults)) &&
50 ::testing::Value(actual.totalTasksCount, ::testing::Eq(expected.totalTasksCount)) &&
[all …]
DPackageInfoTestUtils.h52 return ::testing::Value(actual.name, ::testing::Eq(expected.name)) &&
53 ::testing::Value(actual.uid, ::testing::Eq(expected.uid));
58 return ::testing::Value(actual.packageIdentifier,
60 ::testing::Value(actual.uidType, ::testing::Eq(expected.uidType)) &&
61 ::testing::Value(actual.sharedUidPackages,
63 ::testing::Value(actual.componentType, ::testing::Eq(expected.componentType)) &&
64 ::testing::Value(actual.appCategoryType, ::testing::Eq(expected.appCategoryType));
/packages/services/Car/cpp/evs/sampleDriver/hidl/
DConfigManager.cpp47 LOG(VERBOSE) << "[ATTR] " << prefix << curAttr->Name() << ": " << curAttr->Value(); in printElementNames()
69 const char *id = curElem->FindAttribute("id")->Value(); in readCameraInfo()
82 const char *sync = curElem->FindAttribute("synchronized")->Value(); in readCameraInfo()
97 const char *id = curElem->FindAttribute("id")->Value(); in readCameraInfo()
100 const char *pos = curElem->FindAttribute("position")->Value(); in readCameraInfo()
177 const char *nameAttr = ctrlElem->FindAttribute("name")->Value();; in readCameraCapabilities()
178 const int32_t minVal = stoi(ctrlElem->FindAttribute("min")->Value()); in readCameraCapabilities()
179 const int32_t maxVal = stoi(ctrlElem->FindAttribute("max")->Value()); in readCameraCapabilities()
184 stepVal = stoi(stepAttr->Value()); in readCameraCapabilities()
210 const int32_t id = stoi(idAttr->Value()); in readCameraCapabilities()
[all …]
/packages/modules/Bluetooth/system/gd/l2cap/
Dsignal_id_test.cc47 ASSERT_TRUE(i == signal_id.Value()); in TEST()
56 ASSERT_TRUE(i == signal_id.Value()); in TEST()
67 ASSERT_EQ(0xff, signal_id.Value()); in TEST()
77 ASSERT_EQ(1, signal_id.Value()); in TEST()
85 ASSERT_TRUE(i == signal_id.Value()); in TEST()
94 ASSERT_TRUE(i == signal_id.Value()); in TEST()
105 ASSERT_EQ(1, signal_id.Value()); in TEST()
115 ASSERT_EQ(0xff, signal_id.Value()); in TEST()
/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/internal/
Dmeta.h44 static const bool Value = Cond; member
58 template <typename C, typename T1, typename T2> struct SelectIf : SelectIfCond<C::Value, T1, T2> {};
67 template <typename C1, typename C2> struct AndExpr : AndExprCond<C1::Value, C2::Value>::Type {};
68 template <typename C1, typename C2> struct OrExpr : OrExprCond<C1::Value, C2::Value>::Type {};
91 BoolType<IsConst<CT>::Value >= IsConst<T>::Value> >::Type {};
122 enum { Value = (sizeof(Check(Host(), 0)) == sizeof(Yes)) };
141 struct EnableIf : EnableIfCond<Condition::Value, T> {};
144 struct DisableIf : DisableIfCond<Condition::Value, T> {};
/packages/services/Car/cpp/evs/support_library/
DConfigManager.cpp39 const Json::Value& parentNode, in readChildNodeAsFloat()
45 Json::Value childNode = parentNode[childName]; in readChildNodeAsFloat()
67 Json::Value rootNode; in initialize()
80 Json::Value car = rootNode["car"]; in initialize()
96 Json::Value displayNode = rootNode["display"]; in initialize()
110 Json::Value graphicNode = rootNode["graphic"]; in initialize()
125 Json::Value cameraArray = rootNode["cameras"]; in initialize()
134 Json::Value nameNode = node.get("cameraId", "MISSING"); in initialize()
137 Json::Value usageNode = node.get("function", ""); in initialize()
/packages/services/Car/cpp/evs/sampleDriver/aidl/src/
DConfigManager.cpp49 LOG(VERBOSE) << "[ATTR] " << prefix << curAttr->Name() << ": " << curAttr->Value(); in printElementNames()
70 const char* id = curElem->FindAttribute("id")->Value(); in readCameraInfo()
83 const char* sync = curElem->FindAttribute("synchronized")->Value(); in readCameraInfo()
96 const char* id = curElem->FindAttribute("id")->Value(); in readCameraInfo()
99 const char* pos = curElem->FindAttribute("position")->Value(); in readCameraInfo()
165 const char* nameAttr = ctrlElem->FindAttribute("name")->Value(); in readCameraCapabilities()
166 const int32_t minVal = std::stoi(ctrlElem->FindAttribute("min")->Value()); in readCameraCapabilities()
167 const int32_t maxVal = std::stoi(ctrlElem->FindAttribute("max")->Value()); in readCameraCapabilities()
172 stepVal = std::stoi(stepAttr->Value()); in readCameraCapabilities()
196 const int32_t id = std::stoi(idAttr->Value()); in readCameraCapabilities()
[all …]
/packages/services/Car/cpp/evs/apps/default/
DConfigManager.cpp35 const Json::Value& parentNode, in readChildNodeAsFloat()
41 Json::Value childNode = parentNode[childName]; in readChildNodeAsFloat()
63 Json::Value rootNode; in initialize()
76 Json::Value car = rootNode["car"]; in initialize()
92 Json::Value displayArray = rootNode["displays"]; in initialize()
115 Json::Value graphicNode = rootNode["graphic"]; in initialize()
130 Json::Value cameraArray = rootNode["cameras"]; in initialize()
139 Json::Value nameNode = node.get("cameraId", "MISSING"); in initialize()
142 Json::Value usageNode = node.get("function", ""); in initialize()
/packages/modules/Bluetooth/system/gd/rust/linux/mgmt/src/bin/btmanagerd/
Dconfig_util.rs2 use serde_json::{Map, Value};
46 serde_json::from_str::<Value>(config.as_str()) in get_log_level_internal()
63 serde_json::from_str::<Value>(config.as_str()) in is_hci_n_enabled_internal()
74 Ok(s) => match serde_json::from_str::<Value>(s.as_str()) { in fix_config_file_format()
98 let mut o = serde_json::from_str::<Value>(config.as_str()).ok()?; in modify_hci_n_enabled_internal()
101 section.as_object_mut()?.insert("enabled".to_string(), Value::Bool(enabled)); in modify_hci_n_enabled_internal()
106 entry_map.insert("enabled".to_string(), Value::Bool(enabled)); in modify_hci_n_enabled_internal()
107 o.as_object_mut()?.insert(hci_interface, Value::Object(entry_map)); in modify_hci_n_enabled_internal()
/packages/apps/Test/connectivity/sl4n/rapidjson/example/tutorial/
Dtutorial.cpp45 Value::MemberIterator hello = document.FindMember("hello"); in main()
68 … const Value& a = document["a"]; // Using a reference for consecutive access is handy and faster. in main()
78 for (Value::ConstValueIterator itr = a.Begin(); itr != a.End(); ++itr) in main()
85 … for (Value::ConstMemberIterator itr = document.MemberBegin(); itr != document.MemberEnd(); ++itr) in main()
102 Value& a = document["a"]; // This time we uses non-const reference. in main()
122 Value author; in main()
/packages/modules/Bluetooth/system/gd/l2cap/classic/internal/
Dsignalling_manager.cc250 … command_just_sent_.signal_id_.Value(), CommandCodeText(command_just_sent_.command_code_).data(), in OnConnectionResponse()
251 signal_id.Value()); in OnConnectionResponse()
350 … ConfigurationResponseBuilder::Create(signal_id.Value(), channel->GetRemoteCid(), is_continuation, in OnConfigurationRequest()
381 …auto response = ConfigurationResponseBuilder::Create(signal_id.Value(), channel->GetRemoteCid(), i… in OnConfigurationRequest()
501 … command_just_sent_.signal_id_.Value(), CommandCodeText(command_just_sent_.command_code_).data(), in OnConfigurationResponse()
502 signal_id.Value()); in OnConfigurationResponse()
597 auto builder = DisconnectionResponseBuilder::Create(signal_id.Value(), cid, remote_cid); in OnDisconnectionRequest()
612 … command_just_sent_.signal_id_.Value(), CommandCodeText(command_just_sent_.command_code_).data(), in OnDisconnectionResponse()
613 signal_id.Value()); in OnDisconnectionResponse()
640 auto builder = EchoResponseBuilder::Create(signal_id.Value(), std::move(raw_builder)); in OnEchoRequest()
[all …]
/packages/modules/StatsD/statsd/src/metrics/
DNumericValueMetricProducer.cpp60 const Value ZERO_LONG((int64_t)0);
61 const Value ZERO_DOUBLE(0.0);
107 for (optional<Value>& base : dimInfo.dimExtras) { in resetBase()
115 const int aggIndex, const Value& value, ProtoOutputStream* const protoOutput) const { in writePastBucketAggregateToProto()
355 bool getDoubleOrLong(const LogEvent& event, const Matcher& matcher, Value& ret) { in getDoubleOrLong()
402 optional<Value>& base = bases[i]; in aggregateFields()
403 Value value; in aggregateFields()
427 Value diff; in aggregateFields()
506 PastBucket<Value> NumericValueMetricProducer::buildPartialBucket(int64_t bucketEndTimeNs, in buildPartialBucket()
508 PastBucket<Value> bucket; in buildPartialBucket()
[all …]
/packages/modules/Virtualization/microdroid/payload/
Dmk_payload.cc100 Result<void> ParseJson(const Json::Value& value, std::string& s) { in ParseJson()
109 Result<void> ParseJson(const Json::Value& value, std::optional<T>& s) { in ParseJson()
119 Result<void> ParseJson(const Json::Value& values, std::vector<T>& parsed) { in ParseJson()
120 for (const Json::Value& value : values) { in ParseJson()
128 Result<void> ParseJson(const Json::Value& value, ApexConfig& apex_config) { in ParseJson()
134 Result<void> ParseJson(const Json::Value& value, ApkConfig& apk_config) { in ParseJson()
141 Result<void> ParseJson(const Json::Value& value, Config& config) { in ParseJson()
151 Json::Value root; in LoadConfig()
/packages/modules/StatsD/statsd/tests/
DFieldValue_test.cpp243 Value value1((int32_t)10025); in TEST()
244 Value value2("tag"); in TEST()
246 Value value11((int32_t)10026); in TEST()
247 Value value22("tag2"); in TEST()
408 Value value1((int32_t)1); in TEST()
409 Value value2("string2"); in TEST()
410 Value value3((int32_t)3); in TEST()
411 Value value4("string4"); in TEST()
412 Value value5((float)5.0); in TEST()
456 Value value1((int32_t)10025); in TEST()
[all …]
/packages/modules/StatsD/statsd/src/logd/
DLogEvent.cpp55 mValues.push_back(FieldValue(Field(mTagId, getSimpleField(1)), Value(trainName))); in LogEvent()
56 mValues.push_back(FieldValue(Field(mTagId, getSimpleField(2)), Value(trainVersionCode))); in LogEvent()
57 mValues.push_back(FieldValue(Field(mTagId, getSimpleField(3)), Value((int)requiresStaging))); in LogEvent()
58 mValues.push_back(FieldValue(Field(mTagId, getSimpleField(4)), Value((int)rollbackEnabled))); in LogEvent()
60 FieldValue(Field(mTagId, getSimpleField(5)), Value((int)requiresLowLatencyMonitor))); in LogEvent()
61 mValues.push_back(FieldValue(Field(mTagId, getSimpleField(6)), Value(state))); in LogEvent()
62 mValues.push_back(FieldValue(Field(mTagId, getSimpleField(7)), Value(experimentIds))); in LogEvent()
63 mValues.push_back(FieldValue(Field(mTagId, getSimpleField(8)), Value(userId))); in LogEvent()
73 FieldValue(Field(mTagId, getSimpleField(1)), Value(trainInfo.trainVersionCode))); in LogEvent()
76 mValues.push_back(FieldValue(Field(mTagId, getSimpleField(2)), Value(experimentIdsProto))); in LogEvent()
[all …]

1234