/cts/tests/tests/text/src/android/text/cts/ |
D | StaticLayoutTest.java | 130 StaticLayout layout = builder.build(); in testBuilder() local 132 assertEquals(LAYOUT_TEXT, layout.getText()); in testBuilder() 133 assertEquals(mDefaultPaint, layout.getPaint()); in testBuilder() 134 assertEquals(DEFAULT_OUTER_WIDTH, layout.getWidth()); in testBuilder() 137 layout.getTextDirectionHeuristic()); in testBuilder() 138 assertEquals(Alignment.ALIGN_NORMAL, layout.getAlignment()); in testBuilder() 139 assertEquals(0.0f, layout.getSpacingAdd()); in testBuilder() 140 assertEquals(1.0f, layout.getSpacingMultiplier()); in testBuilder() 141 assertEquals(DEFAULT_OUTER_WIDTH, layout.getEllipsizedWidth()); in testBuilder() 147 StaticLayout layout = builder.build(); in testBuilder() local [all …]
|
D | StaticLayoutLineBreakingTest.java | 130 private static void layout(CharSequence source, int[] breaks) { in layout() method in StaticLayoutLineBreakingTest 131 layout(source, breaks, WIDTH); in layout() 134 private static void layout(CharSequence source, int[] breaks, int width) { in layout() method in StaticLayoutLineBreakingTest 236 layout("", NO_BREAK); in testNoLineBreak() 237 layout("I", NO_BREAK); in testNoLineBreak() 238 layout("V", NO_BREAK); in testNoLineBreak() 239 layout("X", NO_BREAK); in testNoLineBreak() 240 layout("L", NO_BREAK); in testNoLineBreak() 241 layout("I VILI", NO_BREAK); in testNoLineBreak() 242 layout("XXXX", NO_BREAK); in testNoLineBreak() [all …]
|
D | LayoutTest.java | 67 Layout layout = new MockLayout(text, mTextPaint, mWidth, in testGetText() local 69 assertEquals(text, layout.getText()); in testGetText() 71 layout = new MockLayout(null, mTextPaint, mWidth, mAlign, mSpacingmult, mSpacingadd); in testGetText() 72 assertNull(layout.getText()); in testGetText() 76 Layout layout = new MockLayout(LAYOUT_TEXT, mTextPaint, mWidth, in testGetPaint() local 79 assertSame(mTextPaint, layout.getPaint()); in testGetPaint() 81 layout = new MockLayout(LAYOUT_TEXT, null, mWidth, mAlign, mSpacingmult, mSpacingadd); in testGetPaint() 82 assertNull(layout.getPaint()); in testGetPaint() 86 Layout layout = new MockLayout(LAYOUT_TEXT, mTextPaint, 10, in testGetWidth() local 88 assertEquals(10, layout.getWidth()); in testGetWidth() [all …]
|
D | SelectionTest.java | 164 StaticLayout layout = new StaticLayout(text, new TextPaint(), 50, null, 0, 0, false); in testMoveLeft() local 169 assertTrue(Selection.moveLeft(builder, layout)); in testMoveLeft() 173 assertTrue(Selection.moveLeft(builder, layout)); in testMoveLeft() 178 assertFalse(Selection.moveLeft(builder, layout)); in testMoveLeft() 183 assertTrue(Selection.moveLeft(builder, layout)); in testMoveLeft() 191 StaticLayout layout = new StaticLayout(text, new TextPaint(), 200, null, 0, 0, false); in testMoveRight() local 196 assertTrue(Selection.moveRight(builder, layout)); in testMoveRight() 200 assertTrue(Selection.moveRight(builder, layout)); in testMoveRight() 204 assertTrue(Selection.moveRight(builder, layout)); in testMoveRight() 209 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 | 51 startTransition(R.layout.scene1); in testAddListener() 62 Scene scene = Scene.getSceneForLayout(mSceneRoot, R.layout.scene2, mActivity); in testAddListener() 84 startTransition(R.layout.scene1); in testRemoveListener() 98 enterScene(R.layout.scene4); in testAddTargetId() 104 startTransition(R.layout.scene1); in testAddTargetId() 111 enterScene(R.layout.scene4); in testRemoveTargetId() 120 startTransition(R.layout.scene1); in testRemoveTargetId() 127 enterScene(R.layout.scene4); in testAddTargetClass() 132 startTransition(R.layout.scene1); in testAddTargetClass() 139 enterScene(R.layout.scene4); in testRemoveTargetClass() [all …]
|
D | FadeTest.java | 42 enterScene(R.layout.scene4); in testMode() 43 startTransition(R.layout.scene1); in testMode() 48 startTransition(R.layout.scene4); in testMode() 56 startTransition(R.layout.scene1); in testMode() 62 startTransition(R.layout.scene4); in testMode() 69 startTransition(R.layout.scene1); in testMode() 74 startTransition(R.layout.scene4); in testMode()
|
D | VisibilityTest.java | 38 enterScene(R.layout.scene4); in testMode() 39 startTransition(R.layout.scene1); in testMode() 44 startTransition(R.layout.scene4); in testMode() 51 startTransition(R.layout.scene1); in testMode() 57 startTransition(R.layout.scene4); in testMode() 63 startTransition(R.layout.scene1); in testMode() 68 startTransition(R.layout.scene4); in testMode() 76 enterScene(R.layout.scene1); in testIsVisible()
|
D | ChangeBoundsTest.java | 49 enterScene(R.layout.scene1); in testBasicChangeBounds() 53 startTransition(R.layout.scene6); in testBasicChangeBounds() 67 enterScene(R.layout.scene1); in testResizeClip() 71 startTransition(R.layout.scene6); in testResizeClip() 83 enterScene(R.layout.scene6); in testResizeClipSmaller() 87 startTransition(R.layout.scene1); in testResizeClipSmaller() 98 enterScene(R.layout.scene1); in testInterruptSameDestination() 102 startTransition(R.layout.scene6); in testInterruptSameDestination() 107 startTransition(R.layout.scene6); in testInterruptSameDestination() 116 enterScene(R.layout.scene1); in testInterruptSameDestinationResizeClip() [all …]
|
D | ChangeTransformTest.java | 39 enterScene(R.layout.scene1); in testTranslation() 62 enterScene(R.layout.scene1); in testRotation() 83 enterScene(R.layout.scene1); in testScale() 107 enterScene(R.layout.scene5); in testReparent() 108 startTransition(R.layout.scene9); in testReparent() 115 startTransition(R.layout.scene5); in testReparent() 121 enterScene(R.layout.scene5); in testReparentWithOverlay() 122 startTransition(R.layout.scene9); in testReparentWithOverlay() 142 startTransition(R.layout.scene5); in testReparentWithOverlay()
|
D | TransitionManagerTest.java | 37 View view = mActivity.getLayoutInflater().inflate(R.layout.scene1, mSceneRoot, in testBeginDelayedTransition() 61 startTransition(R.layout.scene1); in testGo() 86 Scene scene = Scene.getSceneForLayout(mSceneRoot, R.layout.scene1, mActivity); in testSetTransition1() 107 Scene scene = Scene.getSceneForLayout(mSceneRoot, R.layout.scene2, mActivity); in testSetTransition1() 122 scenes[0] = Scene.getSceneForLayout(mSceneRoot, R.layout.scene1, mActivity); in testSetTransition2() 123 scenes[1] = Scene.getSceneForLayout(mSceneRoot, R.layout.scene2, mActivity); in testSetTransition2() 124 scenes[2] = Scene.getSceneForLayout(mSceneRoot, R.layout.scene3, mActivity); in testSetTransition2() 161 startTransition(R.layout.scene1); in testEndTransitions() 173 Scene scene = Scene.getSceneForLayout(mSceneRoot, R.layout.scene1, mActivity); in testEndTransitionsBeforeStarted()
|
D | SceneTest.java | 33 mActivity.getLayoutInflater().inflate(R.layout.scene1, mSceneRoot, true); in testDynamicConstructor() 51 enterScene(R.layout.scene4); in testDynamicConstructor() 56 View view = loadLayout(R.layout.scene1); in testViewConstructor() 75 enterScene(R.layout.scene4); in testViewConstructor() 80 Scene scene = loadScene(R.layout.scene1); in testFactory() 97 enterScene(R.layout.scene4); in testFactory()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | ResourceCursorAdapterTest.java | 51 mParent = (ViewGroup) layoutInflater.inflate(R.layout.cursoradapter_host, null); in setUp() 62 adapter = new MockResourceCursorAdapter(mContext, R.layout.cursoradapter_item0, mCursor); in testConstructor() 68 R.layout.cursoradapter_item0, mCursor, false); in testConstructor() 76 R.layout.cursoradapter_item0, mCursor); in testSetViewResource() 83 mResourceCursorAdapter.setViewResource(R.layout.cursoradapter_item1); in testSetViewResource() 92 R.layout.cursoradapter_item0, mCursor); in testSetDropDownViewResource() 100 mResourceCursorAdapter.setDropDownViewResource(R.layout.cursoradapter_item1); in testSetDropDownViewResource() 117 R.layout.cursoradapter_item0, mCursor); in testNewDropDownView() 123 R.layout.cursoradapter_item1, mCursor); in testNewDropDownView() 133 R.layout.cursoradapter_item0, mCursor); in testNewView() [all …]
|
D | AbsSpinnerTest.java | 67 XmlPullParser parser = mContext.getResources().getXml(R.layout.gallery_test); in testConstructor() 81 android.widget.cts.R.array.string, android.R.layout.simple_spinner_item); in testSetSelectionIntBoolean() 82 adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); in testSetSelectionIntBoolean() 104 android.widget.cts.R.array.string, android.R.layout.simple_spinner_item); in testSetSelectionInt() 105 adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); in testSetSelectionInt() 126 android.widget.cts.R.array.string, android.R.layout.simple_spinner_item); in testAccessAdapter() 127 adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); in testAccessAdapter() 145 absSpinner.layout(0, 0, 200, 300); in testRequestLayout() 162 android.widget.cts.R.array.string, android.R.layout.simple_spinner_item); in testGetCount() 169 android.R.layout.simple_spinner_item, anotherStringArray); in testGetCount() [all …]
|
D | LinearLayoutTest.java | 65 XmlPullParser parser = mContext.getResources().getXml(R.layout.linearlayout_layout); in testConstructor() 181 LinearLayout layout = new LinearLayout(mActivity); in testWeightDistribution() local 183 layout.addView(new View(mActivity), new LayoutParams(0, 0, 1)); in testWeightDistribution() 190 View child = layout.getChildAt(i); in testWeightDistribution() 196 layout.setOrientation(LinearLayout.VERTICAL); in testWeightDistribution() 197 layout.measure(spec, spec); in testWeightDistribution() 198 layout.layout(0, 0, size, size); in testWeightDistribution() 199 assertEquals(100, layout.getWidth()); in testWeightDistribution() 200 assertEquals(100, layout.getChildAt(0).getWidth()); in testWeightDistribution() 201 assertEquals(100, layout.getChildAt(1).getWidth()); in testWeightDistribution() [all …]
|
D | TableLayoutTest.java | 61 activity.setContentView(android.widget.cts.R.layout.table_layout_1); in testConstructor() 67 activity.setContentView(android.widget.cts.R.layout.table_layout_2); in testConstructor() 96 tableLayout.layout(0, 0, 200, 300); in testRequestLayout() 134 tableLayout.layout(0, 0, 200, 300); in testAccessColumnCollapsed() 143 tableLayout.layout(0, 0, 200, 300); in testAccessColumnCollapsed() 150 tableLayout.layout(0, 0, 200, 300); in testAccessColumnCollapsed() 157 tableLayout.layout(0, 0, 200, 300); in testAccessColumnCollapsed() 172 tableLayout.layout(0, 0, 200, 300); in testAccessColumnStretchable() 181 tableLayout.layout(0, 0, 200, 300); in testAccessColumnStretchable() 188 tableLayout.layout(0, 0, 200, 300); in testAccessColumnStretchable() [all …]
|
D | ArrayAdapterTest.java | 49 mArrayAdapter = new ArrayAdapter<String>(mContext, R.layout.simple_dropdown_item_1line); in setUp() 54 new ArrayAdapter<String>(mContext, R.layout.simple_dropdown_item_1line); in testConstructor() 57 new ArrayAdapter<String>(mContext, R.layout.simple_dropdown_item_1line, R.id.text1); in testConstructor() 58 new ArrayAdapter<String>(mContext, R.layout.simple_dropdown_item_1line, INVALD_ID); in testConstructor() 60 new ArrayAdapter<String>(mContext, R.layout.simple_dropdown_item_1line, in testConstructor() 63 new ArrayAdapter<String>(mContext, R.layout.simple_dropdown_item_1line, R.id.text1, in testConstructor() 70 new ArrayAdapter<String>(mContext, R.layout.simple_dropdown_item_1line, list); in testConstructor() 72 new ArrayAdapter<String>(mContext, R.layout.simple_dropdown_item_1line, R.id.text1, list); in testConstructor() 76 new ArrayAdapter<String>(null, R.layout.simple_dropdown_item_1line); in testConstructor() 194 mArrayAdapter.setDropDownViewResource(R.layout.tabhost_layout); in testSetDropDownViewResouce() [all …]
|
/cts/tests/tests/view/src/android/view/cts/ |
D | ViewTreeObserverTest.java | 55 layout(R.layout.viewtreeobserver_layout); in setUp() 62 private void layout(final int layoutId) { in layout() method in ViewTreeObserverTest 73 final LinearLayout layout = (LinearLayout) mActivity.findViewById(R.id.linearlayout); in testAddOnGlobalFocusChangeListener() local 84 mViewTreeObserver = layout.getViewTreeObserver(); in testAddOnGlobalFocusChangeListener() 106 final LinearLayout layout = in testAddOnGlobalLayoutListener() local 108 mViewTreeObserver = layout.getViewTreeObserver(); in testAddOnGlobalLayoutListener() 118 final LinearLayout layout = (LinearLayout) mActivity.findViewById(R.id.linearlayout); in testAddOnPreDrawListener() local 119 mViewTreeObserver = layout.getViewTreeObserver(); in testAddOnPreDrawListener() 157 final LinearLayout layout = (LinearLayout) mActivity.findViewById(R.id.linearlayout); in testDispatchOnGlobalLayout() local 158 mViewTreeObserver = layout.getViewTreeObserver(); in testDispatchOnGlobalLayout() [all …]
|
D | FocusFinderCtsActivity.java | 30 public ViewGroup layout; field in FocusFinderCtsActivity 43 setContentView(R.layout.focus_finder_layout); in onCreate() 44 layout = (ViewGroup) findViewById(R.id.layout); in onCreate()
|
/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/assist/testapp/src/android/voiceinteraction/testapp/ |
D | TestApp.java | 53 setContentView(R.layout.multiple_text_views); in onCreate() 56 setContentView(R.layout.test_app); in onCreate() 64 final View layout = findViewById(android.R.id.content); in onResume() local 65 ViewTreeObserver vto = layout.getViewTreeObserver(); in onResume() 69 layout.getViewTreeObserver().removeOnGlobalLayoutListener(this); in onResume()
|
D | SecureActivity.java | 37 setContentView(R.layout.secure_app); in onCreate() 46 final View layout = findViewById(android.R.id.content); in onResume() local 47 ViewTreeObserver vto = layout.getViewTreeObserver(); in onResume() 51 layout.getViewTreeObserver().removeOnGlobalLayoutListener(this); in onResume()
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/ |
D | ViewClippingTests.java | 67 .addLayout(R.layout.blue_padded_layout, null) in testSimpleUnclipped() 74 .addLayout(R.layout.blue_padded_layout, BOUNDS_CLIP_INIT) in testSimpleBoundsClip() 81 .addLayout(R.layout.blue_padded_layout, CLIP_BOUNDS_CLIP_INIT) in testSimpleClipBoundsClip() 88 .addLayout(R.layout.blue_padded_layout, PADDING_CLIP_INIT) in testSimplePaddingClip() 97 .addLayout(R.layout.blue_padded_layout, OUTLINE_CLIP_INIT, true) in testSimpleOutlineClip() 102 .addLayout(R.layout.blue_padded_layout, OUTLINE_CLIP_INIT, false) in testSimpleOutlineClip() 111 .addLayout(R.layout.blue_padded_layout, view -> { in testOvalOutlineClip()
|
/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/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()
|