Commit Graph

424 Commits

Author SHA1 Message Date
Andrew Hsieh
7361c3c7bb Refresh endian.h
See http://code.google.com/p/android/issues/detail?id=39824
and b15c58bb0fe55f076751acd7a5d00ded0ec33963

Change-Id: I71858f6d15adb688e0b05685e55582f0f1ddae54
2012-12-05 12:42:18 +08:00
Andrew Hsieh
c45fca2926 Add missing SL_IID_ANDROIDBUFFERQUEUESOURCE in android-14 for ARM/X86
SL_IID_ANDROIDBUFFERQUEUESOURCE is new in android-14 and already
declared in platforms/android-14/include/SLES/OpenSLES_Android.h,
but it's missing from libOpenSLES.so

It turns out both *.functions.txt and *.variables.txt should exist
for gen-platforms.sh to generate new *.so.  Add *.functions.txt otherwise
development/ndk/platforms/android-14/arch-(arm|x86)/symbols/libOpenSLES.so.variables.txt
are ignored.  Note that MIPS is correct all along.

See http://code.google.com/p/android/issues/detail?id=40625

Change-Id: I826f13a93c9f3eaf648a59e7e844b53be5f7fba0
2012-12-04 20:23:41 +08:00
Andrew Hsieh
206315bc74 Merge "Bug: __WINT_TYPE__ and wint_t reference to different types" 2012-11-29 19:21:58 -08:00
Sergey Melnikov
02327e165a Bug: __WINT_TYPE__ and wint_t reference to different types
__WINT_TYPE__ type provided by gcc. It references to unsigned int
type for android and linux. Patch corrects wint_t typedef to
__WINT_TYPE__.

Signed-off-by: Sergey Melnikov <sergey.melnikov@intel.com>
Change-Id: Ib02a808283f91f17c1124fc9e304911659f4af74
2012-11-26 12:01:00 +04:00
Andrew Hsieh
1535354143 Merge "Correct typo" 2012-11-23 01:35:35 -08:00
Andrew Hsieh
6162d4e848 Correct typo
See http://code.google.com/p/android/issues/detail?id=15134

Change-Id: I3eeed151949086fa132dc258d43bee21eab4af9b
2012-11-23 17:01:06 +08:00
Andrew Hsieh
28464f3b51 Check the presence of __STDC_VERSION__ in <sys/cdefs.h>
See http://code.google.com/p/android/issues/detail?id=14627
and bea05255de

Change-Id: Ie990b7c1df91adab631634e6b68454e4c5bab19d
2012-11-23 12:53:04 +08:00
Andrew Hsieh
279fe064b1 Refresh header byteswap.h and dirent.h
Sync with bionic.  No new APIs.

Change-Id: Ie1f71d1c56ce2d0574d8b743f205115d2fbc68b4
2012-11-21 14:17:01 +08:00
Andrew Hsieh
2eb9332422 Fix limits.h to include page.h which provides PAGE_SIZE
See 6331db3fd251ddc350913cc1e8a7941740c25f63 and
http://code.google.com/p/android/issues/detail?id=39983

Change-Id: I85083d754fe9b722efcb8ea73f17d88d505c90d1
2012-11-20 16:14:06 +08:00
Andrew Hsieh
18fc7183ea Fix return type of glGetAttribLocation and glGetUniformLocation
from int to GLint.

See:
   https://android-review.googlesource.com/#/c/46120
   http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetAttribLocation.xml
   http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetUniformLocation.xml

Change-Id: I57fa430be2987b41e31fb6b3bcefa5dfb58e63b9
2012-11-06 13:52:56 -08:00
Lai Wei-Chih
2c9e934fc5 Let users could query cpu features on device.
Change-Id: I9f5d7c66fb4248f5f8cbbf4c350b82a5b8c3aee9
2012-10-23 10:05:22 +08:00
Andrew Hsieh
1d35fba9bd Merge "ndk: Remove LONG_LONG_MIN/MAX hack from pthread.h" 2012-10-16 10:12:26 -07:00
David 'Digit' Turner
db5a5ada90 ndk: Remove LONG_LONG_MIN/MAX hack from pthread.h
The LONG_LONG_MIN, LONG_LONG_MAX and ULONG_LONG_MAX are
GLibc-specific macros. Move their declarations from
<pthread.h> to <limits.h> where they belong.

