Commit Graph

15622 Commits

Author SHA1 Message Date
Andrew Hsieh
3598d53b42 Drop clang version check for __builtin_isinf and __builtin_isnan
This CL unconditionally removes the existance of __builtin_isinf and
__builtin_isnan from math.h for clang, because (unlike other math functions)
clang doesn't like those to be declared.

See LLVM bugzilla entry: http://llvm.org/bugs/show_bug.cgi?id=20958

The reason for decorating all math functions with __attribute__((pcs("aapcs")))
is to offer developers the ability to compile their code with hardfp and still
link Android's libm.so which follows softfp calling convention.

Before issue 20958 is fixed, those who want clang to compile their code with
hardfp in NDK has to go all the way hard, ie.
1) LOCAL_CFLAGS += -mhard-float -D_NDK_MATH_NO_SOFTFP=1
   Note that _NDK_MATH_NO_SOFTFP=1 remove __attribute__((pcs("aapcs"))) for all math functions
2) LOCAL_LDLIBS += -lm_hard  # link libm_hard.a recompiled with -mhard-float instead of bionic libm.so

Change-Id: Ie2f95e73e58e1574e8cadbcab92a5209d94448e1
2015-01-16 14:24:04 -08:00
Dan Albert
ec63f63c9a Merge "Add aday, which converts build numbers to dates." 2015-01-07 00:23:43 +00:00
Dan Albert
6313a60dc5 Add aday, which converts build numbers to dates.
Change-Id: I8d4219f961951ef1d84d3027d361378005764ee6
2015-01-06 16:11:06 -08:00
Andrew Hsieh
817e1ef487 Merge "Use define for drm property keys instead of defining as char pointers" 2015-01-05 23:51:01 +00:00
Narayan Kamath
f14a39512a Merge "Remove hardcoded ICU include paths." 2015-01-05 17:46:17 +00:00
Narayan Kamath
15b31c80b9 Remove hardcoded ICU include paths.
ICU exports them using LOCAL_EXPORT_C_INCLUDE_DIRS.

