/cts/tests/tests/text/src/android/text/cts/ |
D | LayoutGetRangeForRectTest.java | 66 private Layout mLayout; field in LayoutGetRangeForRectTest 95 mLayout = StaticLayout.Builder.obtain( in setup() 98 mLineCenters = new float[mLayout.getLineCount()]; in setup() 99 for (int i = 0; i < mLayout.getLineCount(); ++i) { in setup() 100 mLineCenters[i] = (mLayout.getLineTop(i) in setup() 101 + mLayout.getLineBottom(i, /* includeLineSpacing= */ false)) / 2f; in setup() 113 mLayout.getPrimaryHorizontal(37) + 2f, in character_anyOverlap() 114 mLayout.getLineTop(2), in character_anyOverlap() 115 mLayout.getPrimaryHorizontal(37) + 3f, in character_anyOverlap() 116 mLayout.getLineTop(2) + 1f); in character_anyOverlap() [all …]
|
D | StaticLayoutGetLineLeftRightTest.java | 65 final Layout mLayout; field in StaticLayoutGetLineLeftRightTest 114 mLayout = StaticLayout.Builder.obtain(mText, 0, mText.length(), mPaint, mWidth) in StaticLayoutGetLineLeftRightTest() 145 final int lineCount = mLayout.getLineCount(); in testGetLineLeft() 147 final int start = mLayout.getLineStart(line); in testGetLineLeft() 148 final int end = mLayout.getLineEnd(line); in testGetLineLeft() 163 assertEquals(expectedLeft, mLayout.getLineLeft(line), 0.0f); in testGetLineLeft() 169 final int lineCount = mLayout.getLineCount(); in testGetLineRight() 171 final int start = mLayout.getLineStart(line); in testGetLineRight() 172 final int end = mLayout.getLineEnd(line); in testGetLineRight() 188 assertEquals(expectedRight, mLayout.getLineRight(line), 0.0f); in testGetLineRight()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | FocusFinderTest.java | 51 private ViewGroup mLayout; field in FocusFinderTest 72 mLayout = activity.layout; in setup() 115 mLayout.setFocusableInTouchMode(true); in testFindNextFocus() 116 verifyNextFocus(mLayout, View.FOCUS_FORWARD, mTopLeft); in testFindNextFocus() 121 View actualNextFocus = mFocusFinder.findNextFocus(mLayout, currentFocus, direction); in verifyNextFocus() 165 View actualNextFocus = mFocusFinder.findNextFocusFromRect(mLayout, rect, direction); in verifytNextFocusFromRect() 187 View view = mFocusFinder.findNearestTouchable(mLayout, x, y, View.FOCUS_DOWN, deltas); in testFindNearestTouchable() 196 view = mFocusFinder.findNearestTouchable(mLayout, x, y, View.FOCUS_LEFT, deltas); in testFindNearestTouchable() 205 view = mFocusFinder.findNearestTouchable(mLayout, x, y, View.FOCUS_RIGHT, deltas); in testFindNearestTouchable() 214 view = mFocusFinder.findNearestTouchable(mLayout, x, y, View.FOCUS_UP, deltas); in testFindNearestTouchable() [all …]
|
/cts/tests/tests/dreams/CtsDreamOverlayTestApp/src/android/app/dream/cts/app/ |
D | DreamOverlayService.java | 39 private FrameLayout mLayout; field in DreamOverlayService 62 wm.removeView(mLayout); in onEndDream() 67 mLayout = new FrameLayout(this); in addWindowOverlay() 68 mLayout.setBackgroundColor(Color.YELLOW); in addWindowOverlay() 69 mLayout.setLayoutParams(new ViewGroup.LayoutParams( in addWindowOverlay() 72 mLayout.addOnAttachStateChangeListener( in addWindowOverlay() 93 wm.addView(mLayout, layoutParams); in addWindowOverlay()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | MagnifierTest.java | 85 private LinearLayout mLayout; field in MagnifierTest 110 mLayout = mActivity.findViewById(R.id.magnifier_activity_centered_view_layout); in setup() 112 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mLayout, null); in setup() 415 showMagnifier(mLayout.getWidth() / 2, mLayout.getHeight() / 2); in testMagnifierContent_refreshesAfterUpdate() 443 showMagnifier(mLayout.getWidth() / 2, mLayout.getHeight() / 2, in testWindowPosition_isClampedInsideMainApplicationWindow_topLeft() 448 final Insets systemInsets = mLayout.getRootWindowInsets().getSystemWindowInsets(); in testWindowPosition_isClampedInsideMainApplicationWindow_topLeft() 461 showMagnifier(mLayout.getWidth() / 2, mLayout.getHeight() / 2, in testWindowPosition_isClampedInsideMainApplicationWindow_bottomRight() 462 mLayout.getRootView().getWidth() + mMagnifier.getWidth(), in testWindowPosition_isClampedInsideMainApplicationWindow_bottomRight() 463 mLayout.getRootView().getHeight() + mMagnifier.getHeight()); in testWindowPosition_isClampedInsideMainApplicationWindow_bottomRight() 466 final Insets systemInsets = mLayout.getRootWindowInsets().getSystemWindowInsets(); in testWindowPosition_isClampedInsideMainApplicationWindow_bottomRight() [all …]
|
D | TextViewTest.java | 9838 private Layout mLayout; field in TextViewTest.TestLayoutRunnable 9845 return mLayout; in getLayout() 9849 mLayout = mTextView.getLayout(); in saveLayout()
|
/cts/tests/tests/graphics/jni/ |
D | VulkanTestHelpers.h | 142 VkPipelineLayout mLayout = VK_NULL_HANDLE; variable
|
D | VulkanTestHelpers.cpp | 860 nullptr, &mLayout)); in renderImageAndReadback() 990 .layout = mLayout, in renderImageAndReadback() 1094 vkCmdBindDescriptorSets(mCmdBuffer, VK_PIPELINE_BIND_POINT_GRAPHICS, mLayout, in renderImageAndReadback() 1187 if (mLayout != VK_NULL_HANDLE) { in cleanUpTemporaries() 1188 vkDestroyPipelineLayout(mInit->device(), mLayout, nullptr); in cleanUpTemporaries() 1189 mLayout = VK_NULL_HANDLE; in cleanUpTemporaries()
|
/cts/tests/inputmethod/mockime/src/com/android/cts/mockime/ |
D | MockIme.java | 930 private final LinearLayout mLayout; field in KeyboardLayoutView 950 mLayout = new LinearLayout(getContext()); in KeyboardLayoutView() 951 mLayout.setOrientation(LinearLayout.VERTICAL); in KeyboardLayoutView() 968 mLayout.addView(scrollView); in KeyboardLayoutView() 997 mLayout.addView(secondaryLayout); in KeyboardLayoutView() 1000 addView(mLayout, MATCH_PARENT, mainSpacerHeight); in KeyboardLayoutView() 1024 mLayout.getLayoutParams().height = height; in setHeight() 1025 mLayout.requestLayout(); in setHeight()
|