Home
last modified time | relevance | path

Searched refs:mClassifier (Results 1 – 12 of 12) sorted by relevance

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/classifier/brightline/
DDistanceClassifierTest.java38 private FalsingClassifier mClassifier; field in DistanceClassifierTest
44 mClassifier = new DistanceClassifier(mDataProvider); in setup()
54 assertThat(mClassifier.isFalseTouch(), is(true)); in testPass_noPointer()
60 mClassifier.onTouchEvent(appendDownEvent(1, 1)); in testPass_fling()
61 assertThat(mClassifier.isFalseTouch(), is(true)); in testPass_fling()
63 mClassifier.onTouchEvent(appendMoveEvent(1, 2)); in testPass_fling()
64 assertThat(mClassifier.isFalseTouch(), is(true)); in testPass_fling()
66 mClassifier.onTouchEvent(appendUpEvent(1, 40)); in testPass_fling()
67 assertThat(mClassifier.isFalseTouch(), is(false)); in testPass_fling()
72 mClassifier.onTouchEvent(appendDownEvent(1, 1)); in testFail_flingShort()
[all …]
DZigZagClassifierTest.java39 private FalsingClassifier mClassifier; field in ZigZagClassifierTest
44 mClassifier = new ZigZagClassifier(getDataProvider()); in setup()
54 assertThat(mClassifier.isFalseTouch(), is(false)); in testPass_fewTouchesVertical()
56 assertThat(mClassifier.isFalseTouch(), is(false)); in testPass_fewTouchesVertical()
58 assertThat(mClassifier.isFalseTouch(), is(false)); in testPass_fewTouchesVertical()
66 assertThat(mClassifier.isFalseTouch(), is(false)); in testPass_vertical()
71 assertThat(mClassifier.isFalseTouch(), is(false)); in testPass_fewTouchesHorizontal()
73 assertThat(mClassifier.isFalseTouch(), is(false)); in testPass_fewTouchesHorizontal()
75 assertThat(mClassifier.isFalseTouch(), is(false)); in testPass_fewTouchesHorizontal()
83 assertThat(mClassifier.isFalseTouch(), is(false)); in testPass_horizontal()
[all …]
DDiagonalClassifierTest.java55 private FalsingClassifier mClassifier; field in DiagonalClassifierTest
61 mClassifier = new DiagonalClassifier(mDataProvider); in setup()
72 assertThat(mClassifier.isFalseTouch(), is(false)); in testPass_UnknownAngle()
78 assertThat(mClassifier.isFalseTouch(), is(false)); in testPass_VerticalSwipe()
81 assertThat(mClassifier.isFalseTouch(), is(false)); in testPass_VerticalSwipe()
87 assertThat(mClassifier.isFalseTouch(), is(false)); in testPass_MostlyVerticalSwipe()
90 assertThat(mClassifier.isFalseTouch(), is(false)); in testPass_MostlyVerticalSwipe()
93 assertThat(mClassifier.isFalseTouch(), is(false)); in testPass_MostlyVerticalSwipe()
96 assertThat(mClassifier.isFalseTouch(), is(false)); in testPass_MostlyVerticalSwipe()
103 assertThat(mClassifier.isFalseTouch(), is(false)); in testPass_BarelyVerticalSwipe()
[all …]
DTypeClassifierTest.java50 private FalsingClassifier mClassifier; field in TypeClassifierTest
56 mClassifier = new TypeClassifier(mDataProvider); in setup()
66 assertThat(mClassifier.isFalseTouch(), is(false)); in testPass_QuickSettings()
69 assertThat(mClassifier.isFalseTouch(), is(false)); in testPass_QuickSettings()
78 assertThat(mClassifier.isFalseTouch(), is(true)); in testFalse_QuickSettings()
82 assertThat(mClassifier.isFalseTouch(), is(true)); in testFalse_QuickSettings()
92 assertThat(mClassifier.isFalseTouch(), is(false)); in testPass_PulseExpand()
95 assertThat(mClassifier.isFalseTouch(), is(false)); in testPass_PulseExpand()
104 assertThat(mClassifier.isFalseTouch(), is(true)); in testFalse_PulseExpand()
108 assertThat(mClassifier.isFalseTouch(), is(true)); in testFalse_PulseExpand()
[all …]
DProximityClassifierTest.java55 private FalsingClassifier mClassifier; field in ProximityClassifierTest
63 mClassifier = new ProximityClassifier(mDistanceClassifier, mDataProvider); in setup()
75 assertThat(mClassifier.isFalseTouch(), is(false)); in testPass_uncovered()
81 mClassifier.onSensorEvent(createSensorEvent(true, 1)); in testPass_mostlyUncovered()
82 mClassifier.onSensorEvent(createSensorEvent(false, 2)); in testPass_mostlyUncovered()
84 assertThat(mClassifier.isFalseTouch(), is(false)); in testPass_mostlyUncovered()
91 mClassifier.onSensorEvent(createSensorEvent(true, 1)); in testPass_quickSettings()
92 mClassifier.onSensorEvent(createSensorEvent(false, 11)); in testPass_quickSettings()
94 assertThat(mClassifier.isFalseTouch(), is(false)); in testPass_quickSettings()
100 mClassifier.onSensorEvent(createSensorEvent(true, 1)); in testFail_covered()
[all …]
DPointerCountClassifierTest.java38 private FalsingClassifier mClassifier; field in PointerCountClassifierTest
43 mClassifier = new PointerCountClassifier(getDataProvider()); in setup()
53 assertThat(mClassifier.isFalseTouch(), is(false)); in testPass_noPointer()
58 mClassifier.onTouchEvent(appendDownEvent(1, 1)); in testPass_singlePointer()
59 assertThat(mClassifier.isFalseTouch(), is(false)); in testPass_singlePointer()
73 mClassifier.onTouchEvent(motionEvent); in testFail_multiPointer()
75 assertThat(mClassifier.isFalseTouch(), is(true)); in testFail_multiPointer()
/frameworks/native/services/inputflinger/tests/
DInputClassifier_test.cpp52 sp<InputClassifierInterface> mClassifier; member in android::InputClassifierTest
57 mClassifier = new InputClassifier(mTestListener); in SetUp()
61 mClassifier.clear(); in TearDown()
74 mClassifier->notifyConfigurationChanged(&args); in TEST_F()
86 mClassifier->notifyKey(&args); in TEST_F()
99 mClassifier->notifyMotion(&motionArgs); in TEST_F()
113 mClassifier->notifySwitch(&args); in TEST_F()
126 mClassifier->notifyDeviceReset(&args); in TEST_F()
/frameworks/base/core/tests/coretests/src/android/view/textclassifier/
DTextClassifierTest.java69 private TextClassifier mClassifier; field in TextClassifierTest
75 mClassifier = mTcm.getTextClassifier(TextClassifier.LOCAL); in setup()
94 TextSelection selection = mClassifier.suggestSelection(request); in testSuggestSelection()
115 TextSelection selection = mClassifier.suggestSelection(request); in testSuggestSelection_url()
133 TextSelection selection = mClassifier.suggestSelection(request); in testSmartSelection_withEmoji()
151 TextClassification classification = mClassifier.classifyText(request); in testClassifyText()
168 TextClassification classification = mClassifier.classifyText(request); in testClassifyText_url()
183 TextClassification classification = mClassifier.classifyText(request); in testClassifyText_address()
200 TextClassification classification = mClassifier.classifyText(request); in testClassifyText_url_inCaps()
218 TextClassification classification = mClassifier.classifyText(request); in testClassifyText_date()
[all …]
/frameworks/base/core/java/android/gesture/
DGestureStore.java85 private Learner mClassifier; field in GestureStore
90 mClassifier = new InstanceLearner(); in GestureStore()
139 return mClassifier.classify(mSequenceType, mOrientationStyle, instance.vector); in recognize()
158 mClassifier.addInstance( in addGesture()
183 mClassifier.removeInstance(gesture.getID()); in removeGesture()
195 mClassifier.removeInstances(entryName); in removeEntry()
307 final Learner classifier = mClassifier; in readFormatV1()
333 return mClassifier; in getLearner()
/frameworks/native/services/inputflinger/
DInputManager.cpp37 mClassifier = new InputClassifier(mDispatcher); in InputManager()
38 mReader = createInputReader(readerPolicy, mClassifier); in InputManager()
88 return mClassifier; in getClassifier()
DInputManager.h108 sp<InputClassifierInterface> mClassifier; variable
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt20214 Landroid/gesture/GestureStore;->mClassifier:Landroid/gesture/Learner;