/frameworks/base/core/java/android/text/style/ |
H A D | IconMarginSpan.java | 45 boolean first, Layout layout) { 47 int itop = layout.getLineTop(layout.getLineForOffset(st)); 42 drawLeadingMargin(Canvas c, Paint p, int x, int dir, int top, int baseline, int bottom, CharSequence text, int start, int end, boolean first, Layout layout) argument
|
H A D | LeadingMarginSpan.java | 62 * @param layout the layout containing this line 68 boolean first, Layout layout); 141 boolean first, Layout layout) { 64 drawLeadingMargin(Canvas c, Paint p, int x, int dir, int top, int baseline, int bottom, CharSequence text, int start, int end, boolean first, Layout layout) argument 137 drawLeadingMargin(Canvas c, Paint p, int x, int dir, int top, int baseline, int bottom, CharSequence text, int start, int end, boolean first, Layout layout) argument
|
H A D | QuoteSpan.java | 69 boolean first, Layout layout) { 66 drawLeadingMargin(Canvas c, Paint p, int x, int dir, int top, int baseline, int bottom, CharSequence text, int start, int end, boolean first, Layout layout) argument
|
/frameworks/base/core/tests/coretests/src/android/widget/layout/frame/ |
H A D | FrameLayoutGravityTest.java | 17 package android.widget.layout.frame; 24 import android.widget.layout.frame.FrameLayoutGravity;
|
/frameworks/base/services/java/com/android/server/wm/ |
H A D | FakeWindowImpl.java | 74 void layout(int dw, int dh) { method in class:FakeWindowImpl
|
/frameworks/base/tests/GridLayoutTest/src/com/android/test/layout/ |
H A D | AlignmentTest.java | 17 package com.android.test.layout; 106 p.layout(0, 0, 1000 + (i % 2), 500 + (i % 2));
|
/frameworks/base/core/java/android/text/method/ |
H A D | ArrowKeyMovementMethod.java | 38 private static int getCurrentLineTop(Spannable buffer, Layout layout) { argument 39 return layout.getLineTop(layout.getLineForOffset(Selection.getSelectionEnd(buffer))); 70 final Layout layout = widget.getLayout(); 72 return Selection.extendLeft(buffer, layout); 74 return Selection.moveLeft(buffer, layout); 80 final Layout layout = widget.getLayout(); 82 return Selection.extendRight(buffer, layout); 84 return Selection.moveRight(buffer, layout); 90 final Layout layout [all...] |
/frameworks/base/core/java/android/widget/ |
H A D | SimpleCursorAdapter.java | 77 public SimpleCursorAdapter(Context context, int layout, Cursor c, String[] from, int[] to) { argument 78 super(context, layout, c); 89 * @param layout resource identifier of a layout file that defines the views 90 * for this list item. The layout file should include at least 102 public SimpleCursorAdapter(Context context, int layout, Cursor c, String[] from, argument 104 super(context, layout, c, flags); 348 // rescan columns in case cursor layout is different
|
H A D | AbsSpinner.java | 77 R.layout.simple_spinner_item, entries); 78 adapter.setDropDownViewResource(R.layout.simple_spinner_dropdown_item); 196 // Put in recycler for re-measuring and/or layout 292 layout(delta, animate); 297 abstract void layout(int delta, boolean animate); method in class:AbsSpinner 309 * Override to prevent spamming ourselves with layout requests
|
H A D | Spinner.java | 305 layout(0, false); 316 void layout(int delta, boolean animate) { method in class:Spinner 369 * there is enough information in the view's layout parameters to animate 400 * and fill out its layout paramters. 406 // Respect layout params that are already in the view. Otherwise 442 child.layout(childLeft, childTop, childRight, childBottom);
|
H A D | Gallery.java | 48 * layout parameters type. 87 * Left most edge of a child seen so far during layout. 92 * Right most edge of a child seen so far during layout. 342 * Remember that we are in layout to prevent more layout request from 346 layout(0, false); 594 * We layout rarely, most of the time {@link #trackMotionScroll(int)} takes 602 void layout(int delta, boolean animate) { method in class:Gallery 624 // All views go in recycler while we are in layout 810 * is enough information in the view's layout parameter [all...] |
H A D | RemoteViewsAdapter.java | 259 // Remove all the children of this layout first 282 public void add(int position, RemoteViewsFrameLayout layout) { argument 295 refs.add(layout); 395 RemoteViewsFrameLayout layout = new RemoteViewsFrameLayout(context); 407 layout.addView(loadingView); 436 com.android.internal.R.layout.remote_views_adapter_default_loading_view, 437 layout, false); 441 layout.addView(loadingTextView); 445 return layout; 952 RemoteViewsFrameLayout layout [all...] |
H A D | GridLayout.java | 46 * A layout that places its children in a rectangular <em>grid</em>. 61 * {@link GridLayout.LayoutParams#columnSpec columnSpec} layout parameters. 67 * overlap after the layout operation completes. 87 * layout parameters. When the 92 * to the appropriate layout parameter. 103 * {@link LayoutParams#setGravity(int) gravity} property of the child's layout parameters). 138 * layout parameters used by GridLayout. 298 * they are not specified by a component's layout parameters. 334 * they are not specified by a component's layout parameters. 367 * they are not specified by a component's layout parameter 1602 public void layout(int size) { method in class:GridLayout.Axis [all...] |
H A D | TextView.java | 378 * extensively in the same layout. This mode indicates how the marquee 385 * the layout that should be used when the mode switches. 460 // the layout always wants it to be left. 1295 * than this height, and the layout may contain additional first- 3067 // Display the error later, after the first layout pass 3325 * has changed and that it needs to invalidate and re-layout. 3999 com.android.internal.R.layout.textview_hint, null); 4446 // a screen rotation) since layout is not yet initialized at that point. 4484 // Resolve drawables as the layout direction has been resolved 4845 Layout layout 6406 desired(Layout layout) argument 6630 getDesiredHeight(Layout layout, boolean cap) argument [all...] |
/frameworks/base/core/tests/coretests/src/android/widget/ |
H A D | SimpleCursorAdapterTest.java | 57 mLayout = com.android.internal.R.layout.simple_list_item_2; 144 * Test changeCursor() with differing column layout. This confirms that the Adapter can 255 public TestSimpleCursorAdapter(Context context, int layout, Cursor c, argument 257 super(context, layout, c, from, to);
|
/frameworks/base/tests/DpiTest/src/com/google/android/test/dpi/ |
H A D | DpiTestActivity.java | 85 LinearLayout layout = new LinearLayout(this); 86 addBitmapDrawable(layout, R.drawable.logo120dpi, true); 87 addBitmapDrawable(layout, R.drawable.logo160dpi, true); 88 addBitmapDrawable(layout, R.drawable.logo240dpi, true); 90 addChildToRoot(root, layout); 92 layout = new LinearLayout(this); 93 addBitmapDrawable(layout, R.drawable.logo120dpi, false); 94 addBitmapDrawable(layout, R.drawable.logo160dpi, false); 95 addBitmapDrawable(layout, R.drawable.logo240dpi, false); 97 addChildToRoot(root, layout); 159 addChildToRoot(LinearLayout root, LinearLayout layout) argument 164 addBitmapDrawable(LinearLayout layout, int resource, boolean scale) argument 179 addResourceDrawable(LinearLayout layout, int resource) argument 190 addCanvasBitmap(LinearLayout layout, int resource, boolean scale) argument 201 addNinePatchResourceDrawable(LinearLayout layout, int resource) argument [all...] |
/frameworks/base/core/java/android/text/ |
H A D | Selection.java | 114 * Moving the selection within the layout 121 public static boolean moveUp(Spannable text, Layout layout) { argument 137 int line = layout.getLineForOffset(end); 142 if (layout.getParagraphDirection(line) == 143 layout.getParagraphDirection(line - 1)) { 144 float h = layout.getPrimaryHorizontal(end); 145 move = layout.getOffsetForHorizontal(line - 1, h); 147 move = layout.getLineStart(line - 1); 162 public static boolean moveDown(Spannable text, Layout layout) { argument 178 int line = layout 204 moveLeft(Spannable text, Layout layout) argument 229 moveRight(Spannable text, Layout layout) argument 252 extendUp(Spannable text, Layout layout) argument 281 extendDown(Spannable text, Layout layout) argument 310 extendLeft(Spannable text, Layout layout) argument 326 extendRight(Spannable text, Layout layout) argument 338 extendToLeftEdge(Spannable text, Layout layout) argument 344 extendToRightEdge(Spannable text, Layout layout) argument 350 moveToLeftEdge(Spannable text, Layout layout) argument 356 moveToRightEdge(Spannable text, Layout layout) argument 398 findEdge(Spannable text, Layout layout, int dir) argument 415 chooseHorizontal(Layout layout, int direction, int off1, int off2) argument [all...] |
H A D | DynamicLayout.java | 26 * DynamicLayout is a text layout that updates itself as the text is edited. 27 * <p>This is used by widgets to control text layout. You should not need 39 * Make a layout for the specified text that will be updated as 52 * Make a layout for the transformed text (password transformation 66 * Make a layout for the transformed text (password transformation 83 * Make a layout for the transformed text (password transformation 122 * This is annoying, but we can't refer to the layout until 257 // find affected region of old layout 268 // generate new layout for affected text 289 // If the new layout ha 417 ChangeWatcher(DynamicLayout layout) argument [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/recent/ |
H A D | RecentsScrollViewPerformanceHelper.java | 74 RecentsCallback callback, LinearLayout layout, boolean hardwareAccelerated) { 83 mLinearLayout = layout; 73 onAttachedToWindowCallback( RecentsCallback callback, LinearLayout layout, boolean hardwareAccelerated) argument
|
/frameworks/support/v4/java/android/support/v4/widget/ |
H A D | SimpleCursorAdapter.java | 62 public SimpleCursorAdapter(Context context, int layout, Cursor c, String[] from, int[] to) { argument 63 super(context, layout, c); 74 * @param layout resource identifier of a layout file that defines the views 75 * for this list item. The layout file should include at least 87 public SimpleCursorAdapter(Context context, int layout, Cursor c, String[] from, argument 89 super(context, layout, c, flags); 327 // rescan columns in case cursor layout is different
|
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | SlidingTab.java | 333 void layout(int l, int t, int r, int b, int alignment) { method in class:SlidingTab.Slider 356 tab.layout(0, top, handleWidth, bottom); 357 text.layout(0 - parentWidth, top, 0, bottom); 359 target.layout(leftTarget, targetTop, leftTarget + targetWidth, targetBottom); 362 tab.layout(parentWidth - handleWidth, top, parentWidth, bottom); 363 text.layout(parentWidth, top, parentWidth + parentWidth, bottom); 364 target.layout(rightTarget, targetTop, rightTarget + targetWidth, targetBottom); 375 tab.layout(left, 0, right, handleHeight); 376 text.layout(left, 0 - parentHeight, right, 0); 377 target.layout(targetLef [all...] |
/frameworks/ex/chips/src/com/android/ex/chips/ |
H A D | RecipientEditTextView.java | 410 private Bitmap createSelectedChip(RecipientEntry contact, TextPaint paint, Layout layout) { argument 452 private Bitmap createUnselectedChip(RecipientEntry contact, TextPaint paint, Layout layout) { argument 544 Layout layout = getLayout(); 552 tmpBitmap = createSelectedChip(contact, paint, layout); 555 tmpBitmap = createUnselectedChip(contact, paint, layout); 1574 Layout layout = getLayout(); 1575 if (layout != null) { 1576 adjustedHeight -= layout.getLineDescent(0);
|
/frameworks/base/core/java/android/view/ |
H A D | ViewGroup.java | 60 * Also see {@link LayoutParams} for layout attributes. 66 * <a href="{@docRoot}guide/topics/ui/declaring-layout.html">XML Layouts</a> developer 183 // When set, dispatchDraw() will run the layout animation and unset the flag 186 // When set, there is either no layout animation on the ViewGroup or the layout 195 // When set, this ViewGroup caches its children in a Bitmap before starting a layout animation 200 // layout animation; this avoid clobbering the hierarchy 201 // Automatically set when the layout animation starts, depending on the animation's 210 // This flag is set when the layout animation is over (after FLAG_ANIMATION_DONE is set) 357 // Used to animate add/remove changes in layout 4222 public final void layout(int l, int t, int r, int b) { method in class:ViewGroup [all...] |
H A D | View.java | 94 * their layout properties. 107 * either from code or by specifying a tree of views in one or more XML layout 118 * properties that are known at build time can be set in the XML layout 160 * inflated from a layout file. The second form should parse and apply 161 * any attributes defined in the layout file. 258 * assigned in the layout XML files, and are used to find specific views within 261 * <li>Define a Button in the layout file and assign it a unique ID. 327 * after layout. These values may, but do not have to, be different from the 353 * Layout is a two pass process: a measure pass and a layout pass. The measuring 358 * {@link #layout(in 11267 public void layout(int l, int t, int r, int b) { method in class:View [all...] |