Change-Id: I597465b99893706ade82069238f60df73d8e236e
2012-10-16 09:49:10 +02:00
Andrew Hsieh
ed7dac09d8 Remove obsolete LOCAL_NDK_VERSION
Other than it's obsolete, it's outdated to use r4 (rather than the
most recently one)

Change-Id: I0a0dca663056a071a714d49a5d5bb77bd379c18a
2012-10-15 13:06:26 +08:00
Andrew Hsieh
d16812351b [ndk] Fixed sample SanAngeles to properly pause/resume
Previously re-launch of background SanAngeles app shows black or
freeze frame

Two fixes:
1. Not to reinitialize timer each time when DemoRenderer is created
2. Stop advancing internal clock when onPause(), and start when
   onResume()

Change-Id: I6bef9d7c462cd4d504e76099a4d28c8618043f46
2012-10-12 19:28:56 +08:00
Andrew Hsieh
84cf343170 am ee9d2a3b: Merge "[MIPS] Add support for waitpid."
* commit 'ee9d2a3b0ad6258271062145087a0a9f929bb9cc':
  [MIPS] Add support for waitpid.
2012-10-05 02:23:38 -07:00
Andrew Hsieh
5dbbbd4f0e am 098df524: Merge "[MIPS] Add Support pthread library functions."
* commit '098df524a6d6a83470d086b19cb0cab52dbc9cd0':
  [MIPS] Add Support pthread library functions.
2012-10-05 02:23:36 -07:00
Andrew Hsieh
b0bfe87cde am 5d629997: Merge "[MIPS] Add Support clone."
* commit '5d629997201781d741aa8feda0660ec896a0185b':
  [MIPS] Add Support clone.
2012-10-05 02:23:35 -07:00
Andrew Hsieh
58786fff75 am 8b394bfd: Merge "[MIPS] Updated support for statfs and fstatfs."
* commit '8b394bfd715e8ccd18076fdfea7031333384cb6e':
  [MIPS] Updated support for statfs and fstatfs.
2012-10-05 02:23:34 -07:00
Andrew Hsieh
352ef1b5f1 am f9bacbc6: Merge "[MIPS] Updated support for stat."
* commit 'f9bacbc6475918b03d72a727bd3a29cc37469361':
  [MIPS] Updated support for stat.
2012-10-05 02:23:33 -07:00
Andrew Hsieh
09d940cae0 am 58be4b98: Merge "[MIPS] Updated support for socket and added support for socket_pair."
* commit '58be4b981e0a9c68c439f48fb965d41fbd5ee5ec':
  [MIPS] Updated support for socket and added support for socket_pair.
2012-10-05 02:23:31 -07:00
Andrew Hsieh
cd67609dc8 am 9c32f373: Merge "[MIPS] Update Support for fcntl."
* commit '9c32f3735e378d2d632930892fe206d7b7f19115':
  [MIPS] Update Support for fcntl.
2012-10-05 02:23:30 -07:00
Andrew Hsieh
460326fa60 am bc2958b9: Merge "[MIPS] Add Support for syscall."
* commit 'bc2958b94eb5bcc399be09dd59791da2f59b5467':
  [MIPS] Add Support for syscall.
2012-10-05 02:23:29 -07:00
Andrew Hsieh
1d4173dde1 am 39850f9e: Merge "[MIPS] Add Support timer_create."
* commit '39850f9e1353bf28c69e587b1e2e879c73d943c6':
  [MIPS] Add Support timer_create.
2012-10-05 02:23:27 -07:00
Andrew Hsieh
cef0b881b1 am 22ae5a37: Merge "[MIPS] Add Support signal."
* commit '22ae5a37da72a1af07cd9adb835dd8650d1a047a':
  [MIPS] Add Support signal.
2012-10-05 02:23:26 -07:00
Andrew Hsieh
76f93a10db am c1d3bef5: Merge "[MIPS] Add Support errno, Added Logging, sorted Android.mk files."
* commit 'c1d3bef5cc18258beb94f804f83c944ab578eced':
  [MIPS] Add Support errno, Added Logging, sorted Android.mk files.
