Enumerations
enum class State : uint8_t
| Name | Value | Comments |
|---|---|---|
| kAwaitingUsbConnection | 0 |
In kAwaitingUsbConnection, we have called function_.Configure(), and
Once SetConfigured(true) has been called, we:
If Stop is called, we move to kStoppingForUnbind. |
| kOnline | 1 |
In kOnline, the USB connection is live, and we respond to any
If any of the following happen:
... we disable endpoints, cancel in-flight requests, and move to |
| kStoppingForUnbind | 2 |
In kStoppingForUnbind, we wait for all outstanding USB requests to be completed. |
| kStoppingForReconnect | 3 |
In kStoppingForReconnect, we wait for all outstanding USB requests to be completed. |
The driver's internal state machine. Begins in kAwaitingUsbConnection.
Defined at line 53 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_CnxnAfterInterruptedTransferRestartsUsb_Test -
class UsbAdbTest_CnxnBeforeDeviceRepliesIsDelivered_Test -
class UsbAdbTest_CnxnDuringHostSessionRestartsUsb_Test -
class UsbAdbTest_CnxnNotInItsOwnPacketIsDelivered_Test -
class UsbAdbTest_ConfigureEndpointFailureBulkInRollsBackBulkOut_Test -
class UsbAdbTest_ConfigureEndpointFailureDoesNotPanic_Test -
class UsbAdbTest_DisconnectTransitionsToStoppingState_Test -
class UsbAdbTest_EarlyConnectRace_Test -
class UsbAdbTest_InspectLifecycleEvents_Test -
class UsbAdbTest_InspectStateTransitions_Test -
class UsbAdbTest_IsConfiguredReflectsDeconfigureState_Test -
class UsbAdbTest_OfflineRxQueuedAndServicedOnline_Test -
class UsbAdbTest_OfflineTxDoesNotStartHostSession_Test -
class UsbAdbTest_OfflineTxQueuedAndFlushedOnline_Test -
class UsbAdbTest_OperationsFailWhileStopping_Test -
class UsbAdbTest_OtherHeadersDuringHostSessionAreDelivered_Test -
class UsbAdbTest_QueueTxCompletesOnHardwareTxComplete_Test -
class UsbAdbTest_QueueTxOutOfOrderCompletionMatchesByVmoId_Test -
class UsbAdbTest_QueueTxPipelinedFifoAndErrorCompletion_Test -
class UsbAdbTest_QueueTxZeroLengthRejected_Test -
class UsbAdbTest_ReconnectHandlesConfigureEndpointFailureGracefully_Test -
class UsbAdbTest_ReconnectHandlesConfigureFailureGracefully_Test -
class UsbAdbTest_RecvAdbMessage_Test -
class UsbAdbTest_SendAdbMessage_Test -
class UsbAdbTest_SetConfiguredFalseDoesNotDeconfigureFunctionAndKeepsAdbBound_Test -
class UsbAdbTest_SetConfiguredFalseDuringStopAdbCoalescesWithoutDeconfigure_Test -
class UsbAdbTest_SetConfiguredTrueDuringStoppingReconfiguresCleanly_Test -
class UsbAdbTest_StartAdbAfterUsbAlreadyOnlineAndDuringStop_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
Functions
-
std::vector<uint8_t> AdbHeader (uint32_t command)Returns an adb packet header (struct amessage) for |command| with a valid magic.
Defined at line 812 of file ../../src/developer/adb/drivers/usb-adb-function/adb-function-test.cc
-
std::vector<uint8_t> AfterStaleData (size_t stale_bytes, const std::vector<uint8_t> & tail)Returns |stale_bytes| of filler followed by |tail|, as the device receives it when the host's
previous transfer was interrupted partway through a request.
Defined at line 871 of file ../../src/developer/adb/drivers/usb-adb-function/adb-function-test.cc