Commit Graph

18738 Commits

Author SHA1 Message Date
Dan Albert
616a494ec1 Update endian.h from bionic.
This consolidates the guts of the three endian.h files (endian.h,
sys/endian.h, and machine/endian.h) into just sys/endian.h, and turns
the others into headers that forward to it.

This also consolidates all the architecture specific machine/endian.h
files into a single generic header.

Finally, this is also the update version of sys/endian.h, which just
forwards to compiler builtins rather than implementing it ourselves.

Change-Id: Ifce64dc684ce3d3231f3f43a94c083bbd8661840
2015-12-08 14:20:25 -08:00
Dan Albert
c57abe4eb2 Always use the newest sys/cdefs.h.
This is all macros, so there's no reason to have one per API level.

This is still quite a ways from matching what we have in bionic, but
that's a problem for another day.

Change-Id: I804edfd6299d9ba15a3ba59e1091f301eace2142
2015-12-08 14:19:48 -08:00
Dan Albert
7d7f8702f3 Merge "Update uchar.h from bionic."
am: 008a22f9b9

* commit '008a22f9b9588ff3df3e0605970f3cf39442df96':
  Update uchar.h from bionic.
2015-12-04 21:42:34 +00:00
Dan Albert
2f3b724142 Merge "Fix complex.h for clang."
am: 0cdb55f880

* commit '0cdb55f8807f86509f3a7c3b33dfe2cf98067c7e':
  Fix complex.h for clang.
2015-12-04 21:42:24 +00:00
Dan Albert
008a22f9b9 Merge "Update uchar.h from bionic." 2015-12-04 21:36:21 +00:00
Dan Albert
0cdb55f880 Merge "Fix complex.h for clang." 2015-12-04 21:36:15 +00:00
Dan Albert
53bc2e2f1e Update uchar.h from bionic.
char16_t and char32_t should not be defined when building as C. For
GCC they are, but not for clang. Pull in the updated bionic header
which has the fix for this.

Change-Id: I41b292ece36af79bbe835706bee4441b298215ff
2015-12-04 11:29:12 -08:00
Dan Albert
4efb18d5f5 Fix complex.h for clang.
From the comment about __NDK_FPABI__ vs __NDK_FPABI_MATH__:

    NOTE: Disable for clang for now unless _NDK_MATH_NO_SOFTFP=1, because clang before 3.4 doesn't
          allow change of calling convension for builtin and produces error message reads:

            a.i:564:6: error: function declared 'aapcs' here was previously declared without calling convention
            int  sin(double d) __attribute__((pcs("aapcs")));
                ^
            a.i:564:6: note: previous declaration is here

This applies to current clang as well, not just pre-3.4. Mark these
math functions as math functions.

Change-Id: I001b31df540aa3f61eec049f89346cbf2f11f128
2015-12-04 11:22:26 -08:00
Christopher Ferris
79266dd407 Merge "Modify the dso rule to allow spaces in [] names."
am: 07bf64b28a

* commit '07bf64b28a19f0fa290b0ad3b1c656efd2e5289a':
  Modify the dso rule to allow spaces in [] names.
2015-12-01 06:09:26 +00:00
Christopher Ferris
07bf64b28a Merge "Modify the dso rule to allow spaces in [] names." 2015-12-01 06:06:11 +00:00
Christopher Ferris
c14b612ba1 Modify the dso rule to allow spaces in [] names.
Some of the map names have spaces in them, but only the ones that look
like:

[anon:atexit handlers]

So allow spaces between a [ and a ].

Change-Id: I09f1b50533fcd2e79acda199dcc3fb99c6d8428f
2015-11-30 16:29:57 -08:00
Shinichiro Hamaji
477d5d1770 Merge "Generate .toc for android_stubs_current.jar"
am: 6cf9ae5b6b

* commit '6cf9ae5b6bc8b3bebd9769617c06845402b0a7a5':
  Generate .toc for android_stubs_current.jar
2015-11-21 00:48:19 +00:00
Shinichiro Hamaji
6cf9ae5b6b Merge "Generate .toc for android_stubs_current.jar" 2015-11-21 00:42:12 +00:00
Shinichiro Hamaji
6198f07189 Generate .toc for android_stubs_current.jar
This should be landed before we merge the main change, which
defines define-jar-to-toc-rule.

https://android-review.googlesource.com/#/c/181833/

Bug: 24597504
Change-Id: Icc3394690fb7949cfb89eff951ce3c394d273205
2015-11-19 17:14:15 +09:00
Josh Gao
7a2b0f3221 Merge "adb: update tests for push/pull directory change."
am: 95e0260252

