Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error #38

Open
bunnyyTheFreak opened this issue Aug 1, 2018 · 2 comments
Open

Error #38

bunnyyTheFreak opened this issue Aug 1, 2018 · 2 comments

Comments

@bunnyyTheFreak
Copy link

frameworks/base/services/core/jni/com_android_server_input_InputManagerService.cpp:254:18: error: 'android::NativeInputManager::pokeUserActivity' hides overloaded virtual function [-Werror,-Woverloaded-virtual]
virtual void pokeUserActivity(nsecs_t eventTime, int32_t eventType);

frameworks/native/services/inputflinger/InputDispatcher.h:260:18: note: hidden overloaded virtual function 'android::InputDispatcherPolicyInterface::pokeUserActivity' declared here: different number of parameters (3 vs 2)
virtual void pokeUserActivity(nsecs_t eventTime, int32_t eventType, int32_t keyCode) = 0;
^
frameworks/base/services/core/jni/com_android_server_input_InputManagerService.cpp:1239:34: error: allocating an object of abstract class type 'android::NativeInputManager'
NativeInputManager* im = new NativeInputManager(contextObj, serviceObj,

frameworks/native/services/inputflinger/InputDispatcher.h:260:18: note: unimplemented pure virtual method 'pokeUserActivity' in 'NativeInputManager'
virtual void pokeUserActivity(nsecs_t eventTime, int32_t eventType, int32_t keyCode) = 0;

@bunnyyTheFreak
Copy link
Author

Fixed by passing int32_t keyCode to pokeUserActivity in Service file

@ghost
Copy link

ghost commented Apr 19, 2021

how?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant