32a2b60c4e2213b6303031768dc71c4fd6ceb4cf |
|
10-Feb-2016 |
Josh Gao <jmgao@google.com> |
adb: allow wine's output for sysdeps_win32 strerror test. Change-Id: Ia5d04a2347df1bcd8c7efcc1da9cec9725007a58 (cherry picked from commit 22554c91676d8981fbfc8b4811d8be3b78a0b74a)
/system/core/adb/sysdeps_win32_test.cpp
|
a30b79a2d9af3850da23b62703bf3b76db076ab9 |
|
16-Nov-2015 |
Spencer Low <CompareAndSwap@gmail.com> |
adb: win32: handle incomplete UTF-8 in console output, other fixes Previously, the various adb_printf, adb_fwrite, etc. functions did not correctly handle the case of the passed buffer ending with an incomplete UTF-8 sequence. This is fixed by buffering up incomplete UTF-8 sequences in g_console_output_buffer (protected by the mutex g_console_output_buffer) and outputting it later once the full sequence is available. A unittest for the main worker function, ParseCompleteUTF8(), was added to adb_test. Other fixes: - Fix the return value of number-of-chars written to be number of UTF-8 bytes instead of number of UTF-16 characters. - Don't overwrite errno in success cases of various adb_printf, etc. functions. This might be excessive, but might be useful in the case when these functions are used for debugging/tracing. - Add missing UTF-8 stdio functions that aren't currently used by adb, but might be in the future: vprintf, putc, putchar, puts. - stdin_raw_init: If we can't get the console handle, don't call SetConsoleMode(). Not a big deal, but this will prevent erroneous trace output. Change-Id: I8730e8af92882c42b884ad921b39a17b54465085 Signed-off-by: Spencer Low <CompareAndSwap@gmail.com>
/system/core/adb/sysdeps_win32_test.cpp
|
bac7bb5c16b6725436c61c6785701d9b51ed28f6 |
|
15-Jan-2016 |
Dan Albert <danalbert@google.com> |
Fix a couple sign-comparison warnings. Bug: http://b/26523949 Change-Id: Id33146b5544147945fee3f14f7f72f39bae449f6
/system/core/adb/sysdeps_win32_test.cpp
|
4f71319df011d796a60a43fc1bc68e16fbf7d321 |
|
05-Dec-2015 |
Elliott Hughes <enh@google.com> |
Track rename of base/ to android-base/. Change-Id: Idf9444fece4aa89c93e15640de59a91f6e758ccf
/system/core/adb/sysdeps_win32_test.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/sysdeps_win32_test.cpp
|
0a79600e723de2da76ce7f3a44fb3821a484931b |
|
19-Oct-2015 |
Spencer Low <CompareAndSwap@gmail.com> |
adb: win32: Improve Winsock error code mappings and strings Improved mapping of Winsock error codes to POSIX error codes, especially WSAECONNABORTED to EPIPE (which WriteFdExactly() looks for) when sending to a closed socket and WSAECONNRESET to ECONNRESET when the peer resets the connection. Use a macro to map strerror() to adb_strerror() which handles these POSIX error codes that the Windows C Runtime doesn't recognize. Also: * Unittest for adb_strerror(). * Don't trace when send() returns WSAEWOULDBLOCK because that is expected. Change-Id: If46aeb7b36de3eebfbbccf5478ff5b1bb087714b Signed-off-by: Spencer Low <CompareAndSwap@gmail.com>
/system/core/adb/sysdeps_win32_test.cpp
|
e6ae5735713f172eff39f9b8bc75b478b50aee7f |
|
09-Sep-2015 |
Spencer Low <CompareAndSwap@gmail.com> |
adb: win32: make adb_getenv() case-insensitive adb_getenv() should be case-insensitive just like the real getenv() on Windows. Added a unittest for adb_getenv(). In the process, made adb_test link with -municode so that the environment block is Unicode. Move wmain() from main.cpp to sysdeps_win32.cpp so that adb_test could also use it. Because wmain() moved, it wasn't as easy to do the runtime check to verify that -municode was used, so do that check in _ensure_env_setup() since adb_getenv() is called early in adb anyway. Added a utility ToLower() which is good enough for env vars whose keys are probably always ASCII to begin with. Change-Id: I082f7fdee9dfe2c7f76b878528d2f7863df6d8d1 Signed-off-by: Spencer Low <CompareAndSwap@gmail.com>
/system/core/adb/sysdeps_win32_test.cpp
|