1 /*
2  * Copyright (C) 2020 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 package com.android.systemui.classifier;
18 
19 import android.view.KeyEvent;
20 import android.view.MotionEvent;
21 
22 import javax.inject.Inject;
23 
24 /** */
25 public class FalsingCollectorFake implements FalsingCollector {
26 
27     public KeyEvent lastKeyEvent = null;
28 
29     @Override
init()30     public void init() {
31     }
32 
33     @Inject
FalsingCollectorFake()34     public FalsingCollectorFake() {
35     }
36 
37     @Override
onSuccessfulUnlock()38     public void onSuccessfulUnlock() {
39     }
40 
41     @Override
setShowingAod(boolean showingAod)42     public void setShowingAod(boolean showingAod) {
43     }
44 
45     @Override
shouldEnforceBouncer()46     public boolean shouldEnforceBouncer() {
47         return false;
48     }
49 
50     @Override
onScreenOnFromTouch()51     public void onScreenOnFromTouch() {
52     }
53 
54     @Override
isReportingEnabled()55     public boolean isReportingEnabled() {
56         return false;
57     }
58 
59     @Override
onScreenTurningOn()60     public void onScreenTurningOn() {
61     }
62 
63     @Override
onScreenOff()64     public void onScreenOff() {
65     }
66 
67     @Override
onBouncerShown()68     public void onBouncerShown() {
69     }
70 
71     @Override
onBouncerHidden()72     public void onBouncerHidden() {
73     }
74 
75     @Override
onKeyEvent(KeyEvent ev)76     public void onKeyEvent(KeyEvent ev) {
77         lastKeyEvent = ev;
78     }
79 
80     @Override
onTouchEvent(MotionEvent ev)81     public void onTouchEvent(MotionEvent ev) {
82     }
83 
84     @Override
onMotionEventComplete()85     public void onMotionEventComplete() {
86     }
87 
88     @Override
avoidGesture()89     public void avoidGesture() {
90     }
91 
92     @Override
cleanup()93     public void cleanup() {
94     }
95 
96     @Override
updateFalseConfidence(FalsingClassifier.Result result)97     public void updateFalseConfidence(FalsingClassifier.Result result) {
98     }
99 
100     @Override
onA11yAction()101     public void onA11yAction() {
102     }
103 }
104