/frameworks/support/v7/appcompat/src/android/support/v7/internal/app/ |
H A D | WindowDecorActionBar.java | 71 * by devices of all screen sizes as part of the window decor layout. 190 public WindowDecorActionBar(View layout) { argument 191 assert layout.isInEditMode(); 192 init(layout); 208 "with a compatible window decor layout"); 264 // Switch tab layout configuration if needed 965 // apps better anticipate visibility and layout behavior.
|
/frameworks/support/v7/appcompat/tests/src/android/support/v7/app/ |
H A D | LayoutInflaterFactoryTestCase.java | 50 View view = inflater.inflate(R.layout.layout_android_theme, null); 66 View view = inflater.inflate(R.layout.layout_app_theme, null); 74 testAppCompatWidgetInflation(R.layout.layout_spinner, AppCompatSpinner.class); 79 testAppCompatWidgetInflation(R.layout.layout_edittext, AppCompatEditText.class); 84 testAppCompatWidgetInflation(R.layout.layout_button, AppCompatButton.class); 89 testAppCompatWidgetInflation(R.layout.layout_radiobutton, AppCompatRadioButton.class); 94 testAppCompatWidgetInflation(R.layout.layout_checkbox, AppCompatCheckBox.class); 99 testAppCompatWidgetInflation(R.layout.layout_actv, AppCompatAutoCompleteTextView.class); 104 testAppCompatWidgetInflation(R.layout.layout_mactv, 110 testAppCompatWidgetInflation(R.layout 113 testAppCompatWidgetInflation(final int layout, final Class<?> expectedClass) argument [all...] |
/frameworks/support/v7/gridlayout/src/android/support/v7/widget/ |
H A D | GridLayout.java | 52 * A layout that places its children in a rectangular <em>grid</em>. 67 * {@link GridLayout.LayoutParams#columnSpec columnSpec} layout parameters. 73 * overlap after the layout operation completes. 93 * layout parameters. When the 98 * to the appropriate layout parameter. 110 * {@link LayoutParams#setGravity(int) gravity} property of the child's layout parameters. 128 * and <em>bottom</em> edges. To be more precise, GridLayout treats each of its layout 130 * given axis. During layout, GridLayout solves the constraints so as to return the unique 136 * For layout purposes, GridLayout treats views whose visibility status is 141 * view has no effect on the layout an 1753 public void layout(int size) { method in class:GridLayout.Axis [all...] |
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/ |
H A D | RecyclerView.java | 89 * later. This can drastically improve performance by skipping initial layout inflation 92 * state during layout. Scrap views may be reused without becoming fully detached 102 * {@link LayoutManager} to be able to detect data set changes in batches during a layout 109 * <li>layout position: Position of an item in the latest layout calculation. This is the 116 * </code> events and calculating the updated layout. 119 * layout calculation (e.g. {@link ViewHolder#getLayoutPosition()}, 121 * last layout calculation. You can rely on these positions to be consistent with what user is 129 * work with up-to-date adapter positions even if they may not have been reflected to layout yet. 132 * adapter positions if {@link Adapter#notifyDataSetChanged()} has been called and new layout ha 949 setLayoutManager(LayoutManager layout) argument [all...] |
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/ |
H A D | RecyclerViewBasicTest.java | 51 private void layout() { method in class:RecyclerViewBasicTest 52 mRecyclerView.layout(0, 0, 320, 320); 62 layout(); 63 assertEquals("layout manager should not be called if there is no adapter attached", 75 layout(); 81 layout(); 88 layout(); 95 layout(); 102 layout(); 109 layout(); [all...] |
/frameworks/support/design/src/android/support/design/widget/ |
H A D | AppBarLayout.java | 48 * {@link LayoutParams#setScrollFlags(int)} and the associated layout xml attribute: 94 * @see <a href="http://www.google.com/design/spec/layout/structure.html#structure-app-bar"> 95 * http://www.google.com/design/spec/layout/structure.html#structure-app-bar</a> 111 * Called when the {@link AppBarLayout}'s layout offset has been changed. This allows 231 * <p>As with {@link AppBarLayout}'s scrolling, this method relies on this layout being a 234 * @param expanded true if the layout should be fully expanded, false if it should 246 * <p>As with {@link AppBarLayout}'s scrolling, this method relies on this layout being a 249 * @param expanded true if the layout should be fully expanded, false if it should 422 // If this layout has a min height, use it (doubled) 892 private boolean fling(CoordinatorLayout coordinatorLayout, AppBarLayout layout, in argument 922 FlingRunnable(CoordinatorLayout parent, AppBarLayout layout) argument 1038 dispatchOffsetUpdates(AppBarLayout layout) argument 1051 interpolateOffset(AppBarLayout layout, final int offset) argument [all...] |
H A D | CollapsingToolbarLayout.java | 54 * A title which is larger when the layout is fully visible but collapses and becomes smaller as 55 * the layout is scrolled off screen. You can set the title to display via 69 * Child views can opt to be scrolled within this layout in a parallax fashion. 75 * collapsing as it allows the {@link Toolbar} to be fixed in place even though this layout is 855 public void onOffsetChanged(AppBarLayout layout, int verticalOffset) { argument 859 final int scrollRange = layout.getTotalScrollRange(); 901 ViewCompat.setElevation(layout, layout.getTargetElevation()); 904 ViewCompat.setElevation(layout, 0f);
|
/frameworks/support/v4/java/android/support/v4/widget/ |
H A D | ResourceCursorAdapter.java | 48 * @param layout resource identifier of a layout file that defines the views 53 public ResourceCursorAdapter(Context context, int layout, Cursor c) { argument 55 mLayout = mDropDownLayout = layout; 67 * @param layout resource identifier of a layout file that defines the views 75 public ResourceCursorAdapter(Context context, int layout, Cursor c, boolean autoRequery) { argument 77 mLayout = mDropDownLayout = layout; 85 * @param layout Resource identifier of a layout fil 92 ResourceCursorAdapter(Context context, int layout, Cursor c, int flags) argument 119 setViewResource(int layout) argument [all...] |
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/opt/setupwizard/library/test/src/com/android/setupwizardlib/test/ |
H A D | SetupWizardLayoutTests.java | 46 SetupWizardLayout layout = new SetupWizardLayout(mContext); 47 assertDefaultTemplateInflated(layout); 52 SetupWizardLayout layout = new SetupWizardLayout(mContext); 53 TextView title = (TextView) layout.findViewById(R.id.suw_layout_title); 54 layout.setHeaderText("Abracadabra"); 60 SetupWizardLayout layout = new SetupWizardLayout(mContext); 63 layout.addView(tv); 64 assertDefaultTemplateInflated(layout); 65 View view = layout.findViewById(R.id.test_view_id); 72 SetupWizardLayout layout 146 assertDefaultTemplateInflated(SetupWizardLayout layout) argument [all...] |
H A D | SetupWizardListLayoutTests.java | 46 SetupWizardListLayout layout = new SetupWizardListLayout(mContext); 47 assertListTemplateInflated(layout); 52 SetupWizardListLayout layout = new SetupWizardListLayout(mContext); 55 layout.addView(tv); 65 SetupWizardListLayout layout = (SetupWizardListLayout) 66 inflater.inflate(R.layout.test_list_layout, null); 67 assertListTemplateInflated(layout); 72 final SetupWizardListLayout layout = new SetupWizardListLayout(mContext); 73 layout.showProgressBar(); 74 assertTrue("Progress bar should be shown", layout 80 assertListTemplateInflated(SetupWizardLayout layout) argument [all...] |
/frameworks/minikin/libs/minikin/ |
H A D | Layout.cpp | 128 void doLayout(Layout* layout, LayoutContext* ctx, const FontCollection* collection) const { argument 129 layout->setFontCollection(collection); 130 layout->mAdvances.resize(mCount, 0); 132 layout->doLayoutRun(mChars, mStart, mCount, mNchars, mIsRtl, ctx); 164 Layout* layout = mCache.get(key); local 165 if (layout == NULL) { 167 layout = new Layout(); 168 key.doLayout(layout, ctx, collection); 169 mCache.put(key, layout); 171 return layout; 651 Layout layout; local 655 Layout* layout = cache.get(key, ctx, mCollection); local [all...] |
H A D | LineBreaker.cpp | 133 Layout layout; // performance TODO: move layout to self object to reduce allocation cost? local 139 layout.setFontCollection(typeface); 140 layout.doLayout(mTextBuf.data(), start, end - start, mTextBuf.size(), bidiFlags, style, 142 layout.getAdvances(mCharWidths.data() + start); 143 width = layout.getAdvance(); 203 layout.doLayout(mTextBuf.data(), lastBreak, j - lastBreak, 205 ParaWidth hyphPostBreak = lastBreakWidth + layout.getAdvance(); 207 layout.doLayout(mTextBuf.data(), j, wordEnd - j, 209 ParaWidth hyphPreBreak = postBreak - layout [all...] |
H A D | Measurement.cpp | 28 // These could be considered helper methods of layout, but need only be loosely coupled, so 31 static float getRunAdvance(Layout& layout, const uint16_t* buf, size_t layoutStart, size_t start, argument 37 float charAdvance = layout.getCharAdvance(i - layoutStart); 44 if (offset < start + count && layout.getCharAdvance(offset - layoutStart) == 0.0f) { 50 if (layout.getCharAdvance(nextCluster - layoutStart) != 0.0f) break; 70 float getRunAdvance(Layout& layout, const uint16_t* buf, size_t start, size_t count, argument 72 return getRunAdvance(layout, buf, start, start, count, offset); 83 size_t getOffsetForAdvance(Layout& layout, const uint16_t* buf, size_t start, size_t count, argument 92 float width = layout.getCharAdvance(i - start); 106 // "getRunAdvance(layout, bu [all...] |
/frameworks/minikin/sample/ |
H A D | example.cpp | 17 // This is a test program that uses Minikin to layout and draw some text. 84 Layout layout; local 85 layout.setFontCollection(collection); 92 layout.doLayout(icuText.getBuffer(), 0, icuText.length(), icuText.length(), bidiFlags, fontStyle, paint); 93 layout.dump(); 95 layout.draw(&bitmap, 10, 40, 32);
|
H A D | example_skia.cpp | 17 // This is a test program that uses Minikin to layout and draw some text. 80 void drawToSkia(SkCanvas *canvas, SkPaint *paint, Layout *layout, float x, float y) { argument 81 size_t nGlyphs = layout->nGlyphs(); 90 MinikinFontSkia *mfs = static_cast<MinikinFontSkia *>(layout->getFont(i)); 92 glyphs[i] = layout->getGlyphId(i); 93 pos[i].fX = x + layout->getX(i); 94 pos[i].fY = y + layout->getY(i); 116 Layout layout; local 117 layout.setFontCollection(collection); 124 layout [all...] |
/frameworks/data-binding/compilerCommon/src/main/java/android/databinding/tool/ |
H A D | LayoutXmlProcessor.java | 39 * Processes the layout XML, stripping the binding attributes and elements 121 for (ResourceBundle.LayoutFileBundle layout : layouts) { 122 writeXmlFile(xmlOutDir, layout, marshaller); 128 private void writeXmlFile(File xmlOutDir, ResourceBundle.LayoutFileBundle layout, argument 130 String filename = generateExportFileName(layout) + ".xml"; 131 String xml = toXML(layout, marshaller); 139 private String toXML(ResourceBundle.LayoutFileBundle layout, Marshaller marshaller) argument 142 marshaller.marshal(layout, writer); 147 * Generates a string identifier that can uniquely identify the given layout bundle. 148 * This identifier can be used when we need to export data about this layout bundl 150 generateExportFileName(ResourceBundle.LayoutFileBundle layout) argument [all...] |
/frameworks/data-binding/prebuilds/1.0-rc0/ |
H A D | databinding-studio-bundle.jar | META-INF/ META-INF/MANIFEST.MF android/ android/databinding/ android/databinding/Bindable.class Bindable. ... |
/frameworks/compile/mclinker/lib/Core/ |
H A D | Linker.cpp | 73 return layout(); 202 bool Linker::layout() { function in class:mcld::Linker 211 // reserve GOT space for layout. 212 // the space info is needed by pre-layout to compute the section size 218 // 12.b - pre-layout 221 // 12.c - linear layout 226 m_pObjLinker->layout(); 228 // 12.d - post-layout (create segment, instruction relaxing)
|
/frameworks/compile/mclinker/lib/Object/ |
H A D | ObjectLinker.cpp | 643 /// prelayout - help backend to do some modification before layout 693 /// layout - linearly layout all output sections and reserve some space 698 bool ObjectLinker::layout() { function in class:mcld::ObjectLinker 699 m_LDBackend.layout(*m_pModule); 703 /// prelayout - help backend to do some modification after layout 710 /// Before relocate(), after layout(), ObjectLinker should correct value of
|
/frameworks/compile/mclinker/lib/Target/ |
H A D | GNULDBackend.cpp | 912 /// the size of these tables should be computed before layout 913 /// layout should computes the start offset of these tables 980 /// the size of these tables should be computed before layout 981 /// layout should computes the start offset of these tables 1440 /// getSymbolValue - this function is called after layout() 1448 /// getSymbolShndx - this function is called after layout() 1502 /// sections. This is executed at pre-layout stage. 2437 /// layout - layout method 2438 void GNULDBackend::layout(Modul function in class:mcld::GNULDBackend [all...] |
/frameworks/base/tools/layoutlib/bridge/tests/res/testApp/MyApplication/build/intermediates/classes/debug/com/android/layoutlib/test/myapplication/ |
H A D | R$layout.class | ... android.layoutlib.test.myapplication.R$layout extends java.lang.Object {
public static final int ... |
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
H A D | QSTileView.java | 265 layout(mTopBackgroundView, 0, mTileSpacingPx); 271 layout(mIcon, iconLeft, top); 279 layout(mDivider, 0, top); 282 layout(labelView(), 0, top); 293 private static void layout(View child, int left, int top) { method in class:QSTileView 294 child.layout(left, top, left + child.getMeasuredWidth(), top + child.getMeasuredHeight());
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
H A D | ExpandableNotificationRow.java | 126 private void setIconAnimationRunning(boolean running, NotificationContentView layout) { argument 127 if (layout != null) { 128 View contractedChild = layout.getContractedChild(); 129 View expandedChild = layout.getExpandedChild(); 130 View headsUpChild = layout.getHeadsUpChild(); 447 // Add a record for the entire layout since its content is somehow small. 560 * Apply an expansion state to the layout. 611 * view can differ from this state, if layout params are modified from outside. 643 // We don't want to layout the ChildrenContainer if this is a heads-up view, otherwise the
|
/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | InputConsumerImpl.java | 76 void layout(int dw, int dh) { method in class:InputConsumerImpl
|