Home
last modified time | relevance | path

Searched refs:linearLayout (Results 1 – 4 of 4) sorted by relevance

/cts/tests/tests/view/src/android/view/cts/
DLayoutInflaterTest.java229 LinearLayout linearLayout = new LinearLayout(mContext); in testInflate() local
230 linearLayout.setOrientation(LinearLayout.VERTICAL); in testInflate()
231 linearLayout.setHorizontalGravity(Gravity.LEFT); in testInflate()
232 linearLayout.setLayoutParams(new ViewGroup.LayoutParams( in testInflate()
235 assertEquals(0, linearLayout.getChildCount()); in testInflate()
237 linearLayout); in testInflate()
239 assertEquals(1, linearLayout.getChildCount()); in testInflate()
253 LinearLayout linearLayout = new LinearLayout(mContext); in testInflateAttachToRoot() local
254 linearLayout.setOrientation(LinearLayout.VERTICAL); in testInflateAttachToRoot()
255 linearLayout.setHorizontalGravity(Gravity.LEFT); in testInflateAttachToRoot()
[all …]
DView_DefaultFocusHighlightTest.java65 LinearLayout linearLayout = (LinearLayout) activity.findViewById(R.id.linearlayout); in testSettersAndGetters() local
71 assertTrue(linearLayout.getDefaultFocusHighlightEnabled()); in testSettersAndGetters()
77 linearLayout.setDefaultFocusHighlightEnabled(false); in testSettersAndGetters()
83 assertFalse(linearLayout.getDefaultFocusHighlightEnabled()); in testSettersAndGetters()
99 LinearLayout linearLayout = (LinearLayout) activity.findViewById( in testInflating() local
106 assertFalse(linearLayout.getDefaultFocusHighlightEnabled()); in testInflating()
/cts/tests/tests/widget/src/android/widget/cts/
DDigitalClockTest.java87 final LinearLayout linearLayout = (LinearLayout) mActivity.findViewById( in testOnDetachedFromWindow() local
91 linearLayout.addView(digitalClock); in testOnDetachedFromWindow()
94 linearLayout.removeView(digitalClock); in testOnDetachedFromWindow()
102 final LinearLayout linearLayout = (LinearLayout) mActivity.findViewById( in testOnAttachedToWindow() local
105 linearLayout.addView(digitalClock); in testOnAttachedToWindow()
110 linearLayout.removeView(digitalClock); in testOnAttachedToWindow()
DRemoteViewsTest.java730 LinearLayout linearLayout = (LinearLayout) mResult.findViewById(R.id.remoteView_linear); in testSetFloat() local
731 assertTrue(linearLayout.getWeightSum() <= 0.0f); in testSetFloat()
735 assertEquals(0.5f, linearLayout.getWeightSum(), 0.001f); in testSetFloat()