Home
last modified time | relevance | path

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

12

/system/bt/service/hal/
Dfake_bluetooth_gatt_interface.cc185 for (auto& observer : scanner_observers_) { in NotifyScanResultCallback() local
186 observer.ScanResultCallback(this, bda, rssi, adv_data); in NotifyScanResultCallback()
192 for (auto& observer : client_observers_) { in NotifyRegisterClientCallback() local
193 observer.RegisterClientCallback(this, status, client_if, app_uuid); in NotifyRegisterClientCallback()
200 for (auto& observer : client_observers_) { in NotifyConnectCallback() local
201 observer.ConnectCallback(this, conn_id, status, client_if, bda); in NotifyConnectCallback()
207 for (auto& observer : client_observers_) { in NotifyDisconnectCallback() local
208 observer.DisconnectCallback(this, conn_id, status, client_if, bda); in NotifyDisconnectCallback()
214 for (auto& observer : server_observers_) { in NotifyRegisterServerCallback() local
215 observer.RegisterServerCallback(this, status, server_if, app_uuid); in NotifyRegisterServerCallback()
[all …]
Dfake_bluetooth_av_interface.cc111 for (auto& observer : a2dp_source_observers_) { in NotifyConnectionState() local
112 observer.ConnectionStateCallback(this, bda, state); in NotifyConnectionState()
114 for (auto& observer : a2dp_sink_observers_) { in NotifyConnectionState() local
115 observer.ConnectionStateCallback(this, bda, state); in NotifyConnectionState()
120 for (auto& observer : a2dp_source_observers_) { in NotifyAudioState() local
121 observer.AudioStateCallback(this, bda, state); in NotifyAudioState()
123 for (auto& observer : a2dp_sink_observers_) { in NotifyAudioState() local
124 observer.AudioStateCallback(this, bda, state); in NotifyAudioState()
132 for (auto& observer : a2dp_source_observers_) { in NotifyAudioConfig() local
133 observer.AudioConfigCallback(this, bda, codec_config, in NotifyAudioConfig()
[all …]
Dbluetooth_avrcp_interface.cc74 for (auto& observer : *GetTargetObservers()) { in RemoteFeaturesCallback()
75 observer.RemoteFeaturesCallback(bd_addr, features); in RemoteFeaturesCallback()
83 for (auto& observer : *GetTargetObservers()) { in GetPlayStatusCallback()
84 observer.GetPlayStatusCallback(bd_addr); in GetPlayStatusCallback()
92 for (auto& observer : *GetTargetObservers()) { in ListPlayerAppAttrCallback()
93 observer.ListPlayerAppAttrCallback(bd_addr); in ListPlayerAppAttrCallback()
102 for (auto& observer : *GetTargetObservers()) { in ListPlayerAppValuesCallback()
103 observer.ListPlayerAppValuesCallback(attr_id, bd_addr); in ListPlayerAppValuesCallback()
112 for (auto& observer : *GetTargetObservers()) { in GetPlayerAppValueCallback()
113 observer.GetPlayerAppValueCallback(num_attr, p_attrs, bd_addr); in GetPlayerAppValueCallback()
[all …]
Dbluetooth_av_interface.cc65 for (auto& observer : *GetA2dpSourceObservers()) { in SourceConnectionStateCallback()
66 observer.ConnectionStateCallback(g_interface, bd_addr, state); in SourceConnectionStateCallback()
74 for (auto& observer : *GetA2dpSourceObservers()) { in SourceAudioStateCallback()
75 observer.AudioStateCallback(g_interface, bd_addr, state); in SourceAudioStateCallback()
85 for (auto& observer : *GetA2dpSourceObservers()) { in SourceAudioConfigCallback()
86 observer.AudioConfigCallback(g_interface, bd_addr, codec_config, in SourceAudioConfigCallback()
96 for (auto& observer : *GetA2dpSourceObservers()) { in SourceMandatoryCodecPreferredCallback()
97 if (!observer.MandatoryCodecPreferredCallback(g_interface, bd_addr)) in SourceMandatoryCodecPreferredCallback()
107 for (auto& observer : *GetA2dpSinkObservers()) { in SinkConnectionStateCallback()
108 observer.ConnectionStateCallback(g_interface, bd_addr, state); in SinkConnectionStateCallback()
[all …]
Dfake_bluetooth_interface.cc96 for (auto& observer : observers_) { in NotifyAdapterStateChanged() local
97 observer.AdapterStateChangedCallback(state); in NotifyAdapterStateChanged()
103 for (auto& observer : observers_) { in NotifyAdapterPropertiesChanged() local
104 observer.AdapterPropertiesCallback(BT_STATUS_SUCCESS, num_properties, in NotifyAdapterPropertiesChanged()
147 for (auto& observer : observers_) { in NotifyAclStateChangedCallback() local
148 observer.AclStateChangedCallback(status, remote_bdaddr, state, hci_reason); in NotifyAclStateChangedCallback()
152 void FakeBluetoothInterface::AddObserver(Observer* observer) { in AddObserver() argument
153 observers_.AddObserver(observer); in AddObserver()
156 void FakeBluetoothInterface::RemoveObserver(Observer* observer) { in RemoveObserver() argument
157 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.h84 void AddA2dpSourceObserver(A2dpSourceObserver* observer) override;
85 void RemoveA2dpSourceObserver(A2dpSourceObserver* observer) override;
86 void AddA2dpSinkObserver(A2dpSinkObserver* observer) override;
87 void RemoveA2dpSinkObserver(A2dpSinkObserver* observer) override;
Dbluetooth_gatt_interface.cc63 for (auto& observer : *GetScannerObservers()) { \
64 observer.func; \
68 for (auto& observer : *GetClientObservers()) { \
69 observer.func; \
73 for (auto& observer : *GetServerObservers()) { \
74 observer.func; \
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()
[all …]
Dfake_bluetooth_gatt_interface.h132 void AddScannerObserver(ScannerObserver* observer) override;
133 void RemoveScannerObserver(ScannerObserver* observer) override;
134 void AddClientObserver(ClientObserver* observer) override;
135 void RemoveClientObserver(ClientObserver* observer) override;
136 void AddServerObserver(ServerObserver* observer) override;
137 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.h64 void AddObserver(Observer* observer) override;
65 void RemoveObserver(Observer* observer) override;
Dbluetooth_interface.cc59 for (auto& observer : *GetObservers()) { \
60 observer.func; \
249 void AddObserver(Observer* observer) override { in AddObserver() argument
251 observers_.AddObserver(observer); in AddObserver()
254 void RemoveObserver(Observer* observer) override { in RemoveObserver() argument
256 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.h93 virtual void AddObserver(BaseVariable::ObserverInterface* observer) { in AddObserver() argument
94 if (std::find(observer_list_.begin(), observer_list_.end(), observer) == in AddObserver()
96 observer_list_.push_back(observer); in AddObserver()
100 virtual void RemoveObserver(BaseVariable::ObserverInterface* observer) { in RemoveObserver() argument
101 observer_list_.remove(observer); in RemoveObserver()
160 for (auto& observer : observer_list_copy) { in OnValueChangedNotification()
161 if (std::find(observer_list_.begin(), observer_list_.end(), observer) != in OnValueChangedNotification()
163 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.cc220 void AddObserver(Adapter::Observer* observer) override { in AddObserver() argument
222 observers_.AddObserver(observer); in AddObserver()
225 void RemoveObserver(Adapter::Observer* observer) override { in RemoveObserver() argument
227 observers_.RemoveObserver(observer); in RemoveObserver()
535 for (auto& observer : observers_) { in AdapterPropertiesCallback() local
536 observer.OnGetBondedDevices(this, status, {}); in AdapterPropertiesCallback()
593 for (auto& observer : observers_) { in AdapterPropertiesCallback() local
594 observer.OnGetBondedDevices(this, status, str_addrs); in AdapterPropertiesCallback()
615 for (auto& observer : observers_) { in RemoteDevicePropertiesCallback() local
616 observer.OnGetRemoteDeviceProperties(this, status, device_address, in RemoteDevicePropertiesCallback()
[all …]
/system/update_engine/aosp/
Ddaemon_state_android.cc84 void DaemonStateAndroid::AddObserver(ServiceObserverInterface* observer) { in AddObserver() argument
85 service_observers_.insert(observer); in AddObserver()
88 void DaemonStateAndroid::RemoveObserver(ServiceObserverInterface* observer) { in RemoveObserver() argument
89 service_observers_.erase(observer); in RemoveObserver()
Ddaemon_state_android.h43 void AddObserver(ServiceObserverInterface* observer) override;
44 void RemoveObserver(ServiceObserverInterface* observer) override;
/system/iorap/src/binder/
Dpackage_manager_remote.h37 android::sp<PackageChangeObserver> observer) : in PackageManagerDeathRecipient() argument
38 package_manager_(package_manager), observer_(observer) {} in PackageManagerDeathRecipient()
58 void RegisterPackageChangeObserver(android::sp<PackageChangeObserver> observer);
60 void UnregisterPackageChangeObserver(android::sp<PackageChangeObserver> observer);
Dpackage_manager_remote.cc146 android::sp<PackageChangeObserver> observer) { in RegisterPackageChangeObserver() argument
149 [this, &observer]() { in RegisterPackageChangeObserver()
150 return package_service_->registerPackageChangeObserver(observer); in RegisterPackageChangeObserver()
160 android::sp<PackageChangeObserver> observer) { in UnregisterPackageChangeObserver() argument
163 [this, &observer]() { in UnregisterPackageChangeObserver()
164 return package_service_->unregisterPackageChangeObserver(observer); in UnregisterPackageChangeObserver()
/system/update_engine/common/
Dfake_prefs.cc104 for (ObserverInterface* observer : copy_observers) in Delete()
105 observer->OnPrefDeleted(key); in Delete()
160 for (ObserverInterface* observer : copy_observers) in SetValue()
161 observer->OnPrefSet(key); in SetValue()
176 void FakePrefs::AddObserver(const string& key, ObserverInterface* observer) { in AddObserver() argument
177 observers_[key].push_back(observer); in AddObserver()
180 void FakePrefs::RemoveObserver(const string& key, ObserverInterface* observer) { in RemoveObserver() argument
183 std::find(observers_for_key.begin(), observers_for_key.end(), observer); in RemoveObserver()
Ddaemon_state_interface.h36 virtual void AddObserver(ServiceObserverInterface* observer) = 0;
37 virtual void RemoveObserver(ServiceObserverInterface* observer) = 0;
Dprefs.cc63 for (ObserverInterface* observer : copy_observers) in SetString()
64 observer->OnPrefSet(key); in SetString()
111 for (ObserverInterface* observer : copy_observers) in Delete()
112 observer->OnPrefDeleted(key); in Delete()
139 void PrefsBase::AddObserver(const string& key, ObserverInterface* observer) { in AddObserver() argument
140 observers_[key].push_back(observer); in AddObserver()
143 void PrefsBase::RemoveObserver(const string& key, ObserverInterface* observer) { in RemoveObserver() argument
146 std::find(observers_for_key.begin(), observers_for_key.end(), observer); in RemoveObserver()

12