Commit Graph

6962 Commits

Author SHA1 Message Date
Yochai Shefi Simchon
889d928f29 Fix a bug where eglMakeCurrent(NULL) did not work
This happened because the VALIDATE macros terminated the function prematurally.
Also clear the surface bindings from the previous context.

Change-Id: I33d587f5e877caa6ec651a04ff887e0c77a9d5f3
2011-05-31 15:01:59 +03:00
Yochai Shefi Simchon
88ec3acc83 Fix a mess in contexts/surfaces reference count
The main issue was that SmartPtr had an implicit cast to void*, returning its
internal pointer. This allowed writing unsafe code, since the internal pointer
could be handled without increasing its ref count.
So, removed this cast and fixed the various places which relied on it.
Also, fix two calls to "destroy" ahich should have been "markForDestruction".
The naming is not good, should probably change it in a later patch.

Change-Id: Idabc800e97649b2e2404fb7387d25deac70af62e
2011-05-31 15:01:59 +03:00
Yochai Shefi Simchon
eada5b81de ThreadInfo- use explicit rather than void pointers
Replace the void* pointers with explicit pointers for EglContext, EglDisplay
and GLEScontext. Use forward declarations. This is to improve finding errors
in compile time rather than on run time.

Change-Id: Iaec3c36c1e12f36b37d34f68e9d8aa58ff1b30c0
2011-05-31 14:59:20 +03:00
Yochai Shefi Simchon
094026698e Fix version returned by eglInitialize from 4.1 to 1.4.
Change-Id: I43f3512374f546a81b7cfbba8959ce9f0ed7fe53
2011-05-31 14:15:02 +03:00
Yochai Shefi Simchon
aac7fe282c EglChooseConfig should handle the case where "configs" is NULL.
Change-Id: I236afdfc73eb5dd5a3ab19e2b388772ea297bdb4
2011-05-31 14:13:26 +03:00
David Turner
bf483268fc Merge "Emulators's GLES 2.0 translator implementation This is the GLESv2 on top of openGL implementation on the host most of this change is moving code which is necessary by both GLES 1.0 and GLES 2.0 implementations from GLES_CM folder into GLcommon folder." 2011-05-30 08:18:32 -07:00
Amit Feller
624176d51a Emulators's GLES 2.0 translator implementation
This is the GLESv2 on top of openGL implementation on the host
most of this change is moving code which is necessary by both
GLES 1.0 and GLES 2.0 implementations from GLES_CM folder into
GLcommon folder.

GLESv2Imp - includes GLES 2.0 entry points implementation

Change-Id: I934fb963478a7f596d824612f847a5aa77d2ed9d
2011-05-30 11:06:24 +03:00
David 'Digit' Turner
91641c03b0 am c1b7604a: am 18fc9b3e: Merge "ndk: Update libc.a to Gingerbread version."
* commit 'c1b7604a096ca32513b04c322fce1a0c550de099':
  ndk: Update libc.a to Gingerbread version.
2011-05-29 08:59:31 -07:00
Dianne Hackborn
10c33528e0 Extract support lib samples out of ApiDemos and in to their own app.
Change-Id: I2ca344e5f1b44c4825de938c9a4f9375a523ede5
2011-05-27 18:40:15 -07:00
David 'Digit' Turner
e9c7386b05 am e011bed4: Merge "ndk: x86: Sanitize platform headers and libraries."
* commit 'e011bed42965ee0488e11b537a4705c262140c3f':
  ndk: x86: Sanitize platform headers and libraries.
2011-05-27 11:19:17 -07:00
David 'Digit' Turner
e011bed429 Merge "ndk: x86: Sanitize platform headers and libraries." 2011-05-27 10:26:04 -07:00
David 'Digit' Turner
3e1498c4c4 ndk: x86: Sanitize platform headers and libraries.
This change sanitizes the x86-specific platform headers and libraries.
It does two things:

- Remove the stuff under android-3/arch-x86

- Update the content of android-9/arch-x86 from a recent AOSP
  full_x86-eng build (see caveats below).

Some files appear to move because they didn't change (e.g. kernel headers).

This change was generated by following these steps:

1/ Build full_x86-eng from the AOSP tree

2/ From $ANDROID_ROOT/ndk, run:

   build/tools/dev-system-import.sh --direct --arch=x86 9

3/ Under $ANDROID_ROOT/development/ndk, do:

   git rm -r android-3/arch-x86
   git add android-9/arch-x86
   git checkout -- android-9/include
   git ls-files -o | xargs rm
   git commit

IMPORTANT:
   The AOSP tip-of-tree used to generate these files
   includes post-Gingerbread changes !!

   The final version of the android-9/arch-x86 files will have to
   be generated from the gingerbread branch after we back-port all
   x86-support changes to it.

   These binaries are thus not final, but can be used to generate
   working experimental NDK packages, including prebuilt GNU libstdc++
   and STLport binaries that implement -fstack-protector correctly.

