Commit Graph

12218 Commits

Author SHA1 Message Date
Andrew Hsieh
a60db2e714 am 69139a5a: Merge "Added missing clock_settime()/clock_nanosleep() in time.h API>=8"
* commit '69139a5aa58c0b85fc0d0e9763baa3b52a327e29':
  Added missing clock_settime()/clock_nanosleep() in time.h API>=8
2013-11-14 18:33:58 -08:00
Andrew Hsieh
69139a5aa5 Merge "Added missing clock_settime()/clock_nanosleep() in time.h API>=8" 2013-11-15 02:29:14 +00:00
Andrew Hsieh
cd3fe9b4b2 Added missing clock_settime()/clock_nanosleep() in time.h API>=8
See patch for API < 8 at 7761beeb56.

Change-Id: I906172a34645e2659a5b9f8acb2652a4b4eb857d
2013-11-14 11:57:04 +08:00
Andrew Hsieh
41ae572f9d am aaebba0e: Merge "Add utimensat and futimens to libc.so at API level 12 and 19, respectively"
* commit 'aaebba0e9e564c8b50286bfef6e2ee3e8f2535be':
  Add utimensat and futimens to libc.so at API level 12 and 19, respectively
2013-11-12 16:50:38 -08:00
Andrew Hsieh
aaebba0e9e Merge "Add utimensat and futimens to libc.so at API level 12 and 19, respectively" 2013-11-13 00:47:23 +00:00
Andrew Hsieh
7e967a1ca4 Add utimensat and futimens to libc.so at API level 12 and 19, respectively
See ae2d5ba31412c4f382ef405000baa866f35dd736 and
d0be7c8f9a06b3ca8ea7647ea35c8f9dc63f0fe1.

Internal BUG 11590144

Change-Id: I76119cd20fdb205728482e682fd1206d1305881d
2013-11-11 14:50:50 +08:00
Andrew Hsieh
09b09c9982 am d0b6889f: Merge "<pthread.h>: Mark pthread_exit() as __noreturn"
* commit 'd0b6889fd111bc8de0c5822f2466a360d9cd8586':
  <pthread.h>: Mark pthread_exit() as __noreturn
2013-11-05 10:29:54 -08:00
Andrew Hsieh
3cdd51bba8 am db524879: Merge "Remove obsolete ndk/platforms/android-9/arch-x86/src/__dso_handle*.S"
* commit 'db52487969985a9ade4363375b5741ca38779a00':
  Remove obsolete ndk/platforms/android-9/arch-x86/src/__dso_handle*.S
