/system/bt/service/test/ |
D | adapter_unittest.cc | 122 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/ |
D | fake_bluetooth_gatt_interface.cc | 271 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 …]
|
D | fake_bluetooth_gatt_interface.h | 127 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;
|
D | bluetooth_gatt_interface.h | 198 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;
|
D | fake_bluetooth_interface.cc | 142 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()
|
D | fake_bluetooth_interface.h | 62 void AddObserver(Observer* observer) override; 63 void RemoveObserver(Observer* observer) override;
|
D | bluetooth_gatt_interface.cc | 445 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 …]
|
D | bluetooth_interface.h | 99 virtual void AddObserver(Observer* observer) = 0; 100 virtual void RemoveObserver(Observer* observer) = 0;
|
D | bluetooth_interface.cc | 219 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/ |
D | variable.h | 95 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()
|
D | variable_unittest.cc | 100 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()
|
D | generic_variables_unittest.cc | 197 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/ |
D | daemon_state_android.cc | 80 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()
|
D | daemon_state_interface.h | 37 virtual void AddObserver(ServiceObserverInterface* observer) = 0; 38 virtual void RemoveObserver(ServiceObserverInterface* observer) = 0;
|
D | daemon_state_android.h | 43 void AddObserver(ServiceObserverInterface* observer) override; 44 void RemoveObserver(ServiceObserverInterface* observer) override;
|
D | real_system_state.cc | 198 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()
|
D | certificate_checker.h | 121 void SetObserver(Observer* observer) { observer_ = observer; } in SetObserver() argument
|
D | update_attempter.h | 240 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/ |
D | fake_prefs.cc | 102 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()
|
D | prefs.cc | 41 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()
|
D | prefs_interface.h | 87 ObserverInterface* observer) = 0; 92 ObserverInterface* observer) = 0;
|
D | fake_prefs.h | 53 ObserverInterface* observer) override; 55 ObserverInterface* observer) override;
|
/system/bt/service/ |
D | adapter.h | 73 virtual void AddObserver(Observer* observer) = 0; 74 virtual void RemoveObserver(Observer* observer) = 0;
|
/system/bt/stack/btm/ |
D | ble_advertiser_hci_interface.cc | 109 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/ |
D | binder_proxy_helper.h | 47 android::sp<ResponseObserver> observer( in SendRequest() 56 android::binder::Status status = method_.Run(request_bytes, observer); in SendRequest()
|