InputStream is = getAssets().open("test");
int size = is.available();
byte buffer = new byte[size];
This is java function. but, internal code is c/c++ code function.
so, How can i see native code function in android framework source code?
Best How To :
If your goal is only to inform yourself, go ahead, Android AOSP is available at this address https://android.googlesource.com If you decide to modify something to fit your needs, you will need to rebuild Android and flash your device.
For your case, the
read() method comes from java.io.InputStream (check your imports) If you do a search on google
InputStream source you should find the class, like this for example: http://grepcode.com/file/repository.grepcode.com/java/root/jdk/openjdk/6-b14/java/io/InputStream.java