Home
last modified time | relevance | path

Searched refs:new_state (Results 1 – 19 of 19) sorted by relevance

/system/bt/service/doc/
DIBluetoothCallback.txt23 * Called when the adapter state changes from |prev_state| to |new_state|.
25 void onBluetoothStateChange(in int prev_state, in int new_state);
/system/bt/service/common/android/bluetooth/
DIBluetoothCallback.aidl22 void OnBluetoothStateChange(int prev_state, int new_state); in OnBluetoothStateChange() argument
/system/bt/test/suite/adapter/
Dbluetooth_test.cc119 void BluetoothTest::AdapterStateChangedCallback(bt_state_t new_state) { in AdapterStateChangedCallback() argument
120 state_ = new_state; in AdapterStateChangedCallback()
/system/bt/gd/rust/topshim/src/
Dbtif.rs345 let new_state = match BtState::from_i32(state) { in adapter_state_changed_callback() localVariable
349 (cb.inner.adapter_state_changed)(new_state); in adapter_state_changed_callback()
379 let new_state = match BtDiscoveryState::from_i32(state) { in discovery_state_changed_callback() localVariable
383 (cb.inner.discovery_state_changed)(new_state); in discovery_state_changed_callback()
/system/bt/gd/rust/linux/service/src/
Diface_bluetooth.rs25 fn on_bluetooth_state_changed(&self, prev_state: u32, new_state: u32) {} in on_bluetooth_state_changed()
/system/bt/tools/bdtool/
Dadapter.c77 void adapter_state_changed(bt_state_t new_state) { in adapter_state_changed() argument
78 state = new_state; in adapter_state_changed()
/system/core/init/
Dservice.cpp160 void Service::NotifyStateChange(const std::string& new_state) const { in NotifyStateChange()
167 SetProperty(prop_name, new_state); in NotifyStateChange()
169 if (new_state == "running") { in NotifyStateChange()
180 if (new_state == "running") { in NotifyStateChange()
182 } else if (new_state == "stopped") { in NotifyStateChange()
Dservice.h143 void NotifyStateChange(const std::string& new_state) const;
/system/security/keystore2/src/
Dlegacy_migrator.rs245 let (new_state, result) = if let Some(legacy_migrator_state) = in do_serialized()
256 if result.is_some() && new_state == Self::STATE_EMPTY { in do_serialized()
261 if let Err(e) = sender.send((new_state, result)) { in do_serialized()
266 let (new_state, result) = match receiver.recv() { in do_serialized()
275 if new_state == Self::STATE_EMPTY { in do_serialized()
/system/bt/service/ipc/binder/
Dbluetooth_binder_server.cc387 bluetooth::AdapterState new_state) { in OnAdapterStateChanged() argument
390 << " new: " << new_state; in OnAdapterStateChanged()
391 callbacks_.ForEach([prev_state, new_state](IBluetoothCallback* callback) { in OnAdapterStateChanged()
392 callback->OnBluetoothStateChange(prev_state, new_state); in OnAdapterStateChanged()
Dbluetooth_binder_server.h125 bluetooth::AdapterState new_state) override;
/system/bt/service/
Dadapter.cc151 AdapterState new_state) { in OnAdapterStateChanged() argument
740 AdapterState new_state) { in NotifyAdapterStateChanged() argument
741 if (prev_state == new_state) return; in NotifyAdapterStateChanged()
745 observer.OnAdapterStateChanged(this, prev_state, new_state); in NotifyAdapterStateChanged()
Dadapter.h63 AdapterState new_state);
/system/bt/service/test/
Dadapter_unittest.cc87 bluetooth::AdapterState new_state) override { in OnAdapterStateChanged() argument
90 cur_state_ = new_state; in OnAdapterStateChanged()
/system/bt/gd/rust/linux/stack/src/
Dbluetooth.rs43 fn on_bluetooth_state_changed(&self, prev_state: u32, new_state: u32); in on_bluetooth_state_changed()
/system/nfc/src/nfa/dm/
Dnfa_dm_discover.cc1682 void nfa_dm_disc_new_state(tNFA_DM_RF_DISC_STATE new_state) { in nfa_dm_disc_new_state() argument
1690 nfa_dm_cb.disc_cb.disc_state, nfa_dm_disc_state_2_str(new_state).c_str(), in nfa_dm_disc_new_state()
1691 new_state, nfa_dm_cb.disc_cb.disc_flags); in nfa_dm_disc_new_state()
1693 nfa_dm_cb.disc_cb.disc_state = new_state; in nfa_dm_disc_new_state()
1696 if ((new_state == NFA_DM_RFST_IDLE) && in nfa_dm_disc_new_state()
/system/bt/service/client/
Dmain.cc152 int32_t new_state) override { in OnBluetoothStateChange() argument
157 << AdapterStateToString(bluetooth::AdapterState(new_state)) in OnBluetoothStateChange()
/system/nfc/src/nfa/include/
Dnfa_dm_int.h664 void nfa_dm_disc_new_state(tNFA_DM_RF_DISC_STATE new_state);
/system/bt/stack/btm/
Dbtm_sec.cc95 static void btm_sec_change_pairing_state(tBTM_PAIRING_STATE new_state);
4522 static void btm_sec_change_pairing_state(tBTM_PAIRING_STATE new_state) { in btm_sec_change_pairing_state() argument
4527 btm_pair_state_descr(new_state), btm_cb.pairing_flags); in btm_sec_change_pairing_state()
4532 btm_pair_state_descr(new_state))); in btm_sec_change_pairing_state()
4533 btm_cb.pairing_state = new_state; in btm_sec_change_pairing_state()
4535 if (new_state == BTM_PAIR_STATE_IDLE) { in btm_sec_change_pairing_state()