Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/android/view/stylus/
DHandwritingAreaTrackerTest.java81 View view2 = createView(rect2); in updateHandwritingAreaForView_multipleViews() local
83 mHandwritingAreaTracker.updateHandwritingAreaForView(view2); in updateHandwritingAreaForView_multipleViews()
92 assertThat(viewInfos.get(1).getView()).isEqualTo(view2); in updateHandwritingAreaForView_multipleViews()
102 View view2 = createView(rect2); in updateHandwritingAreaForView_afterDisableAutoHandwriting() local
104 mHandwritingAreaTracker.updateHandwritingAreaForView(view2); in updateHandwritingAreaForView_afterDisableAutoHandwriting()
119 assertThat(viewInfos.get(0).getView()).isEqualTo(view2); in updateHandwritingAreaForView_afterDisableAutoHandwriting()
129 View view2 = createView(rect2); in updateHandwritingAreaForView_removesInactiveView() local
131 mHandwritingAreaTracker.updateHandwritingAreaForView(view2); in updateHandwritingAreaForView_removesInactiveView()
138 mHandwritingAreaTracker.updateHandwritingAreaForView(view2); in updateHandwritingAreaForView_removesInactiveView()
146 assertThat(viewInfos.get(0).getView()).isEqualTo(view2); in updateHandwritingAreaForView_removesInactiveView()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/globalactions/
DGlobalActionsLayoutTest.java176 View view2 = new View(mContext, null); in testOnUpdateList_oneSeparatedOneList() local
181 doReturn(view2).when(mAdapter).getView(eq(1), any(), any()); in testOnUpdateList_oneSeparatedOneList()
189 assertEquals(view2, mLayout.mListViews.get(0)); in testOnUpdateList_oneSeparatedOneList()
198 View view2 = new View(mContext, null); in testOnUpdateList_twoSeparatedItems() local
202 doReturn(view2).when(mAdapter).getView(eq(1), any(), any()); in testOnUpdateList_twoSeparatedItems()
211 assertEquals(view2, mLayout.mSeparatedViews.get(1)); in testOnUpdateList_twoSeparatedItems()
223 View view2 = new View(mContext, null); in testOnUpdateList_twoSeparatedItems_reverse() local
228 doReturn(view2).when(mAdapter).getView(eq(1), any(), any()); in testOnUpdateList_twoSeparatedItems_reverse()
238 assertEquals(view2, mLayout.mSeparatedViews.get(1)); in testOnUpdateList_twoSeparatedItems_reverse()
246 View view2 = new View(mContext, null); in testOnUpdateList_fourInList() local
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/pipeline/mobile/ui/
DMobileViewLoggerTest.kt68 val view2 = TextView(context) in collectionStarted_multipleViews_dumpHasInfo() constant
73 underTest.logCollectionStarted(view2, viewModel2) in collectionStarted_multipleViews_dumpHasInfo()
83 val view2 = TextView(context) in collectionStopped_dumpHasInfo() constant
88 underTest.logCollectionStarted(view2, viewModel2) in collectionStopped_dumpHasInfo()
/frameworks/base/core/tests/coretests/src/android/view/
DViewInputConnectionTest.java205 final TestButton view2 = new TestButton(mActivity); in testInputConnectionCallbacks_nonEditableInput() local
208 viewGroup.addView(view2); in testInputConnectionCallbacks_nonEditableInput()
216 assertThat(view2.isFocused()).isFalse(); in testInputConnectionCallbacks_nonEditableInput()
226 assertThat(view2.mCalledOnCreateInputConnection).isFalse(); in testInputConnectionCallbacks_nonEditableInput()
227 assertThat(view2.mCalledOnInputConnectionOpened).isFalse(); in testInputConnectionCallbacks_nonEditableInput()
228 assertThat(view2.mCalledOnInputConnectionClosed).isFalse(); in testInputConnectionCallbacks_nonEditableInput()
232 mActivityRule.runOnUiThread(view2::requestFocus); in testInputConnectionCallbacks_nonEditableInput()
235 assertThat(view2.isFocused()).isTrue(); in testInputConnectionCallbacks_nonEditableInput()
245 assertThat(view2.mCalledOnCreateInputConnection).isTrue(); in testInputConnectionCallbacks_nonEditableInput()
246 assertThat(view2.mCalledOnInputConnectionOpened).isFalse(); in testInputConnectionCallbacks_nonEditableInput()
[all …]
DScrollFeedbackProviderTest.java49 View view2 = new View(mContext); in testDefaultProvider_createsDistinctProvidesOnMultipleCalls() local
53 ScrollFeedbackProvider view2Provider = ScrollFeedbackProvider.createProvider(view2); in testDefaultProvider_createsDistinctProvidesOnMultipleCalls()
DViewGroupScrollCaptureTest.java280 final MockView view2 = new MockView(context, 0, 25, 150, 100); in testDispatchScrollCaptureSearch_toChildren() local
281 viewGroup.addView(view2); in testDispatchScrollCaptureSearch_toChildren()
320 view2.assertDispatchScrollCaptureSearchCount(1); in testDispatchScrollCaptureSearch_toChildren()
321 view2.assertDispatchScrollCaptureSearchLastArgs( in testDispatchScrollCaptureSearch_toChildren()
324 view2.assertCreateScrollCaptureCallbackInternalCount(1); in testDispatchScrollCaptureSearch_toChildren()
377 final MockView view2 = new MockView(context, 0, 0, 200, 200); in testOnScrollCaptureSearch_withPadding() local
378 parent.addView(view2); in testOnScrollCaptureSearch_withPadding()
397 view2.assertOnScrollCaptureSearchLastArgs( in testOnScrollCaptureSearch_withPadding()
/frameworks/base/core/java/com/android/internal/widget/
DBackgroundFallback.java177 private boolean viewsCoverEntireWidth(View view1, View view2, int width) { in viewsCoverEntireWidth() argument
179 && view1.getRight() >= view2.getLeft() in viewsCoverEntireWidth()
180 && view2.getRight() >= width; in viewsCoverEntireWidth()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/navigationbar/buttons/
DNearestTouchFrameTest.java212 View view2 = mockViewAt(11, 20, 10, 10); in testViewMiddleChildNotAttachedCrash() local
214 when(view2.isAttachedToWindow()).thenReturn(false); in testViewMiddleChildNotAttachedCrash()
216 mNearestTouchFrame.addView(view2); in testViewMiddleChildNotAttachedCrash()
222 verify(view2, never()).onTouchEvent(eq(ev)); in testViewMiddleChildNotAttachedCrash()
/frameworks/base/core/tests/overlaytests/device/src/com/android/overlaytest/
DOverlayBaseTest.java358 final TestTextView view2 = layout.findViewById(R.id.view_2); in testOverlayLayout() local
359 assertNotNull(view2); in testOverlayLayout()
362 assertEquals("none", view2.getCustomAttributeValue()); in testOverlayLayout()
365 assertEquals("single", view2.getCustomAttributeValue()); in testOverlayLayout()
368 assertEquals("multiple", view2.getCustomAttributeValue()); in testOverlayLayout()
/frameworks/base/packages/SystemUI/src/com/android/systemui/navigationbar/buttons/
DNearestTouchFrame.java58 (view1, view2) -> {
66 view2.getLocationInWindow(mTmpInt);
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DQSAnimator.java605 private int getRelativeTranslationY(View view1, View view2) { in getRelativeTranslationY() argument
610 getRelativePositionInt(qqsPosition, view2, commonView); in getRelativeTranslationY()
/frameworks/base/core/java/android/window/
DSurfaceSyncGroup.md67 syncGroup.addToSync(view2.getRootSurfaceControl());