Home | History | Annotate | Download | only in libweaved

Lines Matching refs:ServiceImpl

43 // Service::Connect() creates an instance of ServiceImpl class and sets the only
52 // over binder is initiated. ServiceImpl periodically tries to get hold of
76 // In case a connection to weaved is lost, the ServiceImpl class will be deleted
78 // A new instance of ServiceImpl is created and the strong reference in
81 // instance of ServiceImpl.
106 class ServiceImpl;
119 explicit WeaveClient(const std::weak_ptr<ServiceImpl>& service);
136 std::weak_ptr<ServiceImpl> service_;
145 explicit NotificationListener(const std::weak_ptr<ServiceImpl>& service);
152 std::weak_ptr<ServiceImpl> service_;
158 // ServiceImpl is a concrete implementation of weaved::Service interface.
166 class ServiceImpl : public std::enable_shared_from_this<ServiceImpl>,
172 ServiceImpl(android::BinderWrapper* binder_wrapper,
176 ~ServiceImpl() override;
228 // this instance of ServiceImpl class, creates a new one and re-initiates
248 base::WeakPtrFactory<ServiceImpl> weak_ptr_factory_{this};
249 DISALLOW_COPY_AND_ASSIGN(ServiceImpl);
252 WeaveClient::WeaveClient(const std::weak_ptr<ServiceImpl>& service)
280 const std::weak_ptr<ServiceImpl>& service)
291 ServiceImpl::ServiceImpl(android::BinderWrapper* binder_wrapper,
301 ServiceImpl::~ServiceImpl() {
309 bool ServiceImpl::AddComponent(const std::string& component,
324 void ServiceImpl::AddCommandHandler(const std::string& component,
346 bool ServiceImpl::SetStateProperties(const std::string& component,
356 bool ServiceImpl::SetStateProperty(const std::string& component,
368 void ServiceImpl::SetPairingInfoListener(const PairingInfoCallback& callback) {
378 void ServiceImpl::BeginConnect() {
380 ServiceImpl::TryConnecting,
384 void ServiceImpl::OnServiceConnected(
390 void ServiceImpl::OnCommand(
407 void ServiceImpl::TryConnecting() {
415 base::Bind(&ServiceImpl::TryConnecting, weak_ptr_factory_.GetWeakPtr()),
421 binder, base::Bind(&ServiceImpl::OnWeaveServiceDisconnected,
437 void ServiceImpl::OnWeaveServiceDisconnected() {
440 base::Bind(&ServiceImpl::ReconnectOnServiceDisconnection,
444 void ServiceImpl::ReconnectOnServiceDisconnection() {
448 auto service = std::make_shared<ServiceImpl>(
455 // Do not call any methods or use resources of ServiceImpl after this point
459 void ServiceImpl::OnNotification(const std::vector<int>& notification_ids) {
502 auto service = std::make_shared<ServiceImpl>(