Merge commit '864750c3ec8cc645e77e99a434dd43a5cd1dca26' into donut
* commit '864750c3ec8cc645e77e99a434dd43a5cd1dca26':
AI 147718: Created .jd doc file for the JetCreator manual. Cleaned up the content to only use HTML tags, no more ugly Word generated tags. Removed references to visio files, converted all assets to PNG and renamed them with human understandable names. Added reference to JetPlayer javadoc.
Merge commit '6edea74a4dc0f2e17d9fb59ef5e175d9cb1a8508' into donut
* commit '6edea74a4dc0f2e17d9fb59ef5e175d9cb1a8508':
AI 147711: Fix link text in highlights doc. Copy "New APIs" section to Version Notes doc.
Merge commit 'd97e8dc252b6f2f5919885ee337518e5fd5bd285' into donut
* commit 'd97e8dc252b6f2f5919885ee337518e5fd5bd285':
AI 147710: Add redirects for sdk/preview pages.
Merge commit '78b1511d96f0b2123bfadf51c5c1ccf33cdd2b3d' into donut
* commit '78b1511d96f0b2123bfadf51c5c1ccf33cdd2b3d':
AI 147541: Add cs as default language for cz.
Merge commit '620986a358c522178ddfc5c0088b2a5e1768e5ae' into donut
* commit '620986a358c522178ddfc5c0088b2a5e1768e5ae':
AI 147438: add app widget docs to dev guide
Merge commit '134e8e4fc391d4f48f89acbfda757cd61504cb46' into donut
* commit '134e8e4fc391d4f48f89acbfda757cd61504cb46':
AI 147433: Fix broken link to sdk/samples dir in the offline.html page.
- made the helper Node and Iterator classes protected inner classes of List so they don't pollute the android namespace.
- use "int foo()" instead of "int foo(void)" which is more C++ stylish
- made distance() a template function, this way we write it once and it will work with combinations of iterator and const_iterator
- added the inline keyword on some function to make it clear to the compiler and the programmer that we want/intend these to be small inline functions
- added templated comparison operators to Iterator so it can compare iterator and const_iterator
- use size_t instead of "unsigned int" at places
- distance() should return a ptrdiff_t (it's kind of mening less here because it won't really work if the distance is < 0)
- made sure we handle conversions from iterator to const_iterator, but but fail at compile time in the other direction
- added operator->() on iterator and const_iterator
- made a bunch of private constructors explicit to avoid unwanted conversions
* changes:
Bug fix(1807910): media recorder crash due to the use of locked camera object (last part) - remove an unused Camera constructor - add a check on the argument in Camera::create() method
* changes:
Add support for changing a threads scheduler group. Three groups are available (default, background non interactive, foreground boost). Setting a thread priority to PRIORITY_BACKGROUND will transparently change groups to background
First, the window manager tells us when a surface is no longer needed. At this point, several things happen:
- the surface is removed from the active/visible list
- it is added to a purgatory list, where it waits for all clients to release their reference
- it destroys all data/state that can be spared
Later, when all clients are done, the remains of the Surface are disposed off: it is removed from the purgatory and destroyed.
In particular its gralloc buffers are destroyed at that point (when we're sure nobody is using them anymore).
Surfaces are now destroyed once all references from the clients are gone, but they go through a partial destruction as soon as the window manager requests it.
This last part is still buggy. see comments in SurfaceFlinger::destroySurface()
This is just plumbing. The Java APIs existed already, but there were no C APIs to hook the Java APIs
up to. Now there are C APIs, so we can call them.
Of course, whether or not the C APIs actually work when you call them depend upon the
capabilities of the active OpenGL driver, which must be checked at run time.
Also, while we're here, make the glGetString method static. It was always supposed to be static,
but was accidentally implemented as non-static, because the code was copied from the non-static
OpenGL ES classes.