Add return statements and exception handling

In the function handleEvent added additional return statements what
allows not to perform additional checks. Empty catch statements are
filled. Try/catch blocks are added where necessary.

Change-Id: I6dd13f14d97d7e75e65f56bad211889112b6cef8

Conflicts:
	cmds/monkey/src/com/android/commands/monkey/MonkeySourceScript.java
Fix error about multiple unsequenced modifications

The evaluation order of function args aren't gaurenteed in C++

jni/NDKSupport/vecmath.h:869:32: warning: multiple unsequenced modifications to 'i' [-Wunsequenced]
        LOGI("%f %f %f %f", f[i++], f[i++], f[i++], f[i++]);

Change-Id: Ibf69978dd3abf57a7042624aad3d416a0f6f5e01

Conflicts:
	ndk/platforms/android-18/samples/Teapot/jni/NDKSupport/vecmath.h
Fix sample bitmap-plasma to draw on whole screen

The previous dimension 200x200 is tiny these days

Change-Id: I7d7a7d93b3e60bd4dcd8a2b22b97fc7ed9ca4dfa