Home
last modified time | relevance | path

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

/cts/tests/tests/view/src/android/view/cts/
DLayoutInflaterTest.java231 LinearLayout linearLayout = new LinearLayout(mContext); in testInflate() local
232 linearLayout.setOrientation(LinearLayout.VERTICAL); in testInflate()
233 linearLayout.setHorizontalGravity(Gravity.LEFT); in testInflate()
234 linearLayout.setLayoutParams(new ViewGroup.LayoutParams( in testInflate()
237 assertEquals(0, linearLayout.getChildCount()); in testInflate()
239 linearLayout); in testInflate()
241 assertEquals(1, linearLayout.getChildCount()); in testInflate()
255 LinearLayout linearLayout = new LinearLayout(mContext); in testInflateAttachToRoot() local
256 linearLayout.setOrientation(LinearLayout.VERTICAL); in testInflateAttachToRoot()
257 linearLayout.setHorizontalGravity(Gravity.LEFT); in testInflateAttachToRoot()
[all …]
DView_DefaultFocusHighlightTest.java76 LinearLayout linearLayout = (LinearLayout) activity.findViewById(R.id.linearlayout); in testSettersAndGetters() local
82 assertTrue(linearLayout.getDefaultFocusHighlightEnabled()); in testSettersAndGetters()
88 linearLayout.setDefaultFocusHighlightEnabled(false); in testSettersAndGetters()
94 assertFalse(linearLayout.getDefaultFocusHighlightEnabled()); in testSettersAndGetters()
110 LinearLayout linearLayout = (LinearLayout) activity.findViewById( in testInflating() local
117 assertFalse(linearLayout.getDefaultFocusHighlightEnabled()); in testInflating()
/cts/tests/tests/widget/src/android/widget/cts/
DDigitalClockTest.java96 final LinearLayout linearLayout = (LinearLayout) mActivity.findViewById( in testOnDetachedFromWindow() local
100 linearLayout.addView(digitalClock); in testOnDetachedFromWindow()
103 linearLayout.removeView(digitalClock); in testOnDetachedFromWindow()
111 final LinearLayout linearLayout = (LinearLayout) mActivity.findViewById( in testOnAttachedToWindow() local
114 linearLayout.addView(digitalClock); in testOnAttachedToWindow()
119 linearLayout.removeView(digitalClock); in testOnAttachedToWindow()
DRemoteViewsTest.java1405 LinearLayout linearLayout = (LinearLayout) mResult.findViewById(R.id.remoteView_linear); in testSetFloat() local
1406 assertTrue(linearLayout.getWeightSum() <= 0.0f); in testSetFloat()
1410 assertEquals(0.5f, linearLayout.getWeightSum(), 0.001f); in testSetFloat()
/cts/hostsidetests/appsecurity/test-apps/IsolatedSplitApp/feature_c/src/com/android/cts/isolatedsplitapp/feature_c/
DFeatureCActivity.java28 final LinearLayout linearLayout = findViewById( in onCreate() local
30 getLayoutInflater().inflate(R.layout.feature_c_textview, linearLayout); in onCreate()
/cts/hostsidetests/appsecurity/test-apps/IsolatedSplitApp/feature_a/src/com/android/cts/isolatedsplitapp/feature_a/
DFeatureAActivity.java28 final LinearLayout linearLayout = findViewById( in onCreate() local
30 getLayoutInflater().inflate(R.layout.feature_a_textview, linearLayout); in onCreate()
/cts/hostsidetests/appsecurity/test-apps/IsolatedSplitApp/feature_b/src/com/android/cts/isolatedsplitapp/feature_b/
DFeatureBActivity.java28 final LinearLayout linearLayout = findViewById( in onCreate() local
30 getLayoutInflater().inflate(R.layout.feature_b_textview, linearLayout); in onCreate()
/cts/tests/framework/base/windowmanager/src/android/server/wm/display/
DDisplayHashManagerTest.java408 LinearLayout linearLayout = new LinearLayout(mActivity); in testGenerateAndVerifyDisplayHash_MultiColor() local
409 linearLayout.setOrientation(VERTICAL); in testGenerateAndVerifyDisplayHash_MultiColor()
419 linearLayout.addView(blueView, blueParams); in testGenerateAndVerifyDisplayHash_MultiColor()
420 linearLayout.addView(redView, redParams); in testGenerateAndVerifyDisplayHash_MultiColor()
421 mTestView = linearLayout; in testGenerateAndVerifyDisplayHash_MultiColor()