Home
last modified time | relevance | path

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

12

/system/bt/service/hal/
Dfake_bluetooth_gatt_interface.cc181 for (auto& observer : scanner_observers_) { in NotifyScanResultCallback() local
182 observer.ScanResultCallback(this, bda, rssi, adv_data); in NotifyScanResultCallback()
188 for (auto& observer : client_observers_) { in NotifyRegisterClientCallback() local
189 observer.RegisterClientCallback(this, status, client_if, app_uuid); in NotifyRegisterClientCallback()
196 for (auto& observer : client_observers_) { in NotifyConnectCallback() local
197 observer.ConnectCallback(this, conn_id, status, client_if, bda); in NotifyConnectCallback()
203 for (auto& observer : client_observers_) { in NotifyDisconnectCallback() local
204 observer.DisconnectCallback(this, conn_id, status, client_if, bda); in NotifyDisconnectCallback()
210 for (auto& observer : server_observers_) { in NotifyRegisterServerCallback() local
211 observer.RegisterServerCallback(this, status, server_if, app_uuid); in NotifyRegisterServerCallback()
[all …]
Dfake_bluetooth_av_interface.cc110 for (auto& observer : a2dp_source_observers_) { in NotifyConnectionState() local
111 observer.ConnectionStateCallback(this, bda, state); in NotifyConnectionState()
113 for (auto& observer : a2dp_sink_observers_) { in NotifyConnectionState() local
114 observer.ConnectionStateCallback(this, bda, state); in NotifyConnectionState()
119 for (auto& observer : a2dp_source_observers_) { in NotifyAudioState() local
120 observer.AudioStateCallback(this, bda, state); in NotifyAudioState()
122 for (auto& observer : a2dp_sink_observers_) { in NotifyAudioState() local
123 observer.AudioStateCallback(this, bda, state); in NotifyAudioState()
131 for (auto& observer : a2dp_source_observers_) { in NotifyAudioConfig() local
132 observer.AudioConfigCallback(this, bda, codec_config, in NotifyAudioConfig()
[all …]
Dbluetooth_avrcp_interface.cc73 for (auto& observer : *GetTargetObservers()) { in RemoteFeaturesCallback()
74 observer.RemoteFeaturesCallback(bd_addr, features); in RemoteFeaturesCallback()
82 for (auto& observer : *GetTargetObservers()) { in GetPlayStatusCallback()
83 observer.GetPlayStatusCallback(bd_addr); in GetPlayStatusCallback()
91 for (auto& observer : *GetTargetObservers()) { in ListPlayerAppAttrCallback()
92 observer.ListPlayerAppAttrCallback(bd_addr); in ListPlayerAppAttrCallback()
101 for (auto& observer : *GetTargetObservers()) { in ListPlayerAppValuesCallback()
102 observer.ListPlayerAppValuesCallback(attr_id, bd_addr); in ListPlayerAppValuesCallback()
111 for (auto& observer : *GetTargetObservers()) { in GetPlayerAppValueCallback()
112 observer.GetPlayerAppValueCallback(num_attr, p_attrs, bd_addr); in GetPlayerAppValueCallback()
[all …]
Dbluetooth_av_interface.cc64 for (auto& observer : *GetA2dpSourceObservers()) { in SourceConnectionStateCallback()
65 observer.ConnectionStateCallback(g_interface, bd_addr, state); in SourceConnectionStateCallback()
73 for (auto& observer : *GetA2dpSourceObservers()) { in SourceAudioStateCallback()
74 observer.AudioStateCallback(g_interface, bd_addr, state); in SourceAudioStateCallback()
84 for (auto& observer : *GetA2dpSourceObservers()) { in SourceAudioConfigCallback()
85 observer.AudioConfigCallback(g_interface, bd_addr, codec_config, in SourceAudioConfigCallback()
95 for (auto& observer : *GetA2dpSourceObservers()) { in SourceMandatoryCodecPreferredCallback()
96 if (!observer.MandatoryCodecPreferredCallback(g_interface, bd_addr)) in SourceMandatoryCodecPreferredCallback()
106 for (auto& observer : *GetA2dpSinkObservers()) { in SinkConnectionStateCallback()
107 observer.ConnectionStateCallback(g_interface, bd_addr, state); in SinkConnectionStateCallback()
[all …]
Dfake_bluetooth_interface.cc94 for (auto& observer : observers_) { in NotifyAdapterStateChanged() local
95 observer.AdapterStateChangedCallback(state); in NotifyAdapterStateChanged()
101 for (auto& observer : observers_) { in NotifyAdapterPropertiesChanged() local
102 observer.AdapterPropertiesCallback(BT_STATUS_SUCCESS, num_properties, in NotifyAdapterPropertiesChanged()
144 for (auto& observer : observers_) { in NotifyAclStateChangedCallback() local
145 observer.AclStateChangedCallback(status, remote_bdaddr, state); in NotifyAclStateChangedCallback()
149 void FakeBluetoothInterface::AddObserver(Observer* observer) { in AddObserver() argument
150 observers_.AddObserver(observer); in AddObserver()
153 void FakeBluetoothInterface::RemoveObserver(Observer* observer) { in RemoveObserver() argument
154 observers_.RemoveObserver(observer); in RemoveObserver()
Dbluetooth_av_interface.h81 virtual void AddA2dpSourceObserver(A2dpSourceObserver* observer) = 0;
82 virtual void RemoveA2dpSourceObserver(A2dpSourceObserver* observer) = 0;
83 virtual void AddA2dpSinkObserver(A2dpSinkObserver* observer) = 0;
84 virtual void RemoveA2dpSinkObserver(A2dpSinkObserver* observer) = 0;
Dfake_bluetooth_av_interface.h83 void AddA2dpSourceObserver(A2dpSourceObserver* observer) override;
84 void RemoveA2dpSourceObserver(A2dpSourceObserver* observer) override;
85 void AddA2dpSinkObserver(A2dpSinkObserver* observer) override;
86 void RemoveA2dpSinkObserver(A2dpSinkObserver* observer) override;
Dbluetooth_gatt_interface.cc62 for (auto& observer : *GetScannerObservers()) { \
63 observer.func; \
67 for (auto& observer : *GetClientObservers()) { \
68 observer.func; \
72 for (auto& observer : *GetServerObservers()) { \
73 observer.func; \
443 void AddScannerObserver(ScannerObserver* observer) override { in AddScannerObserver() argument
444 scanner_observers_.AddObserver(observer); in AddScannerObserver()
447 void RemoveScannerObserver(ScannerObserver* observer) override { in RemoveScannerObserver() argument
448 scanner_observers_.RemoveObserver(observer); in RemoveScannerObserver()
[all …]
Dfake_bluetooth_gatt_interface.h129 void AddScannerObserver(ScannerObserver* observer) override;
130 void RemoveScannerObserver(ScannerObserver* observer) override;
131 void AddClientObserver(ClientObserver* observer) override;
132 void RemoveClientObserver(ClientObserver* observer) override;
133 void AddServerObserver(ServerObserver* observer) override;
134 void RemoveServerObserver(ServerObserver* observer) override;
Dbluetooth_gatt_interface.h200 virtual void AddScannerObserver(ScannerObserver* observer) = 0;
201 virtual void RemoveScannerObserver(ScannerObserver* observer) = 0;
205 virtual void AddClientObserver(ClientObserver* observer) = 0;
206 virtual void RemoveClientObserver(ClientObserver* observer) = 0;
210 virtual void AddServerObserver(ServerObserver* observer) = 0;
211 virtual void RemoveServerObserver(ServerObserver* observer) = 0;
Dfake_bluetooth_interface.h62 void AddObserver(Observer* observer) override;
63 void RemoveObserver(Observer* observer) override;
Dbluetooth_interface.cc58 for (auto& observer : *GetObservers()) { \
59 observer.func; \
228 void AddObserver(Observer* observer) override { in AddObserver() argument
230 observers_.AddObserver(observer); in AddObserver()
233 void RemoveObserver(Observer* observer) override { in RemoveObserver() argument
235 observers_.RemoveObserver(observer); in RemoveObserver()
/system/bt/service/test/
Dadapter_unittest.cc121 TestObserver observer(adapter_.get()); in TEST_F() local
135 EXPECT_EQ(bluetooth::ADAPTER_STATE_OFF, observer.prev_state()); in TEST_F()
136 EXPECT_EQ(bluetooth::ADAPTER_STATE_TURNING_ON, observer.cur_state()); in TEST_F()
147 EXPECT_EQ(bluetooth::ADAPTER_STATE_TURNING_ON, observer.prev_state()); in TEST_F()
148 EXPECT_EQ(bluetooth::ADAPTER_STATE_ON, observer.cur_state()); in TEST_F()
155 TestObserver observer(adapter_.get()); in TEST_F() local
169 EXPECT_EQ(bluetooth::ADAPTER_STATE_OFF, observer.prev_state()); in TEST_F()
170 EXPECT_EQ(bluetooth::ADAPTER_STATE_ON, observer.cur_state()); in TEST_F()
175 EXPECT_EQ(bluetooth::ADAPTER_STATE_ON, observer.prev_state()); in TEST_F()
176 EXPECT_EQ(bluetooth::ADAPTER_STATE_TURNING_OFF, observer.cur_state()); in TEST_F()
[all …]
/system/bt/gd/packet/
Dbyte_inserter.cc30 void ByteInserter::RegisterObserver(const ByteObserver& observer) { in RegisterObserver() argument
31 registered_observers_.push_back(observer); in RegisterObserver()
35 ByteObserver observer = registered_observers_.back(); in UnregisterObserver() local
37 return observer; in UnregisterObserver()
41 for (auto& observer : registered_observers_) { in on_byte() local
42 observer.OnByte(byte); in on_byte()
/system/update_engine/update_manager/
Dvariable.h89 virtual void AddObserver(BaseVariable::ObserverInterface* observer) { in AddObserver() argument
90 if (std::find(observer_list_.begin(), observer_list_.end(), observer) == in AddObserver()
92 observer_list_.push_back(observer); in AddObserver()
96 virtual void RemoveObserver(BaseVariable::ObserverInterface* observer) { in RemoveObserver() argument
97 observer_list_.remove(observer); in RemoveObserver()
153 for (auto& observer : observer_list_copy) { in OnValueChangedNotification()
154 if (std::find(observer_list_.begin(), observer_list_.end(), observer) != in OnValueChangedNotification()
156 observer->ValueChanged(this); in OnValueChangedNotification()
Dvariable_unittest.cc95 BaseVariableObserver observer; in TEST_F() local
96 var.AddObserver(&observer); in TEST_F()
98 var.AddObserver(&observer); in TEST_F()
100 var.RemoveObserver(&observer); in TEST_F()
102 var.RemoveObserver(&observer); in TEST_F()
137 for (auto& observer : remove_observers_) { in ValueChanged() local
138 variable->RemoveObserver(observer); in ValueChanged()
143 void OnCallRemoveObserver(BaseVariable::ObserverInterface* observer) { in OnCallRemoveObserver() argument
144 remove_observers_.push_back(observer); in OnCallRemoveObserver()
Dgeneric_variables_unittest.cc187 CallCounterObserver observer; in TEST_F() local
188 var.AddObserver(&observer); in TEST_F()
189 EXPECT_EQ(0, observer.calls_count_); in TEST_F()
194 EXPECT_EQ(1, observer.calls_count_); in TEST_F()
199 EXPECT_EQ(1, observer.calls_count_); in TEST_F()
204 EXPECT_EQ(2, observer.calls_count_); in TEST_F()
209 EXPECT_EQ(2, observer.calls_count_); in TEST_F()
211 var.RemoveObserver(&observer); in TEST_F()
/system/bt/service/
Dadapter.cc219 void AddObserver(Adapter::Observer* observer) override { in AddObserver() argument
221 observers_.AddObserver(observer); in AddObserver()
224 void RemoveObserver(Adapter::Observer* observer) override { in RemoveObserver() argument
226 observers_.RemoveObserver(observer); in RemoveObserver()
534 for (auto& observer : observers_) { in AdapterPropertiesCallback() local
535 observer.OnGetBondedDevices(this, status, {}); in AdapterPropertiesCallback()
590 for (auto& observer : observers_) { in AdapterPropertiesCallback() local
591 observer.OnGetBondedDevices(this, status, str_addrs); in AdapterPropertiesCallback()
612 for (auto& observer : observers_) { in RemoteDevicePropertiesCallback() local
613 observer.OnGetRemoteDeviceProperties(this, status, device_address, in RemoteDevicePropertiesCallback()
[all …]
/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.cc233 void RealSystemState::AddObserver(ServiceObserverInterface* observer) { in AddObserver() argument
235 update_attempter_->AddObserver(observer); in AddObserver()
238 void RealSystemState::RemoveObserver(ServiceObserverInterface* observer) { in RemoveObserver() argument
240 update_attempter_->RemoveObserver(observer); in RemoveObserver()
/system/update_engine/common/
Dfake_prefs.cc103 for (ObserverInterface* observer : copy_observers) in Delete()
104 observer->OnPrefDeleted(key); in Delete()
143 for (ObserverInterface* observer : copy_observers) in SetValue()
144 observer->OnPrefSet(key); in SetValue()
159 void FakePrefs::AddObserver(const string& key, ObserverInterface* observer) { in AddObserver() argument
160 observers_[key].push_back(observer); in AddObserver()
163 void FakePrefs::RemoveObserver(const string& key, ObserverInterface* observer) { in RemoveObserver() argument
166 std::find(observers_for_key.begin(), observers_for_key.end(), observer); in RemoveObserver()
Dprefs.cc61 for (ObserverInterface* observer : copy_observers) in SetString()
62 observer->OnPrefSet(key); in SetString()
109 for (ObserverInterface* observer : copy_observers) in Delete()
110 observer->OnPrefDeleted(key); in Delete()
119 void PrefsBase::AddObserver(const string& key, ObserverInterface* observer) { in AddObserver() argument
120 observers_[key].push_back(observer); in AddObserver()
123 void PrefsBase::RemoveObserver(const string& key, ObserverInterface* observer) { in RemoveObserver() argument
126 std::find(observers_for_key.begin(), observers_for_key.end(), observer); in RemoveObserver()
/system/bt/stack/btm/
Dble_advertiser_hci_interface.cc112 AdvertisingEventObserver* observer) override { in SetAdvertisingEventObserver() argument
113 this->advertising_event_observer = observer; in SetAdvertisingEventObserver()
307 AdvertisingEventObserver* observer = in VendorSpecificEventCback() local
310 if (observer) in VendorSpecificEventCback()
311 observer->OnAdvertisingSetTerminated(change_reason, adv_inst, conn_handle, in VendorSpecificEventCback()
340 AdvertisingEventObserver* observer) override { in SetAdvertisingEventObserver() argument
341 this->advertising_event_observer = observer; in SetAdvertisingEventObserver()
504 AdvertisingEventObserver* observer = this->advertising_event_observer; in OnAdvertisingSetTerminated() local
505 if (observer) in OnAdvertisingSetTerminated()
506 observer->OnAdvertisingSetTerminated(status, 0 /*advertising_handle*/, in OnAdvertisingSetTerminated()
[all …]

12