Added LocationHelper code.
When LocationManager._requestLocationUpdates() is called, add the LocationListener to a map
of "SubscriptionProperties" (includes providername, minTime, minDistance, isSingleShot)
When a KVP is added to the map, broadcasts a message to the LocationHelper service
When LocationManager.removeUpdates is called, remove the LocationListener from the map
and then broadcast a message to the LocationHelper service.
Ignores this process for the passive provider and handles that normally.
NEW FOR JELLYBEAN2:
Changed locationRequests that give criteria, gets best provider instead of using "fused" provider... for backwards compatibility.
Added code to secure Intent broadcast (prevent intent sniffing) and LocationHelper BroadcastReceiver (prevent intent spoofing)

Change-Id: I4d5468f7563434b0f8a27ea6f3d55236314f7cc1
LocationHelper bugfix

Fixed bug where LocationHelper didn't receive start/stop subscription broadcasts.
Intent class name needed to be fully qualified.

Change-Id: I3d3829c6427202342f8bf1cf3a71c22ad3dddae3
SVMP hook to capture notifications

Grabs the notification details and forwards them by Intent to the SVMP
netintents helper for forwarding to the remote client.

Conflicts:
	core/java/android/app/NotificationManager.java - Duplicated code for
           notifyAsUser function

Change-Id: I36a187688cdb60cecd82a28e26995eca8a97599f
Added Rotation handling

Added support for SVMP ROTATION_CHANGED broadcast messages
Also added protected SVMP broadcast messages for BOOT_COMPLETED and ROTATION_CHANGED

Change-Id: I165cc2f73008ff0cf02414ef2c6c971c84f0a138

Conflicts:
	core/java/android/view/WindowOrientationListener.java
	core/res/AndroidManifest.xml
Collapsed LocationHelper into EventServer

Removed LocationHelper app completely.
Now the EventServer is an Android service, it can communicate directly with
the LocationManager using Intent broadcasts.

Change-Id: Ief46343b5488f06ee32e2e7950abfb8977a9c066

Conflicts:
	core/res/AndroidManifest.xml
Collapsed NetIntentsHelper into EventServer

Removed NetIntentsHelper app completely.
Now the EventServer is an Android service, it can communicate directly with
the NotificationManager using Intent broadcasts, it can intercept activity
start intents, and it can start activities directly.

Change-Id: I23bded2c149b3ea2163435aace089956cb860bc8

Conflicts:
	core/java/android/app/NotificationManager.java - replicated code for notifyAsUser()
Fix missing log variable

Change-Id: I224de51e78d1c77d9668b0a09cd08d8cb9e11953
Framebuffer permissions, code review fixes

Added new signature-level permission "android.permission.GRAPHICS"
to allow svmpd to access the framebuffer device. The permission
is mapped to the "graphics" linux user, using it will allow that
Context to access any files that the "graphics" user has access to.
Co-commits:
android_device_mitre_svmp
android_external_svmp_eventserver
Change animation scale global settings

Altered the default values of ANIMATOR_DURATION_SCALE,
TRANSITION_ANIMATION_SCALE, and WINDOW_ANIMATION_SCALE to 0. This
disables extraneous animations that bog down the VM's video
rendering.
Have battery return status as fully charged

Change-Id: I9cb390153dc6d4e772f1630d8140c1be71f318c2
Signed-off-by: Ivan Lozano <ilozano@mitre.org>
Merge tag 'android-4.4.4_r1' into svmp-2.x

Android 4.4.4 Release 1

Conflicts:
	core/java/android/app/NotificationManager.java
	core/java/android/view/WindowOrientationListener.java
	core/res/AndroidManifest.xml
	services/jni/com_android_server_BatteryService.cpp

The WindowOrientationListener and BatteryService files were moved or
removed.

WinOrList moved and changed enough that the patch no longer applies.
The new location is:
  policy/src/com/android/internal/policy/impl/WindowOrientationListener.java

BatteryService does not appear to have a JNI component any more. There
is only:
  services/java/com/android/server/BatteryService.java

As a result the following SVMP patches will have to be reapplied
manually:

* d3cb2f2 Have battery return status as fully charged
* ef4607a Added Rotation handling