Enumerations
enum class State : uint8_t
| Name | Value | Comments |
|---|---|---|
| kAwaitingUsbConnection | 0 |
In kAwaitingUsbConnection, we have called function_.SetInterface(this), and
Once SetConfigured(true) has been called, we:
If a fadb::Device client requests shutdown by calling StopAdb() or closing |
| kOnline | 1 |
In kOnline, the USB connection is live, and we respond to any
If any of the following happen:
... we call function_.Deconfigure() and move to kStoppingForReconnect or |
| kStoppingForUnbind | 2 |
In kStoppingForUnbind, we wait for all outstanding USB requests to be completed.
At that point, since the stoppage was caused by a call to Stop (or |
| kStoppingForReconnect | 3 |
In kStoppingForReconnect, we wait for all outstanding USB requests to be completed.
At that point, we restart the USB connection by calling |
The driver's internal state machine. Begins in kAwaitingUsbConnection.
Defined at line 45 of file ../../src/developer/adb/drivers/usb-adb-function/adb-function.h
Records
-
class AdbFakeUsb -
class DelayedCancelEndpoint -
class EventHandler -
class UsbAdbDevice -
class UsbAdbEnvironment -
class UsbAdbStartTest_StartFailsGracefullyWhenConfigureFails_Test -
class UsbAdbTest -
class UsbAdbTestConfig -
class UsbAdbTestHelper -
class UsbAdbTest_DisconnectTransitionsToStoppingState_Test -
class UsbAdbTest_EarlyConnectRace_Test -
class UsbAdbTest_InspectStateTransitions_Test -
class UsbAdbTest_IsConfiguredReflectsDeconfigureState_Test -
class UsbAdbTest_OfflineRxQueuedAndServicedOnline_Test -
class UsbAdbTest_OfflineTxQueuedAndFlushedOnline_Test -
class UsbAdbTest_OperationsFailWhileStopping_Test -
class UsbAdbTest_QueueTxZeroLengthRejected_Test -
class UsbAdbTest_ReconnectHandlesConfigureFailureGracefully_Test -
class UsbAdbTest_RecvAdbMessage_Test -
class UsbAdbTest_SendAdbMessage_Test -
class UsbAdbTest_StartAdbFailsWhileStopping_Test -
class UsbAdbTest_StartAdbTwiceFails_Test -
class UsbAdbTest_StartStop_Test -
class UsbAdbTest_StopBeforeUsbStartsUp_Test -
class UsbAdbTest_StopDriverWhileConnected_Test -
class UsbAdbTest_TeardownWhileRequestsPending_Test -
class UsbAdbTest_UsbFunctionBindingReconfigure_Test -
class UsbAdbTest_UsbStackRequestsStop_Test -
class UsbAdbTest_VerifyInspect_Test -
class UsbAdbTest_VerifyShutdownCompletesWhenHardwareUnresponsive_Test