/frameworks/base/core/tests/coretests/src/android/widget/ |
H A D | SimpleCursorAdapterTest.java | 59 mLayout = com.android.internal.R.layout.simple_list_item_2; 146 * Test changeCursor() with differing column layout. This confirms that the Adapter can 257 public TestSimpleCursorAdapter(Context context, int layout, Cursor c, argument 259 super(context, layout, c, from, to);
|
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/ |
H A D | DrawerController.java | 79 DrawerLayout layout = (DrawerLayout) activity.findViewById(R.id.drawer_layout); 81 if (layout == null) { 92 layout, 97 return new RuntimeDrawerController(layout, drawer, toggle, toolbar); 131 DrawerLayout layout, View drawer, ActionBarDrawerToggle toggle, 134 assert(layout != null); 136 mLayout = layout; 130 RuntimeDrawerController( DrawerLayout layout, View drawer, ActionBarDrawerToggle toggle, Toolbar drawerToolbar) argument
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
H A D | QSIconView.java | 71 layout(mIcon, iconLeft, top); 120 protected final void layout(View child, int left, int top) { method in class:QSIconView 121 child.layout(left, top, left + child.getMeasuredWidth(), top + child.getMeasuredHeight());
|
/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/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/minikin/sample/ |
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/opt/setupwizard/library/full-support/src/com/android/setupwizardlib/view/ |
H A D | HeaderRecyclerView.java | 35 * {@code app:suwHeader} in XML. Note that the header will not be inflated until a layout manager 219 public void setLayoutManager(LayoutManager layout) { argument 220 super.setLayoutManager(layout); 221 if (layout != null && mHeader == null && mHeaderRes != 0) { 222 // Inflating a child view requires the layout manager to be set. Check here to see if
|
/frameworks/base/core/java/android/text/ |
H A D | Selection.java | 114 * Moving the selection within the layout 122 public static boolean moveUp(Spannable text, Layout layout) { argument 138 int line = layout.getLineForOffset(end); 143 if (layout.getParagraphDirection(line) == 144 layout.getParagraphDirection(line - 1)) { 145 float h = layout.getPrimaryHorizontal(end); 146 move = layout.getOffsetForHorizontal(line - 1, h); 148 move = layout.getLineStart(line - 1); 168 public static boolean moveDown(Spannable text, Layout layout) { argument 184 int line = layout 213 moveLeft(Spannable text, Layout layout) argument 238 moveRight(Spannable text, Layout layout) argument 261 extendUp(Spannable text, Layout layout) argument 290 extendDown(Spannable text, Layout layout) argument 319 extendLeft(Spannable text, Layout layout) argument 335 extendRight(Spannable text, Layout layout) argument 347 extendToLeftEdge(Spannable text, Layout layout) argument 353 extendToRightEdge(Spannable text, Layout layout) argument 359 moveToLeftEdge(Spannable text, Layout layout) argument 365 moveToRightEdge(Spannable text, Layout layout) argument 407 findEdge(Spannable text, Layout layout, int dir) argument 424 chooseHorizontal(Layout layout, int direction, int off1, int off2) argument [all...] |
H A D | DynamicLayout.java | 29 * DynamicLayout is a text layout that updates itself as the text is edited. 30 * <p>This is used by widgets to control text layout. You should not need 42 * Make a layout for the specified text that will be updated as 55 * Make a layout for the transformed text (password transformation 69 * Make a layout for the transformed text (password transformation 88 * Make a layout for the transformed text (password transformation 129 * This is annoying, but we can't refer to the layout until 263 // find affected region of old layout 274 // generate new layout for affected text 303 // If the new layout ha 654 ChangeWatcher(DynamicLayout layout) argument [all...] |
/frameworks/base/core/java/android/widget/ |
H A D | AbsSpinner.java | 79 context, R.layout.simple_spinner_item, entries); 80 adapter.setDropDownViewResource(R.layout.simple_spinner_dropdown_item); 202 // Put in recycler for re-measuring and/or layout 296 layout(delta, animate); 301 abstract void layout(int delta, boolean animate); method in class:AbsSpinner 313 * Override to prevent spamming ourselves with layout requests 367 // rather than wait until the next measure/layout pass to do it.
|
H A D | Gallery.java | 51 * layout parameters type. 92 * Left most edge of a child seen so far during layout. 97 * Right most edge of a child seen so far during layout. 187 * Used to reset position correctly during layout. 364 * Remember that we are in layout to prevent more layout request from 368 layout(0, false); 625 * We layout rarely, most of the time {@link #trackMotionScroll(int)} takes 633 void layout(int delta, boolean animate) { method in class:Gallery 655 // All views go in recycler while we are in layout [all...] |
H A D | RemoteViewsAdapter.java | 339 public void add(int position, RemoteViewsFrameLayout layout) { argument 347 mViewToLinkedList.put(layout, refs); 350 refs.add(layout); 485 com.android.internal.R.layout.remote_views_adapter_default_loading_view, 1105 final RemoteViewsFrameLayout layout = 1110 layout.onRemoteViewsLoaded(rv, mRemoteViewsOnClickHandler); 1114 // exist, the layout will create a default view based on the firstView height. 1115 layout.onRemoteViewsLoaded(mCache.getMetaData().mUserLoadingView, 1117 mRequestedViews.add(position, layout); 1121 return layout; [all...] |
H A D | Spinner.java | 493 * layout inflater for use in 612 layout(0, false); 623 void layout(int delta, boolean animate) { method in class:Spinner 681 * there is enough information in the view's layout parameters to animate 712 * and fill out its layout paramters. 719 // Respect layout params that are already in the view. Otherwise 755 child.layout(childLeft, childTop, childRight, childBottom); 1243 // Skip setting up the layout/dismiss listener below. If we were previously
|
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | SwipeDismissLayout.java | 36 * Special layout that finishes its activity when swiped away. 45 void onDismissed(SwipeDismissLayout layout); argument 50 * Called when the layout has been swiped and the position of the window should change. 55 * layout. This is equivalent to progress * layout.getWidth(). 57 void onSwipeProgressChanged(SwipeDismissLayout layout, float progress, float translate); argument 59 void onSwipeCancelled(SwipeDismissLayout layout); argument
|
/frameworks/base/libs/hwui/hwui/ |
H A D | Canvas.cpp | 82 DrawTextFunctor(const Layout& layout, Canvas* canvas, uint16_t* glyphs, float* pos, argument 84 : layout(layout) 98 glyphs[i] = layout.getGlyphId(i); 99 pos[2 * i] = x + layout.getX(i); 100 pos[2 * i + 1] = y + layout.getY(i); 104 glyphs[i] = layout.getGlyphId(i); 105 pos[2 * i] = layout.getX(i); 106 pos[2 * i + 1] = layout.getY(i); 138 const Layout& layout; member in class:android::DrawTextFunctor 154 Layout layout; local 181 DrawTextOnPathFunctor(const Layout& layout, Canvas* canvas, float hOffset, float vOffset, const Paint& paint, const SkPath& path) argument 201 const Layout& layout; member in class:android::DrawTextOnPathFunctor 212 Layout layout; local [all...] |
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/dirlist/ |
H A D | DocumentHolder.java | 52 public DocumentHolder(Context context, ViewGroup parent, int layout) { argument 53 this(context, inflateLayout(context, parent, layout)); 170 private static View inflateLayout(Context context, ViewGroup parent, int layout) { argument 172 return inflater.inflate(layout, parent, false);
|
/frameworks/support/design/src/android/support/design/widget/ |
H A D | HeaderBehavior.java | 229 final boolean fling(CoordinatorLayout coordinatorLayout, V layout, int minOffset, argument 232 layout.removeCallbacks(mFlingRunnable); 237 mScroller = ScrollerCompat.create(layout.getContext()); 247 mFlingRunnable = new FlingRunnable(coordinatorLayout, layout); 248 ViewCompat.postOnAnimation(layout, mFlingRunnable); 251 onFlingFinished(coordinatorLayout, layout); 260 void onFlingFinished(CoordinatorLayout parent, V layout) { argument 292 FlingRunnable(CoordinatorLayout parent, V layout) { argument 294 mLayout = layout;
|
/frameworks/support/design/tests/src/android/support/design/widget/ |
H A D | BottomSheetBehaviorTest.java | 190 public AddViewAction(@LayoutRes int layout) { argument 191 mLayout = layout; 528 .perform(new AddViewAction(R.layout.frame_layout))
|
/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);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
H A D | NavigationBarInflaterView.java | 108 mRot0 = (FrameLayout) mLayoutInflater.inflate(R.layout.navigation_layout, this, false); 111 mRot90 = (FrameLayout) mLayoutInflater.inflate(R.layout.navigation_layout_rot90, this, 196 private void addGravitySpacer(LinearLayout layout) { argument 197 layout.addView(new Space(mContext), new LinearLayout.LayoutParams(0, 0, 1)); 222 v = inflater.inflate(R.layout.home, parent, false); 227 v = inflater.inflate(R.layout.back, parent, false); 232 v = inflater.inflate(R.layout.recent_apps, parent, false); 237 v = inflater.inflate(R.layout.menu_ime, parent, false); 239 v = inflater.inflate(R.layout.nav_key_space, parent, false); 241 v = inflater.inflate(R.layout [all...] |
/frameworks/base/tests/SurfaceComposition/src/android/surfacecomposition/ |
H A D | SurfaceCompositionMeasuringActivity.java | 265 CustomLayout layout = new CustomLayout(this); 266 layout.setLayoutParams(new ViewGroup.LayoutParams( 300 new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, pixelFomats); 302 android.R.layout.simple_spinner_dropdown_item); 338 // offset on y to make sure that surface is visible in any layout. 345 layout.addView(view); 349 rootLayout.addView(layout); 355 private Button createButton(String caption, LinearLayout layout) { argument 362 layout.addView(button);
|
/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/data-binding/compilerCommon/src/main/java/android/databinding/tool/ |
H A D | LayoutXmlProcessor.java | 42 * Processes the layout XML, stripping the binding attributes and elements 238 for (ResourceBundle.LayoutFileBundle layout : layouts) { 239 writeXmlFile(xmlOutDir, layout); 249 private void writeXmlFile(File xmlOutDir, ResourceBundle.LayoutFileBundle layout) argument 251 String filename = generateExportFileName(layout); 252 mFileWriter.writeToFile(new File(xmlOutDir, filename), layout.toXML()); 260 * Generates a string identifier that can uniquely identify the given layout bundle. 261 * This identifier can be used when we need to export data about this layout bundle. 263 private static String generateExportFileName(ResourceBundle.LayoutFileBundle layout) { argument 264 return generateExportFileName(layout [all...] |
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/ |
H A D | RecyclerViewBasicTest.java | 69 private void layout() { method in class:RecyclerViewBasicTest 70 mRecyclerView.layout(0, 0, 320, 320); 81 layout(); 82 assertEquals("layout manager should not be called if there is no adapter attached", 95 layout(); 102 layout(); 110 layout(); 118 layout(); 126 layout(); 134 layout(); [all...] |
/frameworks/base/core/java/android/print/ |
H A D | PrintManager.java | 77 * allowing it to layout the content to better fit these new constraints. After a 78 * layout pass the system may ask the application to render one or more pages one 822 public void layout(PrintAttributes oldAttributes, PrintAttributes newAttributes, method in class:PrintManager.PrintDocumentAdapterDelegate 830 Log.e(LOG_TAG, "Error notifying for layout start", re);
|