Note that this makefile doesn't building anything
(it's used to test a mk file parser) but it's probably best to
remove all hardcoded references to these paths.

bug: 18581021
Change-Id: Ie3320b405b18a69f35edda510242ef243960b796
2015-01-05 17:44:27 +00:00
Martin Storsjo
2202e9414a Use define for drm property keys instead of defining as char pointers
When defined as char pointers, every compilation unit that includes
the NdkMediaDrm.h header defines a new copy of the same global
variables - leading to linker errors due to multiple definitions
if more than one file includes it.

By using a define, they don't generate any symbols. The NdkMediaFormat.h
header uses extern const char* for a similar set of keys, but that
can't be added after the actual platform has shipped. The other
alternative would be to declare them as static const char*, which
wouldn't generate global symbols, but which could trigger warnings
about unused static symbols instead.

The same change has already been applied in frameworks/av in
https://android-review.googlesource.com/120303.

Change-Id: I14ca81d94309b7f437b3bc144920c48a8b3f0261
2015-01-05 18:52:13 +02:00
Andrew Hsieh
e5ede93a47 Merge "Header/symbol for unknown arch." 2014-12-09 02:50:43 +00:00
WenHan Gu
d7120d4451 Header/symbol for unknown arch.
Change-Id: Ibdbc4cf5408958444ed7a83da6c8bbe478072c6d
2014-12-09 10:50:05 +08:00
Andrew Hsieh
08b75cc3b7 Merge "misc header changes for r10d" 2014-12-08 02:33:22 +00:00
Andrew Hsieh
6aff78a6ce misc header changes for r10d
1. move sgidefs.h to libc/arch-mips.
   See bionic 6e50cb454451916ced315680f6c13dc08cf3959a
2. change type of u_ar0 from "unsigned long" to "struct user_regs_struct*".
   See bionic e03950fa0c5567edf70d011b856a027e03b1c0f7
3. sync fts.h, dlext.h, sys/user.h
4. remove ' from string.h

Change-Id: I2ba58b0df4c655f107ea086efbd0220de2b40e9a
2014-12-05 14:11:54 +08:00
Dan Albert
409b471e48 Merge "Explicitly use an older C++ standard." 2014-11-20 20:58:08 +00:00
Dan Albert
c16f22a622 Explicitly use an older C++ standard.
There's some crufty code in here that cannot be compiled with C++11 (a
lot of implicit conversions that C++11 complains about but C++98
doesn't). Moving this project isn't a high priority, so just use an
older standard.

Bug: 18466763
Change-Id: Iaffc7b2b19bb7ecbdc234782fb9370c641559fac
2014-11-20 10:52:36 -08:00
Dan Albert
9c93ba1d30 Merge "Remove uses of stlport in testrunner." 2014-11-17 22:27:16 +00:00
Dan Albert
24f5368eed Remove uses of stlport in testrunner.
Bug: 15193147
Change-Id: I119846a3423a902e0fd48e30e40788c0946e9b41
2014-11-17 14:12:14 -08:00
Andrew Hsieh
3c864e0473 Merge "Fix headers to be included alone" 2014-11-17 01:56:00 +00:00
Andrew Hsieh
b6f18dba42 Fix headers to be included alone
Change-Id: I7eb9a6ed51b938506d440b91e6b3d42daf817fd7
2014-11-17 09:54:27 +08:00
Andrew Hsieh
397f2ea4e7 Merge "Change sysconf(3) to return long" 2014-11-17 01:49:46 +00:00
Andrew Hsieh
d3ab539366 Change sysconf(3) to return long
See bionic 60d84af1726225320b26683b726e5e735d9d76e8

BUG=18390956

Change-Id: I20c6aa48115610b35e1d59f9f37ce5abbe6ac2f7
2014-11-17 09:48:36 +08:00
Andrew Hsieh
f72859a145 Merge "Add posix_memalign to API16's libc.so, and to stdlib.h for API 16, 17, 18, 19" 2014-11-13 08:32:20 +00:00
Elliott Hughes
27db85ff16 Merge "Made development/scripts/stack work on Mac." 2014-11-08 19:00:32 +00:00
Yang Ni
e4b2a1a959 Made development/scripts/stack work on Mac.
Change-Id: I9be1e50c0a635068017326738af4f5c38dddddab
2014-11-07 09:45:56 -08:00
Dmitriy Ivanov
fc3c82562d am 7d4c9612: Merge changes I0666e671,I90a1aed6
* commit '7d4c96124ca1d9002c73d4b0faf40d03ca30fc77':
  Do not call art-on macro by default.
  Add support for debugging ART to the dalvik.gdb script.
2014-10-31 22:51:40 +00:00
Dmitriy Ivanov
7d4c96124c Merge changes I0666e671,I90a1aed6
* changes:
  Do not call art-on macro by default.
  Add support for debugging ART to the dalvik.gdb script.
2014-10-31 22:46:59 +00:00
Christopher Ferris
5661570266 Do not call art-on macro by default.
If you are debugging a native process, SIGSEGV gets ignored by default.
The gdbclient bash function has been modified to only call the art-on
macro when running gdbclient app_processXX.

Also, print a warning in case someone is trying to debug a native
process using app_process.

Bug: 17815162
Change-Id: I0666e6713b0a03ee713be7827c5b671938f2c263
(cherry picked from commit 436b740b70)
2014-10-31 12:33:57 -07:00
Dave Allison
187be4adee Add support for debugging ART to the dalvik.gdb script.
This adds two commands:

art-on
art-off

To the gdbclient script for debugging ART-based executables in gdb.
The default is 'art-on'

Bug: 17409881
Change-Id: I90a1aed603e50853a40d5f5ec1c9b168dc17ddc7
(cherry picked from commit 22382a4774)
2014-10-31 12:33:52 -07:00
Baligh Uddin
f82c502273 Merge "Import translations. DO NOT MERGE" into stage-aosp-master 2014-10-31 17:10:01 +00:00
Baligh Uddin
1baffe78ce Merge "Import translations. DO NOT MERGE" into stage-aosp-master 2014-10-31 17:01:29 +00:00
Baligh Uddin
72d98225e5 Import translations. DO NOT MERGE
Change-Id: I5874a7acf016c06931e064426cd73b83b79d9c26
Auto-generated-cl: translation import
2014-10-30 15:45:57 -07:00
Andrew Hsieh
fbee7f9704 am f8d4dfbf: Merge "Cherry-pick: Only use <atomic> for C++11 and newer"
* commit 'f8d4dfbff6035e87e941cb75affac86c6d7e144e':
  Cherry-pick: Only use <atomic> for C++11 and newer
2014-10-30 18:41:10 +00:00
Andrew Hsieh
f8d4dfbff6 Merge "Cherry-pick: Only use <atomic> for C++11 and newer" 2014-10-30 18:34:18 +00:00
Baligh Uddin
5fd0e38c0a Import translations. DO NOT MERGE
Change-Id: Iefd0773327c4d0aa246381ea63b94b898cfcc75f
Auto-generated-cl: translation import
2014-10-30 11:17:54 -07:00
Andrew Hsieh
add39dfea3 Cherry-pick: Only use <atomic> for C++11 and newer
See bionic 3ce0769aa5f9a991af1d167f730d987dd002253c
BUG=17736764

Change-Id: If63b6c8394f8574fd198fd24dfc42a3aaba865d5
2014-10-30 10:42:04 -07:00
Andrew Hsieh
21922de299 Add posix_memalign to API16's libc.so, and to stdlib.h for API 16, 17, 18, 19
posix_memalign is added to libc.so for API 17, 18, 19 but prototype
is missing from stdlib.h

Turns out API 16 supports posix_memalign too.  Add it as well

See b.android.com/77861

Change-Id: I940cdc60af9f98490001d67bef32fee556a3ac51
2014-10-23 10:28:17 -07:00
Chenjie Luo
b793668bd8 am 3b0ab876: Merge "Modify testrunner/test_defs.xml to delete obsolete cts tests" into lmp-dev
* commit '3b0ab876fabd488e71c01092810f622508a77d22':
  Modify testrunner/test_defs.xml to delete obsolete cts tests
2014-10-20 20:10:30 +00:00
Chenjie Luo
3b0ab876fa Merge "Modify testrunner/test_defs.xml to delete obsolete cts tests" into lmp-dev 2014-10-20 20:03:14 +00:00
Chenjie Luo
48ef4ff408 Modify testrunner/test_defs.xml to delete obsolete cts tests
Bug: 17989468
Change-Id: Ic14603a2b00f35b498ecac3fa4a4f309d29f3408
2014-10-20 12:13:16 -07:00
Baligh Uddin
3bef59abfc am 3a39d4e2: (-s ours) Merge "Import translations. DO NOT MERGE" into lmp-dev
* commit '3a39d4e245e39dc0cfad953ef38a11035e69a6c9':
  Import translations. DO NOT MERGE
2014-10-20 00:22:00 +00:00
Baligh Uddin
3a39d4e245 Merge "Import translations. DO NOT MERGE" into lmp-dev 2014-10-20 00:16:42 +00:00
Baligh Uddin
c6fcd869c6 Import translations. DO NOT MERGE
Change-Id: I1114bea9e5f859734d8058b7344b9122c8dad7a7
Auto-generated-cl: translation import
2014-10-19 16:01:45 -07:00
Baligh Uddin
d5c6c1cdf7 am 0a77b1e9: (-s ours) Import translations. DO NOT MERGE
* commit '0a77b1e924a62097723f4ebe862fa4274c9fa7fe':
  Import translations. DO NOT MERGE
2014-10-19 16:55:05 +00:00
Baligh Uddin
0a77b1e924 Import translations. DO NOT MERGE
Change-Id: Id9d8758cb68860dad84005bd5a29649b287652ea
Auto-generated-cl: translation import
2014-10-19 09:47:23 -07:00
Xavier Ducrohet
f2dcbd2e72 am 946bfb51: Update Build Tools version to <API>.0.1. DO NOT MERGE.
* commit '946bfb51c0c4e47c9d111ada1fddf050e2823609':
  Update Build Tools version to <API>.0.1. DO NOT MERGE.
2014-10-17 22:55:26 +00:00
Xavier Ducrohet
946bfb51c0 Update Build Tools version to <API>.0.1. DO NOT MERGE.
This for the release that fixes the aapt crash on windows.

Change-Id: I983a5f084d6786bd0a8c0676b64001d7be6aa3d3
2014-10-17 15:48:37 -07:00
Trevor Johns
cc763b72d5 am 36274ac5: Add additional samples for L to sdk.atree
* commit '36274ac53dfcef9661c5215e9fabf7a6501e0c64':
  Add additional samples for L to sdk.atree
2014-10-17 19:27:19 +00:00
Trevor Johns
36274ac53d Add additional samples for L to sdk.atree
- RecyclerView
- CardView
- LNotifications
- DrawableTinting
- InterpolatorPlayground
- PdfRendererBasic
- FloatingActionButtonBasic
- RevealEffectBasic

Change-Id: Icea2e207311d60ad72c349c3a6a17439526661af
2014-10-17 12:05:30 -07:00
Trevor Johns
de236d16d0 am 6876a9cf: Add browseable samples for L SDK release
* commit '6876a9cfc5eb05168ae7fa5215979f22396fff58':
  Add browseable samples for L SDK release
2014-10-17 15:10:50 +00:00
Trevor Johns
6876a9cfc5 Add browseable samples for L SDK release
Change-Id: I71c6ff9a90b7734042d68af7f01e6d61118cc508
2014-10-17 03:31:00 -07:00
Trevor Johns
e3e839e52b am 66b6f721: Merge "Update sdk.atree and samples_source.prop_template for L SDK release" into lmp-dev
* commit '66b6f721b7e20911f0764720346caca5c77fb22b':
  Update sdk.atree and samples_source.prop_template for L SDK release
2014-10-17 07:26:28 +00:00
Trevor Johns
8176b9067f am ca8bc22a: sdk.atree: Fix typo and remove legacy BluetoothChat sample
* commit 'ca8bc22a50c47517e7731a1762ffe39e105462b5':
  sdk.atree: Fix typo and remove legacy BluetoothChat sample
2014-10-17 07:25:21 +00:00