Home
last modified time | relevance | path

Searched refs:dict_value (Results 1 – 22 of 22) sorted by relevance

/external/libchrome/base/trace_event/
Dtrace_event_argument_unittest.cc104 auto dict_value = WrapUnique(new DictionaryValue); in TEST() local
105 dict_value->SetBoolean("bool", true); in TEST()
106 dict_value->SetInteger("int", 42); in TEST()
107 dict_value->SetDouble("double", 42.0f); in TEST()
108 dict_value->SetString("string", std::string("a") + "b"); in TEST()
109 dict_value->SetString("string", std::string("a") + "b"); in TEST()
115 list_value->Append(std::move(dict_value)); in TEST()
122 dict_value.reset(); in TEST()
134 auto dict_value = std::make_unique<TracedValue>(); in TEST() local
135 dict_value->SetInteger("a", 1); in TEST()
[all …]
Dtrace_event_argument.cc280 const DictionaryValue* dict_value; in SetBaseValueWithCopiedName() local
281 value.GetAsDictionary(&dict_value); in SetBaseValueWithCopiedName()
283 for (DictionaryValue::Iterator it(*dict_value); !it.IsAtEnd(); in SetBaseValueWithCopiedName()
334 const DictionaryValue* dict_value; in AppendBaseValue() local
335 value.GetAsDictionary(&dict_value); in AppendBaseValue()
337 for (DictionaryValue::Iterator it(*dict_value); !it.IsAtEnd(); in AppendBaseValue()
/external/libchrome/base/test/
Dvalues_test_util.cc28 const DictionaryValue* dict_value = nullptr; in ExpectDictDictionaryValue() local
29 EXPECT_TRUE(value.GetDictionary(key, &dict_value)) << key; in ExpectDictDictionaryValue()
30 EXPECT_EQ(expected_value, *dict_value) << key; in ExpectDictDictionaryValue()
/external/autotest/client/cros/enterprise/
Dtest_policy.py27 dict_value = {'scope': 'testScope', 'source': 'testSource', variable in test_policyManager
75 test_policydict = copy.deepcopy(self.dict_value)
104 test_policy.set_policy_from_dict(self.dict_value)
108 test_policy2.set_policy_from_dict(self.dict_value)
/external/libchrome/components/policy/core/common/
Dpolicy_test_utils.cc95 const base::DictionaryValue* dict_value; in ValueToProperty() local
96 if (value.GetAsDictionary(&dict_value)) { in ValueToProperty()
99 kCFAllocatorDefault, dict_value->size(), in ValueToProperty()
101 for (base::DictionaryValue::Iterator iterator(*dict_value); in ValueToProperty()
Dschema_unittest.cc844 std::unique_ptr<base::DictionaryValue> dict_value( in TEST() local
846 dict_value->SetBoolean("three", true); in TEST()
847 root.Append(std::move(dict_value)); in TEST()
857 dict_value.reset(new base::DictionaryValue()); in TEST()
858 dict_value->SetBoolean("two", true); in TEST()
859 root.Append(std::move(dict_value)); in TEST()
902 auto dict_value = std::make_unique<base::DictionaryValue>(); in TEST() local
904 dict_value->SetList("List", std::make_unique<base::ListValue>()); in TEST()
905 root.Append(std::move(dict_value)); in TEST()
/external/cronet/net/cert/
Dct_log_response_parser.cc116 const base::Value::Dict* dict_value = json_consistency_proof.GetIfDict(); in FillConsistencyProof() local
117 if (!dict_value || !dict_value->Find("consistency")) { in FillConsistencyProof()
/external/cronet/ipc/
Dipc_message_utils_unittest.cc237 base::Value::Dict dict_value; in TEST() local
238 dict_value.Set("path1", 42); in TEST()
239 dict_value.Set("path2", 84); in TEST()
243 dict_value.Set("path3", std::move(subvalue)); in TEST()
246 ParamTraits<base::Value::Dict>::Write(&message, dict_value); in TEST()
252 EXPECT_EQ(dict_value, read_value); in TEST()
/external/cronet/base/trace_event/
Dtraced_value_unittest.cc234 auto dict_value = std::make_unique<TracedValue>(); in TEST() local
235 dict_value->SetInteger("a", 1); in TEST()
243 dict_value->SetValue("e", nested_dict_value.get()); in TEST()
247 dict_value->AppendAsTraceFormat(&json); in TEST()
/external/cronet/components/metrics/
Dunsent_log_store.cc71 base::Value::Dict dict_value; in WriteLogEntry() local
72 dict_value.Set(kLogHashKey, EncodeToBase64(log->hash)); in WriteLogEntry()
73 dict_value.Set(kLogSignatureKey, EncodeToBase64(log->signature)); in WriteLogEntry()
74 dict_value.Set(kLogDataKey, EncodeToBase64(log->compressed_log_data)); in WriteLogEntry()
75 dict_value.Set(kLogTimestampKey, log->timestamp); in WriteLogEntry()
79 dict_value.Set(kLogUserIdKey, in WriteLogEntry()
82 list_value_->Append(std::move(dict_value)); in WriteLogEntry()
/external/tensorflow/tensorflow/python/saved_model/
Dnested_structure_coder.py202 def do_encode(self, dict_value, encode_fn): argument
204 encoded_dict.dict_value.CopyFrom(struct_pb2.DictValue())
205 for key, value in dict_value.items():
206 encoded_dict.dict_value.fields[key].CopyFrom(encode_fn(value))
213 return {key: decode_fn(val) for key, val in value.dict_value.fields.items()}
Dnested_structure_coder_test.py71 expected.dict_value.fields["a"].int64_value = 3
72 list_value = expected.dict_value.fields["b"].list_value
143 expected.list_value.values.add().dict_value.CopyFrom(struct_pb2.DictValue())
/external/cronet/net/third_party/quiche/src/quiche/common/
Dstructured_headers.cc651 for (const auto& [dict_key, dict_value] : value) { in WriteDictionary()
655 if (!dict_value.member_is_inner_list && !dict_value.member.empty() && in WriteDictionary()
656 dict_value.member.front().item.is_boolean() && in WriteDictionary()
657 dict_value.member.front().item.GetBoolean()) { in WriteDictionary()
658 if (!WriteParameters(dict_value.params)) return false; in WriteDictionary()
661 if (!WriteParameterizedMember(dict_value)) return false; in WriteDictionary()
/external/libbrillo/policy/
Ddevice_policy_impl.cc122 bool DecodeWeeklyTimeFromValue(const base::DictionaryValue& dict_value, in DecodeWeeklyTimeFromValue() argument
126 if (!dict_value.GetString("day_of_week", &day_of_week_str)) { in DecodeWeeklyTimeFromValue()
137 if (!dict_value.GetInteger("hours", &hours) || hours < 0 || hours > 23) { in DecodeWeeklyTimeFromValue()
143 if (!dict_value.GetInteger("minutes", &minutes) || minutes < 0 || in DecodeWeeklyTimeFromValue()
/external/ppp/pppd/plugins/radius/
Dradiusclient.h311 typedef struct dict_value struct
316 struct dict_value *next; argument
/external/tensorflow/tensorflow/c/experimental/saved_model/core/revived_types/
Dpartially_revived_objects.cc201 const DictValue& kwargs_dict = kwargs.dict_value(); in SignatureDefArgsFromInputs()
235 const DictValue& output_dict = output_signature.dict_value(); in SignatureDefReturnsFromOutputs()
/external/tensorflow/tensorflow/core/protobuf/
Dstruct.proto72 DictValue dict_value = 53; field
/external/protobuf/python/google/protobuf/internal/
Dmessage_test.py1546 def assertMapIterEquals(self, map_iter, dict_value): argument
1548 dict_value = dict(dict_value)
1551 self.assertEqual(v, dict_value[k])
1552 del dict_value[k]
1554 self.assertEqual({}, dict_value)
/external/cronet/third_party/protobuf/python/google/protobuf/internal/
Dmessage_test.py1547 def assertMapIterEquals(self, map_iter, dict_value): argument
1549 dict_value = dict(dict_value)
1552 self.assertEqual(v, dict_value[k])
1553 del dict_value[k]
1555 self.assertEqual({}, dict_value)
/external/tensorflow/tensorflow/c/experimental/saved_model/core/
Dsaved_model_utils.cc285 const DictValue& dict = signature.dict_value(); in FlattenSignature()
/external/libchrome/base/
Dvalues_unittest.cc1634 DictionaryValue dict_value; in TEST() local
1642 main_dict.SetKey("dict", dict_value.Clone()); in TEST()
1650 main_list.Append(std::make_unique<Value>(dict_value.Clone())); in TEST()
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/translate/
Dimport_model.cc3102 const DictValue& dict = value.dict_value(); in RecursivelyFindLeaves()