Home
last modified time | relevance | path

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

12345678910>>...14

/cts/tests/tests/text/src/android/text/cts/
DStaticLayoutTest.java122 StaticLayout layout = builder.build(); in testBuilder() local
124 assertEquals(LAYOUT_TEXT, layout.getText()); in testBuilder()
125 assertEquals(mDefaultPaint, layout.getPaint()); in testBuilder()
126 assertEquals(DEFAULT_OUTER_WIDTH, layout.getWidth()); in testBuilder()
129 layout.getTextDirectionHeuristic()); in testBuilder()
130 assertEquals(Alignment.ALIGN_NORMAL, layout.getAlignment()); in testBuilder()
131 assertEquals(0.0f, layout.getSpacingAdd()); in testBuilder()
132 assertEquals(1.0f, layout.getSpacingMultiplier()); in testBuilder()
133 assertEquals(DEFAULT_OUTER_WIDTH, layout.getEllipsizedWidth()); in testBuilder()
139 StaticLayout layout = builder.build(); in testBuilder() local
[all …]
DStaticLayoutLineBreakingTest.java130 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 …]
DLayoutTest.java67 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 …]
DSelectionTest.java164 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/
DThemeDeviceActivity.java79 setContentView(R.layout.theme_test); in onCreate()
133 final Layout layout = LAYOUTS[mLayoutIndex++]; in setNextLayout() local
134 final String layoutName = String.format("%s_%s", mTheme.name, layout.name); in setNextLayout()
135 final View view = getLayoutInflater().inflate(layout.id, mViewGroup, false); in setNextLayout()
136 if (layout.modifier != null) { in setNextLayout()
137 layout.modifier.modifyView(view); in setNextLayout()
354 new Layout(R.layout.button, "button"),
355 new Layout(R.layout.button, "button_pressed",
357 new Layout(R.layout.checkbox, "checkbox"),
358 new Layout(R.layout.checkbox, "checkbox_checked",
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DRVCVCameraPreview.java94 ViewGroup.LayoutParams layout = getLayoutParams(); in surfaceCreated() local
97 layout.height = (int)(v_width * mAspect); in surfaceCreated()
98 layout.width = v_width; in surfaceCreated()
100 layout.width = (int)(v_height / mAspect); in surfaceCreated()
101 layout.height = v_height; in surfaceCreated()
104 layout.width, layout.height)); in surfaceCreated()
105 setLayoutParams(layout); in surfaceCreated()
/cts/tests/tests/widget/src/android/widget/cts/
DResourceCursorAdapterTest.java51 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 …]
DAbsSpinnerTest.java67 XmlPullParser parser = mContext.getResources().getXml(R.layout.gallery_test); in testConstructor()
81 com.android.cts.widget.R.array.string, android.R.layout.simple_spinner_item); in testSetSelectionIntBoolean()
82 adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); in testSetSelectionIntBoolean()
104 com.android.cts.widget.R.array.string, android.R.layout.simple_spinner_item); in testSetSelectionInt()
105 adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); in testSetSelectionInt()
126 com.android.cts.widget.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 com.android.cts.widget.R.array.string, android.R.layout.simple_spinner_item); in testGetCount()
169 android.R.layout.simple_spinner_item, anotherStringArray); in testGetCount()
[all …]
DTableLayoutTest.java61 activity.setContentView(com.android.cts.widget.R.layout.table_layout_1); in testConstructor()
67 activity.setContentView(com.android.cts.widget.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 …]
DArrayAdapterTest.java49 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 …]
DAbsoluteLayoutTest.java62 XmlPullParser parser = mActivity.getResources().getLayout(R.layout.absolute_layout); in getAttributeSet()
96 mActivity.setContentView(R.layout.absolute_layout); in testGenerateLayoutParams1()
100 AbsoluteLayout layout = (AbsoluteLayout) mActivity.findViewById(R.id.absolute_view); in testGenerateLayoutParams1() local
101 LayoutParams params = (LayoutParams) layout.generateLayoutParams(getAttributeSet()); in testGenerateLayoutParams1()
/cts/tests/tests/view/src/android/view/cts/
DViewTreeObserverTest.java55 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 …]
DFocusFinderCtsActivity.java30 public ViewGroup layout; field in FocusFinderCtsActivity
43 setContentView(R.layout.focus_finder_layout); in onCreate()
44 layout = (ViewGroup) findViewById(R.id.layout); in onCreate()
DLayoutInflaterTest.java213 com.android.cts.view.R.layout.inflater_layout, null); in testInflate()
229 view = mLayoutInflater.inflate(R.layout.inflater_layout, in testInflate()
237 R.layout.inflater_layout, null, false); in testInflate2()
254 view = mLayoutInflater.inflate(R.layout.inflater_layout, in testInflate2()
260 view = mLayoutInflater.inflate(R.layout.inflater_layout, in testInflate2()
268 R.layout.inflater_layout); in testInflate3()
292 R.layout.inflater_layout); in testInflate3()
297 R.layout.inflater_layout); in testInflate3()
313 R.layout.inflater_layout); in testInflate4()
337 R.layout.inflater_layout); in testInflate4()
[all …]
/cts/tests/tests/transition/src/android/transition/cts/
DTransitionTest.java37 startTransition(R.layout.scene1); in testAddListener()
48 Scene scene = Scene.getSceneForLayout(mSceneRoot, R.layout.scene2, mActivity); in testAddListener()
70 startTransition(R.layout.scene1); in testRemoveListener()
85 enterScene(R.layout.scene4); in testAddTargetId()
89 startTransition(R.layout.scene1); in testAddTargetId()
96 enterScene(R.layout.scene4); in testRemoveTargetId()
105 startTransition(R.layout.scene1); in testRemoveTargetId()
112 enterScene(R.layout.scene4); in testAddTargetClass()
116 startTransition(R.layout.scene1); in testAddTargetClass()
123 enterScene(R.layout.scene4); in testRemoveTargetClass()
[all …]
DTransitionManagerTest.java34 View view = mActivity.getLayoutInflater().inflate(R.layout.scene1, mSceneRoot, in testBeginDelayedTransition()
58 startTransition(R.layout.scene1); in testGo()
83 Scene scene = Scene.getSceneForLayout(mSceneRoot, R.layout.scene1, mActivity); in testSetTransition1()
104 Scene scene = Scene.getSceneForLayout(mSceneRoot, R.layout.scene2, mActivity); in testSetTransition1()
120 scenes[0] = Scene.getSceneForLayout(mSceneRoot, R.layout.scene1, mActivity); in testSetTransition2()
121 scenes[1] = Scene.getSceneForLayout(mSceneRoot, R.layout.scene2, mActivity); in testSetTransition2()
122 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()
/cts/tests/tests/assist/testapp/src/android/voiceinteraction/testapp/
DSecureActivity.java37 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()
DTestApp.java48 setContentView(R.layout.test_app); in onCreate()
55 final View layout = findViewById(android.R.id.content); in onResume() local
56 ViewTreeObserver vto = layout.getViewTreeObserver(); in onResume()
60 layout.getViewTreeObserver().removeOnGlobalLayoutListener(this); in onResume()
/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()
77 .addLayout(R.layout.blue_padded_layout, BOUNDS_CLIP_INIT) in testSimpleBoundsClip()
83 .addLayout(R.layout.blue_padded_layout, CLIP_BOUNDS_CLIP_INIT) in testSimpleClipBoundsClip()
89 .addLayout(R.layout.blue_padded_layout, PADDING_CLIP_INIT) in testSimplePaddingClip()
96 .addLayout(R.layout.blue_padded_layout, OUTLINE_CLIP_INIT, true) in testSimpleOutlineClip()
101 .addLayout(R.layout.blue_padded_layout, OUTLINE_CLIP_INIT, false) in testSimpleOutlineClip()
DLayoutTests.java30 createTest().addLayout(R.layout.simple_red_layout, null, false).runWithVerifier( in testSimpleRedLayout()
36 createTest().addLayout(R.layout.simple_rect_layout, null, false).runWithVerifier( in testSimpleRectLayout()
DLayerTests.java41 .addLayout(R.layout.simple_red_layout, new ViewInitializer() { in testLayerPaintAlpha()
63 .addLayout(R.layout.simple_red_layout, new ViewInitializer() { in testLayerPaintColorFilter()
83 .addLayout(R.layout.simple_red_layout, new ViewInitializer() { in testLayerPaintBlend()
/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()
/cts/tests/tests/uiautomation/src/android/app/uiautomation/cts/
DUiAutomationTestFirstActivity.java34 setContentView(R.layout.ui_automation_test); in onCreate()
42 android.R.layout.simple_list_item_1, cheeses); in onCreate()
DUiAutomationTestSecondActivity.java33 setContentView(R.layout.ui_automation_test); in onCreate()
41 android.R.layout.simple_list_item_1, cheeses); in onCreate()

12345678910>>...14