Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0bf43810 authored by Chris Ye's avatar Chris Ye
Browse files

AIDL-ize InputManager IIputFlinger interface.

Use AIDL interrace to define the IInputFlinger interface and replace
the manual interface.

Bug:155425003
Test: atest libgui_test, atest libinput_test.

Change-Id: Iaea3cac79da5b269ab2798adef593f9f78b85f07
parent c9e7b53f
Loading
Loading
Loading
Loading
+3 −2
Original line number Original line Diff line number Diff line
@@ -180,7 +180,8 @@ static jlong android_view_InputChannel_nativeReadFromParcel(JNIEnv* env, jobject
    if (parcel) {
    if (parcel) {
        bool isInitialized = parcel->readInt32();
        bool isInitialized = parcel->readInt32();
        if (isInitialized) {
        if (isInitialized) {
            sp<InputChannel> inputChannel = InputChannel::read(*parcel);
            sp<InputChannel> inputChannel = new InputChannel();
            inputChannel->readFromParcel(parcel);
            NativeInputChannel* nativeInputChannel = new NativeInputChannel(inputChannel);
            NativeInputChannel* nativeInputChannel = new NativeInputChannel(inputChannel);
            return reinterpret_cast<jlong>(nativeInputChannel);
            return reinterpret_cast<jlong>(nativeInputChannel);
        }
        }
@@ -203,7 +204,7 @@ static void android_view_InputChannel_nativeWriteToParcel(JNIEnv* env, jobject o
        return;
        return;
    }
    }
    parcel->writeInt32(1); // initialized
    parcel->writeInt32(1); // initialized
    nativeInputChannel->getInputChannel()->write(*parcel);
    nativeInputChannel->getInputChannel()->writeToParcel(parcel);
}
}


static jstring android_view_InputChannel_nativeGetName(JNIEnv* env, jobject obj, jlong channel) {
static jstring android_view_InputChannel_nativeGetName(JNIEnv* env, jobject obj, jlong channel) {