/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
D | MultiLayersActivity.java | 25 import android.widget.LinearLayout; 33 LinearLayout grid = new LinearLayout(this); in onCreate() 34 grid.setOrientation(LinearLayout.VERTICAL); in onCreate() 36 LinearLayout row1 = new LinearLayout(this); in onCreate() 37 row1.setOrientation(LinearLayout.HORIZONTAL); in onCreate() 38 grid.addView(row1, new LinearLayout.LayoutParams( in onCreate() 39 LinearLayout.LayoutParams.MATCH_PARENT, 0, 1.0f)); in onCreate() 41 LinearLayout row2 = new LinearLayout(this); in onCreate() 42 row2.setOrientation(LinearLayout.HORIZONTAL); in onCreate() 43 grid.addView(row2, new LinearLayout.LayoutParams( in onCreate() [all …]
|
D | TextGammaActivity.java | 29 import android.widget.LinearLayout; 37 final LinearLayout layout = new LinearLayout(this); in onCreate() 38 layout.setOrientation(LinearLayout.VERTICAL); in onCreate() 41 layout.addView(gamma, new LinearLayout.LayoutParams( in onCreate() 42 LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.WRAP_CONTENT in onCreate() 58 layout.addView(image, new LinearLayout.LayoutParams( in onCreate() 59 LinearLayout.LayoutParams.WRAP_CONTENT, in onCreate() 60 LinearLayout.LayoutParams.WRAP_CONTENT in onCreate() 70 static class GammaTextView extends LinearLayout { 88 final LinearLayout layout = new LinearLayout(this); in onCreate() [all …]
|
D | ViewLayerInvalidationActivity.java | 24 import android.widget.LinearLayout; 33 ArrayList<LinearLayout> linearLayouts = new ArrayList<LinearLayout>(); 34 ArrayList<LinearLayout> topLayouts = new ArrayList<LinearLayout>(); 36 LinearLayout container = null; 52 container = (LinearLayout) findViewById(R.id.container); in onCreate() 53 final LinearLayout container1 = (LinearLayout) findViewById(R.id.container1); in onCreate() 54 final LinearLayout container2 = (LinearLayout) findViewById(R.id.container2); in onCreate() 55 final LinearLayout container3 = (LinearLayout) findViewById(R.id.container3); in onCreate() 108 for (LinearLayout layout : linearLayouts) { 113 for (LinearLayout layout : topLayouts) { [all …]
|
D | MarqueeActivity.java | 25 import android.widget.LinearLayout; 34 final LinearLayout linearLayout = new LinearLayout(this); in onCreate() 35 linearLayout.setOrientation(LinearLayout.VERTICAL); in onCreate() 42 linearLayout.addView(text1, new LinearLayout.LayoutParams( in onCreate() 43 100, LinearLayout.LayoutParams.WRAP_CONTENT)); in onCreate() 50 LinearLayout.LayoutParams params = new LinearLayout.LayoutParams( in onCreate() 51 100, LinearLayout.LayoutParams.WRAP_CONTENT); in onCreate()
|
D | DisplayListLayersActivity.java | 29 import android.widget.LinearLayout; 43 LinearLayout root = createContainer(); in onCreate() 53 private Button createButton(final LinearLayout root) { in createButton() 71 private void addChild(LinearLayout root, View child, int width, int height) { in addChild() 72 LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(width, height); in addChild() 82 private LinearLayout createContainer() { in createContainer() 83 LinearLayout layout = new LinearLayout(this); in createContainer() 84 layout.setOrientation(LinearLayout.VERTICAL); in createContainer()
|
D | SmallCircleActivity.java | 26 import android.widget.LinearLayout; 34 final LinearLayout layout = new LinearLayout(this); in onCreate() 35 layout.setOrientation(LinearLayout.VERTICAL); in onCreate() 38 layout.addView(view, new LinearLayout.LayoutParams(PathView.SIZE, PathView.SIZE)); in onCreate() 41 layout.addView(view, new LinearLayout.LayoutParams(PathView.SIZE, PathView.SIZE)); in onCreate()
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | CreateViewTest.java | 26 import android.widget.LinearLayout; 46 LinearLayout vert = new LinearLayout(mContext); in testLayout2() 48 new LinearLayout.LayoutParams(MATCH_PARENT, MATCH_PARENT, 0)); in testLayout2() 53 LinearLayout vert = new LinearLayout(mContext); in testLayout3() 56 vert.addView(one, new LinearLayout.LayoutParams(MATCH_PARENT, MATCH_PARENT, 0)); in testLayout3() 59 vert.addView(two, new LinearLayout.LayoutParams(MATCH_PARENT, MATCH_PARENT, 0)); in testLayout3() 62 vert.addView(three, new LinearLayout.LayoutParams(MATCH_PARENT, MATCH_PARENT, 0)); in testLayout3() 65 vert.addView(four, new LinearLayout.LayoutParams(MATCH_PARENT, MATCH_PARENT, 0)); in testLayout3() 68 vert.addView(five, new LinearLayout.LayoutParams(MATCH_PARENT, MATCH_PARENT, 0)); in testLayout3() 71 vert.addView(six, new LinearLayout.LayoutParams(MATCH_PARENT, MATCH_PARENT, 0)); in testLayout3() [all …]
|
D | BigCache.java | 23 import android.widget.LinearLayout; 39 final LinearLayout testBed = new LinearLayout(this); in onCreate() 40 testBed.setOrientation(LinearLayout.VERTICAL); in onCreate() 52 tiny.setLayoutParams(new LinearLayout.LayoutParams(screenWidth, screenHeight)); in onCreate() 59 large.setLayoutParams(new LinearLayout.LayoutParams(screenWidth, height)); in onCreate()
|
/frameworks/base/tests/DpiTest/src/com/google/android/test/dpi/ |
D | DpiTestActivity.java | 28 import android.widget.LinearLayout; 82 LinearLayout root = new LinearLayout(this); in onCreate() 83 root.setOrientation(LinearLayout.VERTICAL); in onCreate() 85 LinearLayout layout = new LinearLayout(this); in onCreate() 92 layout = new LinearLayout(this); in onCreate() 99 layout = new LinearLayout(this); in onCreate() 106 layout = (LinearLayout)li.inflate(R.layout.image_views, null); in onCreate() 110 layout = (LinearLayout)li.inflate(R.layout.styled_image_views, null); in onCreate() 114 layout = new LinearLayout(this); in onCreate() 121 layout = new LinearLayout(this); in onCreate() [all …]
|
/frameworks/base/core/tests/coretests/src/android/widget/focus/ |
D | VerticalFocusSearch.java | 21 import android.widget.LinearLayout; 34 private LinearLayout mLayout; 43 public LinearLayout getLayout() { in getLayout() 67 mLayout = new LinearLayout(this); in onCreate() 68 mLayout.setOrientation(LinearLayout.VERTICAL); in onCreate() 104 button.setLayoutParams(new LinearLayout.LayoutParams( in makeWide() 118 private Button addSkinny(LinearLayout root, String label, boolean atRight) { in addSkinny() 121 button.setLayoutParams(new LinearLayout.LayoutParams( in addSkinny() 128 filler.setLayoutParams(new LinearLayout.LayoutParams( in addSkinny() 133 LinearLayout ll = new LinearLayout(this); in addSkinny() [all …]
|
D | HorizontalFocusSearch.java | 20 import android.widget.LinearLayout; 29 private LinearLayout mLayout; 37 public LinearLayout getLayout() { in getLayout() 61 mLayout = new LinearLayout(this); in onCreate() 62 mLayout.setOrientation(LinearLayout.HORIZONTAL); in onCreate() 96 button.setLayoutParams(new LinearLayout.LayoutParams( in makeTall() 102 private Button addShort(LinearLayout root, String label, boolean atBottom) { in addShort() 105 button.setLayoutParams(new LinearLayout.LayoutParams( in addShort() 112 filler.setLayoutParams(new LinearLayout.LayoutParams( in addShort() 117 LinearLayout ll = new LinearLayout(this); in addShort() [all …]
|
D | GoneParentFocusedChild.java | 25 import android.widget.LinearLayout; 33 private LinearLayout mGoneGroup; 37 private LinearLayout mLayout; 43 public LinearLayout getLayout() { in getLayout() 47 public LinearLayout getGoneGroup() { in getGoneGroup() 58 mLayout = new LinearLayout(this); in onCreate() 59 mLayout.setOrientation(LinearLayout.HORIZONTAL); in onCreate() 65 mGoneGroup = new LinearLayout(this); in onCreate() 66 mGoneGroup.setOrientation(LinearLayout.HORIZONTAL); in onCreate() 72 mButton.setLayoutParams(new LinearLayout.LayoutParams( in onCreate()
|
D | AdjacentVerticalRectLists.java | 23 import android.widget.LinearLayout; 40 private LinearLayout mLayout; 46 public LinearLayout getLayout() { in getLayout() 66 mLayout = new LinearLayout(this); in onCreate() 67 mLayout.setOrientation(LinearLayout.HORIZONTAL); in onCreate() 72 LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(0, in onCreate()
|
/frameworks/base/core/tests/coretests/src/android/util/ |
D | ListItemFactory.java | 25 import android.widget.LinearLayout; 48 final LinearLayout ll = new LinearLayout(context); in twoButtonsSeparatedByFiller() 49 ll.setOrientation(LinearLayout.VERTICAL); in twoButtonsSeparatedByFiller() 51 final LinearLayout.LayoutParams buttonLp = in twoButtonsSeparatedByFiller() 52 new LinearLayout.LayoutParams( in twoButtonsSeparatedByFiller() 63 middleFiller.setLayoutParams(new LinearLayout.LayoutParams( in twoButtonsSeparatedByFiller() 93 final LinearLayout ll = new LinearLayout(context); in horizontalButtonSlots() 94 ll.setOrientation(LinearLayout.HORIZONTAL); in horizontalButtonSlots() 96 final LinearLayout.LayoutParams lp in horizontalButtonSlots() 97 = new LinearLayout.LayoutParams(0, desiredHeight); in horizontalButtonSlots() [all …]
|
D | ScrollViewScenario.java | 28 import android.widget.LinearLayout; 44 private LinearLayout mLinearLayout; 175 final LinearLayout ll = new LinearLayout(context); in addVerticalLLOfButtons() 176 ll.setOrientation(LinearLayout.VERTICAL); in addVerticalLLOfButtons() 179 final LinearLayout.LayoutParams lp = in addVerticalLLOfButtons() 180 new LinearLayout.LayoutParams( in addVerticalLLOfButtons() 208 public LinearLayout getLinearLayout() { in getLinearLayout() 244 mLinearLayout = new LinearLayout(this); in onCreate() 245 mLinearLayout.setOrientation(LinearLayout.VERTICAL); in onCreate() 257 final LinearLayout.LayoutParams lp = new LinearLayout.LayoutParams( in onCreate()
|
/frameworks/base/core/tests/coretests/src/android/widget/listview/ |
D | ListItemISVAndButton.java | 23 import android.widget.LinearLayout; 45 final LinearLayout ll = new LinearLayout(context); in createView() 46 ll.setOrientation(LinearLayout.VERTICAL); in createView() 49 isv.setLayoutParams(new LinearLayout.LayoutParams( in createView() 54 final LinearLayout.LayoutParams buttonLp = in createView() 55 new LinearLayout.LayoutParams( in createView() 65 filler.setLayoutParams(new LinearLayout.LayoutParams( in createView()
|
/frameworks/base/core/tests/coretests/src/android/widget/scroll/ |
D | ScrollViewButtonsAndLabels.java | 23 import android.widget.LinearLayout; 35 private LinearLayout mLinearLayout; 44 public LinearLayout getLinearLayout() { in getLinearLayout() 70 mLinearLayout = (LinearLayout) findViewById(R.id.layout); in onCreate() 72 LinearLayout.LayoutParams p = new LinearLayout.LayoutParams( in onCreate() 73 LinearLayout.LayoutParams.MATCH_PARENT, in onCreate() 74 LinearLayout.LayoutParams.WRAP_CONTENT in onCreate()
|
/frameworks/base/core/tests/coretests/src/android/widget/listview/arrowscroll/ |
D | ListItemFocusablesCloseTest.java | 22 import android.widget.LinearLayout; 49 final LinearLayout first = (LinearLayout) mListView.getSelectedView(); in testPreconditions() 67 final LinearLayout first = (LinearLayout) mListView.getSelectedView(); in testChangeFocusWithinItem() 87 final LinearLayout first = (LinearLayout) mListView.getSelectedView(); in testMoveDownToButtonInDifferentSelection() 94 final LinearLayout selectedItem = (LinearLayout) mListView.getSelectedView(); in testMoveDownToButtonInDifferentSelection()
|
/frameworks/base/tests/GridLayoutTest/src/com/android/test/layout/ |
D | LinearLayoutTest.java | 22 import android.widget.LinearLayout; 24 import static android.widget.LinearLayout.*; 25 import static android.widget.LinearLayout.LayoutParams.*; 29 LinearLayout container = new LinearLayout(context); in create() 30 container.setOrientation(LinearLayout.VERTICAL); in create()
|
/frameworks/base/tests/ImfTest/src/com/android/imftest/samples/ |
D | BottomEditTextActivityPanScan.java | 24 import android.widget.LinearLayout; 44 mRootView = new LinearLayout(this); in onCreate() 45 ((LinearLayout) mRootView).setOrientation(LinearLayout.VERTICAL); in onCreate() 47 …View view = getLayoutInflater().inflate(R.layout.one_edit_text_activity, ((LinearLayout) mRootView… in onCreate() 49 ((LinearLayout) mRootView).addView(view); in onCreate()
|
D | BigEditTextActivityNonScrollablePanScan.java | 26 import android.widget.LinearLayout; 39 mRootView = new LinearLayout(this); in onCreate() 40 ((LinearLayout) mRootView).setOrientation(LinearLayout.VERTICAL); in onCreate() 46 R.layout.full_screen_edit_text, ((LinearLayout) mRootView), false); in onCreate() 48 ((LinearLayout) mRootView).addView(view); in onCreate()
|
D | BottomEditTextActivityResize.java | 24 import android.widget.LinearLayout; 44 mRootView = new LinearLayout(this); in onCreate() 45 ((LinearLayout) mRootView).setOrientation(LinearLayout.VERTICAL); in onCreate() 47 …View view = getLayoutInflater().inflate(R.layout.one_edit_text_activity, ((LinearLayout) mRootView… in onCreate() 49 ((LinearLayout) mRootView).addView(view); in onCreate()
|
D | BigEditTextActivityNonScrollableResize.java | 26 import android.widget.LinearLayout; 39 mRootView = new LinearLayout(this); in onCreate() 40 ((LinearLayout) mRootView).setOrientation(LinearLayout.VERTICAL); in onCreate() 46 R.layout.full_screen_edit_text, ((LinearLayout) mRootView), false); in onCreate() 48 ((LinearLayout) mRootView).addView(view); in onCreate()
|
D | DialogActivity.java | 23 import android.widget.LinearLayout; 34 private LinearLayout mLayout; 46 mLayout = new LinearLayout(this); in onCreate() 47 mLayout.setOrientation(LinearLayout.VERTICAL); in onCreate() 96 LinearLayout layout; in createDialog() 97 layout = new LinearLayout(this); in createDialog() 98 layout.setOrientation(LinearLayout.VERTICAL); in createDialog()
|
/frameworks/base/media/tests/MediaDump/src/com/android/mediadump/ |
D | VideoDumpActivity.java | 31 import android.widget.LinearLayout; 71 LinearLayout mainLayout = new LinearLayout(this); in createView() 72 mainLayout.addView(mVideoView, new LinearLayout.LayoutParams( in createView() 73 LinearLayout.LayoutParams.MATCH_PARENT, in createView() 74 LinearLayout.LayoutParams.MATCH_PARENT)); in createView()
|