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

Commit da7c00cc authored by Prabir Pradhan's avatar Prabir Pradhan
Browse files

Create inputreader directory

In order to start the work to split InputReader.cpp into multiple files,
we first create a reader directory to hold the source files for
libinputreader.

The affected files are also reformatted with clang-format.

Bug: 140139676
Test: libinputflinger and libinputflinger_tests builds successfully for
  crosshatch

Change-Id: I62b6b873e2a03e61655eb6214183c984306dcfdb
parent 323d8908
Loading
Loading
Loading
Loading
+0 −32
Original line number Diff line number Diff line
@@ -75,38 +75,6 @@ cc_library_headers {
    export_header_lib_headers: ["libinputreporter_headers"],
}

cc_library_shared {
    name: "libinputreader",
    defaults: ["inputflinger_defaults"],

    srcs: [
        "EventHub.cpp",
        "InputReader.cpp",
        "InputReaderFactory.cpp",
        "TouchVideoDevice.cpp",
    ],

    shared_libs: [
        "libbase",
        "libinputflinger_base",
        "libcrypto",
        "libcutils",
        "libinput",
        "liblog",
        "libui",
        "libutils",
        "libhardware_legacy",
    ],

    header_libs: [
        "libinputflinger_headers",
    ],

    export_header_lib_headers: [
        "libinputflinger_headers",
    ],
}

cc_library_shared {
    name: "libinputflinger_base",
    defaults: ["inputflinger_defaults"],
+0 −2
Original line number Diff line number Diff line
@@ -21,9 +21,7 @@
 * Native input manager.
 */

#include "EventHub.h"
#include "InputClassifier.h"
#include "InputReader.h"
#include "InputReaderBase.h"

#include <InputDispatcherInterface.h>
+51 −0
Original line number Diff line number Diff line
// Copyright (C) 2019 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//      http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

cc_library_headers {
    name: "libinputreader_headers",
    export_include_dirs: ["include"],
}

cc_library_shared {
    name: "libinputreader",
    defaults: ["inputflinger_defaults"],

    srcs: [
        "EventHub.cpp",
        "InputReader.cpp",
        "InputReaderFactory.cpp",
        "TouchVideoDevice.cpp",
    ],

    shared_libs: [
        "libbase",
        "libinputflinger_base",
        "libcrypto",
        "libcutils",
        "libinput",
        "liblog",
        "libui",
        "libutils",
        "libhardware_legacy",
    ],

    header_libs: [
        "libinputflinger_headers",
        "libinputreader_headers",
    ],

    export_header_lib_headers: [
        "libinputflinger_headers",
    ],
}
+226 −230

File changed and moved.

Preview size limit exceeded, changes collapsed.

+1511 −1625

File changed and moved.

Preview size limit exceeded, changes collapsed.

Loading