summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2013-07-12fix a dead-lock in sensorserviceandroid-4.3_r3.1android-4.3_r3android-4.3.1_r1jb-mr2.0.0-releasejb-mr2-devMathias Agopian
sensorservice would deadlock if for some reason a sensor failed to enable. simplifed the code a bit, and made it behave a little closer to mr1.1 -- I couldn't convince myself that some changes in how locks were used were correct. Bug: 9794362 Change-Id: I6110f5dbb67e543f1c71d127de2299232badb36a
2013-07-04Find non-extension GLES wrappers in eglGetProcAddressJesse Hall
This allows apps to find OpenGL ES 3.0 functions using eglGetProcAddress() instead of dlopen/dlsym. Bug: 9681677 Change-Id: I7ce6e1636bc47d6b0bf20a4e46bd67235714d129
2013-06-11Prevent IPCThreadState::joinThreadPool from spinning on unexpected errorJeff Tinker
Adds logging to help determine what is happening to the /dev/binder fd and dump the process state when it happens. bug: 8912673 Change-Id: I2aa0c66fc499e91e0bf9ee4ae20404bec35adc82
2013-05-17[DO NOT MERGE] fix a bug where surfaceflinger and system_server could deadlockMathias Agopian
because surfaceflinger handles screenshot in a different thread from the binder thread that requested it and because the IGraphicBufferProducer is a synchronous interface calling back into the system server; it is possible for the latter to run out of binder threads (b/c it holds a lock while calling into SF). The solution is to make sure all calls on IGraphicBufferProducer happen on the incoming binder thread. We achieve this by creating a IGBP wrapper which is given to the screenshot code. Bug: 8734824 Change-Id: Ife2441c7322e51ecfb20e0df03dacf6bce49578e
2013-05-16make the warning timout of Fence::waitForever() implicit and longerMathias Agopian
- timeout is now 3 seconds instead of 1 - simplifies the API a bit - allows us to change/tweak this timeout globaly Bug: 8988871 Change-Id: I8d3c6ec43a372f602fb3f29856710339f86c0ec9
2013-05-09Merge "Add support for HAL_PIXEL_FORMAT_YCbCr_420_888" into jb-mr2-devEino-Ville Talvala
2013-05-08Merge "Remove experimental HWC virtual display support" into jb-mr2-devJesse Hall
2013-05-08Merge "atrace: add the 'dalvik' trace category" into jb-mr2-devJamie Gennis
2013-05-07atrace: add the 'dalvik' trace categoryJamie Gennis
Bug: 8856374 Change-Id: Ie7759328333d21d8123ce9d4f1a177cae5ede51e
2013-05-07Correct native API documentation related to MediaDrm offline use caseJeff Tinker
These doc updates were made previously to the java API but some did not make it into the native API. Change-Id: I9b7bfcd77bc593685254baca1c148deb7e1f91c7 related-to-bug: 8621588
2013-05-07Remove experimental HWC virtual display supportJesse Hall
Bug: 8384764 Change-Id: I97b52ed83ad85466bd91cb9291308994048568a1
2013-05-06Add support for HAL_PIXEL_FORMAT_YCbCr_420_888Eino-Ville Talvala
- Add fields to CpuConsumer::LockedBuffer for new information - New lock methods for GraphicBuffer and GraphicBufferMapper for the format Bug: 8734880 Change-Id: If31f82c62d64b6942cf4cc6e5715585c03273f12
2013-05-06Add Dalvik heap definition for 7" xhdpi devices.Dianne Hackborn
Change-Id: I6a8e406ee98d3061d498bb2fbd1b97aa9e79b4b5
2013-05-05Merge "Report actual disk space used" into jb-mr2-devMarco Nelissen
2013-05-02Merge "Fix issue #8768456: Settings > App Info under reports..." into jb-mr2-devDianne Hackborn
2013-05-02Generate new EGLExt classJesse Hall
Initially populated with EGL_ANDROID_presentation_time (moved from the EGL14 class) and the ES-relevant parts of EGL_KHR_create_context. Bug: 8678160 Change-Id: Ifed2ee3da264ca701ae1f4b309a0758f7fcc3acc
2013-05-01Fix issue #8768456: Settings > App Info under reports...Dianne Hackborn
...app storage size for apps w/ .so files The lib directories are tagged with the apk install number, so must be explicitly passed down to installd. Change-Id: Iae8815afd6ba964f5b2ed86a0d04a91827391ed6
2013-05-01Report actual disk space usedMarco Nelissen
Report size based on blocks used, not the "nominal" size. b/8744465 Change-Id: Idbb72f47af6d475b51305a14be291bf01acb14bb
2013-05-01Merge "Fix glGetUniformIndices JNI prototype" into jb-mr2-devJesse Hall
2013-05-01Merge "Recommend different time source" into jb-mr2-devAndy McFadden
2013-04-29Fix glGetUniformIndices JNI prototypeJesse Hall
Bug: 8657863 Change-Id: I130d1b54d0cbd1f8613d3108482526d05d73d9e4
2013-04-29Recommend different time sourceAndy McFadden
We were recommending SystemClock#uptimeMillis() from Java code, but millisecond resolution is a little coarse. We don't have an appropriate call in SystemClock, so use System.nanoTime() instead. Bug 8733179 Change-Id: Ifb85a03eabf7ff168966adcb5ed5914bbf3884b2
2013-04-25EGL: expose the EGL_KHR_create_context extensionJamie Gennis
Bug: 8616866 Change-Id: Ic60f9f21397a1760c552b6f141d5177d1cbaf1f8
2013-04-25Merge "libgui_test: fix a couple minor test issues" into jb-mr2-devJamie Gennis
2013-04-24libgui_test: fix a couple minor test issuesJamie Gennis
This change fixes how the MultiTextureConsumerTest.EGLImageTargetWorks checks for pixels. It removes the call to eglSwapBuffers so that the test does not rely on EGL swap-preserve behavior, and it makes the test use checkPixel() rather than doing glReadPixels itself. Bug: 8349336 Change-Id: I0f446a0083eebd07af6fd208762878b4e367725a
2013-04-23Merge "Add hardware feature android.hardware.bluetooth.le xml file" into ↵Matthew Xie
jb-mr2-dev
2013-04-23Add hardware feature android.hardware.bluetooth.le xml fileMatthew Xie
The feature is used to differ platforms that support bluetooth low engery radio bug 8369273 Change-Id: I8714b6b03a4e5692d4573ea7c156b002b7ee42dd
2013-04-22fix uninitialized variables in GLConsumerMathias Agopian
mDefaultWidth, mDefaultHeight and mCurrentScallingMode are now initialized to the same default value that BufferQueue uses. Change-Id: I0d4da2022b06419d12745716d8ddbd48c8869953
2013-04-18allow dumpsys SurfaceFlinger in user builds from the shell userMathias Agopian
Bug: 8659013 Change-Id: I1de43bb5808cb8c1103cfc73dca59ff70fc13f91
2013-04-18Merge "Fix activation issue with auto disabled sensors." into jb-mr2-devJaikumar Ganesh
2013-04-17Fix activation issue with auto disabled sensors.Jaikumar Ganesh
Auto disabled sensors get auto disabled after trigger. An activation after this wasn't working because the state was not being reset. b/8609561 Change-Id: If72c9f27345e91671d7ad0a7a066f6dc3d255b78
2013-04-17Merge "BufferItemConsumer: add functions to set default buffer format/size" ↵Igor Murashkin
into jb-mr2-dev
2013-04-16Add a test that checks multi-texturing works with GL_TEXTURE_EXTERNAL_OESMathias Agopian
Bug: 8395618 Change-Id: I160d29699593b11058533ca753e275d5deeb3b54
2013-04-16fix "traceGpuCompletion" debug featureMathias Agopian
eglCreateSyncKHR requires a call to glFlush which we were not doing. fixed by moving the code above eglSwapBuffers(), which both fixes the problem and gives us a slightly better idea of when the GPU is done drawing. Change-Id: Ic826ef1fe25a6247742c3d49d0cb69f4031e3593
2013-04-16Merge changes ↵Jesse Hall
I66085c30,Ic9b3be9f,Icc6b23ab,I359a9511,I11a7394e,Ic8bcd03e,I40834d6f,I02a1548a,I638a36b0,I814befe2,Iaaef7d53,I349575e5,I0b5acc78,I6fad8803 into jb-mr2-dev * changes: Subclass GLES30 from GLES20, @Deprecate GL_STENCIL_INDEX Special-case glGetActiveUniformBlockName Special-case glGetStringi Special-case glMapBufferRange Special-case glGetBufferPointerv Special-case glGetUniformIndices Special-case glGetTransformFeedbackVarying Special-case glTransformFeedbackVaryings Add buffer object versions of several functions Add *int64 and GLsync types and related functions Add ES3 functions and constants, difficult ones commented out Support "const GLChar*" and "const GLenum*" types Minor changes to ES3 functions inherited from ES2 Generate GLES30 class, just a clone of GLES20 for now
2013-04-16BufferItemConsumer: add functions to set default buffer format/sizeIgor Murashkin
Bug: 8629088 Change-Id: I06f2e26a70d6dbcfcd70b08b4461e8e401f6e83f
2013-04-15Subclass GLES30 from GLES20, @Deprecate GL_STENCIL_INDEXJesse Hall
Bug: 8566953 Change-Id: I66085c300a8658a4018796645257edb73be94719
2013-04-13Merge "Make gen more readable, use UNIX-style line endings" into jb-mr2-devJesse Hall
2013-04-13Merge "make sure to update the "current state" when we "fake" the ↵Mathias Agopian
transaction" into jb-mr2-dev
2013-04-13Merge "Sensor changes." into jb-mr2-devJaikumar Ganesh
2013-04-12Add new resources trace.Dianne Hackborn
Change-Id: Iab8c1ef51f491e818fb4bab0ba7a042f0d9bec9a
2013-04-12make sure to update the "current state" when we "fake" the transactionMathias Agopian
this mimics the code we used for the size. basically we need to also update the "current state" because it gets copied to the "drawing state" when a transaction occurs, and it would "undo" our change. Bug: 8511430 Bug: 8581533 Change-Id: I08c02abbf21b7f168f7124cd14ee717d7d3d502c
2013-04-12Sensor changes.Jaikumar Ganesh
1. Some sensors can wake up the AP. Add wakelocks. 2. Handle backward compatibility for rotation vector heading accuracy. 3. Cleanup auto disabled sensors. 4. Fix race condition between enable and dispatch. Change-Id: I39dddf12e208d83cd288201986ee994312555820
2013-04-12Merge "DO NOT MERGE Make sure surfaces always have latest orientation info" ↵Chet Haase
into jb-mr2-dev
2013-04-12Merge "Improve screenshot performance on some devices (DO NOT MERGE)" into ↵Mathias Agopian
jb-mr2-dev
2013-04-11Improve screenshot performance on some devices (DO NOT MERGE)Mathias Agopian
this affects devices that need a glReadPixels(). We use a FBO instead of a GlConsumer as an intermediate render target, this saves 2 calls to eglMakeCurrent(). On Galaxy Nexus this allows us to go from ~135ms to ~35ms for recent's screenshots. Bug: 8582615 Change-Id: I6b25291ecc235f1927579bbb2db3c731e985c6e8
2013-04-11DO NOT MERGE Make sure surfaces always have latest orientation infoChet Haase
When the screen is turned off, the current stack is set to -1. This causes logic in iSurfaceFlinger's handleTransactionLocked() function to fail to match the current stack, and the latest orientation is not set into the layer. This causes BufferQueue, later, to potentially set an obsolete transformHint on a created surface (such as in the case with ImageWallpaper's Egl surface, in the bug below). The fix is to note this situation and use a default value for the DisplayDevice, which should have the current orientation information. Issue #8508397 ImageWallpaper sometimes rendered in wrong orientation causing a ~30-40% drop in graphics performance Change-Id: Ibae15d73b289a8343c67f4f6bb77fdf11dd95ee7
2013-04-11Merge "Updated comments" into jb-mr2-devAndy McFadden
2013-04-10Special-case glGetActiveUniformBlockNameJesse Hall
Bug: 8566953 Change-Id: Ic9b3be9fa0136495633ee3b1c38583cfa315942a
2013-04-10Special-case glGetStringiJesse Hall
Modeled on the existing glGetString special-case. Bug: 8566953 Change-Id: Icc6b23ab53b00510368900ad99c92028253dc797