Home
last modified time | relevance | path

Searched refs:device_ (Results 1 – 24 of 24) sorted by relevance

/external/libweave/src/privet/
Dcloud_delegate.cc46 device_{device},
48 device_->GetMutableConfig()->AddOnChangedCallback(base::Bind(
50 device_->AddGcdStateChangedCallback(base::Bind(
70 return device_->GetSettings().device_id; in GetDeviceId()
74 CHECK_EQ(5u, device_->GetSettings().model_id.size()); in GetModelId()
75 return device_->GetSettings().model_id; in GetModelId()
78 std::string GetName() const override { return device_->GetSettings().name; } in GetName()
81 return device_->GetSettings().description; in GetDescription()
85 return device_->GetSettings().location; in GetLocation()
91 device_->UpdateDeviceInfo(name, description, location); in UpdateDeviceInfo()
[all …]
Dprivet_handler_unittest.cc101 new PrivetHandler(&cloud_, &device_, &security_, &wifi_, &clock_)); in SetUp()
133 new PrivetHandler(&cloud_, &device_, &security_, nullptr, &clock_)); in SetNoWifiAndGcd()
147 testing::StrictMock<MockDeviceDelegate> device_; member in weave::privet::PrivetHandlerTest
261 EXPECT_CALL(device_, GetHttpEnpoint()) in TEST_F()
263 EXPECT_CALL(device_, GetHttpsEnpoint()) in TEST_F()
957 EXPECT_CALL(device_, GetHttpRequestTimeout()) in TEST_F()
975 EXPECT_CALL(device_, GetHttpRequestTimeout()) in TEST_F()
998 EXPECT_CALL(device_, GetHttpRequestTimeout()) in TEST_F()
1020 EXPECT_CALL(device_, GetHttpRequestTimeout()) in TEST_F()
1042 EXPECT_CALL(device_, GetHttpRequestTimeout()) in TEST_F()
[all …]
Dpublisher.cc33 : dns_sd_{dns_sd}, device_{device}, cloud_{cloud}, wifi_{wifi} { in Publisher()
34 CHECK(device_);
45 if (device_->GetHttpEnpoint().first == 0) in Update()
56 const uint16_t port = device_->GetHttpEnpoint().first; in ExposeService()
Dprivet_manager.cc56 device_ = DeviceDelegate::CreateDefault( in Start()
76 publisher_.reset(new Publisher(device_.get(), cloud_.get(), in Start()
80 privet_handler_.reset(new PrivetHandler(cloud_.get(), device_.get(), in Start()
Dpublisher.h44 const DeviceDelegate* device_{nullptr};
Dprivet_manager.h84 std::unique_ptr<DeviceDelegate> device_; variable
Dprivet_handler.cc374 device_(device), in PrivetHandler()
379 CHECK(device_); in PrivetHandler()
558 output.Set(kInfoEndpointsKey, CreateEndpointsSection(*device_).release()); in HandleInfo()
958 base::TimeDelta timeout = device_->GetHttpRequestTimeout(); in HandleCheckForUpdates()
1023 device_->PostDelayedTask( in HandleCheckForUpdates()
Dprivet_handler.h142 DeviceDelegate* device_{nullptr};
/external/libweave/src/
Dbase_api_handler.cc26 : device_info_{device_info}, device_{device} { in BaseApiHandler()
27 device_->AddTraitDefinitionsFromJson(R"({
100 CHECK(device_->AddComponent(kBaseComponent, {kBaseTrait}, nullptr));
101 OnConfigChanged(device_->GetSettings());
106 CHECK(device_->SetStateProperty(kBaseComponent, kBaseStateFirmwareVersion,
110 device_->AddCommandHandler(
115 device_->AddCommandHandler(kBaseComponent, "base.updateDeviceInfo",
166 device_->SetStateProperties(kBaseComponent, state, nullptr); in OnConfigChanged()
Dbase_api_handler_unittest.cc34 EXPECT_CALL(device_, AddTraitDefinitionsFromJson(_)) in SetUp()
38 EXPECT_CALL(device_, SetStateProperties(_, _, _)) in SetUp()
41 EXPECT_CALL(device_, SetStateProperty(_, _, _, _)) in SetUp()
44 EXPECT_CALL(device_, AddComponent(_, _, _)) in SetUp()
51 EXPECT_CALL(device_, in SetUp()
62 EXPECT_CALL(device_, GetSettings()) in SetUp()
65 handler_.reset(new BaseApiHandler{dev_reg_.get(), &device_}); in SetUp()
100 StrictMock<test::MockDevice> device_; member in weave::BaseApiHandlerTest
Daccess_api_handler.cc55 : device_{device}, manager_{manager} { in AccessApiHandler()
56 device_->AddTraitDefinitionsFromJson(R"({
118 CHECK(device_->AddComponent(kComponent, {kTrait}, nullptr));
121 device_->AddCommandHandler(
124 device_->AddCommandHandler(
127 device_->AddCommandHandler(
224 device_->SetStateProperties(kComponent, state, nullptr); in UpdateState()
Daccess_api_handler_unittest.cc47 EXPECT_CALL(device_, AddTraitDefinitionsFromJson(_)) in SetUp()
51 EXPECT_CALL(device_, SetStateProperties(_, _, _)) in SetUp()
54 EXPECT_CALL(device_, SetStateProperty(_, _, _, _)) in SetUp()
57 EXPECT_CALL(device_, AddComponent(_, _, _)) in SetUp()
64 EXPECT_CALL(device_, in SetUp()
76 handler_.reset(new AccessApiHandler{&device_, &access_manager_}); in SetUp()
105 StrictMock<test::MockDevice> device_; member in weave::AccessApiHandlerTest
Dweave_unittest.cc277 device_ = weave::Device::Create(&config_store_, &task_runner_, in StartDevice()
314 device_->AddTraitDefinitionsFromJson(kTraitDefs); in StartDevice()
316 device_->AddComponent("myComponent", {"trait1", "trait2"}, nullptr)); in StartDevice()
317 EXPECT_TRUE(device_->SetStatePropertiesFromJson( in StartDevice()
350 std::unique_ptr<weave::Device> device_; member in weave::WeaveTest
361 device_ = weave::Device::Create(&config_store_, &task_runner_, &http_client_, in TEST_F()
371 device_ = weave::Device::Create(&config_store_, &task_runner_, &http_client_, in TEST_F()
374 device_->AddTraitDefinitionsFromJson(kTraitDefs); in TEST_F()
376 device_->AddComponent("myComponent", {"trait1", "trait2"}, nullptr)); in TEST_F()
424 device_->Register("TICKET_ID", base::Bind([this, &done](ErrorPtr error) { in TEST_F()
[all …]
Dbase_api_handler.h36 Device* device_{nullptr};
Daccess_api_handler.h38 Device* device_{nullptr};
/external/libweave/examples/daemon/common/
Ddaemon.h85 device_ = weave::Device::Create(config_store_.get(), task_runner_.get(),
91 device_->Register(opts.registration_ticket_,
92 base::Bind(&OnRegisterDeviceDone, device_.get()));
98 weave::Device* GetDevice() const { return device_.get(); } in GetDevice()
121 std::unique_ptr<weave::Device> device_; variable
/external/libweave/examples/daemon/sample/
Dsample.cc62 device_ = device; in Register()
109 device_->SetStateProperty(kComponent, "_sample.pingCount", in OnPingCommand()
111 LOG(INFO) << "New component state: " << device_->GetComponents(); in OnPingCommand()
156 weave::Device* device_{nullptr}; member in SampleHandler
/external/libweave/examples/daemon/lock/
Dlock.cc72 device_ = device; in Register()
124 device_->SetStateProperty(kComponent, "lock.lockedState", in UpdateLockState()
128 weave::Device* device_{nullptr}; member in LockHandler
/external/libweave/examples/daemon/ledflasher/
Dledflasher.cc62 device_ = device; in Register()
137 device_->SetStateProperty(kComponent, "_ledflasher.leds", list, nullptr); in UpdateLedState()
140 weave::Device* device_{nullptr}; member in LedFlasherHandler
/external/libweave/examples/daemon/speaker/
Dspeaker.cc74 device_ = device; in Register()
155 device_->SetStateProperties(kComponent, state, nullptr); in UpdateSpeakerState()
158 weave::Device* device_{nullptr}; member in SpeakerHandler
/external/libweave/examples/daemon/oven/
Doven.cc146 device_ = device; in Register()
240 device_->SetStateProperties(kComponent, state, nullptr); in UpdateOvenState()
265 weave::Device* device_{nullptr}; member in OvenHandler
/external/libweave/examples/daemon/light/
Dlight.cc178 device_ = device; in Register()
292 device_->SetStateProperties(kComponent, state, nullptr); in UpdateLightState()
295 weave::Device* device_{nullptr}; member in LightHandler
/external/deqp/external/vulkancts/modules/vulkan/
DvktSynchronization.cpp586 const VkDevice device_, in TestContext()
591 , device (device_) in TestContext()
/external/deqp/external/vulkancts/modules/vulkan/api/
DvktApiObjectManagementTests.cpp249 VkDevice device_, in Environment()
256 , device (device_) in Environment()