2013-11-05 10:29:53 -08:00
Andrew Hsieh
361cba6265 am ba780a0e: Merge "Refresh API19 include/android/* to android-4.4_r1"
* commit 'ba780a0e47236dd9af4f0ee10a767e3fd325c358':
  Refresh API19 include/android/* to android-4.4_r1
2013-11-05 10:29:52 -08:00
Andrew Hsieh
c4ca079b03 am c58abb6a: Merge "Rename modules NativeActivity"
* commit 'c58abb6aa3dfcb526215f307b29688f5e17753b2':
  Rename modules NativeActivity
2013-11-05 10:29:51 -08:00
Andrew Hsieh
6379074e2c am 0aff4314: Merge "Addressed feedbacks - Now they are in ndkHelper:: name space - Changed module name to ndk_helper - Changed some static members to class var or stand alone function - Added syncronization for JNIHelper.cpp - For a documentation, I will work with doc
* commit '0aff431479152f690145d8002077ff05a3906ac9':
  Addressed feedbacks - Now they are in ndkHelper:: name space - Changed module name to ndk_helper - Changed some static members to class var or stand alone function - Added syncronization for JNIHelper.cpp - For a documentation, I will work with doc writer for future improvement
2013-11-05 10:29:48 -08:00
Andrew Hsieh
d0b6889fd1 Merge "<pthread.h>: Mark pthread_exit() as __noreturn" 2013-11-05 00:40:09 +00:00
Andrew Hsieh
db52487969 Merge "Remove obsolete ndk/platforms/android-9/arch-x86/src/__dso_handle*.S" 2013-11-05 00:39:50 +00:00
Andrew Hsieh
ba780a0e47 Merge "Refresh API19 include/android/* to android-4.4_r1" 2013-11-05 00:39:37 +00:00
Andrew Hsieh
c58abb6aa3 Merge "Rename modules NativeActivity" 2013-11-05 00:15:51 +00:00
Andrew Hsieh
c0567b54c5 Rename modules NativeActivity
To TeapotNativeActivity and MoreTeapotsNativeActivity, respectively

Change-Id: Iddbb326ef246232e64a9c30138edb55efe86230d
2013-11-05 08:12:46 +08:00
Andrew Hsieh
0aff431479 Merge "Addressed feedbacks - Now they are in ndkHelper:: name space - Changed module name to ndk_helper - Changed some static members to class var or stand alone function - Added syncronization for JNIHelper.cpp - For a documentation, I will work with doc writer for future improvement" 2013-11-05 00:10:30 +00:00
Hak Matsuda
13754d53c3 Addressed feedbacks
- Now they are in ndkHelper:: name space
- Changed module name to ndk_helper
- Changed some static members to class var or stand alone function
- Added syncronization for JNIHelper.cpp
- For a documentation, I will work with doc writer for future improvement

Change-Id: I0055061a4f53b1904cde2e0339550ee277b35fc5

Addressed most of feedbacks,
- Switched coding standard to Chrome style
- Update JNI helper, and documented
- Fixed other issues that is pointed out

Change-Id: Icc729a55ed8dd613759f34a3fc35cb4949d2d205
2013-11-05 08:09:19 +08:00
Andrew Hsieh
86c3b43906 Refresh API19 include/android/* to android-4.4_r1
Change-Id: I9cef03099c68cc0bfeaeedbf8b7d3f1dccc09a50
2013-11-04 11:13:53 +08:00
Andrew Hsieh
a915811733 Remove obsolete ndk/platforms/android-9/arch-x86/src/__dso_handle*.S
Superceded by __dso_handle.h

Change-Id: Ic224b8a1ed74a9535ae9f8814f3450cb4f92efb6
2013-11-04 10:42:21 +08:00
Andrew Hsieh
effaa95815 <pthread.h>: Mark pthread_exit() as __noreturn
Same fix as https://android-review.googlesource.com/#/c/67540/
Fix for: https://code.google.com/p/android/issues/detail?id=60686

Change-Id: I27b8f1ed71dbb44f3598f7f4551bd881754ef945
2013-11-04 10:37:50 +08:00
Andrew Hsieh
9dabc24f41 am 4abacac3: Merge "Fix prototype of poll"
* commit '4abacac32dcdc433b83b819ab6e03b958bbfb31c':
  Fix prototype of poll
2013-11-03 16:53:20 -08:00
Andrew Hsieh
4abacac32d Merge "Fix prototype of poll" 2013-11-04 00:30:46 +00:00
Elliott Hughes
ff11bce097 am 07bdc2b8: Merge "Fix build."
* commit '07bdc2b8e6980173ca9e8070803dcaad042e52c2':
  Fix build.
2013-10-31 21:26:13 -07:00
Elliott Hughes
07bdc2b8e6 Merge "Fix build." 2013-11-01 04:24:08 +00:00
Elliott Hughes
0d86e637f6 Fix build.
Change-Id: If09775ab21fef5b1df0222f07443a55190ae7a1c
2013-10-31 18:41:52 -07:00
Andrew Hsieh
61097c7e51 Fix prototype of poll
from poll(struct pollfd *, nfds_t, long) to
poll(struct pollfd *, nfds_t, int)

See 11952073af22568bba0b661f7a9d4402c443a888
and ebfbb367fb

Change-Id: Idba600d4b172404f0a1d5d715febcba8a495a770
2013-11-01 08:33:08 +08:00
Andrew Hsieh
522490da81 am 55530bf3: Merge "ndk: Add missing declaration for mkdtemp"
* commit '55530bf38722d88132efeee41c3f4fbff5e08e08':
  ndk: Add missing declaration for mkdtemp
2013-10-28 18:55:30 -07:00
Andrew Hsieh
55530bf387 Merge "ndk: Add missing declaration for mkdtemp" 2013-10-29 01:52:24 +00:00
David 'Digit' Turner
82703204a9 ndk: Add missing declaration for mkdtemp
The mkdtemp() function has always been implemented in the C library
(see [1] for proof) but was missing a declaration in <stdlib.h>, until
Android 4.0.1 [2]

This patch simply adds the missing declaration to former <stdlib.h>
versions. This makes it easier to build certain open-source programs
for Android, because auto-tools probing typically looks at the symbols
in libc.so to define HAVE_MKDTEMP, then the source fails to compile
because of the lack of declaration.

Note that the mkdtemp is also already listed in
platforms/android-*/arch-*/symbols/libc.so.functions.txt, which were
generated by parsing actual system libraries, and thus don't need to
be updated here.

[1] https://android.googlesource.com/platform/bionic/+/android-1.6_r1/libc/stdio/mktemp.c
    https://android.googlesource.com/platform/bionic/+/android-1.6_r1/libc/Android.mk

[2] ad1ff2fb26

Change-Id: I838b54bcb5cbfd2fed24cf7649897889ec7a5559
2013-10-28 18:46:54 +01:00
Andrew Hsieh
ba2adddbd9 am 3fd7d3d3: Merge "cleaned code, added pinch gesture detector, better opengl context handling, fixed issues"
* commit '3fd7d3d383fd64e4a8b334ab831ece073580c02c':
  cleaned code, added pinch gesture detector, better opengl context handling, fixed issues
