Commit Graph

9377 Commits

Author SHA1 Message Date
Jean-Baptiste Queru
ec9a28d403 am 7db0c0f7: (-s ours) am 4e3792d5: am 79977b40: am 8d2f79ba: Merge "SDK: generate repo using latest schemas when available."
* commit '7db0c0f7afc06f4f89e38ba0640fa7e5e4c36758':
  SDK: generate repo using latest schemas when available.
2012-03-22 13:36:07 -07:00
Andrew Hsieh
259b451090 am 897351bd: am fd3b518f: am 9e3e95f6: am 76780669: Added rules to build 64-bit libraries for 64-bit emulator
* commit '897351bd609529fa84973c53350d0e0315825052':
  Added rules to build 64-bit libraries for 64-bit emulator
2012-03-22 13:33:54 -07:00
Jean-Baptiste Queru
7db0c0f7af am 4e3792d5: am 79977b40: am 8d2f79ba: Merge "SDK: generate repo using latest schemas when available."
* commit '4e3792d556d84fbb874d482b6f77853f767068d3':
  SDK: generate repo using latest schemas when available.
2012-03-22 13:31:58 -07:00
Andrew Hsieh
897351bd60 am fd3b518f: am 9e3e95f6: am 76780669: Added rules to build 64-bit libraries for 64-bit emulator
* commit 'fd3b518f7503030e8cd8f3908d72e1f9d8bf327f':
  Added rules to build 64-bit libraries for 64-bit emulator
2012-03-22 13:31:57 -07:00
Jean-Baptiste Queru
4e3792d556 am 79977b40: am 8d2f79ba: Merge "SDK: generate repo using latest schemas when available."
* commit '79977b408bd50af2884907bdeb62b4d67a9f9fff':
  SDK: generate repo using latest schemas when available.
2012-03-22 13:30:16 -07:00
Andrew Hsieh
fd3b518f75 am 9e3e95f6: am 76780669: Added rules to build 64-bit libraries for 64-bit emulator
* commit '9e3e95f65fa8415c38a10caa3f211b9b9f896df5':
  Added rules to build 64-bit libraries for 64-bit emulator
2012-03-22 13:30:15 -07:00
Jesse Hall
08d643e5eb EmuGL: Deliver every frame to a callback
To enable multi-touch on a tethered device, allow a callback to be
registered with the OpenGL renderer. On every frame, the framebuffer
is read into system memory and provided to the callback, so it can be
mirrored to the device.

This change is co-dependent on Idae3b026d52ed8dd666cbcdc3f3af80175c90ad3
in external/qemu.

Change-Id: I03c49bc55ed9e66ffb59462333181f77e7e46035
2012-03-22 13:29:00 -07:00
Jean-Baptiste Queru
79977b408b am 8d2f79ba: Merge "SDK: generate repo using latest schemas when available."
* commit '8d2f79ba939e0394cf18489503a6f2a3ebcce8f6':
  SDK: generate repo using latest schemas when available.
2012-03-22 13:27:44 -07:00
Andrew Hsieh
9e3e95f65f am 76780669: Added rules to build 64-bit libraries for 64-bit emulator
* commit '76780669f9867587693563358ccdc903e9cdcbba':
  Added rules to build 64-bit libraries for 64-bit emulator
2012-03-22 13:27:43 -07:00
Jean-Baptiste Queru
1fa4587555 am 7722b766: (-s ours) am 5ec7bda1: am 40b67a0e: Merge 8aafafe4
* commit '7722b76683a8d35672a5b41b036810178fb65ebf':
  Fixed crash and 64-bit porting issues
2012-03-22 13:12:13 -07:00
Jean-Baptiste Queru
7722b76683 am 5ec7bda1: am 40b67a0e: Merge 8aafafe4
* commit '5ec7bda1f5686f8ce0236569931d2b881252f4fe':
  Fixed crash and 64-bit porting issues
2012-03-22 13:03:31 -07:00
Jean-Baptiste Queru
5ec7bda1f5 am 40b67a0e: Merge 8aafafe4
* commit '40b67a0eb0ae7c612dd30611121cf3c655c49793':
  Fixed crash and 64-bit porting issues
