Loading services/core/java/com/android/server/NativeDaemonConnector.java +0 −3 Original line number Original line Diff line number Diff line Loading @@ -176,7 +176,6 @@ final class NativeDaemonConnector implements Runnable, Handler.Callback, Watchdo if (buffer[i] == 0) { if (buffer[i] == 0) { final String rawEvent = new String( final String rawEvent = new String( buffer, start, i - start, StandardCharsets.UTF_8); buffer, start, i - start, StandardCharsets.UTF_8); log("RCV <- {" + rawEvent + "}"); boolean releaseWl = false; boolean releaseWl = false; try { try { Loading @@ -197,7 +196,6 @@ final class NativeDaemonConnector implements Runnable, Handler.Callback, Watchdo mResponseQueue.add(event.getCmdNumber(), event); mResponseQueue.add(event.getCmdNumber(), event); } } } catch (IllegalArgumentException e) { } catch (IllegalArgumentException e) { log("Problem parsing message: " + rawEvent + " - " + e); } finally { } finally { if (releaseWl) { if (releaseWl) { mWakeLock.acquire(); mWakeLock.acquire(); Loading @@ -209,7 +207,6 @@ final class NativeDaemonConnector implements Runnable, Handler.Callback, Watchdo } } if (start == 0) { if (start == 0) { final String rawEvent = new String(buffer, start, count, StandardCharsets.UTF_8); final String rawEvent = new String(buffer, start, count, StandardCharsets.UTF_8); log("RCV incomplete <- {" + rawEvent + "}"); } } // We should end at the amount we read. If not, compact then // We should end at the amount we read. If not, compact then Loading Loading
services/core/java/com/android/server/NativeDaemonConnector.java +0 −3 Original line number Original line Diff line number Diff line Loading @@ -176,7 +176,6 @@ final class NativeDaemonConnector implements Runnable, Handler.Callback, Watchdo if (buffer[i] == 0) { if (buffer[i] == 0) { final String rawEvent = new String( final String rawEvent = new String( buffer, start, i - start, StandardCharsets.UTF_8); buffer, start, i - start, StandardCharsets.UTF_8); log("RCV <- {" + rawEvent + "}"); boolean releaseWl = false; boolean releaseWl = false; try { try { Loading @@ -197,7 +196,6 @@ final class NativeDaemonConnector implements Runnable, Handler.Callback, Watchdo mResponseQueue.add(event.getCmdNumber(), event); mResponseQueue.add(event.getCmdNumber(), event); } } } catch (IllegalArgumentException e) { } catch (IllegalArgumentException e) { log("Problem parsing message: " + rawEvent + " - " + e); } finally { } finally { if (releaseWl) { if (releaseWl) { mWakeLock.acquire(); mWakeLock.acquire(); Loading @@ -209,7 +207,6 @@ final class NativeDaemonConnector implements Runnable, Handler.Callback, Watchdo } } if (start == 0) { if (start == 0) { final String rawEvent = new String(buffer, start, count, StandardCharsets.UTF_8); final String rawEvent = new String(buffer, start, count, StandardCharsets.UTF_8); log("RCV incomplete <- {" + rawEvent + "}"); } } // We should end at the amount we read. If not, compact then // We should end at the amount we read. If not, compact then Loading