Fix a crash which occured with some graphic libraries.

Fix a small bug that caused the emulator to crash when used with some
graphic libraries.

Change-Id: Ifb7e0b11a8302d0538632dac467d187dfcdfda47
Merge "Fix a crash which occured with some graphic libraries."
Fix rs compilation through Ant.

Change-Id: Ib44d693848b47076ed072d72111edebbe513a222
Merge "Fix rs compilation through Ant."
Fix renderscript in Eclipse.

Change-Id: Ic6e543a07ec47fd2a288807089a0dc3884d06de8
Merge "Fix renderscript in Eclipse."
Merge https://android.googlesource.com/platform/sdk into jb-devel