Commit Graph

18793 Commits

Author SHA1 Message Date
David Pursell
639d1c491a gdb: allow gdbclient.py to find local files.
gdbclient.py is always downloading the stripped version of executable
files from the device. This CL first tries to find the unstripped local
file before falling back to the stripped version.

Bug: http://b/24947939
Change-Id: I7a49d0d8b28590ee99ce892d3e3476921f4ae974
2015-10-21 10:25:25 -07:00
Yohann Roussel
bf579123c5 Change jack/dex target dependency to jack script
Instead of jack.jar.

(cherry picked from commit 1d489a3333)

Change-Id: I92b4183feb50189a994603f35444ff1bc4872da8
2015-10-21 17:03:12 +02:00
Chris Banes
5fecfbe013 Add demo for TextInputLayout\'s counter
am: 88436bd9f4

* commit '88436bd9f4ca3ad21ec7f2b5a9d59909f99a4df7':
  Add demo for TextInputLayout's counter
2015-10-21 14:47:12 +00:00
Chris Banes
88436bd9f4 Add demo for TextInputLayout's counter
Change-Id: I3a2453b6d5ad3d5ea2abd5de66c95a7db0bd6f83
2015-10-21 11:17:17 +01:00
Josh Gao
307da9110a Merge "device.py: fix _subprocess_Popen cleanup." am: 5db18adc60
am: 59ad70aee9

* commit '59ad70aee9a34071270c291085d56a968fa08ab6':
  device.py: fix _subprocess_Popen cleanup.
2015-10-21 00:06:11 +00:00
Josh Gao
59ad70aee9 Merge "device.py: fix _subprocess_Popen cleanup."
am: 5db18adc60

* commit '5db18adc607a0509b0646deda9c20b16a6b5f2b7':
  device.py: fix _subprocess_Popen cleanup.
2015-10-21 00:02:31 +00:00
Josh Gao
5db18adc60 Merge "device.py: fix _subprocess_Popen cleanup." 2015-10-20 23:56:38 +00:00
David Pursell
cebec2b69b device.py: fix _subprocess_Popen cleanup.
Every time gdbclient.py finishes it's giving this error:

Exception TypeError: 'must be type, not None' in <bound method
_subprocess_Popen.__del__ of <adb.device._subprocess_Popen object at
0x7fdd48e76850>> ignored

Basically super(_subprocess_Popen, self) was failing because at that
point _subprocess_Popen is None since global teardown had already
deleted the reference.

This fix saves local references to required global objects so that they
stick around until we're done with them. We may want to start looking
into making _subprocess_Popen a context manager instead, usage won't be
as convenient but __del__() does not scale to general use well. For now
though this CL seems to solve the problem for gdbclient.py.

Change-Id: I6c2a9fe0c108ae600cf05eb3b887d56959c7308e
2015-10-20 10:29:21 -07:00
Yuichi Araki
0155a1e754 am 3848c332: Merge "Add usage of BottomSheetBehavior" into mnc-ub-dev
* commit '3848c332a7e043ef84564f0dbf8c9dff78967abb':
  Add usage of BottomSheetBehavior
2015-10-16 09:09:18 +00:00
Yuichi Araki
3848c332a7 Merge "Add usage of BottomSheetBehavior" into mnc-ub-dev 2015-10-16 09:05:09 +00:00
David Pursell
5fdd0a4837 am cb241ee0: am 3b863f24: Merge "adb: add test for non-interactive stdin."
* commit 'cb241ee0e7866464446bec27f6cde8fa735e9a07':
  adb: add test for non-interactive stdin.
2015-10-15 21:47:06 +00:00
David Pursell
cb241ee0e7 am 3b863f24: Merge "adb: add test for non-interactive stdin."
* commit '3b863f24b4eff0a2dc5d3e0edcf20c0b0989b940':
  adb: add test for non-interactive stdin.
2015-10-15 21:41:48 +00:00
David Pursell
3b863f24b4 Merge "adb: add test for non-interactive stdin." 2015-10-15 21:37:02 +00:00
Brian Carlstrom
8f2ea09e16 am 1c9d7220: am 1c445205: Merge "Pass in current android.jar to api-generator"
* commit '1c9d7220caa091a29c2855e7fa3e32daeb4e53be':
  Pass in current android.jar to api-generator
2015-10-15 16:33:33 +00:00
Brian Carlstrom
1c9d7220ca am 1c445205: Merge "Pass in current android.jar to api-generator"
* commit '1c44520587fbaef51f5e99343797d9762d7fef1b':
  Pass in current android.jar to api-generator