Change-Id: I260896185a098b9b356bd26f492692e4a4f66f8f
2011-05-27 06:14:16 +02:00
Jason Sams
1d393e5389 Merge "Fix build error post Allocation hal split." 2011-05-26 17:11:10 -07:00
Andy Stadler
cdbc233157 Merge "Add keystore intermediates to eclipse classpath." 2011-05-26 09:18:53 -07:00
Debashish Chatterjee
45148680ba Merge "Voicemail provider sample source code." 2011-05-26 07:44:15 -07:00
Andy Stadler
69d5096f2b Update ApiDemos to show active password status
* Add Check Password button
* Use it to report overall password status - isActivePasswordSufficient()
  and various password settings.
* Fixed a minor bug that cause the password quality to be reset to
  "unspecified" every time you start the activity.
* Leave the two password buttons enabled all the time (set password
  can be used when not active, and check password just puts up a toast
  explaining why it can't be used when inactive.)

This code can be used to confirm bug b/4445007 and hopefully its fix, too.

Change-Id: I136706072257d2e49184a29b0aa5d7a524960c40
2011-05-24 22:55:22 -07:00
Jason Sams
ad17727da5 Fix build error post Allocation hal split.
Change-Id: I76f89c4b1cb685f1ae26f47ed84bfe066b96b1d4
2011-05-24 12:58:37 -07:00
David 'Digit' Turner
c1b7604a09 am 18fc9b3e: Merge "ndk: Update libc.a to Gingerbread version."
* commit '18fc9b3eca4ca8e7435b6e679a249449f6fa739b':
  ndk: Update libc.a to Gingerbread version.
2011-05-24 02:58:56 -07:00
David 'Digit' Turner
18fc9b3eca Merge "ndk: Update libc.a to Gingerbread version." 2011-05-24 02:21:36 -07:00
David 'Digit' Turner
509176259d ndk: Update libc.a to Gingerbread version.
This updates the static C library version provided with
the NDK to the version from the AOSP gingerbread-release
branch, more specifically using the platform/bionic.git SHA1 of:

    3f14ff34dfbd00fcffb18b10a1a3e17e2cc5ebdf

This file is only used to rebuild a gdbserver binary. This version
contains changes necessary to fix gdbserver crashing issues on
certain Honeycomb devices.

You will need to rebuild the NDK gdbserver binary after this patch
is submitted (see build/tools/build-gdbserver.sh --help).

Change-Id: Iab7ff707a9bdbdca0d0fd017178e25da9d48e43d
2011-05-24 03:56:38 +02:00
Andy Stadler
0990e78812 Add keystore intermediates to eclipse classpath.
Change-Id: I6d159c5f890ddf39ea0db7966966d3d8b2185553
2011-05-23 15:59:30 -07:00
Debashish Chatterjee
8d6d2581ff Voicemail provider sample source code.
The app demostrates the how to use voicemail provider APIs to insert new
voicemail records using a simple UI.

Change-Id: I22610e06a8b80518b9f0d811f72afe245a4148c6
2011-05-23 14:40:01 +01:00
Jeff Sharkey
d3ca80b699 Merge "Fix import ordering to match coding style." 2011-05-20 16:15:10 -07:00
Wei-Ta Chen
0555d4f5ab Merge "Create the directory structure for adding the stereo camera libraries to SDK as a componenet." 2011-05-20 13:42:47 -07:00
The Android Open Source Project
6bdf294655 Reconcile with gingerbread-release honeycomb-release
Change-Id: Ia7b0fccc35176ac1285bbbf6d5c592d1ba1be82f
2011-05-20 12:55:44 -07:00
Dianne Hackborn
e2febea571 am 339a6666: am c7ec100c: am 193d98ec: Add new API demo for -swNNNdp resource qualifier.
* commit '339a6666bffcfdb7648c83333ecb16002564b2f6':
  Add new API demo for -swNNNdp resource qualifier.
2011-05-19 19:37:22 -07:00
Dianne Hackborn
339a6666bf am c7ec100c: am 193d98ec: Add new API demo for -swNNNdp resource qualifier.
* commit 'c7ec100ccb5266a3c480eb2563a511b86d106d10':
  Add new API demo for -swNNNdp resource qualifier.
2011-05-19 19:34:15 -07:00
Dianne Hackborn
c7ec100ccb am 193d98ec: Add new API demo for -swNNNdp resource qualifier.
* commit '193d98ec183f4a3e137b8d0c5e20529819e1eef2':
  Add new API demo for -swNNNdp resource qualifier.
2011-05-19 19:30:28 -07:00
Dianne Hackborn
193d98ec18 Add new API demo for -swNNNdp resource qualifier.
Also clean up the demo for the w/h qualifiers to use numbers
that are the same as what we will be recommending.

Change-Id: I87ed35d8dfcb41985e19f450f7853f883effd207
2011-05-19 18:23:29 -07:00
Wei-Ta Chen
06e66a36fe Create the directory structure for adding the stereo camera
libraries to SDK as a componenet.

Change-Id: I12a5f4db65058e4e0aef9afe72535e180c406039
2011-05-19 15:10:19 -07:00
Flavio Lerda
b0d8971d4f Merge "Add tests for VoicemailProvider." 2011-05-19 11:34:19 -07:00
Xavier Ducrohet
d2ba508b68 am 5b67110a: am ed708223: am 7748c429: Updated revision for the compatibility library.
* commit '5b67110a7c6934331b3afa1e8e3621420f7aea69':
  Updated revision for the compatibility library.
2011-05-19 08:57:30 -07:00
Robert Greenwalt
41bc0b87be am 4a76d154: am 82cdc8cc: Merge "Fix Development app to use netd for routes" into honeycomb-LTE
* commit '4a76d154e4d6ca532321e6f6dc9cdad3263affa3':
  Fix Development app to use netd for routes
2011-05-19 07:21:40 -07:00
Flavio Lerda
a151dce789 Add tests for VoicemailProvider.
Change-Id: Ib6a1d449edafd381e8c057640a7cef5f2abdf587
2011-05-19 12:06:52 +01:00
David Turner
e11d8abc25 am d143387d: am 1c53e616: am fd6ed4dd: Merge "adding functionality to get the local name of an object from it\'s local name"
* commit 'd143387d72e502d5d00ce12163edc40fcfaf9d2d':
  adding functionality to get the local name of an object from it's local name
2011-05-19 03:42:23 -07:00
David Turner
45398e0b8f am a76ded71: am 7e026547: am 83b55247: Merge "this checkin supports windows OS in all Translator libs"
* commit 'a76ded711209190003542c1752c15d1fa445abbf':
  this checkin supports windows OS in all Translator libs
2011-05-19 02:54:09 -07:00
Xavier Ducrohet
5b67110a7c am ed708223: am 7748c429: Updated revision for the compatibility library.
* commit 'ed7082230109e2592e6a3f87d733505bdb95abb7':
  Updated revision for the compatibility library.
2011-05-18 17:04:21 -07:00
Xavier Ducrohet
ed70822301 am 7748c429: Updated revision for the compatibility library.
* commit '7748c429c95cb88ac943fb2843d7834974696454':
  Updated revision for the compatibility library.
2011-05-18 17:01:57 -07:00
Robert Greenwalt
4a76d154e4 am 82cdc8cc: Merge "Fix Development app to use netd for routes" into honeycomb-LTE
* commit '82cdc8cc426fa73b49412245b1c826d4acd29140':
  Fix Development app to use netd for routes
2011-05-18 16:31:01 -07:00
Robert Greenwalt
82cdc8cc42 Merge "Fix Development app to use netd for routes" into honeycomb-LTE 2011-05-18 15:29:42 -07:00
Xavier Ducrohet
7748c429c9 Updated revision for the compatibility library.
Change-Id: I217fd11dc2458490e6981e9f614ce5770ba329c1
2011-05-18 13:36:36 -07:00
Stephen Hines
06819a6a54 Simplify HelloCompute example. :)
Change-Id: I45ca48df6f56c7f01f32fe609e8975c34ea183be
2011-05-18 13:15:01 -07:00
David Turner
d143387d72 am 1c53e616: am fd6ed4dd: Merge "adding functionality to get the local name of an object from it\'s local name"
* commit '1c53e61689094f088a07b6fb3cb634eda1833f05':
  adding functionality to get the local name of an object from it's local name
