public class FtcLynxFirmwareUpdateActivity
extends ThemedActivity
FtcLynxFirmwareUpdateActivity
manages the updating of the firmware on
all available attached lynx modules.Modifier and Type | Class and Description |
---|---|
protected static class |
FtcLynxFirmwareUpdateActivity.FwResponseStatus |
protected class |
FtcLynxFirmwareUpdateActivity.ReceiveLoopCallback |
Modifier and Type | Field and Description |
---|---|
protected java.util.concurrent.BlockingQueue<com.qualcomm.ftccommon.CommandList.LynxFirmwareUpdateResp> |
availableFWUpdateResps |
protected java.util.concurrent.BlockingQueue<com.qualcomm.ftccommon.CommandList.LynxFirmwareImagesResp> |
availableLynxImages |
protected java.util.concurrent.BlockingQueue<com.qualcomm.ftccommon.CommandList.USBAccessibleLynxModulesResp> |
availableLynxModules |
protected boolean |
cancelUpdate |
protected boolean |
enableUpdateButton |
protected FWImage |
firmwareImageFile |
protected java.util.Map<View,FWImage> |
firmwareImagesMap |
protected java.util.List<USBAccessibleLynxModule> |
modulesToUpdate |
protected int |
msResponseWait |
protected NetworkConnectionHandler |
networkConnectionHandler |
protected java.lang.String |
originatorId |
protected RecvLoopRunnable.RecvLoopCallback |
recvLoopCallback |
protected boolean |
remoteConfigure |
static java.lang.String |
TAG |
protected View.OnClickListener |
updateFileClickListener |
Constructor and Description |
---|
FtcLynxFirmwareUpdateActivity() |
Modifier and Type | Method and Description |
---|---|
protected <T> T |
awaitResponse(java.util.concurrent.BlockingQueue<T> queue,
T defaultResponse) |
protected <T> T |
awaitResponse(java.util.concurrent.BlockingQueue<T> queue,
T defaultResponse,
long time,
java.util.concurrent.TimeUnit timeUnit,
<any> status) |
protected FrameLayout |
getBackBar() |
protected com.qualcomm.ftccommon.CommandList.LynxFirmwareImagesResp |
getCandidateLynxFirmwareImages() |
protected java.util.List<USBAccessibleLynxModule> |
getLynxModulesForFirmwareUpdate() |
java.lang.String |
getTag() |
static void |
initializeDirectories() |
protected void |
onCreate(Bundle savedInstanceState) |
protected void |
onDestroy() |
protected void |
onPause() |
protected void |
onStart() |
protected void |
onStop() |
void |
onUpdateLynxFirmwareClicked(View view) |
protected void |
sendOrInject(Command cmd) |
public static final java.lang.String TAG
protected NetworkConnectionHandler networkConnectionHandler
protected final java.lang.String originatorId
protected RecvLoopRunnable.RecvLoopCallback recvLoopCallback
protected boolean remoteConfigure
protected int msResponseWait
protected java.util.Map<View,FWImage> firmwareImagesMap
protected FWImage firmwareImageFile
protected java.util.List<USBAccessibleLynxModule> modulesToUpdate
protected boolean enableUpdateButton
protected boolean cancelUpdate
protected java.util.concurrent.BlockingQueue<com.qualcomm.ftccommon.CommandList.LynxFirmwareImagesResp> availableLynxImages
protected java.util.concurrent.BlockingQueue<com.qualcomm.ftccommon.CommandList.USBAccessibleLynxModulesResp> availableLynxModules
protected java.util.concurrent.BlockingQueue<com.qualcomm.ftccommon.CommandList.LynxFirmwareUpdateResp> availableFWUpdateResps
protected View.OnClickListener updateFileClickListener
public java.lang.String getTag()
protected FrameLayout getBackBar()
public static void initializeDirectories()
protected void onCreate(Bundle savedInstanceState)
protected void onStart()
protected void onDestroy()
public void onUpdateLynxFirmwareClicked(View view)
protected void onPause()
protected void onStop()
protected com.qualcomm.ftccommon.CommandList.LynxFirmwareImagesResp getCandidateLynxFirmwareImages()
protected java.util.List<USBAccessibleLynxModule> getLynxModulesForFirmwareUpdate()
protected void sendOrInject(Command cmd)
protected <T> T awaitResponse(java.util.concurrent.BlockingQueue<T> queue, T defaultResponse)
protected <T> T awaitResponse(java.util.concurrent.BlockingQueue<T> queue, T defaultResponse, long time, java.util.concurrent.TimeUnit timeUnit, <any> status)