fine tune for avoid enum pass to jni.
fine tune for bitmap cache.
Signed-off-by: qijiang.guo <qijiang.guo@gmail.com>