From 5c8a026133d5bbcb6f416952937a7a810bccc8b1 Mon Sep 17 00:00:00 2001 From: Robert Carr Date: Wed, 3 Oct 2018 16:30:44 -0700 Subject: Replace InputWindowInfo#inputChannel with an IBinder token. The IBinder token is now being used as the UUID for InputWindows. We can pass it around without the channel to avoid unnecessary FD parcelling, duping, and other juggling. Test: Existing tests pass. Bug: 80101428 Bug: 113136004 Bug: 111440400 Change-Id: I8eba3fa05f249b7dfcb5c3d9817241cbfe9ab76c --- include/input/InputWindow.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'include/input') diff --git a/include/input/InputWindow.h b/include/input/InputWindow.h index 9e3d334f7f..6164aa6f09 100644 --- a/include/input/InputWindow.h +++ b/include/input/InputWindow.h @@ -117,7 +117,7 @@ struct InputWindowInfo { INPUT_FEATURE_DISABLE_USER_ACTIVITY = 0x00000004, }; - sp inputChannel; + sp token; std::string name; int32_t layoutParamsFlags; int32_t layoutParamsType; @@ -174,14 +174,14 @@ public: return &mInfo; } - sp getInputChannel() const; + sp getToken() const; inline std::string getName() const { - return mInfo.inputChannel ? mInfo.name : ""; + return mInfo.token ? mInfo.name : ""; } inline nsecs_t getDispatchingTimeout(nsecs_t defaultValue) const { - return mInfo.inputChannel? mInfo.dispatchingTimeout : defaultValue; + return mInfo.token ? mInfo.dispatchingTimeout : defaultValue; } /** -- cgit v1.2.3-59-g8ed1b