19f01c5bfa5c1c63e350808c154adfc2953949b15Blazej Magnowski/* 29f01c5bfa5c1c63e350808c154adfc2953949b15Blazej Magnowski * Copyright (C) 2015 The Android Open Source Project 39f01c5bfa5c1c63e350808c154adfc2953949b15Blazej Magnowski * 49f01c5bfa5c1c63e350808c154adfc2953949b15Blazej Magnowski * Licensed under the Apache License, Version 2.0 (the "License"); 59f01c5bfa5c1c63e350808c154adfc2953949b15Blazej Magnowski * you may not use this file except in compliance with the License. 69f01c5bfa5c1c63e350808c154adfc2953949b15Blazej Magnowski * You may obtain a copy of the License at 79f01c5bfa5c1c63e350808c154adfc2953949b15Blazej Magnowski * 89f01c5bfa5c1c63e350808c154adfc2953949b15Blazej Magnowski * http://www.apache.org/licenses/LICENSE-2.0 99f01c5bfa5c1c63e350808c154adfc2953949b15Blazej Magnowski * 109f01c5bfa5c1c63e350808c154adfc2953949b15Blazej Magnowski * Unless required by applicable law or agreed to in writing, software 119f01c5bfa5c1c63e350808c154adfc2953949b15Blazej Magnowski * distributed under the License is distributed on an "AS IS" BASIS, 129f01c5bfa5c1c63e350808c154adfc2953949b15Blazej Magnowski * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 139f01c5bfa5c1c63e350808c154adfc2953949b15Blazej Magnowski * See the License for the specific language governing permissions and 149f01c5bfa5c1c63e350808c154adfc2953949b15Blazej Magnowski * limitations under the License 159f01c5bfa5c1c63e350808c154adfc2953949b15Blazej Magnowski */ 169f01c5bfa5c1c63e350808c154adfc2953949b15Blazej Magnowski 179f01c5bfa5c1c63e350808c154adfc2953949b15Blazej Magnowskipackage com.android.systemui.classifier; 189f01c5bfa5c1c63e350808c154adfc2953949b15Blazej Magnowski 199f01c5bfa5c1c63e350808c154adfc2953949b15Blazej Magnowski/** 209f01c5bfa5c1c63e350808c154adfc2953949b15Blazej Magnowski * An abstract class for classifiers which classify the whole gesture (all the strokes which 219f01c5bfa5c1c63e350808c154adfc2953949b15Blazej Magnowski * occurred from DOWN event to UP/CANCEL event) 229f01c5bfa5c1c63e350808c154adfc2953949b15Blazej Magnowski */ 239f01c5bfa5c1c63e350808c154adfc2953949b15Blazej Magnowskipublic abstract class GestureClassifier extends Classifier { 249f01c5bfa5c1c63e350808c154adfc2953949b15Blazej Magnowski 259f01c5bfa5c1c63e350808c154adfc2953949b15Blazej Magnowski /** 269f01c5bfa5c1c63e350808c154adfc2953949b15Blazej Magnowski * @param type the type of action for which this method is called 279f01c5bfa5c1c63e350808c154adfc2953949b15Blazej Magnowski * @return a non-negative value which is used to determine whether the most recent gesture is a 2868d0c9b1e9f1df04b3a0e1ebb1e7ed4c18994cf3Blazej Magnowski * false interaction; the bigger the value the greater the chance that this a false 299f01c5bfa5c1c63e350808c154adfc2953949b15Blazej Magnowski * interaction. 309f01c5bfa5c1c63e350808c154adfc2953949b15Blazej Magnowski */ 319f01c5bfa5c1c63e350808c154adfc2953949b15Blazej Magnowski public abstract float getFalseTouchEvaluation(int type); 329f01c5bfa5c1c63e350808c154adfc2953949b15Blazej Magnowski} 33