* commit '95e02602521720cbe539a7ea57e6a6fbfc88787a':
  adb: update tests for push/pull directory change.
2015-11-11 23:27:37 +00:00
Josh Gao
95e0260252 Merge "adb: update tests for push/pull directory change." 2015-11-11 23:22:47 +00:00
Elliott Hughes
bfe99de308 Merge "adb unittest: make test_unicode_paths stricter"
am: 95f81b0afa

* commit '95f81b0afa9299e9ceb8ebb4114bd826158e9aea':
  adb unittest: make test_unicode_paths stricter
2015-11-11 17:15:59 +00:00
Elliott Hughes
95f81b0afa Merge "adb unittest: make test_unicode_paths stricter" 2015-11-11 17:10:59 +00:00
Spencer Low
08d0622fa5 adb unittest: make test_unicode_paths stricter
After pushing to a Unicode path, use 'adb shell ls' to verify that the
path was created with the right name. This verifies that the UTF-16 to
UTF-8 conversion is done properly.

When pulling to a Unicode path, verify that the local file has been
created with the expected name. This should test UTF-16 to UTF-8
(command line to internal data structures) and UTF-8 to UTF-16 (internal
data structures to CreateFileW()).

Change-Id: I8b80aae731cf0d058cb0c3259e7f58256e86b771
Signed-off-by: Spencer Low <CompareAndSwap@gmail.com>
2015-11-10 23:30:35 -08:00
Josh Gao
7fe79d6515 adb: update tests for push/pull directory change.
Bug: http://b/25394682
Change-Id: Iaae5ceedc7a38e9981503a81136966939c6d7280
2015-11-07 17:56:19 -08:00
Josh Gao
2b16fc99cf Merge "adb: add tests for pushing/pulling empty dirs."
am: 084d084bbc

* commit '084d084bbce132561d91b6e0fbef8ad1fe7e7099':
  adb: add tests for pushing/pulling empty dirs.
2015-11-07 00:56:58 +00:00
Josh Gao
084d084bbc Merge "adb: add tests for pushing/pulling empty dirs." 2015-11-07 00:53:02 +00:00
Josh Gao
cdf675849c adb: add tests for pushing/pulling empty dirs.
Change-Id: I840a31fc8f37939a1166ac39700363a8b79cc3be
2015-11-06 15:01:48 -08:00
David Pursell
3aa550644c Merge "adb: fix device module for non-shell_v2 usage."
am: fbc9027558

* commit 'fbc902755869a2f1dbebc7074740e8bd9618b206':
  adb: fix device module for non-shell_v2 usage.
2015-11-05 22:15:23 +00:00
David Pursell
fbc9027558 Merge "adb: fix device module for non-shell_v2 usage." 2015-11-05 22:12:11 +00:00
Baligh Uddin
29f649f43a Merge "Import translations. DO NOT MERGE" into stage-aosp-master 2015-11-05 19:32:14 +00:00
David Pursell
51f2cc2185 adb: fix device module for non-shell_v2 usage.
The device.py module was incorrectly querying the return code when the
shell_v2 return code isn't available.

This CL fixes it by specifying the return code probe as an argument
list rather than a single string argument. This means that before the
device was executing something like this:

  /system/bin/sh getprop '; echo $?'

which didn't do what we wanted. Now it does something like this:

  /system/bin/sh getprop ; echo $?

Bug: http://b/25470461
Change-Id: I5e20da31ec7ecc782c6146d8b38d752d52082860
2015-11-05 11:26:42 -08:00
Elliott Hughes
63915da867 Merge "unittest for sending data thru adb forward/reverse; --no-rebind unittest"
am: 1ccb0e835d

* commit '1ccb0e835d98264aa78e9b0cbe94f2f523112d5b':
  unittest for sending data thru adb forward/reverse; --no-rebind unittest
2015-11-05 17:56:53 +00:00
Elliott Hughes
1ccb0e835d Merge "unittest for sending data thru adb forward/reverse; --no-rebind unittest" 2015-11-05 17:55:05 +00:00
Spencer Low
5e50d6b443 unittest for sending data thru adb forward/reverse; --no-rebind unittest
Added --no-rebind unittest to test fix
a6b340af123b82e3aaa33cb2a0d45f637eeb4759

Change-Id: I2286b7f652c84fbc79d8860c9a04594d3284ee68
Signed-off-by: Spencer Low <CompareAndSwap@gmail.com>
2015-11-04 22:12:26 -08:00
Dan Albert
55a1c5d795 Merge "Rename android-M to android-23."
am: a21dd542fb

* commit 'a21dd542fb9129a36d94aef1370ba71d4f82ca7e':
  Rename android-M to android-23.
