[RenderScript] Better handle DispatchTable init

  1. targetSdkVersion <= deviceAPI, run in native mode when possible
     (deviceAPI >= 19);
  2. deviceAPI < 19, always use compat mode;
  3. targetSdkVersion > deviceAPI, and if 19 < deviceAPI < 21, use compat
     mode (since getPointer is not supported before L);
  4. targetSdkVersion > deviceAPI >= 21, first try to initialize
     DispatchTable based on targetSdkVersion using native mode (libRS.so), if
     failed (say if targetSdkVersion = 23, native RS @21, dispatchTable will
     not be able to initialized due to the new APIs added), fall back to
     compat mode. If native mode successfully loaded, the Incremental
     Intrinsic Support can kick in if needed.

Change-Id: Icafe2a1a5512dd15f399341c239dec802442033c
2 files changed