Home
last modified time | relevance | path

Searched refs:mTestView (Results 1 – 4 of 4) sorted by relevance

/cts/tests/tests/car_builtin/src/android/car/cts/builtin/view/
DTouchableInsetsProviderTest.java65 private TestView mTestView; field in TouchableInsetsProviderTest.TestActivity
71 mTestView = new TestView(this); in onCreate()
72 setContentView(mTestView); in onCreate()
137 assertThat(mActivity.mTestView.mCapturedEvent).isNotNull(); in testTouchableInsetsProvider_InputEventDeliveredOnObscuredRegion()
145 expectWithMessage("No touch on center").that(mActivity.mTestView.mCapturedEvent).isNull(); in testViewWithTouchableInsetsProvider_InputEventIsNotDelivered()
147 mActivity.mTestView.mCapturedEvent = null; in testViewWithTouchableInsetsProvider_InputEventIsNotDelivered()
151 .that(mActivity.mTestView.mCapturedEvent).isNull(); in testViewWithTouchableInsetsProvider_InputEventIsNotDelivered()
153 mActivity.mTestView.mCapturedEvent = null; in testViewWithTouchableInsetsProvider_InputEventIsNotDelivered()
157 .that(mActivity.mTestView.mCapturedEvent).isNull(); in testViewWithTouchableInsetsProvider_InputEventIsNotDelivered()
159 mActivity.mTestView.mCapturedEvent = null; in testViewWithTouchableInsetsProvider_InputEventIsNotDelivered()
[all …]
/cts/tests/framework/base/windowmanager/src/android/server/wm/display/
DDisplayHashManagerTest.java100 private View mTestView; field in DisplayHashManagerTest
200 mTestView.generateDisplayHash(mPhashAlgorithm, new Rect(), mExecutor, in testGenerateAndVerifyDisplayHash_EmptyBounds()
230 mTestView.generateDisplayHash(mPhashAlgorithm, new Rect(bounds), in testGenerateDisplayHash_BoundsOutOfView()
245 mTestView = new View(mActivity); in testGenerateDisplayHash_ViewOffscreen()
246 mTestView.setBackgroundColor(Color.BLUE); in testGenerateDisplayHash_ViewOffscreen()
247 mTestView.setX(-mTestViewSize.x); in testGenerateDisplayHash_ViewOffscreen()
249 mMainView.addView(mTestView, p); in testGenerateDisplayHash_ViewOffscreen()
258 mTestView.generateDisplayHash(mPhashAlgorithm, null, mExecutor, in testGenerateDisplayHash_ViewOffscreen()
288 mTestView = new View(mActivity); in testGenerateDisplayHash_WindowOffscreen()
289 mTestView.setBackgroundColor(Color.BLUE); in testGenerateDisplayHash_WindowOffscreen()
[all …]
/cts/tests/framework/base/windowmanager/src/android/server/wm/insets/
DWindowInsetsAnimationSynchronicityTests.java106 activity.mTestView.getLocationOnScreen(loc); in runTest()
107 final int center = activity.mTestView.getWidth() / 2 + loc[0]; in runTest()
152 private TestView mTestView; field in WindowInsetsAnimationSynchronicityTests.TestActivity
163 mTestView = new TestView(this); in onCreate()
166 mTestView.addView(mEditText); in onCreate()
167 mTestView.mEvaluator = () -> { in onCreate()
173 setContentView(mTestView); in onCreate()
197 requestControlThenTransitionToVisibility(mTestView.getWindowInsetsController(), in showIme()
200 mTestView.getWindowInsetsController().show(ime()); in showIme()
206 requestControlThenTransitionToVisibility(mTestView.getWindowInsetsController(), in hideIme()
[all …]
/cts/tests/tests/view/src/android/view/animation/cts/
DAnimatorInflaterTest.java72 private View mTestView; field in AnimatorInflaterTest
91 mTestView = mActivity.findViewById(R.id.anim_window); in setup()
248 mTestView.setStateListAnimator(sla); in loadStateListAnimatorWithChangingResetStateTest()
249 mTestView.jumpDrawablesToCurrentState(); in loadStateListAnimatorWithChangingResetStateTest()
253 assertEquals(resetValue, mTestView.getX(), 0.0f); in loadStateListAnimatorWithChangingResetStateTest()
254 assertEquals(resetValue, mTestView.getY(), 0.0f); in loadStateListAnimatorWithChangingResetStateTest()
255 assertEquals(resetValue, mTestView.getZ(), 0.0f); in loadStateListAnimatorWithChangingResetStateTest()
274 mTestView.setStateListAnimator(sla); in loadChangingStateListAnimatorTest()
275 mTestView.jumpDrawablesToCurrentState(); in loadChangingStateListAnimatorTest()
280 assertEquals(targetValue, mTestView.getX(), 0.0f); in loadChangingStateListAnimatorTest()
[all …]