2015-11-05 01:27:14 +00:00
Dan Albert
a21dd542fb Merge "Rename android-M to android-23." 2015-11-05 01:01:13 +00:00
Baligh Uddin
12460014fb Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 25433205
Change-Id: I33845a9556889471c57fa5c16f9ab8c25fc526a4
2015-11-04 11:41:17 -08:00
Bill Yi
82edd17230 Merge commit '6d1a96171425a2842ee71d8b1b7ed60b3ab65ece' into HEAD 2015-11-03 14:29:16 -08:00
Josh Gao
58860bfdb9 Merge "adb: add more push/pull tests."
am: 86d58fb9f8

* commit '86d58fb9f89617056192604ec2a3aa67b910017e':
  adb: add more push/pull tests.
2015-11-03 02:27:30 +00:00
Josh Gao
86d58fb9f8 Merge "adb: add more push/pull tests." 2015-11-03 02:22:08 +00:00
Josh Gao
6b8dcee6e6 adb: add more push/pull tests.
Bug: http://b/25324823
Change-Id: I7a24fcd7c0c76469877b4af4d5a3b99750aea750
2015-11-02 18:21:04 -08:00
Dan Albert
cea6641901 Rename android-M to android-23.
Change-Id: I37241592cc2354e785f518e5830e8bf9f788b0c9
2015-11-02 13:50:06 -08:00
Yabin Cui
b328d11563 Merge "adb: add test for forward/reverse commands."
am: 3e51ffff49

* commit '3e51ffff4941861b254474330fbdcdb06e7010fd':
  adb: add test for forward/reverse commands.
2015-11-02 21:44:49 +00:00
Yabin Cui
3e51ffff49 Merge "adb: add test for forward/reverse commands." 2015-11-02 21:35:02 +00:00
Yabin Cui
0e54d10df7 adb: add test for forward/reverse commands.
Bug: 25355808
Change-Id: Idc636569b0699c2acc3bf674fdcfd25c74b83121
2015-11-02 12:21:52 -08:00
Josh Gao
da2d3e03be Merge changes I35aae129,I59239c39,Id685bf74,Ic4f27fdb,I2a2b6b50
am: 2a74fe2f63

* commit '2a74fe2f63ab7675c355bd207aeb1c988f0404f0':
  Add a gdb_flags argument to gdbrunner.start_gdb.
  Allow gdbrunner.start_gdbserver to not upload gdbserver.
  Add get_pids helper to gdbrunner.
  Don't throw when we fail to find a device.
  Allow selection of adb command.
2015-10-29 20:15:30 +00:00
Josh Gao
2a74fe2f63 Merge changes I35aae129,I59239c39,Id685bf74,Ic4f27fdb,I2a2b6b50
* changes:
  Add a gdb_flags argument to gdbrunner.start_gdb.
  Allow gdbrunner.start_gdbserver to not upload gdbserver.
  Add get_pids helper to gdbrunner.
  Don't throw when we fail to find a device.
  Allow selection of adb command.
2015-10-29 20:07:50 +00:00
Josh Gao
acc0ba81cc Add a gdb_flags argument to gdbrunner.start_gdb.
Change-Id: I35aae1290f97a33c55e9bddd2b986a7c3e93d1df
2015-10-28 15:20:57 -07:00
Josh Gao
2c7e952f1c Allow gdbrunner.start_gdbserver to not upload gdbserver.
Change-Id: I59239c3989ccd91755407e65b0d2f8183482564c
2015-10-28 14:22:03 -07:00
Josh Gao
aacbc2318d Add get_pids helper to gdbrunner.
Change-Id: Id685bf740bde382c62a02fa4d6f03717bae91f50
2015-10-28 14:22:02 -07:00
Josh Gao
44b84a8e03 Don't throw when we fail to find a device.
Instead, set it to None and let the caller handle things.

Change-Id: Ic4f27fdb52ebd6bc5b4048e4e688ec7bd2509bfa
2015-10-28 14:21:59 -07:00
Dake Gu
6d1a961714 Merge "GuidedStep example: Use standard action IDs and titles" into mnc-ub-dev
am: bea9cef302

* commit 'bea9cef30218cd91abbf46cb98f4a3b4204f00a5':
  GuidedStep example: Use standard action IDs and titles
2015-10-28 21:20:20 +00:00
Josh Gao
3fd43b5bf4 Allow selection of adb command.
This is useful for ndk-gdb.py on Windows.

Change-Id: I2a2b6b50ae00bcfc530c555f06c945b4f53f9999
2015-10-28 14:18:55 -07:00
Dake Gu
bea9cef302 Merge "GuidedStep example: Use standard action IDs and titles" into mnc-ub-dev 2015-10-28 21:14:25 +00:00