/frameworks/base/tests/graphics/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 | StretchShaderActivity.java | 38 import android.widget.LinearLayout; 68 LinearLayout linearLayout = new LinearLayout(this); in onCreate() 69 linearLayout.setOrientation(LinearLayout.VERTICAL); in onCreate() 238 new LinearLayout.LayoutParams( in onCreate() 244 new LinearLayout.LayoutParams( in onCreate() 245 LinearLayout.LayoutParams.WRAP_CONTENT, in onCreate() 246 LinearLayout.LayoutParams.WRAP_CONTENT in onCreate() 249 new LinearLayout.LayoutParams( in onCreate() 256 new LinearLayout.LayoutParams( in onCreate() 257 LinearLayout.LayoutParams.WRAP_CONTENT, in onCreate() [all …]
|
D | ColorBitmapActivity.java | 43 import android.widget.LinearLayout; 158 LinearLayout linearLayout = new LinearLayout(this); in onCreate() 159 linearLayout.setOrientation(LinearLayout.VERTICAL); in onCreate() 175 LinearLayout spinnerLayout = new LinearLayout(this); in onCreate() 176 spinnerLayout.setOrientation(LinearLayout.HORIZONTAL); in onCreate() 178 spinnerLayout.addView(colorSpaceSpinner, new LinearLayout.LayoutParams( in onCreate() 179 LinearLayout.LayoutParams.WRAP_CONTENT, in onCreate() 180 LinearLayout.LayoutParams.WRAP_CONTENT)); in onCreate() 182 spinnerLayout.addView(gradientColorSpinner, new LinearLayout.LayoutParams( in onCreate() 183 LinearLayout.LayoutParams.WRAP_CONTENT, in onCreate() [all …]
|
D | SurfaceViewAlphaActivity.java | 28 import android.widget.LinearLayout; 59 private void overlapViews(SurfaceView view, LinearLayout parent) { in overlapViews() 88 parent.addView(overlapLayout, new LinearLayout.LayoutParams( in overlapViews() 100 LinearLayout content = new LinearLayout(this); in onCreate() 101 content.setOrientation(LinearLayout.VERTICAL); in onCreate() 129 content.addView(alphaText, new LinearLayout.LayoutParams( in onCreate() 130 LinearLayout.LayoutParams.WRAP_CONTENT, in onCreate() 131 LinearLayout.LayoutParams.WRAP_CONTENT)); in onCreate() 133 content.addView(alphaToggle, new LinearLayout.LayoutParams( in onCreate() 134 LinearLayout.LayoutParams.MATCH_PARENT, in onCreate() [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 | 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; 53 final LinearLayout container1 = findViewById(R.id.container1); in onCreate() 54 final LinearLayout container2 = findViewById(R.id.container2); in onCreate() 55 final LinearLayout container3 = findViewById(R.id.container3); in onCreate() 108 for (LinearLayout layout : linearLayouts) { 113 for (LinearLayout layout : topLayouts) { 139 if (!(view instanceof LinearLayout)) { in collectLinearLayouts() [all …]
|
D | Rotate3dTextActivity.java | 26 import android.widget.LinearLayout; 35 final LinearLayout layout = new LinearLayout(this); in onCreate() 36 layout.setOrientation(LinearLayout.VERTICAL); in onCreate() 52 private static LinearLayout.LayoutParams makeLayoutParams() { in makeLayoutParams() 53 LinearLayout.LayoutParams lp = new LinearLayout.LayoutParams( in makeLayoutParams() 54 LinearLayout.LayoutParams.MATCH_PARENT, 0); in makeLayoutParams()
|
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()
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | CreateViewTest.java | 25 import android.widget.LinearLayout; 47 LinearLayout vert = new LinearLayout(mContext); in testLayout2() 49 new LinearLayout.LayoutParams(MATCH_PARENT, MATCH_PARENT, 0)); in testLayout2() 54 LinearLayout vert = new LinearLayout(mContext); in testLayout3() 57 vert.addView(one, new LinearLayout.LayoutParams(MATCH_PARENT, MATCH_PARENT, 0)); in testLayout3() 60 vert.addView(two, new LinearLayout.LayoutParams(MATCH_PARENT, MATCH_PARENT, 0)); in testLayout3() 63 vert.addView(three, new LinearLayout.LayoutParams(MATCH_PARENT, MATCH_PARENT, 0)); in testLayout3() 66 vert.addView(four, new LinearLayout.LayoutParams(MATCH_PARENT, MATCH_PARENT, 0)); in testLayout3() 69 vert.addView(five, new LinearLayout.LayoutParams(MATCH_PARENT, MATCH_PARENT, 0)); in testLayout3() 72 vert.addView(six, new LinearLayout.LayoutParams(MATCH_PARENT, MATCH_PARENT, 0)); in testLayout3() [all …]
|
/frameworks/base/tests/DpiTest/src/com/google/android/test/dpi/ |
D | DpiTestActivity.java | 36 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/apct-tests/perftests/contentcapture/src/android/view/contentcapture/ |
D | CustomTestActivity.java | 26 import android.widget.LinearLayout; 86 private void createCustomViews(LinearLayout root, int number) { in createCustomViews() 87 LinearLayout horizontalLayout = null; in createCustomViews() 104 private LinearLayout createHorizontalLayout() { in createHorizontalLayout() 105 final LinearLayout layout = new LinearLayout(getApplicationContext()); in createHorizontalLayout() 106 layout.setOrientation(LinearLayout.HORIZONTAL); in createHorizontalLayout() 110 private LinearLayout createItem(Drawable drawable, int index) { in createItem() 111 final LinearLayout group = new LinearLayout(getApplicationContext()); in createItem() 112 group.setOrientation(LinearLayout.VERTICAL); in createItem() 113 group.setLayoutParams(new LinearLayout.LayoutParams(LinearLayout.LayoutParams.WRAP_CONTENT, in createItem() [all …]
|
/frameworks/base/core/tests/coretests/src/android/widget/focus/ |
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 | HorizontalFocusSearch.java | 24 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 | VerticalFocusSearch.java | 25 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 | AdjacentVerticalRectLists.java | 23 import android.widget.LinearLayout; 39 private LinearLayout mLayout; 45 public LinearLayout getLayout() { in getLayout() 65 mLayout = new LinearLayout(this); in onCreate() 66 mLayout.setOrientation(LinearLayout.HORIZONTAL); in onCreate() 71 LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(0, in onCreate()
|
/frameworks/base/tests/UiBench/src/com/android/test/uibench/ |
D | InvalidateTreeActivity.java | 24 import android.widget.LinearLayout; 33 private final ArrayList<LinearLayout> mLayouts = new ArrayList<>(); 37 private void createQuadTree(LinearLayout parent, int remainingDepth) { in createQuadTree() 46 parent.setOrientation(vertical ? LinearLayout.VERTICAL : LinearLayout.HORIZONTAL); in createQuadTree() 49 LinearLayout child = new LinearLayout(this); in createQuadTree() 51 parent.addView(child, new LinearLayout.LayoutParams( in createQuadTree() 70 LinearLayout root = new LinearLayout(this);
|
/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 …]
|
/frameworks/base/core/tests/coretests/src/android/widget/listview/ |
D | ListItemISVAndButton.java | 25 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/packages/SystemUI/src/com/android/systemui/screenrecord/ |
D | ScreenRecordingAdapter.java | 25 import android.widget.LinearLayout; 36 private LinearLayout mSelectedMic; 37 private LinearLayout mSelectedInternal; 38 private LinearLayout mSelectedMicAndInternal; 52 private LinearLayout getOption(int label, int description) { in getOption() 54 LinearLayout layout = (LinearLayout) inflater in getOption() 68 private LinearLayout getSelected(int label) { in getSelected() 70 LinearLayout layout = (LinearLayout) inflater in getSelected()
|
/frameworks/base/core/tests/coretests/src/android/widget/listview/arrowscroll/ |
D | ListItemFocusablesCloseTest.java | 21 import android.widget.LinearLayout; 50 final LinearLayout first = (LinearLayout) mListView.getSelectedView(); in testPreconditions() 68 final LinearLayout first = (LinearLayout) mListView.getSelectedView(); in testChangeFocusWithinItem() 88 final LinearLayout first = (LinearLayout) mListView.getSelectedView(); in testMoveDownToButtonInDifferentSelection() 95 final LinearLayout selectedItem = (LinearLayout) mListView.getSelectedView(); in testMoveDownToButtonInDifferentSelection()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/widget/ |
D | NotificationOptimizedLinearLayoutComparisonTest.java | 33 import android.widget.LinearLayout; 64 private static final int[] ORIENTATIONS = {LinearLayout.VERTICAL, LinearLayout.HORIZONTAL}; 106 final LinearLayout controlContainer = buildLayout(false, controlChildren); in test() 108 final LinearLayout testContainer = buildLayout(true, testChildren); in test() 110 final LinearLayout.LayoutParams firstChildLayoutParams = new LinearLayout.LayoutParams(0, in test() 112 final LinearLayout.LayoutParams secondChildLayoutParams = new LinearLayout.LayoutParams(0, in test() 186 private void executeTest(LinearLayout controlContainer, LinearLayout testContainer, in executeTest() 262 if (orientation == LinearLayout.VERTICAL) { in orientationToString() 264 } else if (orientation == LinearLayout.HORIZONTAL) { in orientationToString() 281 private LinearLayout buildLayout(boolean isNotificationOptimized, List<View> children) { in buildLayout() [all …]
|
/frameworks/base/core/tests/coretests/src/android/widget/scroll/ |
D | ScrollViewButtonsAndLabels.java | 22 import android.widget.LinearLayout; 34 private LinearLayout mLinearLayout; 43 public LinearLayout getLinearLayout() { in getLinearLayout() 71 LinearLayout.LayoutParams p = new LinearLayout.LayoutParams( in onCreate() 72 LinearLayout.LayoutParams.MATCH_PARENT, in onCreate() 73 LinearLayout.LayoutParams.WRAP_CONTENT in onCreate()
|
/frameworks/base/core/tests/coretests/src/android/widget/ |
D | ScrollViewScenario.java | 27 import android.widget.LinearLayout; 45 private LinearLayout mLinearLayout; 176 final LinearLayout ll = new LinearLayout(context); in addVerticalLLOfButtons() 177 ll.setOrientation(LinearLayout.VERTICAL); in addVerticalLLOfButtons() 180 final LinearLayout.LayoutParams lp = in addVerticalLLOfButtons() 181 new LinearLayout.LayoutParams( in addVerticalLLOfButtons() 209 public LinearLayout getLinearLayout() { in getLinearLayout() 245 mLinearLayout = new LinearLayout(this); in onCreate() 246 mLinearLayout.setOrientation(LinearLayout.VERTICAL); in onCreate() 258 final LinearLayout.LayoutParams lp = new LinearLayout.LayoutParams( in onCreate()
|
/frameworks/base/tests/UpdatableSystemFontTest/EmojiRenderingTestApp/src/com/android/emojirenderingtestapp/ |
D | EmojiRenderingTestActivity.java | 25 import android.widget.LinearLayout; 36 LinearLayout container = new LinearLayout(this); in onCreate() 37 container.setOrientation(LinearLayout.VERTICAL); in onCreate() 40 container.addView(emojiTextView, new LinearLayout.LayoutParams(MATCH_PARENT, WRAP_CONTENT)); in onCreate() 44 container.addView(serifTextView, new LinearLayout.LayoutParams(MATCH_PARENT, WRAP_CONTENT)); in onCreate()
|