summaryrefslogtreecommitdiffstats
path: root/ndk/sources
Commit message (Collapse)AuthorAgeFilesLines
* Add missing <stdlib.h> include to the native app glue.Elliott Hughes2015-02-191-0/+1
| | | | | | | On LP64, this could have caused the top bits of the pointer returned by malloc to be lost because sizeof(int) != sizeof(void*). Change-Id: I866a5071c1d359478d020d7fa4d466b53d52edab
* Merge "Refine libportable signal.h on mips."Andrew Hsieh2015-01-202-0/+459
|\
| * Refine libportable signal.h on mips.Pen-Yung Yu2015-01-202-0/+459
| | | | | | | | Change-Id: I02edeb28d4606f7706cbd9f933523483ae51abbb
* | Fixup typo and disable debug messagePen-Yung Yu2015-01-201-1/+3
|/ | | | Change-Id: I646b9a52172c300072443eb8a605e1ebf6f840c6
* Bugfix for libportable to make compile happy.WenHan Gu2014-09-163-24/+24
| | | | | | | | Just a tricky issue. WRAP(stat) -> stat_portable, However we have a struct naming stat_portable. Let's just rename it. Change-Id: If0a33661d9d23750d4af45158d1336bb71a08cab
* libportable to adapt L header functions.WenHan Gu2014-09-0983-10467/+864
| | | Change-Id: Ie15c321ee3b1b21f264b12641bc064ee33dec418
* Fix the name of the native app glue lib in a header commentMartin Storsjo2014-07-271-1/+1
| | | | | | The incorrect name is misleading and confusing. Change-Id: I4040d7bc10370c440401dd9de7e1fc472830287a
* Fix gl3stub.hAndrew Hsieh2014-07-171-0/+3
| | | | | | | | | | | | | Only define the following before android-L (where new headers define them already) typedef khronos_int64_t GLint64; typedef khronos_uint64_t GLuint64; typedef struct __GLsync *GLsync; Also define L to 9999 for crtbrand.c which needs it to be an integer Change-Id: I9ed957d70b85cd1cdfeacf11f77203b39c93023d
* Fix build by removing libportable from the default build.Elliott Hughes2014-06-091-0/+4
| | | | | | Easier than working out how to fix the fenv stuf... Change-Id: Id457d4fcd790b1fc13047cba29c7d47118196a87
* Fix libportable build breakage.Elliott Hughes2014-06-072-3/+0
| | | | Change-Id: Ic85e36cf55b7486b50fc9f1513f10a8ade5e86e9
* Fix MIPS build.Elliott Hughes2014-05-235-70/+3
| | | | | | | We really ought to remove libportable. Bug: 14903517 Change-Id: Id96b24bfe329096adffd94d452f440295d8aa83a
* Merge changes Ie67acf11,Ia9c03558Andrew Hsieh2014-05-161-0/+8
|\ | | | | | | | | | | * changes: Remove non-existanec functions/variables from libc.so Restore stdint.h for android-3..19 to the original headers
| * Restore stdint.h for android-3..19 to the original headersAndrew Hsieh2014-05-121-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | $NDK/tests/standalone/run.sh fail to run with last update on stdint.h to android-20 level. Restore stdint.h for fear of the new one breaking the existing apps Also fix signal_portable.h to use SIGRTMIN/MAX in old headers (which got renamed to __SIGRTMIN in new header) Also change _JBLEN to 1024 which shall be large enough to store CPU states for forseable future. Change-Id: Ia9c03558a258c10434eb8e6985adc122532feaa3
* | Merge "Fixes samples Teapot/MoreTeapots armeabi-v7a-hard; native-audio debug ↵Andrew Hsieh2014-05-151-10/+0
|\ \ | | | | | | | | | build"
| * | Fixes samples Teapot/MoreTeapots armeabi-v7a-hard; native-audio debug buildAndrew Hsieh2014-05-121-10/+0
| |/ | | | | | | | | | | | | | | | | Fixes two issues: 1. Remove redundant check for hard-float in Teapot/MoreTeapots and ndk_helper they depend. The ndk-build system add those flags already for armeabi-v7a-hard 2. native-audio in debug build: assert on the non-existance var Change-Id: Id6b2d38a264c2f2d0e0c7fe625991fcee1762800
* / libportable: Add dependency on libdl.David 'Digit' Turner2014-05-121-2/+1
|/ | | | | | | | | | | | | | | | | The patch at [1] was reverted because ndk/sources/android/cpu-features is now part of the platform build (as a dependency of libportable), and now requires dlopen()/dlsym()/dlclose(). Because the platform build system doesn't support LOCAL_EXPORT_LDLIBS, add the dependency to libportable's own module definition instead. After this patch is submitted, it's possible to re-apply the original patch and get a working build. [1] https://android-review.googlesource.com/#/c/91380/ BUG=13679666 Change-Id: I54b4376a562242d21631eaf13090650decfe791d
* Update signal.h from bionic with transition from SIGRTMIN to __SIGRTMINPavel Chupin2014-05-081-0/+7
| | | | | | | Update signal.c for build with old platforms Change-Id: Ica87465a73004c0885d51e384acd4f42947cc19b Signed-off-by: Pavel Chupin <pavel.v.chupin@intel.com>
* Track transition from SIGRTMIN to __SIGRTMINBrian Carlstrom2014-04-302-46/+46
| | | | Change-Id: I69064edf1a7e95c91f90d9b05c1cf3f9c8c46747
* Update libportable to catch up bionic changes.WenHan Gu2014-04-233-138/+15
| | | | | | | Note __open should not be used anymore. Also, fix a x86 fenv bug. Change-Id: I8430ccfdb7d7685e1ee6e71333d65590c09e3d6c
* Remove $(info...) accidentally committed in Makefile.WenHan Gu2014-04-111-1/+0
| | | | Change-Id: Ifc043619bccf7e208b6a971987fcc78f0e763a93
* Implement libportable for unknown arch 64bit.WenHan Gu2014-04-0816-56/+1082
| | | | Change-Id: I1e1fd8714b907bfccd5fa8df12a94697886e59cb
* Insulate libportable from bionic changes.Elliott Hughes2014-02-202-0/+5
| | | | | | | Really libportable should take its own copy of BSD's <machine/asm.h>, rather than relying on bionic's hacked-about copies. Change-Id: I02248045a903dc4ca0d6ed1054ecb1cd54da335e
* - Using hard-fpHak Matsuda2013-11-212-3/+13
| | | | | | | - Immersive mode in android-19 - Fixed local reference release in JNI helper - Misc fixes Change-Id: I3ab19c2b66648bb7a011c462d9d98e75bc136ce6
* MIPS hasn't supported SA_RESTORER since 2.5 kernels.Elliott Hughes2013-11-201-2/+1
| | | | Change-Id: Ia3500168ab5ba5ba381d0195e9ecc26a618bf505
* Rename modules NativeActivityAndrew Hsieh2013-11-051-1/+1
| | | | | | To TeapotNativeActivity and MoreTeapotsNativeActivity, respectively Change-Id: Iddbb326ef246232e64a9c30138edb55efe86230d
* Addressed feedbacksHak Matsuda2013-11-0532-3652/+4392
| | | | | | | | | | | | | | | | | - 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
* Merge "Fix prototype of poll"Andrew Hsieh2013-11-041-1/+1
|\
| * Fix prototype of pollAndrew Hsieh2013-11-011-1/+1
| | | | | | | | | | | | | | | | | | | | from poll(struct pollfd *, nfds_t, long) to poll(struct pollfd *, nfds_t, int) See 11952073af22568bba0b661f7a9d4402c443a888 and ebfbb367fbba29e825e1cf2beb88800e05e9778f Change-Id: Idba600d4b172404f0a1d5d715febcba8a495a770
* | Merge "Fix build."Elliott Hughes2013-11-011-1/+1
|\ \ | |/ |/|
| * Fix build.Elliott Hughes2013-10-311-1/+1
| | | | | | | | Change-Id: If09775ab21fef5b1df0222f07443a55190ae7a1c
* | cleaned code, added pinch gesture detector, better opengl context handling, ↵Hak Matsuda2013-10-2820-0/+4456
|/ | | | | | fixed issues Change-Id: I26a28374ae74391204586b4584d03cf0c58772c2
* Fix incorrect extern declaration of poll(2).Elliott Hughes2013-10-251-1/+1
| | | | Change-Id: I9ed5136a6b7d20fd0520e09d455a0447ea73e122
* Refresh include/sys/vfs.hAndrew Hsieh2013-10-073-2/+23
| | | | | | | | 1. Sync bionic's, remove mips-specific one 2. Fix statfs.c to transfer the new f_flags too 3. Revise comment about --wrap=symbol Change-Id: If68818e3dcb2a4056cd0b2e100fcfb8b2156c33a
* Fix MIPS buildBrian Carlstrom2013-10-021-19/+1
| | | | | | (cherry picked from commit f9695cbd669fd024d805319a279c7c93db7263dc) Change-Id: Ife90c3c5094b5b429f81cf0168a2d0c550aae02f
* am 85f9f764: Merge "Workaround for libportable wait4 implementation."Andrew Hsieh2013-07-221-0/+5
|\ | | | | | | | | * commit '85f9f764507761e011fc14398e7ddf08b5d383c5': Workaround for libportable wait4 implementation.
| * Merge "Workaround for libportable wait4 implementation."Andrew Hsieh2013-07-221-0/+5
| |\
| | * Workaround for libportable wait4 implementation.WenHan Gu2013-06-201-0/+5
| | | | | | | | | | | | | | | | | | | | | Follow https://android-review.googlesource.com/#/c/55573 and this should be revert once being solved. Change-Id: Ib9dabc1effaf59d541bc80bfce3f250a3d5fc8b2
* | | am 66623113: Merge "[MIPS] Add missing REAL macros."Andrew Hsieh2013-07-152-4/+8
|\| | | | | | | | | | | | | | * commit '66623113fa2192374220e3df25fc040fa0ab6ade': [MIPS] Add missing REAL macros.
| * | [MIPS] Add missing REAL macros.Lai Wei-Chih2013-07-152-4/+8
| |/ | | | | | | Change-Id: If396e16a759d90f94213deb536f3d1c9dcb6c132
* | am 19202f5a: Merge "Implement optimized __swap16md and __swap32md."Andrew Hsieh2013-05-164-3/+115
|\| | | | | | | | | * commit '19202f5a753e1d2120dad5d177fc11d4e5e7bf7a': Implement optimized __swap16md and __swap32md.
| * Implement optimized __swap16md and __swap32md.Lai Wei-Chih2013-05-154-3/+115
| |
* | am a7d5ca6b: Stop errors being logged erroneously on event predispatchMichael Wright2013-04-231-5/+0
|\ \ | |/ |/| | | | | * commit 'a7d5ca6b2eaaa5a1c7766dea477c0d6c795b3721': Stop errors being logged erroneously on event predispatch
| * Stop errors being logged erroneously on event predispatchMichael Wright2013-04-221-5/+0
| | | | | | | | Change-Id: Ie4d15a7d01b9d63e7db16a2701024e6108eb0cc0
* | Merge "[MIPS] Cleaned up sig_0 error messages and added a few more checks."Andrew Hsieh2013-04-071-7/+55
|\ \
| * | [MIPS] Cleaned up sig_0 error messages and added a few more checks.Pete Delaney2013-04-051-7/+55
| |/ | | | | | | | | Change-Id: I316e60d891af99c18fc4b838b35a6d8977d0e7c8 Signed-off-by: Pete Delaney <piet.delaney@imgtec.com>
* / [MIPS] Add portable versions of wait(), wait3() and wait4()Chris Dearman2013-04-051-15/+91
|/ | | | | | Added logging and refactored the code Change-Id: Idcd2a9e8fbe933d410e9d67f0789fa074e89baef
* Merge "ndk: Fix potential event handling issue in android_native_app_glue"Andrew Hsieh2013-03-271-3/+6
|\
| * ndk: Fix potential event handling issue in android_native_app_glueDavid 'Digit' Turner2013-03-201-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Developers report that concurrent events generated from different sources/devices can lead to application freezes then ANRs. See https://code.google.com/p/android/issues/detail?id=41755 where it is suggested that handling all incoming events in the "process_input" callback solves the issue. Hence this patch implements the suggestion, however it's unclear whether this solves the symptom, or the root cause of the problem. Change-Id: Ic6b0ad05d192763a6d8842c8befcb87db9714a3c
* | [libportable] Add fenv support.Lai Wei-Chih2013-03-265-3/+521
| | | | | | | | | | | | Fix ndk/tests/device/fenv. Change-Id: I46e1b47c3bec5213e827fabe311ef9e29a28195b
* | Fix build >= JBAndrew Hsieh2013-03-201-1/+1
| | | | | | | | | | | | | | | | | | | | File arch-mips/sigsetjmp.S includes <asm-generic/portability.h> already defined in LOCAL_CFLAGS, and build system prior JB passes LOCAL_CFLAGS for building *.S as well, but no more >=JB. Use LOCAL_C_INCLUDES instead (pass for *.S too) Change-Id: I7e6d6e838d632f980aa6c9b6b2b2862bd7de11b1