/external/libchrome/base/ |
D | values.cc | 50 std::unique_ptr<DictionaryValue> CopyDictionaryWithoutEmptyChildren( in CopyDictionaryWithoutEmptyChildren() 51 const DictionaryValue& dict) { in CopyDictionaryWithoutEmptyChildren() 52 std::unique_ptr<DictionaryValue> copy; in CopyDictionaryWithoutEmptyChildren() 53 for (DictionaryValue::Iterator it(dict); !it.IsAtEnd(); it.Advance()) { in CopyDictionaryWithoutEmptyChildren() 57 copy = std::make_unique<DictionaryValue>(); in CopyDictionaryWithoutEmptyChildren() 71 static_cast<const DictionaryValue&>(node)); in CopyWithoutEmptyChildren() 520 bool Value::GetAsDictionary(DictionaryValue** out_value) { in GetAsDictionary() 522 *out_value = static_cast<DictionaryValue*>(this); in GetAsDictionary() 528 bool Value::GetAsDictionary(const DictionaryValue** out_value) const { in GetAsDictionary() 530 *out_value = static_cast<const DictionaryValue*>(this); in GetAsDictionary() [all …]
|
D | values.h | 44 class DictionaryValue; variable 324 bool GetAsDictionary(DictionaryValue** out_value); 325 bool GetAsDictionary(const DictionaryValue** out_value) const; 382 class BASE_EXPORT DictionaryValue : public Value { 388 static std::unique_ptr<DictionaryValue> From(std::unique_ptr<Value> value); 390 DictionaryValue(); 391 explicit DictionaryValue(const DictStorage& in_dict); 392 explicit DictionaryValue(DictStorage&& in_dict) noexcept; 431 DictionaryValue* SetDictionary(StringPiece path, 432 std::unique_ptr<DictionaryValue> in_value); [all …]
|
D | values_unittest.cc | 113 DictionaryValue value; in TEST() 121 DictionaryValue value(storage); in TEST() 129 DictionaryValue value(std::move(storage)); in TEST() 694 DictionaryValue settings; in TEST() 717 std::unique_ptr<DictionaryValue> new_bookmark(new DictionaryValue); in TEST() 724 DictionaryValue* bookmark; in TEST() 888 DictionaryValue dict; in TEST() 901 DictionaryValue dict; in TEST() 907 DictionaryValue dict; in TEST() 914 DictionaryValue dict; in TEST() [all …]
|
/external/libchrome/components/json_schema/ |
D | json_schema_validator.h | 16 class DictionaryValue; variable 118 static std::unique_ptr<base::DictionaryValue> IsValidSchema( 124 static std::unique_ptr<base::DictionaryValue> 132 explicit JSONSchemaValidator(base::DictionaryValue* schema); 142 JSONSchemaValidator(base::DictionaryValue* schema, base::ListValue* types); 173 typedef std::map<std::string, const base::DictionaryValue*> TypeMap; 183 const base::DictionaryValue* schema, 198 void ValidateObject(const base::DictionaryValue* instance, 199 const base::DictionaryValue* schema, 204 const base::DictionaryValue* schema, [all …]
|
D | json_schema_validator.cc | 66 const base::DictionaryValue* value_dict = nullptr; in ExtractNameFromDictionary() 75 bool IsValidSchema(const base::DictionaryValue* dict, in IsValidSchema() 106 const base::DictionaryValue* dictionary_value = nullptr; in IsValidSchema() 109 for (base::DictionaryValue::Iterator it(*dict); !it.IsAtEnd(); it.Advance()) { in IsValidSchema() 199 for (base::DictionaryValue::Iterator iter(*dictionary_value); in IsValidSchema() 218 for (base::DictionaryValue::Iterator iter(*dictionary_value); in IsValidSchema() 406 std::unique_ptr<base::DictionaryValue> JSONSchemaValidator::IsValidSchema( in IsValidSchema() 413 std::unique_ptr<base::DictionaryValue> JSONSchemaValidator::IsValidSchema( in IsValidSchema() 421 return std::unique_ptr<base::DictionaryValue>(); in IsValidSchema() 422 base::DictionaryValue* dict = nullptr; in IsValidSchema() [all …]
|
D | json_schema_validator_unittest_base.cc | 63 base::DictionaryValue* LoadDictionary(const std::string& filename) { in LoadDictionary() 64 return static_cast<base::DictionaryValue*>( in LoadDictionary() 91 std::unique_ptr<base::DictionaryValue> schema( in TestComplex() 101 instance->Append(std::make_unique<base::DictionaryValue>()); in TestComplex() 108 base::DictionaryValue* item = nullptr; in TestComplex() 118 std::unique_ptr<base::DictionaryValue> schema(new base::DictionaryValue()); in TestStringPattern() 136 std::unique_ptr<base::DictionaryValue> schema( in TestEnum() 158 std::unique_ptr<base::DictionaryValue> schema( in TestChoices() 167 std::unique_ptr<base::DictionaryValue> instance(new base::DictionaryValue()); in TestChoices() 190 std::unique_ptr<base::DictionaryValue> schema(new base::DictionaryValue()); in TestObject() [all …]
|
D | json_schema_validator_unittest_base.h | 11 class DictionaryValue; variable 30 base::DictionaryValue* schema, 35 base::DictionaryValue* schema,
|
/external/libchrome/base/test/ |
D | values_test_util.h | 14 class DictionaryValue; variable 22 const DictionaryValue& value, 25 void ExpectDictDictionaryValue(const DictionaryValue& expected_value, 26 const DictionaryValue& value, 30 const DictionaryValue& value, 34 const DictionaryValue& value, 38 const DictionaryValue& value,
|
D | values_test_util.cc | 18 const DictionaryValue& value, in ExpectDictBooleanValue() 25 void ExpectDictDictionaryValue(const DictionaryValue& expected_value, in ExpectDictDictionaryValue() 26 const DictionaryValue& value, in ExpectDictDictionaryValue() 28 const DictionaryValue* dict_value = nullptr; in ExpectDictDictionaryValue() 34 const DictionaryValue& value, in ExpectDictIntegerValue() 42 const DictionaryValue& value, in ExpectDictListValue() 50 const DictionaryValue& value, in ExpectDictStringValue()
|
/external/libchrome/components/policy/core/common/ |
D | config_dir_policy_loader_unittest.cc | 54 const base::DictionaryValue* policy_value) override; 55 void Install3rdPartyPolicy(const base::DictionaryValue* policies) override; 60 void WriteConfigFile(const base::DictionaryValue& dict, 97 base::DictionaryValue dict; in InstallEmptyPolicy() 103 base::DictionaryValue dict; in InstallStringPolicy() 110 base::DictionaryValue dict; in InstallIntegerPolicy() 117 base::DictionaryValue dict; in InstallBooleanPolicy() 124 base::DictionaryValue dict; in InstallStringListPolicy() 131 const base::DictionaryValue* policy_value) { in InstallDictionaryPolicy() 132 base::DictionaryValue dict; in InstallDictionaryPolicy() [all …]
|
D | plist_writer_unittest.cc | 51 EXPECT_TRUE(PlistWrite(base::DictionaryValue(), &output_plist)); in TEST_F() 83 base::DictionaryValue root_dict; in TEST_F() 85 std::unique_ptr<base::DictionaryValue> inner_dict( in TEST_F() 86 new base::DictionaryValue()); in TEST_F() 112 base::DictionaryValue period_dict; in TEST_F() 115 std::unique_ptr<base::DictionaryValue> period_dict2( in TEST_F() 116 new base::DictionaryValue()); in TEST_F()
|
D | schema.cc | 158 const base::DictionaryValue& schema, 214 static void DetermineStorageSizes(const base::DictionaryValue& schema, 228 bool Parse(const base::DictionaryValue& schema, 236 bool ParseDictionary(const base::DictionaryValue& schema, 244 bool ParseList(const base::DictionaryValue& schema, 250 bool ParseEnum(const base::DictionaryValue& schema, 255 bool ParseRangedInt(const base::DictionaryValue& schema, 259 bool ParseStringPattern(const base::DictionaryValue& schema, 311 Schema::InternalStorage::ParseSchema(const base::DictionaryValue& schema, in ParseSchema() 386 const base::DictionaryValue& schema, in DetermineStorageSizes() [all …]
|
D | configuration_policy_provider_test.cc | 173 const base::DictionaryValue* policies) { in Install3rdPartyPolicy() 293 TEST_P(ConfigurationPolicyProviderTest, DictionaryValue) { in TEST_P() argument 294 base::DictionaryValue expected_value; in TEST_P() 305 auto dict = std::make_unique<base::DictionaryValue>(); in TEST_P() 308 auto sub = std::make_unique<base::DictionaryValue>(); in TEST_P() 312 sub = std::make_unique<base::DictionaryValue>(); in TEST_P() 363 base::DictionaryValue policy_dict; in TEST_P() 371 auto dict = std::make_unique<base::DictionaryValue>(); in TEST_P() 383 base::DictionaryValue policy_3rdparty; in TEST_P()
|
D | config_dir_policy_loader.cc | 160 base::DictionaryValue* dictionary_value = nullptr; in LoadFromPath() 190 const base::DictionaryValue* domains_dictionary; in Merge3rdPartyPolicy() 200 for (base::DictionaryValue::Iterator domains_it(*domains_dictionary); in Merge3rdPartyPolicy() 208 const base::DictionaryValue* components_dictionary; in Merge3rdPartyPolicy() 216 for (base::DictionaryValue::Iterator components_it(*components_dictionary); in Merge3rdPartyPolicy() 218 const base::DictionaryValue* policy_dictionary; in Merge3rdPartyPolicy()
|
/external/libchrome/base/trace_event/ |
D | trace_config.h | 104 void InitializeFromConfigDict(const base::DictionaryValue&); 105 void ToDict(DictionaryValue*) const; 126 void InitializeFromConfigDict(const base::DictionaryValue* event_filter); 130 void ToDict(DictionaryValue* filter_dict) const; 137 base::DictionaryValue* filter_args() const { return args_.get(); } in filter_args() 145 std::unique_ptr<base::DictionaryValue> args_; 220 explicit TraceConfig(const DictionaryValue& config); 288 void InitializeFromConfigDict(const DictionaryValue& dict); 298 const DictionaryValue& memory_dump_config); 302 std::unique_ptr<DictionaryValue> ToDict() const;
|
D | trace_config.cc | 143 const base::DictionaryValue& dict) { in InitializeFromConfigDict() 155 void TraceConfig::ProcessFilterConfig::ToDict(DictionaryValue* dict) const { in ToDict() 196 const base::DictionaryValue* event_filter) { in InitializeFromConfigDict() 199 const base::DictionaryValue* args_dict = nullptr; in InitializeFromConfigDict() 210 DictionaryValue* filter_dict) const { in ToDict() 270 TraceConfig::TraceConfig(const DictionaryValue& config) { in TraceConfig() 300 std::unique_ptr<DictionaryValue> dict = ToDict(); in ToString() 354 void TraceConfig::InitializeFromConfigDict(const DictionaryValue& dict) { in InitializeFromConfigDict() 384 const DictionaryValue* memory_dump_config = nullptr; in InitializeFromConfigDict() 393 auto dict = DictionaryValue::From(JSONReader::Read(config_string)); in InitializeFromConfigString() [all …]
|
D | trace_config_category_filter.h | 34 void InitializeFromConfigDict(const DictionaryValue& dict); 51 void ToDict(DictionaryValue* dict) const; 67 DictionaryValue* dict) const;
|
D | trace_event_unittest.cc | 75 DictionaryValue* FindMatchingTraceEntry(const JsonKeyValue* key_values); 76 DictionaryValue* FindNamePhase(const char* name, const char* phase); 77 DictionaryValue* FindNamePhaseKeyValue(const char* name, 232 DictionaryValue* dict) { in IsKeyValueInDict() 241 DictionaryValue* args_dict = nullptr; in IsKeyValueInDict() 250 DictionaryValue* dict) { in IsAllKeyValueInDict() 260 DictionaryValue* TraceEventTestFixture::FindMatchingTraceEntry( in FindMatchingTraceEntry() 269 DictionaryValue* dict = static_cast<DictionaryValue*>(value); in FindMatchingTraceEntry() 289 DictionaryValue* dict = static_cast<DictionaryValue*>(value); in DropTracedMetadataRecords() 298 DictionaryValue* TraceEventTestFixture::FindNamePhase(const char* name, in FindNamePhase() [all …]
|
/external/libchrome/base/json/ |
D | json_writer_unittest.cc | 22 EXPECT_TRUE(JSONWriter::Write(DictionaryValue(), &output_js)); in TEST() 59 DictionaryValue root_dict; in TEST() 61 std::unique_ptr<DictionaryValue> inner_dict(new DictionaryValue()); in TEST() 93 DictionaryValue period_dict; in TEST() 96 std::unique_ptr<DictionaryValue> period_dict2(new DictionaryValue()); in TEST() 102 DictionaryValue period_dict3; in TEST() 131 DictionaryValue binary_dict; in TEST()
|
D | json_value_serializer_unittest.cc | 220 std::unique_ptr<DictionaryValue> root_dict = in TEST() 221 DictionaryValue::From(deserializer.Deserialize(nullptr, nullptr)); in TEST() 302 DictionaryValue valueRoot; in TEST() 315 DictionaryValue root; in TEST() 331 DictionaryValue* dict_root = in TEST() 332 static_cast<DictionaryValue*>(deserial_root.get()); in TEST() 340 DictionaryValue root; in TEST() 356 DictionaryValue* dict_root = in TEST() 357 static_cast<DictionaryValue*>(deserial_root.get()); in TEST() 367 dict_root = static_cast<DictionaryValue*>(deserial_root.get()); in TEST() [all …]
|
D | json_reader_unittest.cc | 320 std::unique_ptr<DictionaryValue> dict_val = in TEST() 321 DictionaryValue::From(JSONReader::Read("{}")); in TEST() 326 auto dict_val = DictionaryValue::From(JSONReader::Read( in TEST() 368 std::unique_ptr<DictionaryValue> dict_val = in TEST() 369 DictionaryValue::From(JSONReader::Read( in TEST() 372 DictionaryValue* inner_dict = nullptr; in TEST() 390 std::unique_ptr<DictionaryValue> dict_val = DictionaryValue::From( in TEST() 398 DictionaryValue* inner_dict = nullptr; in TEST() 407 DictionaryValue::From(JSONReader::Read("{\"a\":{\"b\":2},\"a.b\":1}")); in TEST() 469 std::unique_ptr<DictionaryValue> dict_val = in TEST() [all …]
|
D | json_perftest.cc | 18 std::unique_ptr<DictionaryValue> GenerateDict() { in GenerateDict() 19 auto root = std::make_unique<DictionaryValue>(); in GenerateDict() 36 std::unique_ptr<DictionaryValue> GenerateLayeredDict(int breadth, int depth) { in GenerateLayeredDict()
|
/external/libbrillo/brillo/ |
D | value_conversion.h | 57 const base::DictionaryValue** out_value) { in FromValue() 64 std::unique_ptr<base::DictionaryValue>* out_value); 89 const base::DictionaryValue* dict = nullptr; in FromValue() 93 for (base::DictionaryValue::Iterator it(*dict); !it.IsAtEnd(); it.Advance()) { in FromValue() 130 std::unique_ptr<base::DictionaryValue> result{new base::DictionaryValue}; in ToValue()
|
/external/libchrome/base/test/launcher/ |
D | test_results_tracker.cc | 311 std::unique_ptr<DictionaryValue> summary_root(new DictionaryValue); in SaveSummaryAsJSON() 337 std::unique_ptr<DictionaryValue> current_iteration_data( in SaveSummaryAsJSON() 338 new DictionaryValue); in SaveSummaryAsJSON() 349 std::unique_ptr<DictionaryValue> test_result_value(new DictionaryValue); in SaveSummaryAsJSON() 383 std::unique_ptr<DictionaryValue> result_part_value( in SaveSummaryAsJSON() 384 new DictionaryValue); in SaveSummaryAsJSON() 429 std::unique_ptr<DictionaryValue> test_locations(new DictionaryValue); in SaveSummaryAsJSON() 433 std::unique_ptr<DictionaryValue> location_value(new DictionaryValue); in SaveSummaryAsJSON()
|
/external/libchrome/base/process/ |
D | process_metrics.cc | 75 std::unique_ptr<DictionaryValue> res(new DictionaryValue()); in ToValue() 79 std::unique_ptr<DictionaryValue> meminfo = memory_info_.ToValue(); in ToValue() 80 std::unique_ptr<DictionaryValue> vmstat = vmstat_info_.ToValue(); in ToValue()
|