/packages/apps/TvSettings/Settings/src/com/android/tv/settings/form/ |
H A D | FormPageResultListener.java | 27 * Called when the specified page has been completed. 29 * @param page the page that has been completed. 30 * @param bundleResults the results of the page completion. This bundle 35 void onBundlePageResult(FormPage page, Bundle bundleResults); argument
|
H A D | MultiPagedForm.java | 66 // If we don't have a page to go back to, finish as cancelled. 91 public void onBundlePageResult(FormPage page, Bundle bundleResults) { argument 93 page.complete(bundleResults); 95 // Indicate that we've completed a page. If we get back false it means 96 // the data was invalid and the page must be filled out again. 97 // Otherwise, we move on to the next page. 98 if (!onPageComplete(page)) { 127 FormPage page = (FormPage) currentLocation; 136 onBundlePageResult(page, results); 147 * Called when a form page complete 539 handleStringPageResult(FormPage page, String stringResults) argument [all...] |
/packages/apps/Launcher2/src/com/android/launcher2/ |
H A D | SpringLoadedDragController.java | 54 int page = w.indexOfChild(mScreen); 55 if (page != w.getCurrentPage()) { 56 w.snapToPage(page);
|
H A D | AppsCustomizePagedView.java | 82 page = p; 102 int page; field in class:AsyncTaskPageData 118 page = p; 131 // All the widget previews are loaded, so we can just callback to inflate the page 142 // The page that this async task is associated with 144 int page; field in class:AppsCustomizeAsyncTask 149 * The Apps/Customize page that displays all the applications, widgets, and shortcuts. 294 /** Returns the item index of the center item on this page so that we can restore to this 322 /** Get the index of the item to restore to if we need to restore the current page. */ 330 /** Returns the page i 1017 syncAppsPageItems(int page, boolean immediate) argument 1056 getWidgetPageLoadPriority(int page) argument 1080 getThreadPriorityForPage(int page) argument 1091 getSleepForPage(int page) argument 1098 prepareLoadWidgetPreviewsTask(int page, ArrayList<Object> widgets, int cellWidth, int cellHeight, int cellCountX) argument 1166 syncWidgetPageItems(final int page, final boolean immediate) argument 1352 syncPageItems(int page, boolean immediate) argument 1676 getAssociatedLowerPageBound(int page) argument 1682 getAssociatedUpperPageBound(int page) argument [all...] |
H A D | PagedView.java | 58 // the min drag distance for a fling to register, to prevent random page shifts 70 // The page is moved more than halfway, automatically move to the next page on touch up. 162 // to switch to a new page 278 * Returns the index of the currently displayed page. 280 * @return The index of the currently displayed page. 302 * Updates the scroll of the current page immediately to its final scroll position. We use this 304 * the previous tab page. 307 // If the current page is invalid, just reset the scroll position to zero 338 * Sets the current page 1141 getScrollProgress(int screenCenter, View v, int page) argument 1675 loadAssociatedPages(int page) argument 1678 loadAssociatedPages(int page, boolean immediateAndOnly) argument 1712 getAssociatedLowerPageBound(int page) argument 1715 getAssociatedUpperPageBound(int page) argument 1732 syncPageItems(int page, boolean immediate) argument [all...] |
H A D | DragLayer.java | 646 // Set the anchor view if the page is scrolling 788 int page = workspace.getNextPage(); 790 CellLayout leftPage = (CellLayout) workspace.getChildAt(isRtl ? page + 1 : page - 1); 791 CellLayout rightPage = (CellLayout) workspace.getChildAt(isRtl ? page - 1 : page + 1);
|
H A D | FocusHelper.java | 119 * Returns the Viewgroup containing page contents for the page at the index specified. 122 ViewGroup page = (ViewGroup) ((PagedView) container).getPageAt(index); 123 if (page instanceof PagedViewCellLayout) { 125 page = (ViewGroup) page.getChildAt(0); 127 return page; 159 // Select the previous widget or the last widget on the previous page 176 // Select the next widget or the first widget on the next page 226 // Select the first item on the previous page, o [all...] |
H A D | Workspace.java | 68 * Each page contains a number of icons, folders or widgets the user can 168 /** Is the user is dragging an item near the edge of a page? */ 583 * Check if the point (x, y) hits a given page. 586 final View page = getChildAt(index); 587 if (page != null) { 589 mapPointFromSelfToChild(page, localXY); 590 return (localXY[0] >= 0 && localXY[0] < page.getWidth() 591 && localXY[1] >= 0 && localXY[1] < page.getHeight()); 599 // Calculating "next page" this way ensures that you scroll to whatever page yo 956 computeWallpaperScrollRatio(int page) argument 3875 syncPageItems(int page, boolean immediate) argument [all...] |
/packages/apps/Launcher3/src/com/android/launcher3/ |
H A D | SpringLoadedDragController.java | 54 int page = w.indexOfChild(mScreen); 55 if (page != w.getCurrentPage()) { 56 w.snapToPage(page);
|
H A D | AppsCustomizePagedView.java | 75 page = p; 95 int page; field in class:AsyncTaskPageData 111 page = p; 124 // All the widget previews are loaded, so we can just callback to inflate the page 135 // The page that this async task is associated with 137 int page; field in class:AppsCustomizeAsyncTask 142 * The Apps/Customize page that displays all the applications, widgets, and shortcuts. 275 /** Returns the item index of the center item on this page so that we can restore to this 305 /** Get the index of the item to restore to if we need to restore the current page. */ 313 /** Returns the page i 947 syncAppsPageItems(int page, boolean immediate) argument 987 getWidgetPageLoadPriority(int page) argument 1011 getThreadPriorityForPage(int page) argument 1022 getSleepForPage(int page) argument 1029 prepareLoadWidgetPreviewsTask(int page, ArrayList<Object> widgets, int cellWidth, int cellHeight, int cellCountX) argument 1099 syncWidgetPageItems(final int page, final boolean immediate) argument 1302 syncPageItems(int page, boolean immediate) argument 1533 getAssociatedLowerPageBound(int page) argument 1539 getAssociatedUpperPageBound(int page) argument [all...] |
H A D | PagedView.java | 73 // the min drag distance for a fling to register, to prevent random page shifts 85 // The page is moved more than halfway, automatically move to the next page on touch up. 192 // to switch to a new page 234 // The runnable that settles the page after snapToPage and animateDragViewToOriginalPosition 329 // Hook up the page indicator 361 // Unhook the page indicator 443 * Add a page change listener which will be called when a page is _finished_ listening. 473 * Returns the index of the currently displayed page 792 addFullScreenPage(View page) argument 1538 getBoundedScrollProgress(int screenCenter, View v, int page) argument 1547 getScrollProgress(int screenCenter, View v, int page) argument 2361 loadAssociatedPages(int page) argument 2364 loadAssociatedPages(int page, boolean immediateAndOnly) argument 2398 getAssociatedLowerPageBound(int page) argument 2401 getAssociatedUpperPageBound(int page) argument 2418 syncPageItems(int page, boolean immediate) argument [all...] |
H A D | Launcher.java | 354 // Holds the page that we need to animate to, and the icon views that we need to animate up 355 // when we scroll to that page on resume. 482 // We only load the page synchronously if the user rotates (or triggers a 526 * ensure the custom content page is added or removed if necessary. 535 // Create the custom content page and call the subclass to populate it. 729 // that the drop page actually exists. 826 // we make sure that the drop page actually exists. 1051 // If we are resuming and the custom content is the current page, we call onShow(). 1053 // if PagedView#setRestorePage was set to the custom content page in onCreate(). 1913 // Reset the apps customize page 4561 onPageBoundSynchronously(int page) argument [all...] |
H A D | DragLayer.java | 84 // Related to adjacent page hints 730 // Set the anchor view if the page is scrolling 913 int page = workspace.getNextPage(); 915 CellLayout leftPage = (CellLayout) workspace.getChildAt(isRtl ? page + 1 : page - 1); 916 CellLayout rightPage = (CellLayout) workspace.getChildAt(isRtl ? page - 1 : page + 1); 938 // We want to draw the page hints above the workspace, but below the drag view.
|
H A D | FocusHelper.java | 73 * Returns the Viewgroup containing page contents for the page at the index specified. 76 ViewGroup page = (ViewGroup) ((PagedView) container).getPageAt(index); 77 if (page instanceof CellLayout) { 79 page = ((CellLayout) page).getShortcutsAndWidgets(); 81 return page; 111 // Select the previous widget or the last widget on the previous page 128 // Select the next widget or the first widget on the next page 176 // Select the first item on the previous page, o [all...] |
H A D | Workspace.java | 85 * Each page contains a number of icons, folders or widgets the user can 210 /** Is the user is dragging an item near the edge of a page? */ 373 // Use the first non-custom page to estimate the child position 536 // Since we increment the current page when we call addCustomContentPage via bindScreens 537 // (and other places), we need to adjust the current page back when we clear the pages 600 // Ensure that the current page and default page are maintained. 628 // Ensure that the current page and default page are maintained. 645 // Add the custom content to the full screen custom page 5036 moveToScreen(int page, boolean animate) argument 5089 syncPageItems(int page, boolean immediate) argument [all...] |
/packages/apps/Exchange/src/com/android/exchange/adapter/ |
H A D | Serializer.java | 123 final int page = mPendingTag >> Tags.PAGE_SHIFT; 125 if (page != mTagPage) { 126 mTagPage = page; 128 mOutput.write(page); 133 if (!Tags.isValidPage(page)) { 134 log("Unrecognized page " + page); 135 } else if (!Tags.isValidTag(page, tag)) { 136 log("Unknown tag " + tag + " on page " + page); [all...] |
H A D | Parser.java | 92 public Tag(final int page, final int id) { argument 93 mPage = page; 128 // The current page. As of EAS 14.1, this is a value 0-24. 129 private int page; field in class:Parser 132 // higher order bits the page number. The format matches that used for 324 * looking for it, generate an EodException. The tag returned consists of the page number 334 // If we're a start, set tag to include the page and return it 374 * same in EAS, and then sets the tag table to point to page 0 (by definition, the starting 375 * page). 435 page [all...] |
H A D | Tags.java | 23 * The static final int's, of the form <page>_<tag> = <constant> are used in parsing incoming 31 // Wbxml page definitions for EAS 59 // Shift applied to page numbers to generate tag 64 // AirSync code page 0 104 // Contacts code page 1 165 // Email code page 2 227 // AirNotify code page 3 (no longer used) 229 // Calendar code page 4 287 // Move code page 5 298 // GetItemEstimate code page 733 isValidPage(final int page) argument 737 isValidTag(final int page, final int tag) argument 746 getTagName(final int page, final int tag) argument [all...] |
/packages/experimental/PrintApp/src/foo/bar/print/ |
H A D | PrintActivity.java | 184 // Write the page only if it was requested. 187 Page page = mPdfDocument.startPage(i); 188 // The page of the PDF backed canvas size is in pixels (1/72") and 193 page.getCanvas().scale(scale, scale); 194 view.draw(page.getCanvas()); 195 mPdfDocument.finishPage(page); 264 private boolean containsPage(PageRange[] pageRanges, int page) { 267 if (pageRanges[i].getStart() <= page 268 && pageRanges[i].getEnd() >= page) {
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
H A D | DeskClockFragment.java | 34 public void onPageChanged(int page) { argument
|
H A D | DeskClock.java | 517 // Set the page before doing the menu so that onCreateOptionsMenu knows what page it is. 575 public void notifySelectedPage(int page) { argument 576 notifyPageChanged(page); 596 // Since registering a listener by the fragment is done sometimes after the page 597 // was already changed, make sure the fragment gets the current page
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/ |
H A D | ScrollController.java | 782 final public void startScroll(int dx, int dy, boolean easeFling, int duration, boolean page) { argument 820 duration = getScrollDuration((int) Math.sqrt(dx * dx + dy * dy), page); 839 int duration, boolean page) { 848 startScroll(dx, dy, easeFling, duration, page); 838 startScrollByMain(int deltaMain, int deltaSecond, boolean easeFling, int duration, boolean page) argument
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/dialog/old/ |
H A D | TosWebViewFragment.java | 84 * Create instance and select page to display. The content is selected by the single parameter 85 * and determined by a URL or resource string depending on the page to show. 98 * Create instance and display page from URL. 100 * @param uri URL of page to show. 111 * Create instance and display page from a string. 113 * @param page Text to show. 115 public static TosWebViewFragment newInstance(String page) { argument 118 args.putString(ARGUMENT_CONTENT_STRING, page); 124 * Create instance and display page from resource id. 158 * Before we load any page, w [all...] |
/packages/apps/DeskClock/src/com/android/deskclock/stopwatch/ |
H A D | StopwatchFragment.java | 444 public void onPageChanged(int page) { argument 445 if (page == DeskClock.STOPWATCH_TAB_INDEX && mState == Stopwatches.STOPWATCH_RUNNING) {
|
/packages/apps/DeskClock/src/com/android/deskclock/timer/ |
H A D | TimerFragment.java | 279 public void onPageChanged(int page) { argument 280 if (page == DeskClock.TIMER_TAB_INDEX && mAdapter != null) {
|