Back to project page diagnostic-tool.
The source code is released under:
Copyright (c) 2014 Ford Motor Company All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are me...
If you think the Android project diagnostic-tool listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.openxc.openxcdiagnostic.util; // w w w .j a v a 2s . c om import java.util.TimerTask; import com.openxc.messages.DiagnosticRequest; import com.openxc.messages.VehicleMessage; /** * * Task for generating fake responses. * */ public class RecurringResponseGenerator extends TimerTask { DiagnosticRequest mRequest; VehicleMessage.Listener mListener; public RecurringResponseGenerator(DiagnosticRequest request, VehicleMessage.Listener listener) { mRequest = request; mListener = listener; } public void run() { mListener.receive(Utilities.generateRandomFakeResponse(mRequest)); } }