2012-10-05 02:23:25 -07:00
Pete Delaney
bf03a1b304 [MIPS] Add support for waitpid.
Change-Id: I7b3b90f9a64d40c5aa72c74cac6881f1189c1462
Signed-off-by: Chris Dearman <chris@mips.com>
Signed-off-by: Pete Delaney  <piet@mips.com>
2012-10-05 02:18:27 -07:00
Pete Delaney
79d42207b8 [MIPS] Add Support pthread library functions.
Signals needed to be mapped.

Change-Id: I946308f17cf7bc945287f716d0da50f515ac8fc4
Signed-off-by: Pete Delaney  <piet@mips.com>\
Signed-off-by: Chris Dearman <chris@mips.com>
2012-10-05 02:18:04 -07:00
Pete Delaney
fbedea894c [MIPS] Add Support clone.
Change-Id: I3320c38e4228ba0aba37fe5af93e6f467c2e1b12
Signed-off-by: Chris Dearman <chris@mips.com>
Signed-off-by: Pete Delaney  <piet@mips.com>
2012-10-05 02:17:39 -07:00
Pete Delaney
9ea8cc7e99 [MIPS] Updated support for statfs and fstatfs.
Change-Id: I0d8385cdb6599c572b25abae28498166582b33ca
Signed-off-by: Chris Dearman <chris@mips.com>
Signed-off-by: Pete Delaney  <piet@mips.com>
2012-10-05 02:17:22 -07:00
Pete Delaney
2c4605a5a4 [MIPS] Updated support for stat.
Change-Id: Ica3b92edb6718c19308da7370ced145ccaeb8d6d
Signed-off-by: Chris Dearman <chris@mips.com>
Signed-off-by: Pete Delaney  <piet@mips.com>
2012-10-05 02:16:59 -07:00
Pete Delaney
e3e0db1051 [MIPS] Updated support for socket and added support for socket_pair.
Socket type can also contain SOCK_NONBLOCK and SOCK_CLOEXEC flags.
NDK headers do not export these values but they seem to be aliases
of O_NONBLOCK and O_CLOEXEC. NDK headers do not define O_CLOEXEC.

Change-Id: If97fcb9f1ff130ea11a0da6452454a256f769809
Signed-off-by: Chris Dearman <chris@mips.com>
Signed-off-by: Pete Delaney  <piet@mips.com>
2012-10-05 02:16:25 -07:00
Pete Delaney
b10b6f2baf [MIPS] Update Support for fcntl.
Change-Id: I743837793a84e6f4dbbc192b29b19a6eae78a5da
Signed-off-by: Pete Delaney  <piet@mips.com>
Signed-off-by: Chris Dearman <chris@mips.com>
2012-10-05 00:23:49 -07:00
Pete Delaney
9b350a5d22 [MIPS] Add Support for syscall.
Change-Id: Ib9c13ea152fdfe58b36362442eeef88e4a463c31
Signed-off-by: Chris Dearman <chris@mips.com>
Signed-off-by: Pete Delaney  <piet@mips.com>
2012-10-05 00:23:49 -07:00
Pete Delaney
0d05107265 [MIPS] Add Support timer_create.
Signals needed to be mapped.

Change-Id: Id0748924f16ac6787b87062d774e837a14d1233c
Signed-off-by: Chris Dearman <chris@mips.com>
Signed-off-by: Pete Delaney  <piet@mips.com>
2012-10-05 00:23:49 -07:00
Pete Delaney
79b607b432 [MIPS] Add Support signal.
Change-Id: Ie2aa6cd24a119f96cd01c6b3d6352f011a0825b5
Signed-off-by: Pete Delaney  <piet@mips.com>
Signed-off-by: Chris Dearman <chris@mips.com>
2012-10-05 00:23:49 -07:00
Pete Delaney
25cabbf92e [MIPS] Add Support errno, Added Logging, sorted Android.mk files.
Change-Id: Ibeeab51feb77be07ea8ccacf2f448bb5135d7373
Signed-off-by: Chris Dearman <chris@mips.com>
Signed-off-by: Pete Delaney   <piet@mips.com>
2012-10-05 00:23:49 -07:00
Andrew Hsieh
24e005a234 am c7daea04: Merge "Replace __unused in linux/sysctl.h with __linux_unused"
* commit 'c7daea046b9f05fb07936bafd2f7436478781a2d':
  Replace __unused in linux/sysctl.h with __linux_unused
2012-09-26 15:48:00 -07:00
Andrew Hsieh
36ffaf5406 Replace __unused in linux/sysctl.h with __linux_unused
To avoid conflict with "#define __unused" in sys/cdefs.h

