Home
last modified time | relevance | path

Searched refs:GetState (Results 1 – 13 of 13) sorted by relevance

/system/bt/test/suite/adapter/
Dadapter_unittest.cc35 EXPECT_EQ(GetState(), BT_STATE_OFF) in TEST_F()
40 EXPECT_EQ(GetState(), BT_STATE_ON) << "Adapter did not turn on."; in TEST_F()
44 EXPECT_EQ(GetState(), BT_STATE_OFF) << "Adapter did not turn off."; in TEST_F()
48 EXPECT_EQ(GetState(), BT_STATE_OFF) in TEST_F()
54 EXPECT_EQ(GetState(), BT_STATE_ON) << "Adapter did not turn on."; in TEST_F()
58 EXPECT_EQ(GetState(), BT_STATE_OFF) << "Adapter did not turn off."; in TEST_F()
67 EXPECT_EQ(GetState(), BT_STATE_ON) in TEST_F()
110 EXPECT_EQ(GetState(), BT_STATE_OFF) << "Adapter did not turn off."; in TEST_F()
118 EXPECT_EQ(GetState(), BT_STATE_ON) in TEST_F()
128 EXPECT_EQ(GetState(), BT_STATE_OFF) << "Adapter did not turn off."; in TEST_F()
[all …]
Dbluetooth_test.h48 bt_state_t GetState();
Dbluetooth_test.cc77 bt_state_t BluetoothTest::GetState() { return state_; } in GetState() function in bttest::BluetoothTest
/system/bt/service/test/
Dadapter_unittest.cc125 EXPECT_EQ(bluetooth::ADAPTER_STATE_OFF, adapter_->GetState()); in TEST_F()
129 EXPECT_EQ(bluetooth::ADAPTER_STATE_OFF, adapter_->GetState()); in TEST_F()
140 EXPECT_EQ(bluetooth::ADAPTER_STATE_TURNING_ON, adapter_->GetState()); in TEST_F()
145 EXPECT_EQ(bluetooth::ADAPTER_STATE_ON, adapter_->GetState()); in TEST_F()
160 EXPECT_EQ(bluetooth::ADAPTER_STATE_OFF, adapter_->GetState()); in TEST_F()
164 EXPECT_EQ(bluetooth::ADAPTER_STATE_OFF, adapter_->GetState()); in TEST_F()
180 EXPECT_EQ(bluetooth::ADAPTER_STATE_TURNING_OFF, adapter_->GetState()); in TEST_F()
184 EXPECT_EQ(bluetooth::ADAPTER_STATE_ON, adapter_->GetState()); in TEST_F()
Dmock_adapter.h33 MOCK_CONST_METHOD0(GetState, AdapterState());
/system/bt/service/
Dadapter.cc103 AdapterState GetState() const override { return state_.load(); } in GetState() function in bluetooth::AdapterImpl
108 AdapterState current_state = GetState(); in Enable()
139 AdapterState current_state = GetState(); in Disable()
236 AdapterState prev_state = GetState(); in AdapterStateChangedCallback()
251 NotifyAdapterStateChanged(prev_state, GetState()); in AdapterStateChangedCallback()
Dadapter.h77 virtual AdapterState GetState() const = 0;
/system/bt/service/common/android/bluetooth/
DIBluetooth.aidl30 int GetState(); in GetState() method
/system/bt/test/suite/rfcomm/
Drfcomm_test.cc36 ASSERT_TRUE(GetState() == BT_STATE_ON); in SetUp()
/system/bt/service/ipc/binder/
Dbluetooth_binder_server.cc57 Status BluetoothBinderServer::GetState(int32_t* _aidl_return) { in GetState() function in ipc::binder::BluetoothBinderServer
59 *_aidl_return = adapter_->GetState(); in GetState()
Dbluetooth_binder_server.h61 Status GetState(int32_t* _aidl_return) override;
/system/bt/test/suite/gatt/
Dgatt_test.cc39 EXPECT_TRUE(GetState() == BT_STATE_ON); in SetUp()
/system/bt/service/client/
Dmain.cc364 bt_iface->GetState(&st); in HandleGetState()
413 bt_iface->GetState(&adapter_state); in HandleAdapterInfo()