/cts/tests/tests/text/src/android/text/cts/ |
D | StaticLayoutLineBreakingTest.java | 115 private static void layout(CharSequence source, int[] breaks) { in layout() method in StaticLayoutLineBreakingTest 116 layout(source, breaks, WIDTH); in layout() 119 private static void layout(CharSequence source, int[] breaks, int width) { in layout() method in StaticLayoutLineBreakingTest 230 layout("", NO_BREAK); in testNoLineBreak() 231 layout("I", NO_BREAK); in testNoLineBreak() 232 layout("V", NO_BREAK); in testNoLineBreak() 233 layout("X", NO_BREAK); in testNoLineBreak() 234 layout("L", NO_BREAK); in testNoLineBreak() 235 layout("I VILI", NO_BREAK); in testNoLineBreak() 236 layout("XXXX", NO_BREAK); in testNoLineBreak() [all …]
|
D | StaticLayoutTest.java | 159 StaticLayout layout = builder.build(); in testBuilder() local 161 assertEquals(LAYOUT_TEXT, layout.getText()); in testBuilder() 162 assertEquals(mDefaultPaint, layout.getPaint()); in testBuilder() 163 assertEquals(DEFAULT_OUTER_WIDTH, layout.getWidth()); in testBuilder() 165 assertEquals(Alignment.ALIGN_NORMAL, layout.getAlignment()); in testBuilder() 166 assertEquals(0.0f, layout.getSpacingAdd(), 0.0f); in testBuilder() 167 assertEquals(1.0f, layout.getSpacingMultiplier(), 0.0f); in testBuilder() 168 assertEquals(DEFAULT_OUTER_WIDTH, layout.getEllipsizedWidth()); in testBuilder() 174 StaticLayout layout = builder.build(); in testBuilder() local 184 StaticLayout layout = builder.build(); in testBuilder() local [all …]
|
D | SelectionTest.java | 186 StaticLayout layout = new StaticLayout(text, new TextPaint(), 50, null, 0, 0, false); in testMoveLeft() local 191 assertTrue(Selection.moveLeft(builder, layout)); in testMoveLeft() 195 assertTrue(Selection.moveLeft(builder, layout)); in testMoveLeft() 200 assertFalse(Selection.moveLeft(builder, layout)); in testMoveLeft() 205 assertTrue(Selection.moveLeft(builder, layout)); in testMoveLeft() 214 StaticLayout layout = new StaticLayout(text, new TextPaint(), 200, null, 0, 0, false); in testMoveRight() local 219 assertTrue(Selection.moveRight(builder, layout)); in testMoveRight() 223 assertTrue(Selection.moveRight(builder, layout)); in testMoveRight() 227 assertTrue(Selection.moveRight(builder, layout)); in testMoveRight() 232 assertFalse(Selection.moveRight(builder, layout)); in testMoveRight() [all …]
|
D | DynamicLayoutTest.java | 322 final DynamicLayout layout = builder.build(); in testBuilder_obtain() local 324 assertEquals(MULTLINE_CHAR_SEQUENCE, layout.getText()); in testBuilder_obtain() 325 assertEquals(mDefaultPaint, layout.getPaint()); in testBuilder_obtain() 326 assertEquals(DEFAULT_OUTER_WIDTH, layout.getWidth()); in testBuilder_obtain() 328 assertEquals(Layout.Alignment.ALIGN_NORMAL, layout.getAlignment()); in testBuilder_obtain() 329 assertEquals(0.0f, layout.getSpacingAdd(), 0.0f); in testBuilder_obtain() 330 assertEquals(1.0f, layout.getSpacingMultiplier(), 0.0f); in testBuilder_obtain() 331 assertEquals(DEFAULT_OUTER_WIDTH, layout.getEllipsizedWidth()); in testBuilder_obtain() 337 final DynamicLayout layout = builder.build(); in testBuilder_obtainWithNullText() local 344 final DynamicLayout layout = builder.build(); in testBuilder_obtainWithNullPaint() local [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 | 75 startTransition(R.layout.scene1); in testAddListener() 84 Scene scene = Scene.getSceneForLayout(mSceneRoot, R.layout.scene2, mActivity); in testAddListener() 106 startTransition(R.layout.scene1); in testRemoveListener() 117 enterScene(R.layout.scene4); in testAddTargetId() 123 startTransition(R.layout.scene1); in testAddTargetId() 131 enterScene(R.layout.scene4); in testRemoveTargetId() 140 startTransition(R.layout.scene1); in testRemoveTargetId() 148 enterScene(R.layout.scene4); in testAddTargetClass() 153 startTransition(R.layout.scene1); in testAddTargetClass() 161 enterScene(R.layout.scene4); in testRemoveTargetClass() [all …]
|
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 | 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 | ChangeBoundsTest.java | 74 enterScene(R.layout.scene1); in testBasicChangeBounds() 80 startTransition(R.layout.scene6); in testBasicChangeBounds() 92 enterScene(R.layout.scene1); in testResizeClip() 98 startTransition(R.layout.scene6); in testResizeClip() 109 enterScene(R.layout.scene6); in testResizeClipSmaller() 114 startTransition(R.layout.scene1); in testResizeClipSmaller() 124 enterScene(R.layout.scene1); in testInterruptSameDestination() 128 startTransition(R.layout.scene6); in testInterruptSameDestination() 132 startTransition(R.layout.scene6); in testInterruptSameDestination() 142 enterScene(R.layout.scene1); in testInterruptSameDestinationResizeClip() [all …]
|
D | TransitionManagerTest.java | 52 View view = mActivity.getLayoutInflater().inflate(R.layout.scene1, mSceneRoot, in testBeginDelayedTransition() 75 enterScene(R.layout.scene1); in testDefaultBeginDelayedTransition() 77 final Scene scene6 = loadScene(R.layout.scene6); in testDefaultBeginDelayedTransition() 127 startTransition(R.layout.scene1); in testGo() 147 enterScene(R.layout.scene1); in testDefaultGo() 149 final Scene scene6 = loadScene(R.layout.scene6); in testDefaultGo() 172 Scene scene = Scene.getSceneForLayout(mSceneRoot, R.layout.scene1, mActivity); in testSetTransition1() 191 Scene scene = Scene.getSceneForLayout(mSceneRoot, R.layout.scene2, mActivity); in testSetTransition1() 205 scenes[0] = Scene.getSceneForLayout(mSceneRoot, R.layout.scene1, mActivity); in testSetTransition2() 206 scenes[1] = Scene.getSceneForLayout(mSceneRoot, R.layout.scene2, mActivity); in testSetTransition2() [all …]
|
/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 …]
|
/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()
|
/cts/tests/tests/graphics/assets/ |
D | passthrough_fsh.glsl | 4 layout (binding = 0) uniform sampler2D tex; 5 layout (location = 0) in vec2 texcoord; 6 layout (location = 0) out vec4 uFragColor;
|
D | passthrough_vsh.glsl | 4 layout (location = 0) in vec4 pos; 5 layout (location = 1) in vec2 attr; 6 layout (location = 0) out vec2 texcoord;
|
/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 | LayerTests.java | 68 .addLayout(R.layout.simple_red_layout, (ViewInitializer) view -> { in testLayerPaintAlpha() 85 .addLayout(R.layout.simple_red_layout, (ViewInitializer) view -> { in testLayerPaintSimpleAlphaWithHardware() 99 .addLayout(R.layout.simple_red_layout, (ViewInitializer) view -> { in testLayerPaintSimpleAlphaWithSoftware() 111 .addLayout(R.layout.simple_red_layout, (ViewInitializer) view -> { in testLayerPaintXfermodeWithSoftware() 123 .addLayout(R.layout.frame_layout, view -> { in testLayerPaintAlphaChanged() 160 .addLayout(R.layout.simple_red_layout, (ViewInitializer) view -> { in testLayerPaintColorFilter() 177 .addLayout(R.layout.simple_red_layout, (ViewInitializer) view -> { in testLayerPaintBlend() 229 .addLayout(R.layout.frame_layout, initializer, true) in testLayerClear() 253 .addLayout(R.layout.frame_layout, initializer) in testAlphaLayerChild() 261 .addLayout(R.layout.frame_layout, view -> { in testLayerInitialSizeZero() [all …]
|
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/inputmethod/src/android/view/inputmethod/cts/ |
D | FocusHandlingTest.java | 78 final LinearLayout layout = new LinearLayout(activity); in launchTestActivity() 79 layout.setOrientation(LinearLayout.VERTICAL); in launchTestActivity() 87 layout.addView(editText); in launchTestActivity() 88 return layout; in launchTestActivity() 137 final LinearLayout layout = new LinearLayout(activity); in testSoftInputStateAlwaysVisibleWithoutFocusedEditorView() 138 layout.setOrientation(LinearLayout.VERTICAL); in testSoftInputStateAlwaysVisibleWithoutFocusedEditorView() 151 layout.addView(textView); in testSoftInputStateAlwaysVisibleWithoutFocusedEditorView() 152 return layout; in testSoftInputStateAlwaysVisibleWithoutFocusedEditorView() 179 final LinearLayout layout = new LinearLayout(activity); in testEditorStartsInput() 180 layout.setOrientation(LinearLayout.VERTICAL); in testEditorStartsInput() [all …]
|
D | InputMethodManagerTest.java | 77 final LinearLayout layout = new LinearLayout(activity); in testIsActive() 78 layout.setOrientation(LinearLayout.VERTICAL); in testIsActive() 81 layout.addView(focusedEditText); in testIsActive() 86 layout.addView(nonFocusedEditText); in testIsActive() 89 return layout; in testIsActive() 101 final LinearLayout layout = new LinearLayout(activity); in testIsAcceptingText() 102 layout.setOrientation(LinearLayout.VERTICAL); in testIsAcceptingText() 111 layout.addView(focusedFakeEditText); in testIsAcceptingText() 114 return layout; in testIsAcceptingText()
|
D | SearchViewTest.java | 54 final LinearLayout layout = new LinearLayout(activity); in launchTestActivity() 55 layout.setOrientation(LinearLayout.VERTICAL); in launchTestActivity() 68 layout.addView(initialFocusedEditText); in launchTestActivity() 69 layout.addView(searchView); in launchTestActivity() 70 return layout; in launchTestActivity()
|
/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()
|
/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 …]
|