2015-10-15 16:28:37 +00:00
Brian Carlstrom
1c44520587 Merge "Pass in current android.jar to api-generator" 2015-10-15 16:23:07 +00:00
Tor Norbye
28c210b844 Pass in current android.jar to api-generator
This ensures that the api-versions.xml shipped with
the SDK always includes the correct latest API
data (see http://b.android.com/183500)

(cherry picked from commit fbe6c8105a)

(cherry picked from commit 82336df0c1)

Change-Id: Ied1441430f023f7680ef4fe43e45eeda5162fa60
2015-10-15 09:03:14 -07:00
Xavier Ducrohet
2a2ec4d520 am ce4224f4: am 2d7067cd: am a3496a09: am 19923db3: Update build tools rev to <API>.0.2. DO NOT MERGE.
* commit 'ce4224f4ffcc4916f19359cda3ed766a56cd1d2f':
  Update build tools rev to <API>.0.2. DO NOT MERGE.
2015-10-14 21:28:35 +00:00
Xavier Ducrohet
ce4224f4ff am 2d7067cd: am a3496a09: am 19923db3: Update build tools rev to <API>.0.2. DO NOT MERGE.
* commit '2d7067cd967e91fdeb5632f5a1fbc5035c3d9c6a':
  Update build tools rev to <API>.0.2. DO NOT MERGE.
2015-10-14 21:23:10 +00:00
Xavier Ducrohet
2d7067cd96 am a3496a09: am 19923db3: Update build tools rev to <API>.0.2. DO NOT MERGE.
* commit 'a3496a094db944849aba9a89e645aea5e10faadd':
  Update build tools rev to <API>.0.2. DO NOT MERGE.
2015-10-14 21:18:04 +00:00
Xavier Ducrohet
a3496a094d am 19923db3: Update build tools rev to <API>.0.2. DO NOT MERGE.
* commit '19923db346370643f55b2ef43116ea64b6da5b8c':
  Update build tools rev to <API>.0.2. DO NOT MERGE.
2015-10-14 21:10:39 +00:00
Xavier Ducrohet
19923db346 Update build tools rev to <API>.0.2. DO NOT MERGE.
Change-Id: If727cdef7982419b676e56a910e0bdf56df5488a
2015-10-14 21:03:16 +00:00
Josh Gao
7e17f146bf am 3b3e42e9: am d7f206d2: Merge "adb unittest: fix Windows Unicode"
* commit '3b3e42e994add92c61b98549f39a19acb6b37d7d':
  adb unittest: fix Windows Unicode
2015-10-14 03:11:45 +00:00
Josh Gao
3b3e42e994 am d7f206d2: Merge "adb unittest: fix Windows Unicode"
* commit 'd7f206d2b2fb34788c65f2cd092c4b4866f81546':
  adb unittest: fix Windows Unicode
2015-10-14 03:06:22 +00:00
Josh Gao
d7f206d2b2 Merge "adb unittest: fix Windows Unicode" 2015-10-14 03:01:33 +00:00
Spencer Low
4160958015 adb unittest: fix Windows Unicode
adb.shell() was recently changed to use subprocess.Popen(), which
doesn't work properly with Unicode on Windows. The fix is to use the
same work-around that I did for subprocess.check_output(): write UTF-8
to a batch file and run it. The change is primarily refactoring to
enable code reuse.

Change-Id: I88e9b9b35e5318533c0cd932d92e13bc9e734092
Signed-off-by: Spencer Low <CompareAndSwap@gmail.com>
2015-10-13 19:51:30 -07:00
Miao Wang
050c66aa7d resolved conflicts for 3db22d4d to mnc-dr-dev-plus-aosp
Change-Id: I2baac9e5b218fba7ec7cc4df9b518b6b90a343d2
2015-10-13 18:02:44 -07:00
Miao Wang
3db22d4d14 am c0781cd7: am 10b385c0: am afe2d242: Fix llvm-rs-cc.exe crash for windows
* commit 'c0781cd7744ee4ae2a8f95c14724a9b05698174b':
  Fix llvm-rs-cc.exe crash for windows
2015-10-14 00:10:45 +00:00
Miao Wang
c0781cd774 am 10b385c0: am afe2d242: Fix llvm-rs-cc.exe crash for windows
* commit '10b385c0f863710e2d2a2ebada74a8c8c14c81f8':
  Fix llvm-rs-cc.exe crash for windows
2015-10-14 00:05:01 +00:00
Miao Wang
10b385c0f8 am afe2d242: Fix llvm-rs-cc.exe crash for windows
* commit 'afe2d2420480e93f3364e0deac3082c11cceb689':
  Fix llvm-rs-cc.exe crash for windows
2015-10-13 23:58:55 +00:00
Chris Flatt
5cf8e72b09 am dcd18d52: Update version to 23.1.0. DO NOT MERGE.
* commit 'dcd18d527a5d30396e1cc050150d14df5ae8957f':
  Update version to 23.1.0. DO NOT MERGE.
2015-10-13 23:51:36 +00:00
Chris Flatt
dcd18d527a Update version to 23.1.0. DO NOT MERGE.
Change-Id: I7e27e0e57b51f78f2d06df1081e2fdf570f363ea
2015-10-13 16:45:11 -07:00
Chris Flatt
f161c0fcbf am 00ada54f: Update support library to 23.1.1. DO NOT MERGE
* commit '00ada54f19e5a24a82d0c30d0e91899ace99b753':
  Update support library to 23.1.1. DO NOT MERGE
2015-10-13 22:33:55 +00:00
Chris Flatt
00ada54f19 Update support library to 23.1.1. DO NOT MERGE
Change-Id: Ifaaa53575446dd025400b91ecc990c0d2664e2ab
2015-10-13 15:23:22 -07:00
Miao Wang
afe2d24204 Fix llvm-rs-cc.exe crash for windows
- Move the dlls needed by llvm-rs-cc to the same folder as the
   executable.

Bug: 23315748
Change-Id: I2d306684fcfd1c600c1bdb6f7050d671601c6b17
2015-10-13 21:34:51 +00:00
David Pursell
e1e3ef7817 am 76297926: am 6d49cebd: Merge "adb: fix docstring for shell functions."
* commit '7629792665882709fb6a1f30e21eb7d137443b04':
  adb: fix docstring for shell functions.
2015-10-13 15:19:53 +00:00
David Pursell
7629792665 am 6d49cebd: Merge "adb: fix docstring for shell functions."
* commit '6d49cebd90e28240edeffa545d427432e363d726':
  adb: fix docstring for shell functions.
2015-10-13 15:13:46 +00:00
David Pursell
6d49cebd90 Merge "adb: fix docstring for shell functions." 2015-10-13 15:08:46 +00:00
Sungsoo Lim
c1ac03ac00 am 63278060: Remove route providers which use RouteGroup
* commit '6327806028e08627f23f9b8c288469fef31a3607':
  Remove route providers which use RouteGroup
2015-10-13 09:13:29 +00:00
Sungsoo Lim
6327806028 Remove route providers which use RouteGroup
Bug: 24831500
Change-Id: I272a2a944685384166308aa745e67d743e0b7637
2015-10-13 13:28:04 +09:00
David Pursell
45d61d070f adb: fix docstring for shell functions.
Change-Id: Iaae8605b18583c38e517f865083012204d236832
2015-10-12 15:55:38 -07:00
Spencer Low
ebbc3fe2d0 adb/test_device.py: fix finding md5 command on pre-L platforms
606835ae5c4b9519009cdff8b1c33169cff32cb1 in platform/system/core made
adb.device.shell() throw adb.ShellError instead of
subprocess.CalledProcessError.

Change-Id: I7f579887a9aab8d11cbb2c419b8406f51d6b1bd6
Signed-off-by: Spencer Low <CompareAndSwap@gmail.com>
2015-10-11 22:36:44 -07:00
David Pursell
fa1d9db173 adb: add test for non-interactive stdin.
Add a test to send stdin to non-interactive `adb shell`.

This new test will hang on ToT devices that support shell_v2 until they
are rebuilt with the corresponding adb CL. A new feature could be added
instead to filter those devices out, but it doesn't seem worth it as no
devices have yet been released with shell_v2.

This CL also fixes a mistake I made earlier with device.linesep; this
is used to check device output, not separate device input. Using it
added unnecessary newline characters on Windows.

Bug: http://b/24565284
Change-Id: Ic123402975033d74688f56a36acac993af6815e6
2015-10-09 16:51:12 -07:00
Bo Hu
b1f629b255 am b6239eab: am de02034f: am 944fb730: am 419fb50c: Merge "Update system images to revision 4" into mnc-dev
* commit 'b6239eab03ac4d5329b3fc666e9031ff47852e8a':
  Update system images to revision 4
2015-10-09 01:18:51 +00:00
Bo Hu
b6239eab03 am de02034f: am 944fb730: am 419fb50c: Merge "Update system images to revision 4" into mnc-dev
* commit 'de02034f6f289945691eeec4fb89d35804198eea':
  Update system images to revision 4
2015-10-09 01:12:47 +00:00
Bo Hu
de02034f6f am 944fb730: am 419fb50c: Merge "Update system images to revision 4" into mnc-dev
* commit '944fb7302582f6626ca4fd3ba6c7a41ce86abcbc':
  Update system images to revision 4
2015-10-09 01:06:44 +00:00
Bo Hu
944fb73025 am 419fb50c: Merge "Update system images to revision 4" into mnc-dev
* commit '419fb50cad5ca8cadb45c26552fd767109474315':
  Update system images to revision 4
2015-10-09 01:01:57 +00:00
Bo Hu
419fb50cad Merge "Update system images to revision 4" into mnc-dev 2015-10-09 00:52:14 +00:00
Dake Gu
5f54ba7d70 am 2157e7f4: SupportLeanbackShowcase: get rid of card view background overdraw
* commit '2157e7f4ece543b3aca6a9befece9a21bbfcac09':
  SupportLeanbackShowcase: get rid of card view background overdraw
2015-10-08 21:32:45 +00:00
Dake Gu
2157e7f4ec SupportLeanbackShowcase: get rid of card view background overdraw
Change-Id: I3a46d34df265eda2cf38bfca80d3786aa5a8a23b
2015-10-08 11:59:50 -07:00