2011-05-18 07:42:00 -07:00
David Turner
1c53e61689 am fd6ed4dd: Merge "adding functionality to get the local name of an object from it\'s local name"
* commit 'fd6ed4dd3167517c926b0af4fdc183d7f015b9fe':
  adding functionality to get the local name of an object from it's local name
2011-05-18 07:29:33 -07:00
David Turner
fd6ed4dd31 Merge "adding functionality to get the local name of an object from it's local name" 2011-05-18 06:52:22 -07:00
David Turner
a76ded7112 am 7e026547: am 83b55247: Merge "this checkin supports windows OS in all Translator libs"
* commit '7e0265477a936ff562dc8cab84a3b24bde267799':
  this checkin supports windows OS in all Translator libs
2011-05-18 03:22:51 -07:00
David Turner
7e0265477a am 83b55247: Merge "this checkin supports windows OS in all Translator libs"
* commit '83b552470ee9d1d5bd51cd531b00b35cbeb7b289':
  this checkin supports windows OS in all Translator libs
2011-05-18 03:15:52 -07:00
David Turner
83b552470e Merge "this checkin supports windows OS in all Translator libs" 2011-05-18 02:33:59 -07:00
Jeff Sharkey
c2c52bd488 Fix import ordering to match coding style.
Change-Id: I03a0fa7c90b914e730e5518f745ff23c9ac77499
2011-05-17 12:40:31 -07:00
Amit Feller
f0b7c2e4f9 this checkin supports windows OS in all Translator libs
Note: this is a re-submit of Ie5111d9c435b64d205b140a79863c0273742ee7f,
fixed to avoid breaking the Mac build.

Change-Id: Ib534063d3f403d33d162956bf510baf9689a246a
2011-05-17 21:28:17 +02:00