Home
last modified time | relevance | path

Searched refs:AddComponent (Results 1 – 21 of 21) sorted by relevance

/external/libweave/src/
Dcomponent_manager_unittest.cc83 EXPECT_TRUE(manager->AddComponent("", "comp1", {"t1"}, nullptr)); in CreateTestComponentTree()
89 manager->AddComponent("comp1.comp2[1]", "comp3", {"t4"}, nullptr)); in CreateTestComponentTree()
90 EXPECT_TRUE(manager->AddComponent("comp1.comp2[1].comp3", "comp4", in CreateTestComponentTree()
441 TEST_F(ComponentManagerTest, AddComponent) { in TEST_F() argument
446 manager_.AddComponent("", "comp1", {"trait1", "trait2"}, nullptr)); in TEST_F()
447 EXPECT_TRUE(manager_.AddComponent("", "comp2", {"trait3"}, nullptr)); in TEST_F()
459 EXPECT_FALSE(manager_.AddComponent("", "comp3", {"trait4"}, nullptr)); in TEST_F()
463 EXPECT_TRUE(manager_.AddComponent("", "comp1", {}, nullptr)); in TEST_F()
464 EXPECT_TRUE(manager_.AddComponent("comp1", "comp2", {}, nullptr)); in TEST_F()
465 EXPECT_TRUE(manager_.AddComponent("comp1", "comp3", {}, nullptr)); in TEST_F()
[all …]
Dbase_api_handler_unittest.cc44 EXPECT_CALL(device_, AddComponent(_, _, _)) in SetUp()
48 return component_manager_.AddComponent("", name, traits, error); in SetUp()
Daccess_api_handler_unittest.cc57 EXPECT_CALL(device_, AddComponent(_, _, _)) in SetUp()
61 return component_manager_.AddComponent("", name, traits, error); in SetUp()
Ddevice_manager.cc109 bool DeviceManager::AddComponent(const std::string& name, in AddComponent() function in weave::DeviceManager
112 return component_manager_->AddComponent("", name, traits, error); in AddComponent()
Ddevice_manager.h45 bool AddComponent(const std::string& name,
Dmock_component_manager.h21 MOCK_METHOD4(AddComponent,
Dcomponent_manager.h74 virtual bool AddComponent(const std::string& path,
Dbase_api_handler.cc100 CHECK(device_->AddComponent(kBaseComponent, {kBaseTrait}, nullptr));
Dcomponent_manager_impl.h37 bool AddComponent(const std::string& path,
Daccess_api_handler.cc118 CHECK(device_->AddComponent(kComponent, {kTrait}, nullptr));
Dweave_unittest.cc316 device_->AddComponent("myComponent", {"trait1", "trait2"}, nullptr)); in StartDevice()
376 device_->AddComponent("myComponent", {"trait1", "trait2"}, nullptr)); in TEST_F()
Ddevice_registration_info_unittest.cc406 component_manager_.AddComponent("", "comp", {"base", "robot"}, nullptr)); in TEST_F()
620 component_manager_.AddComponent("", "comp", {"robot"}, nullptr)); in SetUp()
Dcomponent_manager_impl.cc41 bool ComponentManagerImpl::AddComponent(const std::string& path, in AddComponent() function in weave::ComponentManagerImpl
/external/libweave/include/weave/test/
Dmock_device.h29 MOCK_METHOD3(AddComponent,
/external/libweave/examples/daemon/lock/
Dlock.cc75 CHECK(device->AddComponent(kComponent, {"lock"}, nullptr)); in Register()
/external/libweave/examples/daemon/speaker/
Dspeaker.cc77 CHECK(device->AddComponent(kComponent, {"onOff", "volume"}, nullptr)); in Register()
/external/libweave/examples/daemon/ledflasher/
Dledflasher.cc65 CHECK(device->AddComponent(kComponent, {"_ledflasher"}, nullptr)); in Register()
/external/libweave/examples/daemon/sample/
Dsample.cc65 CHECK(device->AddComponent(kComponent, {"_sample"}, nullptr)); in Register()
/external/libweave/include/weave/
Ddevice.h61 virtual bool AddComponent(const std::string& name,
/external/libweave/examples/daemon/oven/
Doven.cc149 CHECK(device->AddComponent( in Register()
/external/libweave/examples/daemon/light/
Dlight.cc181 CHECK(device->AddComponent(kComponent, {"onOff", "brightness", "colorXY"}, in Register()