Home
last modified time | relevance | path

Searched refs:observer (Results 1 – 25 of 34) sorted by relevance

12

/system/bt/service/test/
Dadapter_unittest.cc122 TestObserver observer(adapter_.get()); in TEST_F() local
136 EXPECT_EQ(bluetooth::ADAPTER_STATE_OFF, observer.prev_state()); in TEST_F()
137 EXPECT_EQ(bluetooth::ADAPTER_STATE_TURNING_ON, observer.cur_state()); in TEST_F()
148 EXPECT_EQ(bluetooth::ADAPTER_STATE_TURNING_ON, observer.prev_state()); in TEST_F()
149 EXPECT_EQ(bluetooth::ADAPTER_STATE_ON, observer.cur_state()); in TEST_F()
156 TestObserver observer(adapter_.get()); in TEST_F() local
170 EXPECT_EQ(bluetooth::ADAPTER_STATE_OFF, observer.prev_state()); in TEST_F()
171 EXPECT_EQ(bluetooth::ADAPTER_STATE_ON, observer.cur_state()); in TEST_F()
176 EXPECT_EQ(bluetooth::ADAPTER_STATE_ON, observer.prev_state()); in TEST_F()
177 EXPECT_EQ(bluetooth::ADAPTER_STATE_TURNING_OFF, observer.cur_state()); in TEST_F()
[all …]
/system/bt/service/hal/
Dfake_bluetooth_gatt_interface.cc271 void FakeBluetoothGattInterface::AddScannerObserver(ScannerObserver* observer) { in AddScannerObserver() argument
272 CHECK(observer); in AddScannerObserver()
273 scanner_observers_.AddObserver(observer); in AddScannerObserver()
277 ScannerObserver* observer) { in RemoveScannerObserver() argument
278 CHECK(observer); in RemoveScannerObserver()
279 scanner_observers_.RemoveObserver(observer); in RemoveScannerObserver()
282 void FakeBluetoothGattInterface::AddClientObserver(ClientObserver* observer) { in AddClientObserver() argument
283 CHECK(observer); in AddClientObserver()
284 client_observers_.AddObserver(observer); in AddClientObserver()
288 ClientObserver* observer) { in RemoveClientObserver() argument
[all …]
Dfake_bluetooth_gatt_interface.h127 void AddScannerObserver(ScannerObserver* observer) override;
128 void RemoveScannerObserver(ScannerObserver* observer) override;
129 void AddClientObserver(ClientObserver* observer) override;
130 void RemoveClientObserver(ClientObserver* observer) override;
131 void AddServerObserver(ServerObserver* observer) override;
132 void RemoveServerObserver(ServerObserver* observer) override;
Dbluetooth_gatt_interface.h198 virtual void AddScannerObserver(ScannerObserver* observer) = 0;
199 virtual void RemoveScannerObserver(ScannerObserver* observer) = 0;
203 virtual void AddClientObserver(ClientObserver* observer) = 0;
204 virtual void RemoveClientObserver(ClientObserver* observer) = 0;
208 virtual void AddServerObserver(ServerObserver* observer) = 0;
209 virtual void RemoveServerObserver(ServerObserver* observer) = 0;
Dfake_bluetooth_interface.cc142 void FakeBluetoothInterface::AddObserver(Observer* observer) { in AddObserver() argument
143 observers_.AddObserver(observer); in AddObserver()
146 void FakeBluetoothInterface::RemoveObserver(Observer* observer) { in RemoveObserver() argument
147 observers_.RemoveObserver(observer); in RemoveObserver()
Dfake_bluetooth_interface.h62 void AddObserver(Observer* observer) override;
63 void RemoveObserver(Observer* observer) override;
Dbluetooth_gatt_interface.cc445 void AddScannerObserver(ScannerObserver* observer) override { in AddScannerObserver() argument
446 scanner_observers_.AddObserver(observer); in AddScannerObserver()
449 void RemoveScannerObserver(ScannerObserver* observer) override { in RemoveScannerObserver() argument
450 scanner_observers_.RemoveObserver(observer); in RemoveScannerObserver()
453 void AddClientObserver(ClientObserver* observer) override { in AddClientObserver() argument
454 client_observers_.AddObserver(observer); in AddClientObserver()
457 void RemoveClientObserver(ClientObserver* observer) override { in RemoveClientObserver() argument
458 client_observers_.RemoveObserver(observer); in RemoveClientObserver()
461 void AddServerObserver(ServerObserver* observer) override { in AddServerObserver() argument
462 server_observers_.AddObserver(observer); in AddServerObserver()
[all …]
Dbluetooth_interface.h99 virtual void AddObserver(Observer* observer) = 0;
100 virtual void RemoveObserver(Observer* observer) = 0;
Dbluetooth_interface.cc219 void AddObserver(Observer* observer) override { in AddObserver() argument
221 observers_.AddObserver(observer); in AddObserver()
224 void RemoveObserver(Observer* observer) override { in RemoveObserver() argument
226 observers_.RemoveObserver(observer); in RemoveObserver()
/system/update_engine/update_manager/
Dvariable.h95 virtual void AddObserver(BaseVariable::ObserverInterface* observer) { in AddObserver() argument
96 if (std::find(observer_list_.begin(), observer_list_.end(), observer) == in AddObserver()
98 observer_list_.push_back(observer); in AddObserver()
102 virtual void RemoveObserver(BaseVariable::ObserverInterface* observer) { in RemoveObserver() argument
103 observer_list_.remove(observer); in RemoveObserver()
157 for (auto& observer : observer_list_copy) { in OnValueChangedNotification()
158 if (std::find(observer_list_.begin(), observer_list_.end(), observer) != in OnValueChangedNotification()
160 observer->ValueChanged(this); in OnValueChangedNotification()
Dvariable_unittest.cc100 BaseVariableObserver observer; in TEST_F() local
101 var.AddObserver(&observer); in TEST_F()
103 var.AddObserver(&observer); in TEST_F()
105 var.RemoveObserver(&observer); in TEST_F()
107 var.RemoveObserver(&observer); in TEST_F()
142 for (auto& observer : remove_observers_) { in ValueChanged() local
143 variable->RemoveObserver(observer); in ValueChanged()
148 void OnCallRemoveObserver(BaseVariable::ObserverInterface* observer) { in OnCallRemoveObserver() argument
149 remove_observers_.push_back(observer); in OnCallRemoveObserver()
Dgeneric_variables_unittest.cc197 CallCounterObserver observer; in TEST_F() local
198 var.AddObserver(&observer); in TEST_F()
199 EXPECT_EQ(0, observer.calls_count_); in TEST_F()
204 EXPECT_EQ(1, observer.calls_count_); in TEST_F()
209 EXPECT_EQ(1, observer.calls_count_); in TEST_F()
214 EXPECT_EQ(2, observer.calls_count_); in TEST_F()
219 EXPECT_EQ(2, observer.calls_count_); in TEST_F()
221 var.RemoveObserver(&observer); in TEST_F()
/system/update_engine/
Ddaemon_state_android.cc80 void DaemonStateAndroid::AddObserver(ServiceObserverInterface* observer) { in AddObserver() argument
81 service_observers_.insert(observer); in AddObserver()
84 void DaemonStateAndroid::RemoveObserver(ServiceObserverInterface* observer) { in RemoveObserver() argument
85 service_observers_.erase(observer); in RemoveObserver()
Ddaemon_state_interface.h37 virtual void AddObserver(ServiceObserverInterface* observer) = 0;
38 virtual void RemoveObserver(ServiceObserverInterface* observer) = 0;
Ddaemon_state_android.h43 void AddObserver(ServiceObserverInterface* observer) override;
44 void RemoveObserver(ServiceObserverInterface* observer) override;
Dreal_system_state.cc198 void RealSystemState::AddObserver(ServiceObserverInterface* observer) { in AddObserver() argument
200 update_attempter_->AddObserver(observer); in AddObserver()
203 void RealSystemState::RemoveObserver(ServiceObserverInterface* observer) { in RemoveObserver() argument
205 update_attempter_->RemoveObserver(observer); in RemoveObserver()
Dcertificate_checker.h121 void SetObserver(Observer* observer) { observer_ = observer; } in SetObserver() argument
Dupdate_attempter.h240 void AddObserver(ServiceObserverInterface* observer) { in AddObserver() argument
241 service_observers_.insert(observer); in AddObserver()
243 void RemoveObserver(ServiceObserverInterface* observer) { in RemoveObserver() argument
244 service_observers_.erase(observer); in RemoveObserver()
/system/update_engine/common/
Dfake_prefs.cc102 for (ObserverInterface* observer : copy_observers) in Delete()
103 observer->OnPrefDeleted(key); in Delete()
135 for (ObserverInterface* observer : copy_observers) in SetValue()
136 observer->OnPrefSet(key); in SetValue()
151 void FakePrefs::AddObserver(const string& key, ObserverInterface* observer) { in AddObserver() argument
152 observers_[key].push_back(observer); in AddObserver()
155 void FakePrefs::RemoveObserver(const string& key, ObserverInterface* observer) { in RemoveObserver() argument
158 std::find(observers_for_key.begin(), observers_for_key.end(), observer); in RemoveObserver()
Dprefs.cc41 for (ObserverInterface* observer : copy_observers) in SetString()
42 observer->OnPrefSet(key); in SetString()
89 for (ObserverInterface* observer : copy_observers) in Delete()
90 observer->OnPrefDeleted(key); in Delete()
95 void PrefsBase::AddObserver(const string& key, ObserverInterface* observer) { in AddObserver() argument
96 observers_[key].push_back(observer); in AddObserver()
99 void PrefsBase::RemoveObserver(const string& key, ObserverInterface* observer) { in RemoveObserver() argument
102 std::find(observers_for_key.begin(), observers_for_key.end(), observer); in RemoveObserver()
Dprefs_interface.h87 ObserverInterface* observer) = 0;
92 ObserverInterface* observer) = 0;
Dfake_prefs.h53 ObserverInterface* observer) override;
55 ObserverInterface* observer) override;
/system/bt/service/
Dadapter.h73 virtual void AddObserver(Observer* observer) = 0;
74 virtual void RemoveObserver(Observer* observer) = 0;
/system/bt/stack/btm/
Dble_advertiser_hci_interface.cc109 AdvertisingEventObserver* observer) override { in SetAdvertisingEventObserver() argument
110 this->advertising_event_observer = observer; in SetAdvertisingEventObserver()
282 AdvertisingEventObserver* observer = in VendorSpecificEventCback() local
285 if (observer) in VendorSpecificEventCback()
286 observer->OnAdvertisingSetTerminated(change_reason, adv_inst, conn_handle, in VendorSpecificEventCback()
315 AdvertisingEventObserver* observer) override {} in SetAdvertisingEventObserver() argument
465 AdvertisingEventObserver* observer) override { in SetAdvertisingEventObserver() argument
466 this->advertising_event_observer = observer; in SetAdvertisingEventObserver()
665 AdvertisingEventObserver* observer = this->advertising_event_observer; in OnAdvertisingSetTerminated() local
666 if (observer) in OnAdvertisingSetTerminated()
[all …]
/system/tpm/tpm_manager/client/
Dbinder_proxy_helper.h47 android::sp<ResponseObserver> observer( in SendRequest()
56 android::binder::Status status = method_.Run(request_bytes, observer); in SendRequest()

12