History log of /system/core/adb/line_printer.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
1a9979ec1ee913157a0e8e570ca93feacf58634e 04-Aug-2016 Josh Gao <jmgao@google.com> adb: add missing newline when printing transfer rate.

Previously, we weren't printing a newline when reporting transfer
rates, so only the last transfer rate printed would be visible.

Bug: http://b/30667841
Change-Id: Id341147912d057673de4ad26a8f618f04a8c02f3
Test: inspected output manually
/system/core/adb/line_printer.cpp
d68ad69d1dc8dad9245acb75d827a201e2e282ee 09-Jan-2016 Elliott Hughes <enh@google.com> Improve dumb terminal support (emacs is dumb).

Bug: http://b/26444032
Change-Id: Iaff4b09b613fd30ab7c4c73e096da34f37e0de07
/system/core/adb/line_printer.cpp
77f539ab4918514706f986f77529c17a38650be0 09-Dec-2015 Elliott Hughes <enh@google.com> Simplify adb LinePrinter newline handling.

We had mostly-working hacks before, but it's time to just modify LinePrinter
to suit our needs. If we tell LinePrinter what kind of output we're giving
it, it can manage things automatically.

This fixes the minor bug where we'd sometimes have a blank line after an
error message.

Change-Id: I07ff52437f2402de311e237dd1b2dd338d9b668a
/system/core/adb/line_printer.cpp
d21dc825bbecad6ce480c5e5c574cc77eadcd779 13-Nov-2015 Spencer Low <CompareAndSwap@gmail.com> adb: win32: remove widen()/narrow() in favor of UTF8ToWide()/WideToUTF8()

Now that we have a more standardized API (also available in Chromium),
switch to it. Another benefit is real error handling instead of just
killing the process on invalid Unicode.

Make UTF8ToWide()/WideToUTF8() set errno to EILSEQ on bad input. This is
the same error code that wcsrtombs(3) uses.

Update the unittest to check for EILSEQ.

Change-Id: Ie92acf74d37adaea116cf610c1bf8cd433741e16
Signed-off-by: Spencer Low <CompareAndSwap@gmail.com>
/system/core/adb/line_printer.cpp
c5b8ad88ce6e74216198f14c6e33d55cb1681370 28-Oct-2015 David Pursell <dpursell@google.com> adb: create unix_isatty() function.

Our Windows code has several different ways it checks whether an FD is
a console or not, some of which aren't exactly correct as they may
treat character devices (e.g. NUL) as consoles.

This CL disallows using the builtin isatty() function and provides
unix_isatty() instead which correctly checks these corner cases.

Change-Id: I6d551c745dae691c7eb3446b585265d62c1e62fa
/system/core/adb/line_printer.cpp
b708d1628332ea9266d08f0297cd9e9ee341a64f 28-Oct-2015 Elliott Hughes <enh@google.com> Show transfer progress in adb sync/pull/push.

Change-Id: If5439877d060f9bab29cf84be996071cf680c2d4
/system/core/adb/line_printer.cpp