Home
last modified time | relevance | path

Searched refs:component_manager_ (Results 1 – 11 of 11) sorted by relevance

/external/libweave/src/
Ddevice_manager.cc34 component_manager_{new ComponentManagerImpl{task_runner}} {
41 config_.get(), component_manager_.get(), task_runner, http_client,
81 device_info_.get(), component_manager_.get()); in StartPrivet()
94 CHECK(component_manager_->LoadTraits(json, nullptr)); in AddTraitDefinitionsFromJson()
98 CHECK(component_manager_->LoadTraits(dict, nullptr)); in AddTraitDefinitions()
102 return component_manager_->GetTraits(); in GetTraits()
106 component_manager_->AddTraitDefChangedCallback(callback); in AddTraitDefsChangedCallback()
112 return component_manager_->AddComponent("", name, traits, error); in AddComponent()
116 return component_manager_->RemoveComponent("", name, error); in RemoveComponent()
121 component_manager_->AddComponentTreeChangedCallback(callback); in AddComponentTreeChangedCallback()
[all …]
Dbase_api_handler_unittest.cc36 EXPECT_TRUE(component_manager_.LoadTraits(json, nullptr)); in SetUp()
40 Invoke(&component_manager_, &ComponentManager::SetStateProperties)); in SetUp()
43 Invoke(&component_manager_, &ComponentManager::SetStateProperty)); in SetUp()
48 return component_manager_.AddComponent("", name, traits, error); in SetUp()
56 Invoke(&component_manager_, &ComponentManager::AddCommandHandler)); in SetUp()
58 dev_reg_.reset(new DeviceRegistrationInfo(&config_, &component_manager_, in SetUp()
70 auto command_instance = component_manager_.ParseCommandInstance( in AddCommand()
74 component_manager_.AddCommand(std::move(command_instance)); in AddCommand()
76 component_manager_.FindCommand(id)->GetState()); in AddCommand()
81 std::string path = component_manager_.FindComponentWithTrait("base"); in GetBaseState()
[all …]
Daccess_api_handler_unittest.cc49 EXPECT_TRUE(component_manager_.LoadTraits(json, nullptr)); in SetUp()
53 Invoke(&component_manager_, &ComponentManager::SetStateProperties)); in SetUp()
56 Invoke(&component_manager_, &ComponentManager::SetStateProperty)); in SetUp()
61 return component_manager_.AddComponent("", name, traits, error); in SetUp()
70 Invoke(&component_manager_, &ComponentManager::AddCommandHandler)); in SetUp()
81 auto command_instance = component_manager_.ParseCommandInstance( in AddCommand()
85 component_manager_.AddCommand(std::move(command_instance)); in AddCommand()
87 component_manager_.FindCommand(id)->GetState()); in AddCommand()
88 return component_manager_.FindCommand(id)->GetResults(); in AddCommand()
93 component_manager_.FindComponentWithTrait("_accessControlBlackList"); in GetState()
[all …]
Ddevice_registration_info_unittest.cc153 config_.get(), &component_manager_, &task_runner_, &http_client_, in ReloadDefaults()
213 ComponentManagerImpl component_manager_{&task_runner_}; member in weave::DeviceRegistrationInfoTest
404 EXPECT_TRUE(component_manager_.LoadTraits(*json_traits, nullptr)); in TEST_F()
406 component_manager_.AddComponent("", "comp", {"base", "robot"}, nullptr)); in TEST_F()
408 EXPECT_TRUE(component_manager_.SetStateProperty( in TEST_F()
618 EXPECT_TRUE(component_manager_.LoadTraits(*json_traits, nullptr)); in SetUp()
620 component_manager_.AddComponent("", "comp", {"robot"}, nullptr)); in SetUp()
635 command_ = component_manager_.FindCommand("1234"); in SetUp()
Ddevice_registration_info.cc244 component_manager_{component_manager},
263 component_manager_->AddTraitDefChangedCallback(base::Bind(
265 component_manager_->AddComponentTreeChangedCallback(
268 component_manager_->AddStateChangedCallback(base::Bind(
498 resource->Set("traits", component_manager_->GetTraits().DeepCopy()); in BuildDeviceResource()
499 resource->Set("components", component_manager_->GetComponents().DeepCopy()); in BuildDeviceResource()
1136 auto command_instance = component_manager_->ParseCommandInstance( in PublishCommand()
1146 if (!component_manager_->FindCommand(command_instance->GetID())) { in PublishCommand()
1152 new CloudCommandProxy{command_instance.get(), this, component_manager_, in PublishCommand()
1158 component_manager_->AddCommand(std::move(command_instance)); in PublishCommand()
[all …]
Ddevice_manager.h109 std::unique_ptr<ComponentManager> component_manager_; variable
Ddevice_registration_info.h312 ComponentManager* component_manager_{nullptr};
/external/libweave/src/privet/
Dcloud_delegate.cc47 component_manager_{component_manager} {
53 component_manager_->AddTraitDefChangedCallback(
56 component_manager_->AddCommandAddedCallback(base::Bind(
58 component_manager_->AddCommandRemovedCallback(base::Bind(
60 component_manager_->AddStateChangedCallback(base::Bind(
62 component_manager_->AddComponentTreeChangedCallback(
144 return component_manager_->GetLegacyCommandDefinitions(); in GetLegacyCommandDef()
148 return component_manager_->GetLegacyState(); in GetLegacyState()
152 return component_manager_->GetComponents(); in GetComponents()
157 return component_manager_->FindComponent(path, error); in FindComponent()
[all …]
/external/libweave/src/commands/
Dcloud_command_proxy.cc25 component_manager_{component_manager},
28 callback_token_ = component_manager_->AddServerStateUpdatedCallback(
70 ComponentManager::UpdateID id = component_manager_->GetLastStateChangeId(); in QueueCommandUpdate()
Dcloud_command_proxy_unittest.cc96 EXPECT_CALL(component_manager_, MockAddServerStateUpdatedCallback(_)) in SetUp()
98 EXPECT_CALL(component_manager_, GetLastStateChangeId()) in SetUp()
127 command_instance_.get(), &cloud_updater_, &component_manager_, in CreateCommandInstance()
144 testing::StrictMock<MockComponentManager> component_manager_; member in weave::__anon452a637c0111::CloudCommandProxyTest
Dcloud_command_proxy.h73 ComponentManager* component_manager_; variable