Home
last modified time | relevance | path

Searched refs:prev_state (Results 1 – 9 of 9) sorted by relevance

/system/bt/service/common/bluetooth/binder/
DIBluetoothCallback.cpp48 int prev_state, new_state; in onTransact() local
49 if (data.readInt32(&prev_state) != android::NO_ERROR || in onTransact()
54 static_cast<bluetooth::AdapterState>(prev_state), in onTransact()
71 bluetooth::AdapterState prev_state, in OnBluetoothStateChange() argument
76 data.writeInt32(prev_state); in OnBluetoothStateChange()
DIBluetoothCallback.h48 bluetooth::AdapterState prev_state,
79 void OnBluetoothStateChange(bluetooth::AdapterState prev_state,
/system/bt/service/test/
Dadapter_unittest.cpp75 bluetooth::AdapterState prev_state() const { return prev_state_; } in prev_state() function in bluetooth::__anon96b87c780111::TestObserver
88 bluetooth::AdapterState prev_state, in OnAdapterStateChanged() argument
91 prev_state_ = prev_state; in OnAdapterStateChanged()
138 EXPECT_EQ(bluetooth::ADAPTER_STATE_OFF, observer.prev_state()); in TEST_F()
150 EXPECT_EQ(bluetooth::ADAPTER_STATE_TURNING_ON, observer.prev_state()); in TEST_F()
172 EXPECT_EQ(bluetooth::ADAPTER_STATE_OFF, observer.prev_state()); in TEST_F()
178 EXPECT_EQ(bluetooth::ADAPTER_STATE_ON, observer.prev_state()); in TEST_F()
189 EXPECT_EQ(bluetooth::ADAPTER_STATE_TURNING_OFF, observer.prev_state()); in TEST_F()
199 EXPECT_EQ(bluetooth::ADAPTER_STATE_TURNING_OFF, observer.prev_state()); in TEST_F()
204 EXPECT_EQ(bluetooth::ADAPTER_STATE_ON, observer.prev_state()); in TEST_F()
/system/bt/service/ipc/binder/
Dbluetooth_binder_server.cpp176 bluetooth::AdapterState prev_state, in OnAdapterStateChanged() argument
179 VLOG(2) << "Received adapter state update - prev: " << prev_state in OnAdapterStateChanged()
181 callbacks_.ForEach([prev_state, new_state](IBluetoothCallback* callback) { in OnAdapterStateChanged()
182 callback->OnBluetoothStateChange(prev_state, new_state); in OnAdapterStateChanged()
Dbluetooth_binder_server.h70 bluetooth::AdapterState prev_state,
/system/bt/service/
Dadapter.cpp60 AdapterState prev_state, in OnAdapterStateChanged() argument
232 AdapterState prev_state = GetState(); in AdapterStateChangedCallback() local
247 NotifyAdapterStateChanged(prev_state, GetState()); in AdapterStateChangedCallback()
351 void NotifyAdapterStateChanged(AdapterState prev_state, in NotifyAdapterStateChanged() argument
353 if (prev_state == new_state) in NotifyAdapterStateChanged()
358 OnAdapterStateChanged(this, prev_state, new_state)); in NotifyAdapterStateChanged()
Dadapter.h53 AdapterState prev_state,
/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/client/
Dmain.cpp134 bluetooth::AdapterState prev_state, in OnBluetoothStateChange() argument
139 << COLOR_MAGENTA << AdapterStateToString(prev_state) << COLOR_OFF in OnBluetoothStateChange()