Home
last modified time | relevance | path

Searched refs:list_value (Results 1 – 25 of 62) sorted by relevance

123

/external/tensorflow/tensorflow/python/saved_model/
Dnested_structure_coder_test.py44 expected.list_value.values.add().float64_value = 1.5
45 expected.list_value.values.add().float64_value = 2.5
46 expected.list_value.values.add().float64_value = 3.0
57 list_value = expected.tuple_value.values.add().list_value
58 list_value.values.add().int64_value = 3
59 tuple_value = list_value.values.add().tuple_value
72 list_value = expected.dict_value.fields["b"].list_value
73 list_value.values.add().int64_value = 7
74 list_value.values.add().float64_value = 2.5
85 expected_list = expected.list_value
[all …]
/external/angle/build/gn_ast/
Djni_refactor.py31 processors = assignment.list_value.literals
80 list_value = assignment.list_value
81 for value in list(list_value.literals):
83 list_value.remove_literal(value)
84 list_value.add_literal(':*')
98 srcjar_deps.list_value.add_literal(f':{jni_target.name}')
101 processors = processor_assignment.list_value.literals
105 processor_assignment.list_value.remove_literal(_PROCESSOR_DEP)
/external/libchrome/dbus/
Dvalues_util_unittest.cc201 std::unique_ptr<base::ListValue> list_value(new base::ListValue); in TEST() local
203 list_value->AppendInteger(data[i]); in TEST()
209 EXPECT_TRUE(value->Equals(list_value.get())); in TEST()
224 std::unique_ptr<base::ListValue> list_value(new base::ListValue); in TEST() local
226 list_value->AppendString(data[i]); in TEST()
232 EXPECT_TRUE(value->Equals(list_value.get())); in TEST()
252 base::ListValue list_value; in TEST() local
253 list_value.AppendBoolean(kBoolValue); in TEST()
254 list_value.AppendInteger(kInt32Value); in TEST()
255 list_value.AppendDouble(kDoubleValue); in TEST()
[all …]
Dvalues_util.cc26 bool PopListElements(MessageReader* reader, base::ListValue* list_value) { in PopListElements() argument
31 list_value->Append(std::move(element_value)); in PopListElements()
187 std::unique_ptr<base::ListValue> list_value(new base::ListValue); in PopDataAsValue() local
188 if (PopListElements(&sub_reader, list_value.get())) in PopDataAsValue()
189 result = std::move(list_value); in PopDataAsValue()
197 std::unique_ptr<base::ListValue> list_value(new base::ListValue); in PopDataAsValue() local
198 if (PopListElements(&sub_reader, list_value.get())) in PopDataAsValue()
199 result = std::move(list_value); in PopDataAsValue()
/external/libchrome/base/trace_event/
Dtrace_event_argument_unittest.cc111 auto list_value = WrapUnique(new ListValue); in TEST() local
112 list_value->AppendBoolean(false); in TEST()
113 list_value->AppendInteger(1); in TEST()
114 list_value->AppendString("in_list"); in TEST()
115 list_value->Append(std::move(dict_value)); in TEST()
119 value->SetValue("inner_list", std::move(list_value)); in TEST()
123 list_value.reset(); in TEST()
Dtrace_event_memory_overhead.cc129 const ListValue* list_value = nullptr; in AddValue() local
130 value.GetAsList(&list_value); in AddValue()
132 for (const auto& v : *list_value) in AddValue()
Dtrace_event_argument.cc291 const ListValue* list_value; in SetBaseValueWithCopiedName() local
292 value.GetAsList(&list_value); in SetBaseValueWithCopiedName()
294 for (const auto& base_value : *list_value) in SetBaseValueWithCopiedName()
345 const ListValue* list_value; in AppendBaseValue() local
346 value.GetAsList(&list_value); in AppendBaseValue()
348 for (const auto& base_value : *list_value) in AppendBaseValue()
/external/protobuf/ruby/lib/google/protobuf/
Dwell_known_types.rb123 self.list_value.to_a
125 self.list_value
161 self.list_value = value
163 self.list_value = ListValue.from_a(value)
/external/cronet/third_party/protobuf/ruby/lib/google/protobuf/
Dwell_known_types.rb123 self.list_value.to_a
125 self.list_value
161 self.list_value = value
163 self.list_value = ListValue.from_a(value)
/external/libbrillo/policy/tests/
Dlibpolicy_test.cc66 std::vector<std::string> list_value; in TEST() local
67 ASSERT_TRUE(policy.GetUserWhitelist(&list_value)); in TEST()
68 ASSERT_EQ(3, list_value.size()); in TEST()
69 EXPECT_EQ("me@here.com", list_value[0]); in TEST()
70 EXPECT_EQ("you@there.com", list_value[1]); in TEST()
71 EXPECT_EQ("*@monsters.com", list_value[2]); in TEST()
224 std::vector<std::string> list_value; in TEST() local
231 EXPECT_FALSE(policy.GetUserWhitelist(&list_value)); in TEST()
/external/libchrome/components/json_schema/
Djson_schema_validator.cc105 const base::ListValue* list_value = nullptr; in IsValidSchema() local
121 it.value().GetAsList(&list_value); in IsValidSchema()
122 for (size_t i = 0; i < list_value->GetSize(); ++i) { in IsValidSchema()
123 if (!list_value->GetString(i, &string_value) || in IsValidSchema()
145 } else if (it.value().GetAsList(&list_value)) { in IsValidSchema()
146 for (size_t i = 0; i < list_value->GetSize(); ++i) { in IsValidSchema()
147 if (!list_value->GetDictionary(i, &dictionary_value)) { in IsValidSchema()
242 it.value().GetAsList(&list_value); in IsValidSchema()
243 for (const base::Value& value : *list_value) { in IsValidSchema()
255 it.value().GetAsList(&list_value); in IsValidSchema()
[all …]
/external/libchrome/base/test/
Dvalues_test_util.cc44 const ListValue* list_value = nullptr; in ExpectDictListValue() local
45 EXPECT_TRUE(value.GetList(key, &list_value)) << key; in ExpectDictListValue()
46 EXPECT_EQ(expected_value, *list_value) << key; in ExpectDictListValue()
/external/rust/crates/protobuf/2.27.1/src/well_known_types/
Dstruct_pb.rs205 list_value(ListValue), enumerator
391 ::std::option::Option::Some(Value_oneof_kind::list_value(ref v)) => v, in get_list_value()
401 ::std::option::Option::Some(Value_oneof_kind::list_value(..)) => true, in has_list_value()
408 self.kind = ::std::option::Option::Some(Value_oneof_kind::list_value(v)) in set_list_value()
413 if let ::std::option::Option::Some(Value_oneof_kind::list_value(_)) = self.kind { in mut_list_value()
415 self.kind = ::std::option::Option::Some(Value_oneof_kind::list_value(ListValue::new())); in mut_list_value()
418 ::std::option::Option::Some(Value_oneof_kind::list_value(ref mut v)) => v, in mut_list_value()
427 ::std::option::Option::Some(Value_oneof_kind::list_value(v)) => v, in take_list_value()
443 if let Some(Value_oneof_kind::list_value(ref v)) = self.kind { in is_initialized()
489 … self.kind = ::std::option::Option::Some(Value_oneof_kind::list_value(is.read_message()?)); in merge_from()
[all …]
/external/cronet/components/metrics/
Dunsent_log_store.cc56 explicit LogsPrefWriter(base::Value::List* list_value) in LogsPrefWriter() argument
57 : list_value_(list_value) { in LogsPrefWriter()
58 DCHECK(list_value); in LogsPrefWriter()
59 list_value->clear(); in LogsPrefWriter()
436 void UnsentLogStore::ReadLogsFromPrefList(const base::Value::List& list_value) { in ReadLogsFromPrefList() argument
442 if (list_value.empty()) { in ReadLogsFromPrefList()
447 const size_t log_count = list_value.size(); in ReadLogsFromPrefList()
452 const base::Value::Dict* dict = list_value[i].GetIfDict(); in ReadLogsFromPrefList()
/external/cronet/third_party/protobuf/python/google/protobuf/internal/
Dwell_known_types.py748 struct_value.list_value.Clear()
749 struct_value.list_value.extend(value)
767 return struct_value.list_value
808 self.fields[key].list_value.Clear()
809 return self.fields[key].list_value
863 list_value = self.values.add().list_value
865 list_value.Clear()
866 return list_value
Dmessage_factory_test.py66 msg.factory_1_message.list_value.extend([u'one', u'two', u'three'])
67 msg.factory_1_message.list_value.append(u'four')
75 msg.list_value.extend([u'four', u'three', u'two'])
76 msg.list_value.append(u'one')
/external/protobuf/python/google/protobuf/internal/
Dwell_known_types.py748 struct_value.list_value.Clear()
749 struct_value.list_value.extend(value)
767 return struct_value.list_value
808 self.fields[key].list_value.Clear()
809 return self.fields[key].list_value
863 list_value = self.values.add().list_value
865 list_value.Clear()
866 return list_value
Dmessage_factory_test.py66 msg.factory_1_message.list_value.extend([u'one', u'two', u'three'])
67 msg.factory_1_message.list_value.append(u'four')
75 msg.list_value.extend([u'four', u'three', u'two'])
76 msg.list_value.append(u'one')
/external/cronet/third_party/protobuf/src/google/protobuf/
Dstruct.pb.cc403 static const ::PROTOBUF_NAMESPACE_ID::ListValue& list_value(const Value* msg);
411 Value::_Internal::list_value(const Value* msg) { in list_value() function in Value::_Internal
429 void Value::set_allocated_list_value(::PROTOBUF_NAMESPACE_ID::ListValue* list_value) { in set_allocated_list_value() argument
432 if (list_value) { in set_allocated_list_value()
434 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(list_value); in set_allocated_list_value()
436 list_value = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( in set_allocated_list_value()
437 message_arena, list_value, submessage_arena); in set_allocated_list_value()
440 kind_.list_value_ = list_value; in set_allocated_list_value()
684 InternalWriteMessage(6, _Internal::list_value(this), in _InternalSerialize()
685 _Internal::list_value(this).GetCachedSize(), target, stream); in _InternalSerialize()
/external/protobuf/src/google/protobuf/
Dstruct.pb.cc415 static const ::PROTOBUF_NAMESPACE_ID::ListValue& list_value(const Value* msg);
423 Value::_Internal::list_value(const Value* msg) { in list_value() function in Value::_Internal
441 void Value::set_allocated_list_value(::PROTOBUF_NAMESPACE_ID::ListValue* list_value) { in set_allocated_list_value() argument
444 if (list_value) { in set_allocated_list_value()
446 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(list_value); in set_allocated_list_value()
448 list_value = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( in set_allocated_list_value()
449 message_arena, list_value, submessage_arena); in set_allocated_list_value()
452 _impl_.kind_.list_value_ = list_value; in set_allocated_list_value()
712 InternalWriteMessage(6, _Internal::list_value(this), in _InternalSerialize()
713 _Internal::list_value(this).GetCachedSize(), target, stream); in _InternalSerialize()
/external/cronet/ipc/
Dipc_message_utils_unittest.cc256 base::Value::List list_value; in TEST() local
257 list_value.Append(42); in TEST()
258 list_value.Append(84); in TEST()
261 ParamTraits<base::Value::List>::Write(&message, list_value); in TEST()
267 EXPECT_EQ(list_value, read_value); in TEST()
/external/protobuf/ruby/tests/
Dwell_known_types_test.rb174 'x' => {list_value: {values: [{number_value: 1.0}, {string_value: "ok"}]}},
242 assert_equal pb.list_value, Google::Protobuf::ListValue.from_a([1, 2, 3])
245 assert_equal pb.list_value, Google::Protobuf::ListValue.from_a([1, 2, 3])
/external/libchrome/components/policy/core/common/
Dpolicy_proto_decoders.cc80 auto list_value = std::make_unique<base::ListValue>(); in DecodeStringListProto() local
82 list_value->AppendString(entry); in DecodeStringListProto()
83 return std::move(list_value); in DecodeStringListProto()
/external/cronet/third_party/protobuf/ruby/tests/
Dwell_known_types_test.rb174 'x' => {list_value: {values: [{number_value: 1.0}, {string_value: "ok"}]}},
242 assert_equal pb.list_value, Google::Protobuf::ListValue.from_a([1, 2, 3])
245 assert_equal pb.list_value, Google::Protobuf::ListValue.from_a([1, 2, 3])
/external/cronet/components/prefs/
Dpref_member.cc221 base::Value::List list_value; in UpdatePref() local
223 list_value.Append(val); in UpdatePref()
225 prefs()->SetList(pref_name(), std::move(list_value)); in UpdatePref()

123