Commit Graph

18757 Commits

Author SHA1 Message Date
Dimitry Ivanov
1a3e15aaf5 Remove symbols that are not present in platform libc
Bug: http://b/26236057
Change-Id: If317bf196f15a23e94b6e5469d9e7eabfb68fb07
2015-12-16 16:38:32 -08:00
Dimitry Ivanov
2a421ad890 Remove LIBC_PRIVATE symbols from android-21 libdl
Bug: http://b/26234924
Change-Id: Ie8b5bc0e7ee78f1ea2a8c70fe3d46000a9efed0e
2015-12-16 16:17:31 -08:00
Dimitry Ivanov
7c74453162 Remove LIBC_PRIVATE symbols from android-21 libm
Bug: http://b/26234924
Change-Id: Iaa8c88aa7a75677b543f699d791bb9f463d000a2
2015-12-16 16:16:28 -08:00
Dimitry Ivanov
4713395668 Remove LIBC_PRIVATE symbols from android-21 libc
And also that strange _Z16__libc_init_vdsov symbol

Bug: http://b/26234924
Change-Id: Idab7680cbde32c48f97c22a403212abbf30eb0f9
2015-12-16 16:15:05 -08:00
Shinichiro Hamaji
c51d71ec48 Merge "Enable .toc optimization for SDK stub" 2015-12-16 01:14:03 +00:00
Shinichiro Hamaji
8b09785ad2 Enable .toc optimization for SDK stub
As we don't build .dex file for SDK stub, use .jar.toc even for
the .jack file. This should be safe we are building the .jack
file from .jar file.

This was actually necessary to achieve performance improvement
mentioned in https://android-review.googlesource.com/#/c/186470/

Bug: 24597504
Change-Id: I7d4518421b64510ce83229d9f19a654888753a84
2015-12-16 09:52:22 +09:00
Yohei Yukawa
72f24a0fa1 Merge "Updating Idegen project to use JDK 1.7" 2015-12-15 05:01:56 +00:00
Shinichiro Hamaji
3578bf1c87 Merge "Define a rule to build a dummy .dex.toc file" 2015-12-14 23:07:58 +00:00
Shinichiro Hamaji
ee81f7eb90 Define a rule to build a dummy .dex.toc file
This is a preparation of
https://android-review.googlesource.com/#/c/186470/

Bug: 24597504
Change-Id: I5b403f4b3ae29579d11653103464819c61063b3e
2015-12-14 18:34:45 +09:00
Josh Gao
4d00ec0adb Merge "Move adb tests to system/core/adb." 2015-12-10 18:09:47 +00:00
Dan Albert
b6d57640cc Merge "Update byteswap.h from bionic to match endian.h." 2015-12-10 18:07:06 +00:00
Dan Albert
6e84c13895 Update byteswap.h from bionic to match endian.h.
Change-Id: I79e445a167800ce083039d0cb65c5a966d7e6a72
2015-12-09 19:17:28 -08:00
Josh Gao
5cd0f10ebc Move adb tests to system/core/adb.
Change-Id: Ieeb0e1122a7b13a784ec8c19cf360c7699dcd9ff
2015-12-09 11:25:57 -08:00
Yohei Yukawa
85fad37aa7 Merge "Fix exception in MakeFileParser" 2015-12-09 19:11:13 +00:00
Xiaohui Chen
0b7e903d4c Fix exception in MakeFileParser
The code currently tries to parse all "$" as variables.  Now narrow it
down to only "$()" as it should.

Bug: 23155276
Change-Id: I1732ce757a9f7d611e90138b595a0aa1d3ce6009
2015-12-08 19:03:23 -08:00
Dan Albert
a3a48fc603 Merge changes from topic 'update-endian-h'
* changes:
  Update endian.h from bionic.
  Always use the newest sys/cdefs.h.
2015-12-08 23:28:18 +00:00
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
Elliott Hughes
6f859c4b4f Merge "win32: for Unicode cmdline args, switch from cmd.exe to powershell.exe" 2015-12-08 20:53:07 +00:00
Michael
6836ddf514 Updating Idegen project to use JDK 1.7
Updating Idegen intellij template to use JDK 1.7, which is required for
marshmallow.

Change-Id: I4ad02acb19fa850a62b6a25bbbaf4db2577a9fe0
2015-12-06 13:54:56 +01: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
Spencer Low
82aa7da5a6 win32: for Unicode cmdline args, switch from cmd.exe to powershell.exe
Previously, to pass a subprocess cmdline args with Unicode characters,
we'd write the command line to a batch file and run it with cmd.exe. The
problem was that the batch file used chcp to get cmd.exe to be able to
read UTF-8 from the batch file, but this had the side-effect of changing
the codepage of the user's console window.

Instead of saving & restoring the codepage (which would always have the
risk of somehow leaving the console in the wrong codepage if a Ctrl-C
handler somehow wasn't called, or if Task Manager was used manually,
etc.), we use Windows PowerShell as the helper instead of cmd.exe.

PowerShell is installed on every version of Windows since Windows 7 and
is a separate free download for Windows XP and Windows Vista, but
realistically Windows XP is no longer supported by Microsoft and
probably no one chooses to run Windows Vista over Windows 7. Plus, this
change only uses PowerShell if Unicode args are passed.

Switching to PowerShell allows us to get rid of the temp file, context
manager, and messy __del__ that caused a variety of problems in the
past.

Change-Id: Ia3df533f7747f7b9b28a093f8ca24117371e5e59
Signed-off-by: Spencer Low <CompareAndSwap@gmail.com>
2015-11-21 20:39:56 -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