2012-03-22 13:01:06 -07:00
Jean-Baptiste Queru
40b67a0eb0 Merge 8aafafe4
Change-Id: I41f097b5b96c4d000b1748b9e0411497d323556a
2012-03-22 12:57:54 -07:00
Jean-Baptiste Queru
8d2f79ba93 Merge "SDK: generate repo using latest schemas when available." 2012-03-22 12:54:17 -07:00
Andrew Hsieh
76780669f9 Added rules to build 64-bit libraries for 64-bit emulator
All ten libraries can now be built in 64-bit named "lib64*" (*)
in addition to the original 32-bit form named "lib*".

Also, dlopen "lib64*so" in 64-bit.

(*) eg. In Ubuntu, all can be built with the following command:
  make out/host/linux-x86/lib/lib64OpenglRender.so \
       out/host/linux-x86/lib/lib64EGL_translator.so \
       out/host/linux-x86/lib/lib64GLES_CM_translator.so \
       out/host/linux-x86/lib/lib64GLES_V2_translator.so

Rules to build static libraries lib64log.a, lib64cutils.a and lib64utils.a
they depend were added in other CLs.

Change-Id: I3afb64de6dda1d55dbd1b4443d2dbc78a683b19f
2012-03-22 12:36:45 -07:00
Andrew Hsieh
8aafafe4bd Fixed crash and 64-bit porting issues
1. "emugen" generates four *dec.cpp files containing code like this
   to decode offset to pointer in stream

   tmp = *(T *)(ptr + 8 + 4 + 4 + 4 + *(size_t *)(ptr +8 + 4 + 4));

   If *dec.cpp are compiled in 64-bit, size_t is 8-byte and dereferencing of
   it is likley to get wild offset for dereferencing of *(T *) to crash the
   code.  Solution is to define tsize_t for "target size_t" instead
   of using host size_t.

2. Cast pointer to "uintptr_t" instead of "unsigned int" for 2nd param of
   ShareGroup::getGlobalName(NamedObjectType, ObjectLocalName/*64bit*/).
3. Instance of EGLSurface, EGLContext and EGLImageKHR are used as 32-bit
   key for std::map< unsigned int, * > SurfacesHndlMap, ContextsHndlMap,
   and ImagesHndlMap, respectively.  Cast pointer to uintptr_t and assert
   upper 32-bit is zero before passing to map::find().
4. Instance of GLeglImageOES is used to eglAttachEGLImage() which expect
   "unsigned int".  Cast it to uintptr_t and assert upper 32-bit is zero.
5. The 5th param to GLEScontext::setPointer is GLvoid* but contains 32-bit
   offset to vbo if bufferName exists.  Cast it to uintptr_t and assert
   upper 32-bit is zero.
6. Use %zu instead of %d to print size_t
7. Cast pointer to (uintptr_t) in many other places

Change-Id: Iba6e5bda08c43376db5b011e9d781481ee1f5a12
2012-03-22 11:10:31 -07:00
Andrew Hsieh
124ad70320 Merge "Refactor with ToTargetCompatibleHandle()" 2012-03-21 20:16:44 -07:00
Raphael Moll
8f7e1f7a95 SDK: generate repo using latest schemas when available.
This generates a repository in either v5 or v6 and adjusts
the name/vendor attributes accordingly.

This extracts the support extra in a separate 'repo-extras.xml'
which has an addon.xsd type instead of being a repository.xsd.

Requires sdk.git change Ib0363f06 to build properly.

Change-Id: I250fe7a3ec0dfa490778ae747a1a8f4e536bb395
2012-03-21 19:08:11 -07:00
Xavier Ducrohet
34460c1e62 am 5934ff4f: am 5756679f: am 37bae214: Add flag indicating gpu support in emulator system image.
* commit '5934ff4f3d58ebfaf602e6f56ac35b9717a53410':
2012-03-21 17:01:01 -07:00
Xavier Ducrohet
ee517e7b10 am 13dbd7d2: (-s ours) am 3280e948: am 37bae214: Add flag indicating gpu support in emulator system image.
* commit '13dbd7d2eb4d53d5594ec558d8011c2aa1e332d0':
  Add flag indicating gpu support in emulator system image.
