/cts/tests/tests/text/src/android/text/cts/ |
D | StaticLayoutTest.java | 137 StaticLayout layout = builder.build(); in testBuilder() local 139 assertEquals(LAYOUT_TEXT, layout.getText()); in testBuilder() 140 assertEquals(mDefaultPaint, layout.getPaint()); in testBuilder() 141 assertEquals(DEFAULT_OUTER_WIDTH, layout.getWidth()); in testBuilder() 144 layout.getTextDirectionHeuristic()); in testBuilder() 145 assertEquals(Alignment.ALIGN_NORMAL, layout.getAlignment()); in testBuilder() 146 assertEquals(0.0f, layout.getSpacingAdd(), 0.0f); in testBuilder() 147 assertEquals(1.0f, layout.getSpacingMultiplier(), 0.0f); in testBuilder() 148 assertEquals(DEFAULT_OUTER_WIDTH, layout.getEllipsizedWidth()); in testBuilder() 154 StaticLayout layout = builder.build(); in testBuilder() local [all …]
|
D | StaticLayoutLineBreakingTest.java | 139 private static void layout(CharSequence source, int[] breaks) { in layout() method in StaticLayoutLineBreakingTest 140 layout(source, breaks, WIDTH); in layout() 143 private static void layout(CharSequence source, int[] breaks, int width) { in layout() method in StaticLayoutLineBreakingTest 245 layout("", NO_BREAK); in testNoLineBreak() 246 layout("I", NO_BREAK); in testNoLineBreak() 247 layout("V", NO_BREAK); in testNoLineBreak() 248 layout("X", NO_BREAK); in testNoLineBreak() 249 layout("L", NO_BREAK); in testNoLineBreak() 250 layout("I VILI", NO_BREAK); in testNoLineBreak() 251 layout("XXXX", NO_BREAK); in testNoLineBreak() [all …]
|
D | LayoutTest.java | 88 Layout layout = new MockLayout(text, mTextPaint, mWidth, in testGetText() local 90 assertEquals(text, layout.getText()); in testGetText() 92 layout = new MockLayout(null, mTextPaint, mWidth, mAlign, mSpacingMult, mSpacingAdd); in testGetText() 93 assertNull(layout.getText()); in testGetText() 98 Layout layout = new MockLayout(LAYOUT_TEXT, mTextPaint, mWidth, in testGetPaint() local 101 assertSame(mTextPaint, layout.getPaint()); in testGetPaint() 103 layout = new MockLayout(LAYOUT_TEXT, null, mWidth, mAlign, mSpacingMult, mSpacingAdd); in testGetPaint() 104 assertNull(layout.getPaint()); in testGetPaint() 109 Layout layout = new MockLayout(LAYOUT_TEXT, mTextPaint, 10, in testGetWidth() local 111 assertEquals(10, layout.getWidth()); in testGetWidth() [all …]
|
D | SelectionTest.java | 181 StaticLayout layout = new StaticLayout(text, new TextPaint(), 50, null, 0, 0, false); in testMoveLeft() local 186 assertTrue(Selection.moveLeft(builder, layout)); in testMoveLeft() 190 assertTrue(Selection.moveLeft(builder, layout)); in testMoveLeft() 195 assertFalse(Selection.moveLeft(builder, layout)); in testMoveLeft() 200 assertTrue(Selection.moveLeft(builder, layout)); in testMoveLeft() 209 StaticLayout layout = new StaticLayout(text, new TextPaint(), 200, null, 0, 0, false); in testMoveRight() local 214 assertTrue(Selection.moveRight(builder, layout)); in testMoveRight() 218 assertTrue(Selection.moveRight(builder, layout)); in testMoveRight() 222 assertTrue(Selection.moveRight(builder, layout)); in testMoveRight() 227 assertFalse(Selection.moveRight(builder, layout)); in testMoveRight() [all …]
|
/cts/hostsidetests/theme/app/src/android/theme/app/ |
D | ThemeDeviceActivity.java | 79 setContentView(R.layout.theme_test); in onCreate() 135 final Layout layout = LAYOUTS[mLayoutIndex++]; in setNextLayout() local 136 final String layoutName = String.format("%s_%s", mTheme.name, layout.name); in setNextLayout() 137 final View view = getLayoutInflater().inflate(layout.id, mViewGroup, false); in setNextLayout() 138 if (layout.modifier != null) { in setNextLayout() 139 layout.modifier.modifyView(view); in setNextLayout() 361 new Layout(R.layout.button, "button"), 362 new Layout(R.layout.button, "button_pressed", 364 new Layout(R.layout.checkbox, "checkbox"), 365 new Layout(R.layout.checkbox, "checkbox_checked", [all …]
|
/cts/tests/tests/transition/src/android/transition/cts/ |
D | TransitionTest.java | 69 startTransition(R.layout.scene1); in testAddListener() 78 Scene scene = Scene.getSceneForLayout(mSceneRoot, R.layout.scene2, mActivity); in testAddListener() 100 startTransition(R.layout.scene1); in testRemoveListener() 111 enterScene(R.layout.scene4); in testAddTargetId() 117 startTransition(R.layout.scene1); in testAddTargetId() 125 enterScene(R.layout.scene4); in testRemoveTargetId() 134 startTransition(R.layout.scene1); in testRemoveTargetId() 142 enterScene(R.layout.scene4); in testAddTargetClass() 147 startTransition(R.layout.scene1); in testAddTargetClass() 155 enterScene(R.layout.scene4); in testRemoveTargetClass() [all …]
|
D | FadeTest.java | 56 enterScene(R.layout.scene4); in testMode() 57 startTransition(R.layout.scene1); in testMode() 62 startTransition(R.layout.scene4); in testMode() 70 startTransition(R.layout.scene1); in testMode() 76 startTransition(R.layout.scene4); in testMode() 83 startTransition(R.layout.scene1); in testMode() 88 startTransition(R.layout.scene4); in testMode()
|
D | VisibilityTest.java | 61 enterScene(R.layout.scene4); in testMode() 62 startTransition(R.layout.scene1); in testMode() 67 startTransition(R.layout.scene4); in testMode() 74 startTransition(R.layout.scene1); in testMode() 80 startTransition(R.layout.scene4); in testMode() 86 startTransition(R.layout.scene1); in testMode() 91 startTransition(R.layout.scene4); in testMode() 100 enterScene(R.layout.scene1); in testIsVisible() 124 enterScene(R.layout.scene4); in testOnAppear() 128 startTransition(R.layout.scene5); in testOnAppear() [all …]
|
D | ChangeBoundsTest.java | 72 enterScene(R.layout.scene1); in testBasicChangeBounds() 78 startTransition(R.layout.scene6); in testBasicChangeBounds() 90 enterScene(R.layout.scene1); in testResizeClip() 96 startTransition(R.layout.scene6); in testResizeClip() 107 enterScene(R.layout.scene6); in testResizeClipSmaller() 112 startTransition(R.layout.scene1); in testResizeClipSmaller() 122 enterScene(R.layout.scene1); in testInterruptSameDestination() 126 startTransition(R.layout.scene6); in testInterruptSameDestination() 131 startTransition(R.layout.scene6); in testInterruptSameDestination() 141 enterScene(R.layout.scene1); in testInterruptSameDestinationResizeClip() [all …]
|
D | ChangeTransformTest.java | 55 enterScene(R.layout.scene1); in testTranslation() 76 enterScene(R.layout.scene1); in testRotation() 95 enterScene(R.layout.scene1); in testScale() 117 enterScene(R.layout.scene5); in testReparent() 118 startTransition(R.layout.scene9); in testReparent() 125 startTransition(R.layout.scene5); in testReparent() 132 enterScene(R.layout.scene5); in testReparentWithOverlay() 133 startTransition(R.layout.scene9); in testReparentWithOverlay() 150 startTransition(R.layout.scene5); in testReparentWithOverlay()
|
D | TransitionManagerTest.java | 51 View view = mActivity.getLayoutInflater().inflate(R.layout.scene1, mSceneRoot, in testBeginDelayedTransition() 74 enterScene(R.layout.scene1); in testDefaultBeginDelayedTransition() 86 enterScene(R.layout.scene6); in testDefaultBeginDelayedTransition() 110 startTransition(R.layout.scene1); in testGo() 130 enterScene(R.layout.scene1); in testDefaultGo() 141 final Scene scene6 = loadScene(R.layout.scene6); in testDefaultGo() 153 Scene scene = Scene.getSceneForLayout(mSceneRoot, R.layout.scene1, mActivity); in testSetTransition1() 172 Scene scene = Scene.getSceneForLayout(mSceneRoot, R.layout.scene2, mActivity); in testSetTransition1() 186 scenes[0] = Scene.getSceneForLayout(mSceneRoot, R.layout.scene1, mActivity); in testSetTransition2() 187 scenes[1] = Scene.getSceneForLayout(mSceneRoot, R.layout.scene2, mActivity); in testSetTransition2() [all …]
|
D | SceneTest.java | 49 R.layout.scene1, mSceneRoot, true)).when(enterCheck).run(); in testDynamicConstructor() 65 enterScene(R.layout.scene4); in testDynamicConstructor() 74 View view = loadLayout(R.layout.scene1); in testViewConstructor() 83 View view = loadLayout(R.layout.scene1); in testDeprecatedConstructor() 92 Scene scene = loadScene(R.layout.scene1); in testFactory()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/ |
D | RVCVCameraPreview.java | 95 ViewGroup.LayoutParams layout = getLayoutParams(); in surfaceCreated() local 98 layout.height = (int)Math.round(v_width * mAspect); in surfaceCreated() 99 layout.width = v_width; in surfaceCreated() 101 layout.width = (int)Math.round(v_height / mAspect); in surfaceCreated() 102 layout.height = v_height; in surfaceCreated() 105 layout.width, layout.height)); in surfaceCreated() 106 setLayoutParams(layout); in surfaceCreated()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | ResourceCursorAdapterTest.java | 62 mParent = (ViewGroup) layoutInflater.inflate(R.layout.cursoradapter_host, null); in setup() 74 adapter = new MockResourceCursorAdapter(mContext, R.layout.cursoradapter_item0, mCursor); in testConstructor() 80 R.layout.cursoradapter_item0, mCursor, false); in testConstructor() 89 R.layout.cursoradapter_item0, mCursor); in testSetViewResource() 96 mResourceCursorAdapter.setViewResource(R.layout.cursoradapter_item1); in testSetViewResource() 106 R.layout.cursoradapter_item0, mCursor); in testSetDropDownViewResource() 114 mResourceCursorAdapter.setDropDownViewResource(R.layout.cursoradapter_item1); in testSetDropDownViewResource() 132 R.layout.cursoradapter_item0, mCursor); in testNewDropDownView() 138 R.layout.cursoradapter_item1, mCursor); in testNewDropDownView() 149 R.layout.cursoradapter_item0, mCursor); in testNewView() [all …]
|
D | AbsSpinnerTest.java | 79 XmlPullParser parser = mActivity.getResources().getXml(R.layout.gallery_test); in testConstructor() 93 R.array.string, android.R.layout.simple_spinner_item); in testSetSelectionIntBoolean() 94 adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); in testSetSelectionIntBoolean() 116 R.array.string, android.R.layout.simple_spinner_item); in testSetSelectionInt() 117 adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); in testSetSelectionInt() 138 R.array.string, android.R.layout.simple_spinner_item); in testAccessAdapter() 139 adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); in testAccessAdapter() 154 absSpinner.layout(0, 0, 200, 300); in testRequestLayout() 170 R.array.string, android.R.layout.simple_spinner_item); in testGetCount() 177 android.R.layout.simple_spinner_item, anotherStringArray); in testGetCount() [all …]
|
D | TableLayoutTest.java | 88 mActivity.setContentView(R.layout.table_layout_2); in testConstructor() 118 mTableEmpty.layout(0, 0, 200, 300); in testRequestLayout() 159 mTableEmpty.layout(0, 0, 200, 300); in testAccessColumnCollapsed() 168 mTableEmpty.layout(0, 0, 200, 300); in testAccessColumnCollapsed() 175 mTableEmpty.layout(0, 0, 200, 300); in testAccessColumnCollapsed() 182 mTableEmpty.layout(0, 0, 200, 300); in testAccessColumnCollapsed() 198 mTableEmpty.layout(0, 0, 200, 300); in testAccessColumnStretchable() 207 mTableEmpty.layout(0, 0, 200, 300); in testAccessColumnStretchable() 214 mTableEmpty.layout(0, 0, 200, 300); in testAccessColumnStretchable() 221 mTableEmpty.layout(0, 0, 200, 300); in testAccessColumnStretchable() [all …]
|
D | ArrayAdapterTest.java | 67 mArrayAdapter = new ArrayAdapter<>(mContext, R.layout.simple_dropdown_item_1line); in setup() 72 new ArrayAdapter<String>(mContext, R.layout.simple_dropdown_item_1line); in testConstructor() 75 new ArrayAdapter<String>(mContext, R.layout.simple_dropdown_item_1line, R.id.text1); in testConstructor() 76 new ArrayAdapter<String>(mContext, R.layout.simple_dropdown_item_1line, INVALID_ID); in testConstructor() 78 new ArrayAdapter<>(mContext, R.layout.simple_dropdown_item_1line, in testConstructor() 81 new ArrayAdapter<>(mContext, R.layout.simple_dropdown_item_1line, R.id.text1, in testConstructor() 88 new ArrayAdapter<>(mContext, R.layout.simple_dropdown_item_1line, list); in testConstructor() 90 new ArrayAdapter<>(mContext, R.layout.simple_dropdown_item_1line, R.id.text1, list); in testConstructor() 95 new ArrayAdapter<String>(null, R.layout.simple_dropdown_item_1line); in testConstructorWithNullContext() 218 mArrayAdapter.setDropDownViewResource(R.layout.tabhost_layout); in testSetDropDownViewResource() [all …]
|
/cts/tests/tests/assist/testapp/src/android/assist/testapp/ |
D | TestApp.java | 40 setContentView(R.layout.multiple_text_views); in onCreate() 43 setContentView(R.layout.test_app); in onCreate() 51 final View layout = findViewById(android.R.id.content); in onResume() local 52 ViewTreeObserver vto = layout.getViewTreeObserver(); in onResume() 56 layout.getViewTreeObserver().removeOnGlobalLayoutListener(this); in onResume()
|
D | SecureActivity.java | 35 setContentView(R.layout.secure_app); in onCreate() 44 final View layout = findViewById(android.R.id.content); in onResume() local 45 ViewTreeObserver vto = layout.getViewTreeObserver(); in onResume() 49 layout.getViewTreeObserver().removeOnGlobalLayoutListener(this); in onResume()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | FocusFinderCtsActivity.java | 26 public ViewGroup layout; field in FocusFinderCtsActivity 39 setContentView(R.layout.focus_finder_layout); in onCreate() 40 layout = (ViewGroup) findViewById(R.id.layout); in onCreate()
|
D | LayoutInflaterTest.java | 220 android.view.cts.R.layout.inflater_layout, null); in testInflate() 230 view = mLayoutInflater.inflate(R.layout.inflater_layout, in testInflate() 244 R.layout.inflater_layout, null, false); in testInflateAttachToRoot() 254 view = mLayoutInflater.inflate(R.layout.inflater_layout, in testInflateAttachToRoot() 259 view = mLayoutInflater.inflate(R.layout.inflater_layout, in testInflateAttachToRoot() 272 XmlResourceParser parser = mContext.getResources().getLayout(R.layout.inflater_layout); in testInflateParser() 290 parser = mContext.getResources().getLayout(R.layout.inflater_layout); in testInflateParser() 294 parser = mContext.getResources().getLayout(R.layout.inflater_layout); in testInflateParser() 312 XmlResourceParser parser = mContext.getResources().getLayout(R.layout.inflater_layout); in testInflateParserAttachToRoot() 330 parser = mContext.getResources().getLayout(R.layout.inflater_layout); in testInflateParserAttachToRoot() [all …]
|
/cts/apps/CameraITS/tools/ |
D | convert_yuv_to_jpg.py | 31 layout = sys.argv[4] 32 img = its.image.load_yuv420_to_rgb_image(fname, w,h, layout=layout)
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/ |
D | ViewClippingTests.java | 71 .addLayout(R.layout.blue_padded_layout, null) in testSimpleUnclipped() 78 .addLayout(R.layout.blue_padded_layout, BOUNDS_CLIP_INIT) in testSimpleBoundsClip() 85 .addLayout(R.layout.blue_padded_layout, CLIP_BOUNDS_CLIP_INIT) in testSimpleClipBoundsClip() 92 .addLayout(R.layout.blue_padded_layout, PADDING_CLIP_INIT) in testSimplePaddingClip() 101 .addLayout(R.layout.blue_padded_layout, OUTLINE_CLIP_INIT, true) in testSimpleOutlineClip() 106 .addLayout(R.layout.blue_padded_layout, OUTLINE_CLIP_INIT, false) in testSimpleOutlineClip() 115 .addLayout(R.layout.blue_padded_layout, view -> { in testOvalOutlineClip()
|
/cts/tests/fragment/src/android/fragment/cts/ |
D | FragmentViewTests.java | 50 FragmentTestUtil.setContentView(mActivityRule, R.layout.simple_container); in addFragments() 96 FragmentTestUtil.setContentView(mActivityRule, R.layout.double_container); in addTwoContainers() 143 FragmentTestUtil.setContentView(mActivityRule, R.layout.simple_container); in doubleAdd() 170 FragmentTestUtil.setContentView(mActivityRule, R.layout.simple_container); in removeFragments() 228 FragmentTestUtil.setContentView(mActivityRule, R.layout.simple_container); in removeHiddenView() 254 FragmentTestUtil.setContentView(mActivityRule, R.layout.simple_container); in removeDetatchedView() 282 FragmentTestUtil.setContentView(mActivityRule, R.layout.simple_container); in addRemoveAdd() 304 FragmentTestUtil.setContentView(mActivityRule, R.layout.simple_container); in removeNotThere() 314 FragmentTestUtil.setContentView(mActivityRule, R.layout.simple_container); in hideFragment() 343 FragmentTestUtil.setContentView(mActivityRule, R.layout.simple_container); in doubleHide() [all …]
|
/cts/tests/tests/animation/src/android/animation/cts/ |
D | LayoutAnimationActivity.java | 33 setContentView(R.layout.animation_two); in onCreate() 40 LinearLayout layout = (LinearLayout) findViewById(R.id.container); in onCreate() 41 layout.addView(newButton); in onCreate()
|