@@ -187,7 +187,7 @@ class NativeInputManager : public virtual RefBase,
187187
188188 /* --- InputDispatcherPolicyInterface implementation --- */
189189
190- virtual void notifySwitch (nsecs_t when, int32_t switchCode, int32_t switchValue ,
190+ virtual void notifySwitch (nsecs_t when, uint32_t switchValues, uint32_t switchMask ,
191191 uint32_t policyFlags);
192192 virtual void notifyConfigurationChanged (nsecs_t when);
193193 virtual nsecs_t notifyANR (const sp<InputApplicationHandle>& inputApplicationHandle,
@@ -527,17 +527,17 @@ String8 NativeInputManager::getDeviceAlias(const InputDeviceIdentifier& identifi
527527 return result;
528528}
529529
530- void NativeInputManager::notifySwitch (nsecs_t when, int32_t switchCode,
531- int32_t switchValue , uint32_t policyFlags) {
530+ void NativeInputManager::notifySwitch (nsecs_t when,
531+ uint32_t switchValues, uint32_t switchMask , uint32_t policyFlags) {
532532#if DEBUG_INPUT_DISPATCHER_POLICY
533- ALOGD (" notifySwitch - when=%lld, switchCode=%d, switchValue=%d , policyFlags=0x%x" ,
534- when, switchCode, switchValue , policyFlags);
533+ ALOGD (" notifySwitch - when=%lld, switchValues=0x%08x, switchMask=0x%08x , policyFlags=0x%x" ,
534+ when, switchValues, switchMask , policyFlags);
535535#endif
536536
537537 JNIEnv* env = jniEnv ();
538538
539539 env->CallVoidMethod (mServiceObj , gServiceClassInfo .notifySwitch ,
540- when, switchCode, switchValue );
540+ when, switchValues, switchMask );
541541 checkAndClearExceptionFromCallback (env, " notifySwitch" );
542542}
543543
0 commit comments