Searched refs:page (Results 1 - 25 of 28) sorted by relevance

12

/packages/apps/TvSettings/Settings/src/com/android/tv/settings/form/
H A DFormPageResultListener.java27 * 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 DMultiPagedForm.java66 // 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 DSpringLoadedDragController.java54 int page = w.indexOfChild(mScreen);
55 if (page != w.getCurrentPage()) {
56 w.snapToPage(page);
H A DAppsCustomizePagedView.java82 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 DPagedView.java58 // 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 DDragLayer.java646 // 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 DFocusHelper.java119 * 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 DWorkspace.java68 * 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...]
H A DLauncher.java309 // Holds the page that we need to animate to, and the icon views that we need to animate up
310 // when we scroll to that page on resume.
417 // We only load the page synchronously if the user rotates (or triggers a
1564 for (int page: mSynchronouslyBoundPages) {
1565 mWorkspace.restoreInstanceStateForChild(page);
3601 public void onPageBoundSynchronously(int page) { argument
3602 mSynchronouslyBoundPages.add(page);
3650 // If the user has not interacted recently, then either snap to the new page to show
3651 // the new-apps animation or just run them if they are to appear on the current page
3659 // are on another page (o
[all...]
/packages/apps/Launcher3/src/com/android/launcher3/
H A DSpringLoadedDragController.java54 int page = w.indexOfChild(mScreen);
55 if (page != w.getCurrentPage()) {
56 w.snapToPage(page);
H A DFolderPagedView.java58 * Fraction of the width to scroll when showing the next page hint.
173 * Also sets the current page to the last page.
241 CellLayout page = new CellLayout(getContext());
242 page.setCellDimensions(grid.folderCellWidthPx, grid.folderCellHeightPx);
243 page.getShortcutsAndWidgets().setMotionEventSplittingEnabled(false);
244 page.setImportantForAccessibility(IMPORTANT_FOR_ACCESSIBILITY_NO);
245 page.setInvertIfRtl(true);
246 page.setGridSize(mGridCountX, mGridCountY);
248 addView(page,
[all...]
H A DFocusIndicatorView.java172 * any shift due to page view scroll.
191 PagedView page = (PagedView) parent;
192 shift[0] -= page.getScrollForPage(page.indexOfChild(child));
H A DPagedView.java66 // the min drag distance for a fling to register, to prevent random page shifts
74 // The page is moved more than halfway, automatically move to the next page on touch up.
185 // The runnable that settles the page after snapToPage and animateDragViewToOriginalPosition
268 // Hook up the page indicator
302 // Unhook the page indicator
380 * Add a page change listener which will be called when a page is _finished_ listening.
391 * Returns the index of the currently displayed page.
398 * Returns the index of page t
719 addFullScreenPage(View page) argument
1477 getScrollProgress(int screenCenter, View v, int page) argument
[all...]
H A DWorkspace.java87 * 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? */
364 // Use the first non-custom page to estimate the child position
527 // Since we increment the current page when we call addCustomContentPage via bindScreens
528 // (and other places), we need to adjust the current page back when we clear the pages
595 // Ensure that the current page and default page are maintained.
623 // Ensure that the current page and default page are maintained.
640 // Add the custom content to the full screen custom page
2145 updateAccessibilityFlags(CellLayout page, int pageNo) argument
4500 moveToScreen(int page, boolean animate) argument
4561 getPageDescription(int page) argument
[all...]
H A DDragLayer.java89 // Related to adjacent page hints
751 // Set the anchor view if the page is scrolling
897 int page = workspace.getNextPage();
898 CellLayout leftPage = (CellLayout) workspace.getChildAt(mIsRtl ? page + 1 : page - 1);
899 CellLayout rightPage = (CellLayout) workspace.getChildAt(mIsRtl ? page - 1 : page + 1);
921 // We want to draw the page hints above the workspace, but below the drag view.
/packages/experimental/PrintApp/src/foo/bar/permission2/
H A DPrintActivity.java207 // Write the page only if it was requested.
210 Page page = mPdfDocument.startPage(i);
211 // The page of the PDF backed canvas size is in pixels (1/72") and
216 page.getCanvas().scale(scale, scale);
217 view.draw(page.getCanvas());
223 final int x = page.getCanvas().getWidth() / 2;
224 final int y = page.getCanvas().getHeight() / 2;
225 page.getCanvas().drawText(String.valueOf(i), x, y, paint);
227 mPdfDocument.finishPage(page);
296 private boolean containsPage(PageRange[] pageRanges, int page) {
[all...]
/packages/experimental/PrintApp/src/foo/bar/print/
H A DPrintActivity.java212 // Write the page only if it was requested.
215 Page page = mPdfDocument.startPage(i);
216 // The page of the PDF backed canvas size is in pixels (1/72") and
221 page.getCanvas().scale(scale, scale);
222 view.draw(page.getCanvas());
223 mPdfDocument.finishPage(page);
292 private boolean containsPage(PageRange[] pageRanges, int page) {
295 if (pageRanges[i].getStart() <= page
296 && pageRanges[i].getEnd() >= page) {
/packages/apps/DeskClock/src/com/android/deskclock/
H A DDeskClockFragment.java32 public void onPageChanged(int page) { argument
H A DDeskClock.java377 // Set the page before doing the menu so that onCreateOptionsMenu knows what page it is.
414 public void notifySelectedPage(int page) { argument
415 notifyPageChanged(page);
435 // Since registering a listener by the fragment is done sometimes after the page
436 // was already changed, make sure the fragment gets the current page
/packages/apps/Settings/src/com/android/settings/widget/
H A DDotsPageIndicator.java350 for (int page = 0; page < pageCount; page++) {
351 int nextXIndex = page == pageCount - 1 ? page : page + 1;
355 Path unselectedPath = getUnselectedPath(page,
356 dotCenterX[page],
358 page == pageCount - 1 ? INVALID_FRACTION : joiningFractions[page],
394 getUnselectedPath(int page, float centerX, float nextCenterX, float joiningFraction, float dotRevealFraction) argument
716 getDotCenterX(int page) argument
[all...]
/packages/apps/DeskClock/src/com/android/deskclock/timer/
H A DTimerFragment.java143 // Start watching for page changes away from this fragment.
146 // Initialize the page indicators.
201 // Stop watching for page changes away from this fragment.
332 * Updates the state of the page indicators so they reflect the selected page in the context of
336 final int page = mViewPager.getCurrentItem();
340 final int[] states = computePageIndicatorStates(page, pageIndicatorCount, pageCount);
354 * @param page the selected page; value between 0 and {@code pageCount}
355 * @param pageIndicatorCount the number of indicators displaying the {@code page} locatio
361 computePageIndicatorStates(int page, int pageIndicatorCount, int pageCount) argument
[all...]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/
H A DScrollController.java782 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
H A DScrollAdapterView.java1673 boolean page) {
1775 scrollAndFocusTo(nextTop, direction, false, 0, page);
1966 boolean page) {
1976 mScroll.startScrollByMain(delta, deltaOffAxis, easeFling, duration, page);
1672 handleArrowKey(int direction, int repeats, boolean forceFindNextExpandable, boolean page) argument
1965 scrollAndFocusTo(View topItem, int direction, boolean easeFling, int duration, boolean page) argument
/packages/apps/DeskClock/src/com/android/deskclock/stopwatch/
H A DStopwatchFragment.java148 // Start watching for page changes away from this fragment.
174 // Stop watching for page changes away from this fragment.
182 public void onPageChanged(int page) { argument
183 if (page == DeskClock.STOPWATCH_TAB_INDEX && getStopwatch().isRunning()) {
/packages/apps/Messaging/src/com/android/messaging/datamodel/
H A DBugleNotifications.java819 // Add a wearable page with no visible card so you can more easily see the photo.
870 final Notification page = MessageNotificationState.buildConversationPageForWearable(
873 if (page != null) {
874 wearableExtender.addPage(page);

Completed in 1570 milliseconds

12