• Home
  • History
  • Annotate
  • only in /frameworks/base/tests/DumpRenderTree2/src/com/android/dumprendertree2/forwarder/
History log of /frameworks/base/tests/DumpRenderTree2/src/com/android/dumprendertree2/forwarder/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
898bfbd865496855c3a6c792f9e0da011ae34854 28-Sep-2010 Steve Block <steveblock@google.com> Prevent DumpRenderTree2 from crashing when the host server is not running

Bug: 3010758
Change-Id: I04a01634544d223d225b264827d3cf18be74e1e0
dbUtils.java
onnectionHandler.java
orwarder.java
76c97ee414dfc752ce26201a440bf7c451acae85 17-Sep-2010 Steve Block <steveblock@google.com> Fix DumpRenderTree2 to serve HTTP tests on http://127.0.0.1:8000

Currently DumpRenderTree2 serves HTTP tests on http://localhost:8080.
Some of the tests hardcode 'http://127.0.0.1:8000' for resources, so
we must use this scheme and port for the requests to be same-origin.

This fixes LayoutTest http/tests/appcache/credential-url.html

Change-Id: I2a9c402fc7b0e0b62eb4a278d67ac0e63ef96e8b
orwarderManager.java
5af84db492a0c198377ba4dacc83c5a211e96ff6 09-Sep-2010 Maksymilian Osowski <maxosowski@google.com> Updated the AdbUtils class to better manage opening and closing the resources.

Change-Id: I83ebc6409d57a28f9015ec9726f797417ec03212
dbUtils.java
onnectionHandler.java
orwarder.java
bd8c83db8f424a8cfbf94cd4915d7b99b034358c 03-Sep-2010 Maksymilian Osowski <maxosowski@google.com> Fixed the bug in forwarder that prevented ConnectionHandler threads from exiting.

There was a deadlock when ConnectionHandler exited the loop in SocketPipeThread, and would call the onFinishedCallback, which called the synchronized method in Forwarder that would
deadlock. Changing the Forwarder class solved the issue and made it more efficient.

Change-Id: I947450a19573f2e88274b1ebc7b77d4df6afffa7
onnectionHandler.java
orwarder.java
5926723f82fbdd9b523193e05f901784904b6d38 01-Sep-2010 Maksymilian Osowski <maxosowski@google.com> Fixed a bug when there are too many open sockets.

Also, some minor corrections to shutdown() in ConnectionHandler.

Change-Id: I937f200c14c185b0867f997645d8b288a19b9889
onnectionHandler.java
orwarder.java
ef9a2175ee29b9a9c84ddd0a02d1ec80ab095222 31-Aug-2010 Maksymilian Osowski <maxosowski@google.com> Fixed a bug in forwarder where calling the stop method on ForwarderManager would deadlock. Also some style fixes.

The call would deadlock because lines 62-67 in ConnectionHandler were in the synchronized block. The is.read() would block and therefore call to shutdown() would block too.
is.read()
would never unblock because the stream was ready to be closed, and it needs to be done so from shutdown(). Removing the synchronized block fixes it and is save, as it was not
needed here.

Change-Id: I3326098c47ee18c4eabaa8510b27ca82debce360
onnectionHandler.java
orwarder.java
orwarderManager.java
c6a341d34c690c2b5948977cd803ec2ff668c4b7 23-Aug-2010 Maksymilian Osowski <maxosowski@google.com> Changed the code to use forwarding service.

Change-Id: I2504ef01270f9c8e82acbe6a4069d2b4b77b35f2
orwarderManager.java
56d7e400ece64591685c8a21dbb82a94a7bd8010 23-Aug-2010 Maksymilian Osowski <maxosowski@google.com> Added forwarding service.

It creates the sockets on the device that allow DumpRenderTree2 to get tests from the server running on the remote machine. Communication happens through the adb.

Change-Id: I7f26ffc78195b6c5f4d423a57d5ee5f0f4a9c615
dbUtils.java
onnectionHandler.java
orwarder.java
orwarderManager.java