consolidating to only use one surface per plugin. give plugin access to java context.

There is a companion commit in frameworks/base.
6 files changed