/system/bt/service/hal/ |
D | fake_bluetooth_gatt_interface.cc | 185 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 …]
|
D | fake_bluetooth_av_interface.cc | 111 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 …]
|
D | bluetooth_avrcp_interface.cc | 74 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 …]
|
D | bluetooth_av_interface.cc | 65 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 …]
|
D | fake_bluetooth_interface.cc | 96 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()
|
D | bluetooth_av_interface.h | 81 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;
|
D | fake_bluetooth_av_interface.h | 84 void AddA2dpSourceObserver(A2dpSourceObserver* observer) override; 85 void RemoveA2dpSourceObserver(A2dpSourceObserver* observer) override; 86 void AddA2dpSinkObserver(A2dpSinkObserver* observer) override; 87 void RemoveA2dpSinkObserver(A2dpSinkObserver* observer) override;
|
D | bluetooth_gatt_interface.cc | 63 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 …]
|
D | fake_bluetooth_gatt_interface.h | 132 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;
|
D | bluetooth_gatt_interface.h | 200 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;
|
D | fake_bluetooth_interface.h | 64 void AddObserver(Observer* observer) override; 65 void RemoveObserver(Observer* observer) override;
|
D | bluetooth_interface.cc | 59 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/ |
D | adapter_unittest.cc | 121 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/ |
D | byte_inserter.cc | 30 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/ |
D | variable.h | 93 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()
|
D | variable_unittest.cc | 95 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()
|
D | generic_variables_unittest.cc | 187 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/ |
D | adapter.cc | 220 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/ |
D | daemon_state_android.cc | 84 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()
|
D | daemon_state_android.h | 43 void AddObserver(ServiceObserverInterface* observer) override; 44 void RemoveObserver(ServiceObserverInterface* observer) override;
|
/system/iorap/src/binder/ |
D | package_manager_remote.h | 37 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);
|
D | package_manager_remote.cc | 146 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/ |
D | fake_prefs.cc | 104 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()
|
D | daemon_state_interface.h | 36 virtual void AddObserver(ServiceObserverInterface* observer) = 0; 37 virtual void RemoveObserver(ServiceObserverInterface* observer) = 0;
|
D | prefs.cc | 63 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()
|