/external/libweave/src/ |
D | device_manager.cc | 34 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 …]
|
D | base_api_handler_unittest.cc | 36 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 …]
|
D | access_api_handler_unittest.cc | 49 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 …]
|
D | device_registration_info_unittest.cc | 153 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()
|
D | device_registration_info.cc | 244 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 …]
|
D | device_manager.h | 109 std::unique_ptr<ComponentManager> component_manager_; variable
|
D | device_registration_info.h | 312 ComponentManager* component_manager_{nullptr};
|
/external/libweave/src/privet/ |
D | cloud_delegate.cc | 47 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/ |
D | cloud_command_proxy.cc | 25 component_manager_{component_manager}, 28 callback_token_ = component_manager_->AddServerStateUpdatedCallback( 70 ComponentManager::UpdateID id = component_manager_->GetLastStateChangeId(); in QueueCommandUpdate()
|
D | cloud_command_proxy_unittest.cc | 96 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
|
D | cloud_command_proxy.h | 73 ComponentManager* component_manager_; variable
|