base: improve some class in jni

Change-Id: Ife8f79c640481ac5d488843ea38a15849fd21a34