b0aec07f7462ff7563835c3107f4b46a28eae7a4 |
|
15-Oct-2011 |
Jeff Sharkey <jsharkey@android.com> |
Validate commands and arguments. Bug: 5465176 Change-Id: I9402054c20ea6cae42781c35bfc2ade90aac31ce
/frameworks/base/services/java/com/android/server/NativeDaemonConnector.java
|
fa23c5ae226c1a1d39f89c5c87d4f340e91d90e0 |
|
10-Aug-2011 |
Jeff Sharkey <jsharkey@android.com> |
Add NativeDaemonConnector users to watchdog. To catch instances where NativeDaemonConnector hangs while executing commands, add users to system_server watchdog. Also moved qtaguid enabler to separate thread to prevent blocking systemReady(). Bug: 5145437 Change-Id: I4c6c1dc09864a1c05f9486a31faa1b366548e911
/frameworks/base/services/java/com/android/server/NativeDaemonConnector.java
|
e5750a344a9c1a83a63d5119d39d2ea4897bc312 |
|
03-Aug-2011 |
Chia-chi Yeh <chiachi@android.com> |
NativeDaemonConnector: offload callbacks to another thread. Now callbacks can communicate to the same daemon without causing a deadlock. This also improves the latency of calls because they no longer need to wait for the callbacks for the pending events. Change-Id: I153fcf16bd64de79ee1c1a57d3cfdb12b354cf47
/frameworks/base/services/java/com/android/server/NativeDaemonConnector.java
|
b901c9abff6b3885e1efce2e643b1f8e5ef3fc79 |
|
07-Feb-2011 |
Brad Fitzpatrick <bradfitz@android.com> |
am 9204644d: Merge "Fix a race condition in NativeDaemonConnector" * commit '9204644d9e8fc2a3d05ff386b14b349f7a117694': Fix a race condition in NativeDaemonConnector
|
030bc88b4c09a41b0d7dbe249aec55f33d6b8b8a |
|
01-Feb-2011 |
anga <anga@syntronic.com> |
Fix a race condition in NativeDaemonConnector Fixes a race between the onDaemonConnected callback and setting the mOutputStream in NativeDaemonConnector. MountService connects to vold using the NativeDaemonConnector. Throws a “NativeDaemonConnectorException: No output stream!” when the onDaemonConnected callback in MountService calls the doListCommand. Change-Id: Ib895bab37f7df680e4362df6366198c0a673c5e9
/frameworks/base/services/java/com/android/server/NativeDaemonConnector.java
|
1cd94ef9570a1534e32b27d5b174dc690c9be6b9 |
|
16-Jan-2011 |
Irfan Sheriff <isheriff@google.com> |
Do not add unsolicited events to queue Adding unsolicited events to response queue results in doCommand() returning the wrong result. Pulling this change from master. Bug: 3258529 Change-Id: I2a4b0bd8bb30b31682d7d61ee94a0d246bf10de2
/frameworks/base/services/java/com/android/server/NativeDaemonConnector.java
|
e5c3afb29241fd3faae309f973645d7f6a7ed111 |
|
22-Sep-2010 |
Robert Greenwalt <rgreenwalt@google.com> |
Cleanup Netd to prevent getting hung. If the sending of the command fails we should note it and not wait forever for the response. We should also not say we're ready until we actually are. bug:2993205 Change-Id: I380f0312ac4693ad184a526b330fdfa23f6ac558
/frameworks/base/services/java/com/android/server/NativeDaemonConnector.java
|
12da9d7472ae87b841575d5358e19f143d12f900 |
|
03-Sep-2010 |
Kenny Root <kroot@google.com> |
Fix buffer compacting in NativeDaemonConnector The buffer was being compacted in the read loop, but the start offset on the compacted buffer wasn't being considered after the next read. Bug: 2501075 Change-Id: I163297d751cf800d0bbc66df66b1a0fa0785de49
/frameworks/base/services/java/com/android/server/NativeDaemonConnector.java
|
a80ce06d4c54e43243073f8ceff024f9dda7140e |
|
01-Jun-2010 |
Kenny Root <kroot@google.com> |
Add more error checking for ndc In NativeDaemonConnector.doCommand() calls, there was inconsistent error checking. This change adds error checking for every call and makes it so that any call to .doCommand() that gets an error code won't cause the code to hang forever. Change-Id: I4584953a759a48ad16adfe8ee9e564b5f5796680
/frameworks/base/services/java/com/android/server/NativeDaemonConnector.java
|
961aa8c8879e9f68c0eddcaf87565200a4347134 |
|
23-Mar-2010 |
Kenny Root <kroot@google.com> |
Compact when NativeDaemonConnector hits buffer limit If NativeDaemonConnector hits its buffer limit, it would truncate the data and lose some information. This change compacts the buffer and then retries to read the rest of the data. Change-Id: I0d5fee097bdd6808212ef3ad6fb4abbc6310fd4a
/frameworks/base/services/java/com/android/server/NativeDaemonConnector.java
|
8a9b22056b13477f59df934928c00c58b5871c95 |
|
27-Feb-2010 |
Joe Onorato <joeo@android.com> |
Switch the services library to using the new Slog
/frameworks/base/services/java/com/android/server/NativeDaemonConnector.java
|
4086f752e1e3f093396b4eb6c0075dccb0c65983 |
|
17-Feb-2010 |
San Mehat <san@google.com> |
NativeDaemonConnector: Improve bad list IPC diagnostics Signed-off-by: San Mehat <san@google.com>
/frameworks/base/services/java/com/android/server/NativeDaemonConnector.java
|
1ff4371ef2e27ff51cedd24d093b12043cb72e56 |
|
05-Feb-2010 |
San Mehat <san@google.com> |
NativeDaemonConnector: Improve error reporting and debug formatting Updated: NativeDaemonConnector: Put debugging behind a conditional Signed-off-by: San Mehat <san@google.com>
/frameworks/base/services/java/com/android/server/NativeDaemonConnector.java
|
ec4caa0f549bf9a75d20daa95b8aa8d9fab39681 |
|
03-Feb-2010 |
San Mehat <san@google.com> |
NativeDaemonConnector: Improve NativeDaemonException reporting to include the actual error response Signed-off-by: San Mehat <san@google.com>
/frameworks/base/services/java/com/android/server/NativeDaemonConnector.java
|
4c27e0e3bed006a9ba45c6c02be5fe49827b3fea |
|
29-Jan-2010 |
San Mehat <san@google.com> |
NativeDaemonConnector: Cleanup socket code and use a proper exception Signed-off-by: San Mehat <san@google.com>
/frameworks/base/services/java/com/android/server/NativeDaemonConnector.java
|
80120b43745102b3a8c635c796698d748b329222 |
|
26-Jan-2010 |
San Mehat <san@google.com> |
NativeDaemonConnector: fix doListCommand() to return *all* list elements Signed-off-by: San Mehat <san@google.com>
/frameworks/base/services/java/com/android/server/NativeDaemonConnector.java
|
deba6935c6595c724416cde3368a92c32d8f8683 |
|
21-Jan-2010 |
San Mehat <san@google.com> |
NativeDaemonConnector: Add a convenience method for obtaining lists Signed-off-by: San Mehat <san@google.com>
/frameworks/base/services/java/com/android/server/NativeDaemonConnector.java
|
67bd2cd75f0615c1a08a221f2114d2acda90d1ce |
|
12-Jan-2010 |
San Mehat <san@google.com> |
services: Introduce NativeDaemonConnector class This class provides an interface to communicate with native daemons using the libsysutils framework communication code. Signed-off-by: San Mehat <san@google.com> NativeDaemonConnector: fix whitespace Signed-off-by: San Mehat <san@google.com> NativeDaemonConnector: Fix review comments Signed-off-by: San Mehat <san@google.com> NativeDaemonConnector: On an error, re-try the connection Signed-off-by: San Mehat <san@google.com>
/frameworks/base/services/java/com/android/server/NativeDaemonConnector.java
|