This CL separates out the two roles of the FalsingManager. It introduces the FalsingCollector, used by SystemUI to report events that may be interesting to Falsing, such as touch events, sensor events, and general user actions. The FalsingManager, meanwhile, continues to support the methods This helps breakup the monolithic FalsingManger into more manageable pieces, reducing the API surface area of FalsingManager significantly. Bug: 172655679 Test: atest SystemUITests && manual Change-Id: I92f8e3747f5c4a04eaa64e1a8b626c2a07c480aa
42 lines
994 B
Plaintext
42 lines
994 B
Plaintext
// Copyright (C) 2016 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.
|
|
|
|
java_library {
|
|
|
|
name: "SystemUIPluginLib",
|
|
|
|
srcs: ["src/**/*.java"],
|
|
|
|
static_libs: [
|
|
"PluginCoreLib",
|
|
"SystemUI-sensors",
|
|
],
|
|
|
|
}
|
|
|
|
android_app {
|
|
|
|
// Dummy to generate .toc files.
|
|
name: "PluginDummyLib",
|
|
platform_apis: true,
|
|
srcs: ["src/**/*.java"],
|
|
|
|
libs: ["SystemUIPluginLib"],
|
|
|
|
optimize: {
|
|
enabled: false,
|
|
},
|
|
|
|
}
|