Home
last modified time | relevance | path

Searched refs:DictionaryValue (Results 1 – 25 of 101) sorted by relevance

12345

/external/libweave/third_party/chromium/base/
Dvalues.cc42 scoped_ptr<DictionaryValue> CopyDictionaryWithoutEmptyChildren( in CopyDictionaryWithoutEmptyChildren()
43 const DictionaryValue& dict) { in CopyDictionaryWithoutEmptyChildren()
44 scoped_ptr<DictionaryValue> copy; in CopyDictionaryWithoutEmptyChildren()
45 for (DictionaryValue::Iterator it(dict); !it.IsAtEnd(); it.Advance()) { in CopyDictionaryWithoutEmptyChildren()
49 copy.reset(new DictionaryValue); in CopyDictionaryWithoutEmptyChildren()
63 static_cast<const DictionaryValue&>(node)); in CopyWithoutEmptyChildren()
128 bool Value::GetAsDictionary(DictionaryValue** /* out_value */) { in GetAsDictionary() argument
132 bool Value::GetAsDictionary(const DictionaryValue** /* out_value */) const { in GetAsDictionary()
338 scoped_ptr<DictionaryValue> DictionaryValue::From(scoped_ptr<Value> value) { in From()
339 DictionaryValue* out; in From()
[all …]
Dvalues.h38 class DictionaryValue; variable
92 virtual bool GetAsDictionary(DictionaryValue** out_value);
93 virtual bool GetAsDictionary(const DictionaryValue** out_value) const;
205 class BASE_EXPORT DictionaryValue : public Value {
208 static scoped_ptr<DictionaryValue> From(scoped_ptr<Value> value);
210 DictionaryValue();
211 ~DictionaryValue() override;
214 bool GetAsDictionary(DictionaryValue** out_value) override;
215 bool GetAsDictionary(const DictionaryValue** out_value) const override;
286 const DictionaryValue** out_value) const;
[all …]
Dvalues_unittest.cc20 DictionaryValue settings; in TEST()
43 scoped_ptr<DictionaryValue> new_bookmark(new DictionaryValue); in TEST()
50 DictionaryValue* bookmark; in TEST()
257 DictionaryValue dict; in TEST()
264 DictionaryValue dict; in TEST()
272 DictionaryValue dict; in TEST()
286 DictionaryValue dict; in TEST()
300 DictionaryValue dict; in TEST()
311 DictionaryValue dict; in TEST()
319 DictionaryValue* value2; in TEST()
[all …]
/external/libchrome/base/
Dvalues.cc42 scoped_ptr<DictionaryValue> CopyDictionaryWithoutEmptyChildren( in CopyDictionaryWithoutEmptyChildren()
43 const DictionaryValue& dict) { in CopyDictionaryWithoutEmptyChildren()
44 scoped_ptr<DictionaryValue> copy; in CopyDictionaryWithoutEmptyChildren()
45 for (DictionaryValue::Iterator it(dict); !it.IsAtEnd(); it.Advance()) { in CopyDictionaryWithoutEmptyChildren()
49 copy.reset(new DictionaryValue); in CopyDictionaryWithoutEmptyChildren()
63 static_cast<const DictionaryValue&>(node)); in CopyWithoutEmptyChildren()
132 bool Value::GetAsDictionary(DictionaryValue** /* out_value */) { in GetAsDictionary() argument
136 bool Value::GetAsDictionary(const DictionaryValue** /* out_value */) const { in GetAsDictionary()
353 scoped_ptr<DictionaryValue> DictionaryValue::From(scoped_ptr<Value> value) { in From()
354 DictionaryValue* out; in From()
[all …]
Dvalues.h39 class DictionaryValue; variable
94 virtual bool GetAsDictionary(DictionaryValue** out_value);
95 virtual bool GetAsDictionary(const DictionaryValue** out_value) const;
211 class BASE_EXPORT DictionaryValue : public Value {
214 static scoped_ptr<DictionaryValue> From(scoped_ptr<Value> value);
216 DictionaryValue();
217 ~DictionaryValue() override;
220 bool GetAsDictionary(DictionaryValue** out_value) override;
221 bool GetAsDictionary(const DictionaryValue** out_value) const override;
296 const DictionaryValue** out_value) const;
[all …]
Dvalues_unittest.cc20 DictionaryValue settings; in TEST()
43 scoped_ptr<DictionaryValue> new_bookmark(new DictionaryValue); in TEST()
50 DictionaryValue* bookmark; in TEST()
271 DictionaryValue dict; in TEST()
278 DictionaryValue dict; in TEST()
286 DictionaryValue dict; in TEST()
300 DictionaryValue dict; in TEST()
314 DictionaryValue dict; in TEST()
325 DictionaryValue dict; in TEST()
333 DictionaryValue* value2; in TEST()
[all …]
/external/libweave/src/privet/
Dprivet_handler.h21 class DictionaryValue; variable
41 base::Callback<void(int status, const base::DictionaryValue& output)>;
66 const base::DictionaryValue* input,
70 using ApiHandler = void (PrivetHandler::*)(const base::DictionaryValue&,
82 void HandleInfo(const base::DictionaryValue&,
85 void HandlePairingStart(const base::DictionaryValue& input,
88 void HandlePairingConfirm(const base::DictionaryValue& input,
91 void HandlePairingCancel(const base::DictionaryValue& input,
94 void HandleAuth(const base::DictionaryValue& input,
97 void HandleAccessControlClaim(const base::DictionaryValue& input,
[all …]
Dprivet_handler.cc157 std::unique_ptr<base::DictionaryValue> ErrorToJson(const Error& error) { in ErrorToJson()
158 std::unique_ptr<base::DictionaryValue> output{ErrorInfoToJson(error)}; in ErrorToJson()
163 std::unique_ptr<base::DictionaryValue> inner{ErrorInfoToJson(*it)}; in ErrorToJson()
175 void SetStateProperties(const T& state, base::DictionaryValue* parent) { in SetStateProperties()
193 std::unique_ptr<base::DictionaryValue> output{new base::DictionaryValue}; in ReturnError()
199 const base::DictionaryValue& output, in OnCommandRequestSucceeded()
215 std::unique_ptr<base::DictionaryValue> CreateManifestSection( in CreateManifestSection()
217 std::unique_ptr<base::DictionaryValue> manifest(new base::DictionaryValue()); in CreateManifestSection()
225 std::unique_ptr<base::DictionaryValue> CreateEndpointsSection( in CreateEndpointsSection()
227 std::unique_ptr<base::DictionaryValue> endpoints(new base::DictionaryValue()); in CreateEndpointsSection()
[all …]
Dcloud_delegate.h20 class DictionaryValue; variable
42 base::Callback<void(const base::DictionaryValue& commands,
99 virtual const base::DictionaryValue& GetLegacyState() const = 0;
102 virtual const base::DictionaryValue& GetLegacyCommandDef() const = 0;
105 virtual const base::DictionaryValue& GetComponents() const = 0;
108 virtual const base::DictionaryValue* FindComponent(const std::string& path,
112 virtual const base::DictionaryValue& GetTraits() const = 0;
115 virtual void AddCommand(const base::DictionaryValue& command,
/external/libweave/src/
Dcomponent_manager_impl.h23 bool LoadTraits(const base::DictionaryValue& dict, ErrorPtr* error) override;
81 const base::DictionaryValue& command,
107 const base::DictionaryValue* FindComponent(const std::string& path,
110 const base::DictionaryValue* FindTraitDefinition(
115 const base::DictionaryValue* FindCommandDefinition(
124 const base::DictionaryValue& GetTraits() const override { return traits_; } in GetTraits()
127 const base::DictionaryValue& GetComponents() const override { in GetComponents()
133 const base::DictionaryValue& dict,
179 bool AddLegacyCommandDefinitions(const base::DictionaryValue& dict,
181 bool AddLegacyStateDefinitions(const base::DictionaryValue& dict,
[all …]
Dcomponent_manager_impl.cc45 base::DictionaryValue* root = &components_; in AddComponent()
65 std::unique_ptr<base::DictionaryValue> dict{new base::DictionaryValue}; in AddComponent()
80 base::DictionaryValue* root = &components_; in AddComponentArrayItem()
91 std::unique_ptr<base::DictionaryValue> dict{new base::DictionaryValue}; in AddComponentArrayItem()
104 base::DictionaryValue* root = &components_; in RemoveComponent()
126 base::DictionaryValue* root = &components_; in RemoveComponentArrayItem()
159 bool ComponentManagerImpl::LoadTraits(const base::DictionaryValue& dict, in LoadTraits()
165 for (base::DictionaryValue::Iterator it(dict); !it.IsAtEnd(); it.Advance()) { in LoadTraits()
172 const base::DictionaryValue* existing_def = nullptr; in LoadTraits()
195 std::unique_ptr<const base::DictionaryValue> dict = LoadJsonDict(json, error); in LoadTraits()
[all …]
Dcomponent_manager.h36 std::unique_ptr<base::DictionaryValue> properties) in ComponentStateChange()
42 std::unique_ptr<base::DictionaryValue> changed_properties;
59 virtual bool LoadTraits(const base::DictionaryValue& dict,
119 const base::DictionaryValue& command,
145 virtual const base::DictionaryValue* FindComponent(const std::string& path,
148 virtual const base::DictionaryValue* FindTraitDefinition(
153 virtual const base::DictionaryValue* FindCommandDefinition(
162 virtual const base::DictionaryValue& GetTraits() const = 0;
165 virtual const base::DictionaryValue& GetComponents() const = 0;
169 const base::DictionaryValue& dict,
[all …]
Dmock_component_manager.h18 bool(const base::DictionaryValue& dict, ErrorPtr* error));
44 CommandInstance*(const base::DictionaryValue& command,
59 const base::DictionaryValue*(const std::string& path,
62 const base::DictionaryValue*(const std::string& name));
65 const base::DictionaryValue*(const std::string& command_name));
70 MOCK_CONST_METHOD0(GetTraits, const base::DictionaryValue&());
71 MOCK_CONST_METHOD0(GetComponents, const base::DictionaryValue&());
74 const base::DictionaryValue& dict,
99 bool(const base::DictionaryValue& dict, ErrorPtr* error));
101 bool(const base::DictionaryValue& dict, ErrorPtr* error));
[all …]
Ddevice_registration_info.h32 class DictionaryValue; variable
53 base::Callback<void(const base::DictionaryValue& response,
115 const base::DictionaryValue& command_patch,
159 std::unique_ptr<base::DictionaryValue> ParseOAuthResponse(
174 const base::DictionaryValue* body,
197 void OnUpdateDeviceResourceDone(const base::DictionaryValue& device_info,
203 const base::DictionaryValue& body,
208 void OnDeviceInfoRetrieved(const base::DictionaryValue& device_info,
215 bool UpdateDeviceInfoTimestamp(const base::DictionaryValue& device_info);
222 const base::DictionaryValue& json,
[all …]
Dutils.cc37 std::unique_ptr<base::DictionaryValue> LoadJsonDict( in LoadJsonDict()
40 std::unique_ptr<base::DictionaryValue> result; in LoadJsonDict()
51 base::DictionaryValue* dict_value = nullptr; in LoadJsonDict()
65 std::unique_ptr<base::DictionaryValue> ErrorInfoToJson(const Error& error) { in ErrorInfoToJson()
66 std::unique_ptr<base::DictionaryValue> output{new base::DictionaryValue}; in ErrorInfoToJson()
Ddevice_manager.h42 void AddTraitDefinitions(const base::DictionaryValue& dict) override;
43 const base::DictionaryValue& GetTraits() const override;
50 const base::DictionaryValue& GetComponents() const override;
55 const base::DictionaryValue& dict,
67 bool AddCommand(const base::DictionaryValue& command,
82 void AddCommandDefinitions(const base::DictionaryValue& dict) override;
86 void AddStateDefinitions(const base::DictionaryValue& dict) override;
89 bool SetStateProperties(const base::DictionaryValue& dict,
95 const base::DictionaryValue& GetState() const override;
/external/libweave/src/commands/
Dcommand_instance.h47 const base::DictionaryValue& parameters);
56 const base::DictionaryValue& GetParameters() const override;
57 const base::DictionaryValue& GetProgress() const override;
58 const base::DictionaryValue& GetResults() const override;
60 bool SetProgress(const base::DictionaryValue& progress,
62 bool Complete(const base::DictionaryValue& results, ErrorPtr* error) override;
80 std::unique_ptr<base::DictionaryValue> ToJson() const;
112 base::DictionaryValue parameters_;
114 base::DictionaryValue progress_;
116 base::DictionaryValue results_;
Dcommand_instance.cc58 const base::DictionaryValue& parameters) in CommandInstance()
87 const base::DictionaryValue& CommandInstance::GetParameters() const { in GetParameters()
91 const base::DictionaryValue& CommandInstance::GetProgress() const { in GetProgress()
95 const base::DictionaryValue& CommandInstance::GetResults() const { in GetResults()
103 bool CommandInstance::SetProgress(const base::DictionaryValue& progress, in SetProgress()
118 bool CommandInstance::Complete(const base::DictionaryValue& results, in Complete()
145 std::unique_ptr<base::DictionaryValue> GetCommandParameters( in GetCommandParameters()
146 const base::DictionaryValue* json, in GetCommandParameters()
149 std::unique_ptr<base::DictionaryValue> params; in GetCommandParameters()
153 const base::DictionaryValue* params_dict = nullptr; in GetCommandParameters()
[all …]
Dcloud_command_proxy.cc35 std::unique_ptr<base::DictionaryValue> patch{new base::DictionaryValue}; in OnErrorChanged()
44 std::unique_ptr<base::DictionaryValue> patch{new base::DictionaryValue}; in OnResultsChanged()
51 std::unique_ptr<base::DictionaryValue> patch{new base::DictionaryValue}; in OnStateChanged()
58 std::unique_ptr<base::DictionaryValue> patch{new base::DictionaryValue}; in OnProgressChanged()
69 std::unique_ptr<base::DictionaryValue> patch) { in QueueCommandUpdate()
/external/libweave/include/weave/test/
Dmock_device.h25 MOCK_METHOD1(AddTraitDefinitions, void(const base::DictionaryValue& dict));
26 MOCK_CONST_METHOD0(GetTraits, const base::DictionaryValue&());
36 MOCK_CONST_METHOD0(GetComponents, const base::DictionaryValue&());
43 const base::DictionaryValue& dict,
59 bool(const base::DictionaryValue&, std::string*, ErrorPtr*));
74 MOCK_METHOD1(AddCommandDefinitions, void(const base::DictionaryValue&));
78 MOCK_METHOD1(AddStateDefinitions, void(const base::DictionaryValue&));
81 bool(const base::DictionaryValue&, ErrorPtr*));
88 MOCK_CONST_METHOD0(GetState, const base::DictionaryValue&());
Dmock_command.h28 MOCK_CONST_METHOD0(GetParameters, const base::DictionaryValue&());
29 MOCK_CONST_METHOD0(GetProgress, const base::DictionaryValue&());
30 MOCK_CONST_METHOD0(GetResults, const base::DictionaryValue&());
32 MOCK_METHOD2(SetProgress, bool(const base::DictionaryValue&, ErrorPtr*));
33 MOCK_METHOD2(Complete, bool(const base::DictionaryValue&, ErrorPtr*));
/external/libchrome/base/json/
Djson_writer_unittest.cc20 EXPECT_TRUE(JSONWriter::Write(DictionaryValue(), &output_js)); in TEST()
57 DictionaryValue root_dict; in TEST()
59 scoped_ptr<DictionaryValue> inner_dict(new DictionaryValue()); in TEST()
91 DictionaryValue period_dict; in TEST()
94 scoped_ptr<DictionaryValue> period_dict2(new DictionaryValue()); in TEST()
100 DictionaryValue period_dict3; in TEST()
129 DictionaryValue binary_dict; in TEST()
/external/libweave/include/weave/
Ddevice.h51 virtual void AddTraitDefinitions(const base::DictionaryValue& dict) = 0;
54 virtual const base::DictionaryValue& GetTraits() const = 0;
74 virtual const base::DictionaryValue& GetComponents() const = 0;
87 const base::DictionaryValue& dict,
120 virtual bool AddCommand(const base::DictionaryValue& command,
181 const base::DictionaryValue& dict) = 0;
200 const base::DictionaryValue& dict) = 0;
214 const base::DictionaryValue& dict,
232 LIBWEAVE_DEPRECATED virtual const base::DictionaryValue& GetState() const = 0;
Dcommand.h46 virtual const base::DictionaryValue& GetParameters() const = 0;
49 virtual const base::DictionaryValue& GetProgress() const = 0;
52 virtual const base::DictionaryValue& GetResults() const = 0;
59 virtual bool SetProgress(const base::DictionaryValue& progress,
65 virtual bool Complete(const base::DictionaryValue& results,
/external/libweave/third_party/chromium/base/json/
Djson_writer_unittest.cc22 EXPECT_TRUE(JSONWriter::Write(DictionaryValue(), &output_js)); in TEST()
59 DictionaryValue root_dict; in TEST()
61 scoped_ptr<DictionaryValue> inner_dict(new DictionaryValue()); in TEST()
93 DictionaryValue period_dict; in TEST()
96 scoped_ptr<DictionaryValue> period_dict2(new DictionaryValue()); in TEST()
102 DictionaryValue period_dict3; in TEST()
131 DictionaryValue binary_dict; in TEST()

12345