platform_system_core/adb
Dan Albert 8e1fdd7806 Create adb Python package.
This is mostly just the AdbWrapper that we used in our tests, but I've
cleaned up the API to be a little more Pythonic (mostly in the sense
that commands are passed as lists rather than strings that are
shlex.split() by the shell command), and implemented the workaround
error checking for adb shell.

Move the tests up a directory. Having them buried a level down has
only been annoying.

There are now two files containing Python tests. test_device.py
contains tests specifically checking the AndroidDevice API, and
test_adb.py checks the ADB client program. To run both, use

    python -m unittest discover [-v]

Change-Id: Ibd158c528d31126a5b048bd00bc93039dbc468bc
2015-07-27 15:52:15 -07:00
..
client adb: win32: fix logging to adb.log 2015-06-02 21:04:56 +00:00
daemon Ignore ro.adb.secure in user builds. 2015-06-18 10:19:30 -07:00
.clang-format Fix clang-format file for correct indent settings. 2015-03-19 13:27:20 -07:00
__init__.py Create adb Python package. 2015-07-27 15:52:15 -07:00
adb.cpp Increase size of the the adb packets sent over the wire 2015-07-22 13:06:06 -07:00
adb.h Report getaddrinfo failures correctly. 2015-07-23 21:14:38 -07:00
adb_auth.cpp Increase size of the the adb packets sent over the wire 2015-07-22 13:06:06 -07:00
adb_auth.h Ignore ro.adb.secure in user builds. 2015-06-18 10:19:30 -07:00
adb_auth_client.cpp Increase size of the the adb packets sent over the wire 2015-07-22 13:06:06 -07:00
adb_auth_host.cpp Increase size of the the adb packets sent over the wire 2015-07-22 13:06:06 -07:00
adb_client.cpp Report getaddrinfo failures correctly. 2015-07-23 21:14:38 -07:00
adb_client.h Fix error handling/reporting for "adb forward" and "adb reverse". 2015-05-29 18:03:57 -07:00
adb_io.cpp Add WriteFdFmt and clean up more code. 2015-05-01 17:36:46 -07:00
adb_io.h Revert "Turn on -Wformat-nonliteral." 2015-07-09 20:35:09 +00:00
adb_io_test.cpp Add WriteFdFmt and clean up more code. 2015-05-01 17:36:46 -07:00
adb_listeners.cpp Report getaddrinfo failures correctly. 2015-07-23 21:14:38 -07:00
adb_listeners.h Fix error handling/reporting for "adb forward" and "adb reverse". 2015-05-29 18:03:57 -07:00
adb_trace.h Improve logging. 2015-05-21 16:25:57 -07:00
adb_utils.cpp Fix Win32 adb build. 2015-07-24 11:35:40 -07:00
adb_utils.h Report getaddrinfo failures correctly. 2015-07-23 21:14:38 -07:00
adb_utils_test.cpp Recognize IPv6 addresses for "adb connect". 2015-07-21 15:25:14 -07:00
Android.mk Fix Win32 adb build (for the second time today). 2015-07-24 14:32:46 -07:00
commandline.cpp Merge "adb: win32: fix exec-in and exec-out to use binary mode" 2015-07-22 22:43:45 +00:00
console.cpp Report getaddrinfo failures correctly. 2015-07-23 21:14:38 -07:00
CPPLINT.cfg Ignore whitespace/indent issues from cpplint. 2015-05-18 16:49:07 -07:00
device.py Create adb Python package. 2015-07-27 15:52:15 -07:00
fdevent.cpp adb: logging: newlines, thread ids, error code overwriting 2015-07-21 02:06:26 -07:00
fdevent.h Remove extern "C" barriers to using C++. 2015-04-17 09:47:42 -07:00
file_sync_client.cpp Move mkdirs to adb_utils. 2015-07-15 19:37:18 +00:00
file_sync_service.cpp File header cleanup. 2015-03-19 15:32:33 -07:00
file_sync_service.h Fix "adb sync" for devices without vendor and oem. 2015-04-21 10:17:07 -07:00
framebuffer_service.cpp Move adb to C++. 2015-03-09 14:06:11 -07:00
get_my_path_darwin.cpp Move get_my_path_darwin to C++. 2015-04-16 13:24:58 -07:00
get_my_path_linux.cpp Move adb to C++. 2015-03-09 14:06:11 -07:00
get_my_path_windows.cpp Move adb to C++. 2015-03-09 14:06:11 -07:00
jdwp_service.cpp Report getaddrinfo failures correctly. 2015-07-23 21:14:38 -07:00
MODULE_LICENSE_APACHE2 eclair snapshot 2009-11-12 18:46:23 -08:00
mutex_list.h adb: Cleanup dead code 2013-04-24 21:31:45 -07:00
NOTICE eclair snapshot 2009-11-12 18:46:23 -08:00
OVERVIEW.TXT Fixing spelling errors in adb docs 2010-04-28 11:38:39 -04:00
protocol.txt Increase size of the the adb packets sent over the wire 2015-07-22 13:06:06 -07:00
qemu_tracing.cpp Move adb to C++. 2015-03-09 14:06:11 -07:00
qemu_tracing.h Revert "Turn on -Wformat-nonliteral." 2015-07-09 20:35:09 +00:00
remount_service.cpp Fix "adb remount" for when the root directory is in system.img 2015-07-08 19:36:19 +00:00
remount_service.h Failure to find an oem partition should not be a remount failure. 2015-05-11 13:28:22 -07:00
services.cpp Report getaddrinfo failures correctly. 2015-07-23 21:14:38 -07:00
SERVICES.TXT adb: implement "adb reverse <local> <remote>" 2014-05-27 16:42:13 +02:00
set_verity_enable_state_service.cpp Failure to find an oem partition should not be a remount failure. 2015-05-11 13:28:22 -07:00
sockets.cpp Increase size of the the adb packets sent over the wire 2015-07-22 13:06:06 -07:00
sockets.dia auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
SYNC.TXT Adding documentation on the sync part of the adb protocol previously missing. 2014-03-20 20:36:46 +01:00
sysdeps.h Fix Win32 adb build. 2015-07-24 11:35:40 -07:00
sysdeps_win32.cpp Fix Win32 adb build. 2015-07-24 11:35:40 -07:00
test_adb.py Create adb Python package. 2015-07-27 15:52:15 -07:00
test_device.py Create adb Python package. 2015-07-27 15:52:15 -07:00
test_track_devices.cpp Make test_track_devices.cpp output easier to read. 2015-05-04 15:51:50 -07:00
transport.cpp Increase size of the the adb packets sent over the wire 2015-07-22 13:06:06 -07:00
transport.h Increase size of the the adb packets sent over the wire 2015-07-22 13:06:06 -07:00
transport_local.cpp Report getaddrinfo failures correctly. 2015-07-23 21:14:38 -07:00
transport_test.cpp Make atransport be a real class. 2015-05-21 15:49:05 -07:00
transport_usb.cpp Increase size of the the adb packets sent over the wire 2015-07-22 13:06:06 -07:00
usb_linux.cpp Clean up the locking in usb_linux.cpp. 2015-07-24 12:35:50 -07:00
usb_linux_client.cpp Increase size of the the adb packets sent over the wire 2015-07-22 13:06:06 -07:00
usb_osx.cpp Revert "Revert "Split adb_main.cpp into client and daemon."" 2015-05-08 17:33:21 -07:00
usb_windows.cpp Don't limit Windows USB reads. 2015-07-22 15:59:06 -07:00