Answer the question
In order to leave comments, you need to log in
What is the way to call functions from top java abstraction to linux kernel in android?
At the top level, Android has a class for interacting with input devices android.view.InputDevice .
It is necessary to trace the entire path of the function call from it to the Linux kernel level device of the form /dev/input/device.
As far as I understand, the InputDevice class calls InputManager , which calls the InputManagerService service through the header file , which again calls InputDevice . And it says:
// Called by native code.
private InputDevice(int id, int generation, int controllerNumber, String name, int vendorId,
int productId, String descriptor, boolean isExternal, int sources, int keyboardType,
KeyCharacterMap keyCharacterMap, boolean hasVibrator, boolean hasButtonUnderPad) {
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question