2012-03-21 17:01:00 -07:00
Xavier Ducrohet
5065651941 Merge "Add flag indicating gpu support in emulator system image." 2012-03-21 17:00:44 -07:00
Xavier Ducrohet
8c12262936 Add flag indicating gpu support in emulator system image.
Change-Id: Ica0c02c4d65a3311254f3d46a71956044bf46b82
2012-03-21 17:00:21 -07:00
Xavier Ducrohet
5934ff4f3d am 5756679f: am 37bae214: Add flag indicating gpu support in emulator system image.
* commit '5756679f28466cddc95dc99b9e124792716f95f0':
2012-03-21 16:51:48 -07:00
Xavier Ducrohet
13dbd7d2eb am 3280e948: am 37bae214: Add flag indicating gpu support in emulator system image.
* commit '3280e9480fa6e8061e9d819ae64ec7ba948a94f5':
  Add flag indicating gpu support in emulator system image.
2012-03-21 16:51:13 -07:00
Xavier Ducrohet
5756679f28 am 37bae214: Add flag indicating gpu support in emulator system image.
* commit '37bae214eed57ab4b9908fb07a6be3c0f8bf141b':
  Add flag indicating gpu support in emulator system image.
2012-03-21 16:48:22 -07:00
Xavier Ducrohet
3280e9480f am 37bae214: Add flag indicating gpu support in emulator system image.
* commit '37bae214eed57ab4b9908fb07a6be3c0f8bf141b':
  Add flag indicating gpu support in emulator system image.
2012-03-21 16:48:17 -07:00
Xavier Ducrohet
37bae214ee Add flag indicating gpu support in emulator system image.
Change-Id: I21040f50f8e95b389c1e6db2de93654be6da6f7e
2012-03-21 16:44:12 -07:00
Mike Lockwood
9a0d40c2f0 Merge remote-tracking branch 'goog/ics-aah-exp' 2012-03-21 15:30:52 -07:00
Mike Lockwood
ffc002ef30 Merge commit 'fb11862390f6468a24a3a7aef57ffcfc0f5a3290'
Merge "Increase default runtest -j to 16." into ics-aah

Change-Id: I150ea819617fcfa0e60d14e758d002849718dda2
2012-03-21 15:30:25 -07:00
Mike Lockwood
825502444a Merge commit '12db436d227ad9b97cb3d13812e1175cf9be8ed6'
Increase default runtest -j to 16.

Change-Id: I17adc7c585559ffbd6612b6bf9276cb3c5131f83
2012-03-21 15:29:52 -07:00
Mike Lockwood
055c2bd689 Merge commit '7eef71a24c991ceb5f1522f067c2f559a356a5a4'
empty merge:
git merge -s ours 7eef71a24c

Change-Id: I4140c9bb107490edba6f0643d0d22a25d500a71c
2012-03-21 15:28:35 -07:00
Andrew Hsieh
206ea399b5 Refactor with ToTargetCompatibleHandle()
Refactor statements doing host-to-target handle conversion, eg.

   uintptr_t hndlptr = (uintptr_t)hostHandle;
   unsigned int hndl = (unsigned int)hndlptr;
   assert(sizeof(hndl) == sizeof(hndlptr) || hndl == hndlptr);

into a call to ToTargetCompatibleHandle()

