Lines Matching refs:BluetoothStreamState
50 std::ostream& operator<<(std::ostream& os, const BluetoothStreamState& state) { in operator <<()
52 case BluetoothStreamState::DISABLED: in operator <<()
54 case BluetoothStreamState::STANDBY: in operator <<()
56 case BluetoothStreamState::STARTING: in operator <<()
58 case BluetoothStreamState::STARTED: in operator <<()
60 case BluetoothStreamState::SUSPENDING: in operator <<()
62 case BluetoothStreamState::UNKNOWN: in operator <<()
71 mState(BluetoothStreamState::DISABLED), in BluetoothAudioPortAidl()
103 mState = BluetoothStreamState::STANDBY; in registerPort()
178 BluetoothStreamState previous_state = mState; in controlResultHandler()
183 case BluetoothStreamState::STARTED: in controlResultHandler()
187 mState = BluetoothStreamState::STANDBY; in controlResultHandler()
196 case BluetoothStreamState::STARTING: in controlResultHandler()
198 mState = BluetoothStreamState::STARTED; in controlResultHandler()
206 mState = BluetoothStreamState::STANDBY; in controlResultHandler()
209 case BluetoothStreamState::SUSPENDING: in controlResultHandler()
211 mState = BluetoothStreamState::STANDBY; in controlResultHandler()
220 mState = BluetoothStreamState::DISABLED; in controlResultHandler()
246 BluetoothStreamState previous_state = mState; in sessionChangedHandler()
249 mState = BluetoothStreamState::DISABLED; in sessionChangedHandler()
313 if (mState == BluetoothStreamState::DISABLED) { in standby()
314 mState = BluetoothStreamState::STANDBY; in standby()
321 bool BluetoothAudioPortAidl::condWaitState(BluetoothStreamState state) { in condWaitState()
326 case BluetoothStreamState::STARTING: { in condWaitState()
330 return mState != BluetoothStreamState::STARTING; in condWaitState()
332 return mState == BluetoothStreamState::STARTED; in condWaitState()
334 case BluetoothStreamState::SUSPENDING: { in condWaitState()
338 return mState != BluetoothStreamState::SUSPENDING; in condWaitState()
340 return mState == BluetoothStreamState::STANDBY; in condWaitState()
360 if (mState == BluetoothStreamState::STARTED) { in start()
362 } else if (mState == BluetoothStreamState::SUSPENDING || in start()
363 mState == BluetoothStreamState::STARTING) { in start()
378 if (mState == BluetoothStreamState::STARTED) { in start()
380 } else if (mState == BluetoothStreamState::STANDBY) { in start()
381 mState = BluetoothStreamState::STARTING; in start()
384 retval = condWaitState(BluetoothStreamState::STARTING); in start()
412 if (mState == BluetoothStreamState::STANDBY) { in suspend()
414 } else if (mState == BluetoothStreamState::SUSPENDING || in suspend()
415 mState == BluetoothStreamState::STARTING) { in suspend()
430 if (mState == BluetoothStreamState::STANDBY) { in suspend()
432 } else if (mState == BluetoothStreamState::STARTED) { in suspend()
433 mState = BluetoothStreamState::SUSPENDING; in suspend()
436 retval = condWaitState(BluetoothStreamState::SUSPENDING); in suspend()
460 if (mState != BluetoothStreamState::DISABLED) { in stop()
462 mState = BluetoothStreamState::DISABLED; in stop()
544 BluetoothStreamState BluetoothAudioPortAidl::getState() const { in getState()
548 bool BluetoothAudioPortAidl::setState(BluetoothStreamState state) { in setState()