2013-10-28 02:10:15 -07:00
Andrew Hsieh
3fd7d3d383 Merge "cleaned code, added pinch gesture detector, better opengl context handling, fixed issues" 2013-10-28 09:07:25 +00:00
Hak Matsuda
5d1c91fb75 cleaned code, added pinch gesture detector, better opengl context handling, fixed issues
Change-Id: I26a28374ae74391204586b4584d03cf0c58772c2
2013-10-28 11:41:58 +08:00
Elliott Hughes
9c52702306 am 122d194b: Merge "Fix incorrect extern declaration of poll(2)."
* commit '122d194b36e41ca6291efe6c27e02fc73d2a1683':
  Fix incorrect extern declaration of poll(2).
2013-10-25 10:22:10 -07:00
Elliott Hughes
122d194b36 Merge "Fix incorrect extern declaration of poll(2)." 2013-10-25 17:19:25 +00:00
Elliott Hughes
ebfbb367fb Fix incorrect extern declaration of poll(2).
Change-Id: I9ed5136a6b7d20fd0520e09d455a0447ea73e122
2013-10-25 09:07:42 -07:00
Narayan Kamath
80b5d8d23a am b4f054a8: Merge "Remove invalid UTF-8 chars from source."
* commit 'b4f054a894790f68f991c1034fb9c5cb75fe546e':
  Remove invalid UTF-8 chars from source.
2013-10-25 08:47:43 -07:00
Narayan Kamath
b4f054a894 Merge "Remove invalid UTF-8 chars from source." 2013-10-25 15:44:24 +00:00
Narayan Kamath
94ade845a7 Remove invalid UTF-8 chars from source.
Double checked that the time corrected verlet
equation is still readable. (If it isn't there's
always wikipedia).

Change-Id: I6573a4a096c2f2089968c19c79465b37540c2197
2013-10-24 19:15:06 +01:00
Ben Cheng
d4b49c6ccf am 8edf8ef6: Merge "Refresh sysroot headers for aarch64."
* commit '8edf8ef6aadc1a568be40d52c0da659c2b1f5aa8':
  Refresh sysroot headers for aarch64.
2013-10-17 15:54:32 -07:00
Ben Cheng
8edf8ef6aa Merge "Refresh sysroot headers for aarch64." 2013-10-17 22:52:21 +00:00
Ben Cheng
2e2d9927e5 Refresh sysroot headers for aarch64.
Change-Id: I2443ff351aec5d558cb7843885e5b3f8177527e8
2013-10-17 14:07:49 -07:00
Andrew Hsieh
23f0a72de7 am 956fc5ca: Merge "Add libm_hard.a for armeabi-v7a"
* commit '956fc5ca9ea08e532a81a1eb8ff4b1b530b2a25c':
  Add libm_hard.a for armeabi-v7a
2013-10-17 04:46:49 -07:00
Andrew Hsieh
956fc5ca9e Merge "Add libm_hard.a for armeabi-v7a" 2013-10-17 11:43:29 +00:00
Andrew Hsieh
059df41ed9 Add libm_hard.a for armeabi-v7a
A math library compiled with -mhard-float.  Build instructions:

1. cd to a recent Android source tree: bionic.git
   fbefb252b09634114977dbd1b48dd42bb2629b83 (internal) in this case
2. Temporarily remove "-mfloat-abi=softfp" from build/core/combo/arch/arm/armv7*
   and build/core/combo/TARGET_linux-arm.mk
3. Temporarily add "-mhard-float -mfloat-abi=hard" to LOCAL_CFLAGS
   for libm.a in bionic/libm/Android.mk
4. make -B -j32 out/target/product/generic/obj/STATIC_LIBRARIES/libm_intermediates/libm.a
5. Rename it

Change-Id: I107eea48af75e97b448862cfc7aae2e8f8911a63
2013-10-17 19:41:06 +08:00
Andrew Hsieh
3bc014a6ab am 69845974: Merge "Add __NDK_FPABI__ to function taking/returning float/double"
* commit '69845974fd0374acdadb5019e2f10242d1690d46':
  Add __NDK_FPABI__ to function taking/returning float/double
2013-10-17 04:20:58 -07:00
Andrew Hsieh
69845974fd Merge "Add __NDK_FPABI__ to function taking/returning float/double" 2013-10-17 11:16:53 +00:00
Andrew Hsieh
5881b5cbe7 Add __NDK_FPABI__ to function taking/returning float/double
Allow user code to be compiled with "-mhard-float" for armeabi-v7a
(which implies -mfloat-abi=hard), and either link with
1. Android native APIs which use softfp, or
2. A customized libm_hard.a which is compiled with -mhard-float. Need
   -D_NDK_MATH_NO_SOFTFP=1

See tests/device/hard-float/jni/Android.mk for details and restriction
on Clang

Change-Id: I773a842c73368e08b9a6cda0441e95a96fa303b2
2013-10-17 19:15:22 +08:00
Andrew Hsieh
91939c301c am a36935be: Merge "Add missing math functions"
* commit 'a36935be2189bb9cdb8bf6aa4b16db66fd1521b4':
  Add missing math functions
2013-10-17 03:56:40 -07:00
Andrew Hsieh
a36935be21 Merge "Add missing math functions" 2013-10-17 10:54:18 +00:00