Change-Id: I0bcfb37f1b50679d29e7f21fe230ad433fbbef7c
2012-03-22 01:27:44 +08:00
The Android Open Source Project
b24c0b214d am e8e95757: am 9bb6dd28: Reconcile with ics-mr1-release
* commit 'e8e957575c0d96e9fb0544f3851ca42e592a960d':
2012-03-21 09:05:54 -07:00
The Android Open Source Project
e8e957575c am 9bb6dd28: Reconcile with ics-mr1-release
* commit '9bb6dd28e0bda29c38313adc4f4627abf4407014':
2012-03-21 09:03:27 -07:00
The Android Open Source Project
9bb6dd28e0 Reconcile with ics-mr1-release
Change-Id: Icab4caf108e40f8c9ff384a58f6ae556529efa84
2012-03-21 09:00:37 -07:00
The Android Open Source Project
01c4b7e626 am 34f1e014: am cbd78651: Reconcile with ics-mr1-release
* commit '34f1e01412c2f35d32181f0b6ad64e35cf63ef0a':
2012-03-21 08:27:30 -07:00
The Android Open Source Project
34f1e01412 am cbd78651: Reconcile with ics-mr1-release
* commit 'cbd78651ba6c8a9c6c2cac5c7872b35bbd5b355a':
2012-03-21 08:25:05 -07:00
The Android Open Source Project
cbd78651ba Reconcile with ics-mr1-release
Change-Id: I01fb273b93fb7adff59608eb6b7d8395149e3cc0
2012-03-21 08:22:54 -07:00
Amith Yamasani
a277cee31d Package control per user
Change-Id: Ife6c3b223c382ca680b5fcf9b71213d0460c95b7
2012-03-20 11:48:16 -07:00
Vladimir Chtchetkine
8385e714a7 Merge "Change camera HAL to catch up with changes in emulator." 2012-03-20 11:42:08 -07:00
Andrew Hsieh
f9e6097f2f Fixed inconsistent minSdkVersion and target= in NDK samples
Also removed Dummy.java and auto-gen files
Inspired by http://code.google.com/p/android/issues/detail?id=20017

Change-Id: I5a59c86b8b85c15eccca3b3157459b70a4815684
2012-03-20 14:37:17 +08:00
Dianne Hackborn
967d1e6caf Update animation sample to use new activity options API.
Change-Id: Id73663f1e5f159c5b073cd9c074501958ca5a81f
2012-03-19 17:50:03 -07:00
Vladimir Chtchetkine
c9d6edeea5 Change camera HAL to catch up with changes in emulator.
Emulator now allows fake camera to emulate both, back and front cameras at the same time.
Camera HAL is changed in this CL in order to support this.

Change-Id: I4dcf2d569bb0c6a3800b4a8da5edd4777b5a078a
2012-03-19 13:34:28 -07:00
The Android Automerger
885cc0e7d4 merge in ics-mr1-release history after reset to ics-mr1 2012-03-16 19:31:09 -07:00
Xavier Ducrohet
a7398d4c43 am cd6962c8: (-s ours) am 9c583814: am a205c3ad: Merge "Add eclipse+readme files to prebuilt of v7-grid. do not merge." into ics-mr1
* commit 'cd6962c8b825db61c2cb1661f8aeed74221d2530':
2012-03-16 09:49:22 -07:00
Xavier Ducrohet
e87f12da3e am 48a4de8c: (-s ours) am 024201a3: am a205c3ad: Merge "Add eclipse+readme files to prebuilt of v7-grid. do not merge." into ics-mr1
* commit '48a4de8c849c66ae6f870ac426e4ee905029400b':
  Add eclipse+readme files to prebuilt of v7-grid. do not merge.
2012-03-16 09:47:18 -07:00
Xavier Ducrohet
cd6962c8b8 am 9c583814: am a205c3ad: Merge "Add eclipse+readme files to prebuilt of v7-grid. do not merge." into ics-mr1
* commit '9c583814c71551c0da6edd6446ff58aa6f8c6ff5':
2012-03-16 09:46:02 -07:00
Xavier Ducrohet
e0b4478948 am a774a84d: (-s ours) am a205c3ad: Merge "Add eclipse+readme files to prebuilt of v7-grid. do not merge." into ics-mr1
* commit 'a774a84d8ce389cc7db3736b55c7adbed43d014c':
  Add eclipse+readme files to prebuilt of v7-grid. do not merge.
2012-03-16 09:45:11 -07:00
Xavier Ducrohet
48a4de8c84 am 024201a3: am a205c3ad: Merge "Add eclipse+readme files to prebuilt of v7-grid. do not merge." into ics-mr1
* commit '024201a3b3d8a75da94e4483520859450a3d7353':
  Add eclipse+readme files to prebuilt of v7-grid. do not merge.
2012-03-16 09:44:42 -07:00
Xavier Ducrohet
a774a84d8c am a205c3ad: Merge "Add eclipse+readme files to prebuilt of v7-grid. do not merge." into ics-mr1
* commit 'a205c3ad2a8102d8ba681ad358cd3470bc237be6':
  Add eclipse+readme files to prebuilt of v7-grid. do not merge.
2012-03-16 09:42:48 -07:00