Home
last modified time | relevance | path

Searched refs:layout (Results 1 – 25 of 535) sorted by relevance

12345678910>>...22

/cts/tests/tests/text/src/android/text/cts/
DStaticLayoutTest.java137 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 …]
DStaticLayoutLineBreakingTest.java139 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 …]
DLayoutTest.java88 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 …]
DSelectionTest.java181 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/
DThemeDeviceActivity.java79 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/
DTransitionTest.java69 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 …]
DFadeTest.java56 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()
DVisibilityTest.java61 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 …]
DChangeBoundsTest.java72 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 …]
DChangeTransformTest.java55 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()
DTransitionManagerTest.java51 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 …]
DSceneTest.java49 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/
DRVCVCameraPreview.java95 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/
DResourceCursorAdapterTest.java62 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 …]
DAbsSpinnerTest.java79 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 …]
DTableLayoutTest.java88 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 …]
DArrayAdapterTest.java67 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/
DTestApp.java40 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()
DSecureActivity.java35 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/
DFocusFinderCtsActivity.java26 public ViewGroup layout; field in FocusFinderCtsActivity
39 setContentView(R.layout.focus_finder_layout); in onCreate()
40 layout = (ViewGroup) findViewById(R.id.layout); in onCreate()
DLayoutInflaterTest.java220 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/
Dconvert_yuv_to_jpg.py31 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/
DViewClippingTests.java71 .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/
DFragmentViewTests.java50 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/
DLayoutAnimationActivity.java33 setContentView(R.layout.animation_two); in onCreate()
40 LinearLayout layout = (LinearLayout) findViewById(R.id.container); in onCreate()
41 layout.addView(newButton); in onCreate()

12345678910>>...22