See
  https://android-review.googlesource.com/#/c/43479
  https://android-review.googlesource.com/#/c/43565

Change-Id: I6b8155570f4398b3ee8845d75bd231bca7f1d86f
2012-09-26 15:11:39 -07:00
Andrew Hsieh
47b1e0b6f7 am b07d7f6c: Merge "Update NDK headers"
* commit 'b07d7f6c25fe3ea99186c2cdb034449e75419518':
  Update NDK headers
2012-09-24 14:03:09 -07:00
Andrew Hsieh
c6427a73a2 Update NDK headers
Sync NDK headers with bionic's.  Most are new symbols.
The only big differences are in arch-mips/include/asm:

1) arch-mips/include/asm/unistd.h, see
   https://android-review.googlesource.com/#/c/40875
2) arch-mips/include/asm/*, see
   https://android-review.googlesource.com/#/c/43335
   https://android-review.googlesource.com/#/c/43440
   https://android-review.googlesource.com/#/c/43401

Change-Id: I8204f9b5f2f2c14a31dc28efc8a9d8c66cf73fe2
2012-09-24 12:31:43 -07:00
Andrew Hsieh
b034233afa am 3c901267: Merge "Update README.CRT.TXT"
* commit '3c901267609c17645999aa7a8ca95413ad528038':
  Update README.CRT.TXT
2012-09-24 09:28:50 -07:00
Andrew Hsieh
a0de803db8 Update README.CRT.TXT
Change-Id: I7d0ec48c09c47081c01c9366faf993317990b237
2012-09-21 18:50:16 -07:00
Andrew Hsieh
4102c6f241 am b833605a: Merge "Rewrite ARM crtbegin* as C files"
* commit 'b833605a2bf5c27ff57cf5508fc58bca351c2470':
  Rewrite ARM crtbegin* as C files
2012-09-06 18:30:03 -07:00
Andrew Hsieh
d0b834c7ad Rewrite ARM crtbegin* as C files
This is port of related CLs:
  9d40326830c2bd407427889c554adeb915ee6b4a
  f3cfcd869ded41d25c1f4f4e48e7c374a64f9583

Summary: By placing  __PREINIT_ARRAY__, __INIT_ARRAY__, __FINI_ARRAY__
and __CTOR_LIST__ on stack, this change allows PIC w/o relying on text
relocations.

Change-Id: I02a1b496b16aba692f4f9fa998a71efd943689fd
2012-09-06 15:27:56 +08:00
Andrew Hsieh
3bc200de51 am 9864b880: Merge "Replace deprecated APIs in NDK samples"
* commit '9864b8803782378159761424dee2270a12833872':
  Replace deprecated APIs in NDK samples
2012-08-30 08:23:48 -07:00
Andrew Hsieh
eb703bf543 Replace deprecated APIs in NDK samples
1. hello-gl2 from android-5 to android-7
2. native-activity from android-9 to android-10
3. native-audio from android-9 to android-10
4. native-plasma from android-9 to android-10

Related CL
  https://android-review.googlesource.com/#/c/42218, which
    adjusts android-10 to use android-9 header/lib

Related issue:
  http://code.google.com/p/android/issues/detail?id=20017

Change-Id: I49c4c0dd2cedb34522a9d196211ee96fce21b6c4
2012-08-30 13:02:53 +08:00
Andrew Hsieh
87485cd822 am fcc2452b: Merge "Remove unused .ctors, .dtors, and .eh_frame in MIPS crt*_so.S."
* commit 'fcc2452b5102b412ba300243e0e9d26c827515cf':
  Remove unused .ctors, .dtors, and .eh_frame in MIPS crt*_so.S.
2012-08-28 23:17:32 -07:00
Chao-Ying Fu
75f8d8217e Remove unused .ctors, .dtors, and .eh_frame in MIPS crt*_so.S.
Change-Id: I9b2d28c7c189d0f3a2ded694fadd0380cfd8e6e5
2012-08-28 13:21:42 -07:00
Andrew Hsieh
9cf4d01b7c am 51f72cc1: Merge "Support asm/sockios.h for MIPS."
* commit '51f72cc1bdd6f2624d5d625716ca3767cd3c3a63':
  Support asm/sockios.h for MIPS.
2012-08-22 16:51:01 -07:00