Home
last modified time | relevance | path

Searched refs:page (Results 1 – 25 of 66) sorted by relevance

123

/packages/apps/Settings/tests/perftests/src/com/android/settings/tests/perf/
DLaunchSettingsTest.java99 for (Page page : PAGES) { in setUp()
100 mResult.put(page.title, new ArrayList<Integer>()); in setUp()
116 for (Page page : PAGES) { in settingsPerformanceTest()
117 executePreformanceTest(page.action, page.displayName, page.title); in settingsPerformanceTest()
166 private String getMax(String page) { in getMax() argument
167 if (mResult.get(page).size() == TEST_TIME) { in getMax()
168 return String.format("%s", Collections.max(mResult.get(page))); in getMax()
170 Log.e(TAG, String.format("Fail to get max of %s.", page)); in getMax()
175 private String getMin(String page) { in getMin() argument
176 if (mResult.get(page).size() == TEST_TIME) { in getMin()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/folder/
DFolderPagedView.java149 CellLayout page = (CellLayout) getChildAt(i); in unbindItems() local
150 ShortcutAndWidgetContainer container = page.getShortcutsAndWidgets(); in unbindItems()
154 page.removeAllViews(); in unbindItems()
155 mViewCache.recycleView(R.layout.folder_page, page); in unbindItems()
229 CellLayout page = mViewCache.getView(R.layout.folder_page, getContext(), this); in createAndAddNewPage() local
230 page.setCellDimensions(grid.folderCellWidthPx, grid.folderCellHeightPx); in createAndAddNewPage()
231 page.getShortcutsAndWidgets().setMotionEventSplittingEnabled(false); in createAndAddNewPage()
232 page.setInvertIfRtl(true); in createAndAddNewPage()
233 page.setGridSize(mGridCountX, mGridCountY); in createAndAddNewPage()
235 addView(page, -1, generateDefaultLayoutParams()); in createAndAddNewPage()
[all …]
DFolderGridOrganizer.java156 public <T, R extends T> ArrayList<R> previewItemsForPage(int page, List<T> contents) { in previewItemsForPage() argument
159 int start = itemsPerPage * page; in previewItemsForPage()
163 if (isItemInPreview(page, rank)) { in previewItemsForPage()
186 public boolean isItemInPreview(int page, int rank) { in isItemInPreview() argument
189 if (page > 0 || mDisplayingUpperLeftQuadrant) { in isItemInPreview()
/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/
DTelecomPageTab.java73 private void initFragment(FragmentManager fragmentManager, @Page String page) { in initFragment() argument
74 mFragmentTag = makeFragmentTag(page); in initFragment()
77 mFragment = mFactory.createFragment(page); in initFragment()
105 private String makeFragmentTag(@Page String page) { in makeFragmentTag() argument
106 return String.format("%s:%s", getClass().getSimpleName(), page); in makeFragmentTag()
145 private Fragment createFragment(@Page String page) { in createFragment() argument
146 switch (page) { in createFragment()
164 String page = mTabs[tabIndex]; in createTab() local
166 context.getDrawable(TAB_ICONS.get(page)), in createTab()
167 context.getString(TAB_LABELS.get(page)), this); in createTab()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/setup/
DAdvancedOptionsFlowInfo.java78 public void put(@PAGE int page, CharSequence info) { in put() argument
79 mPageSummary.put(page, info); in put()
89 public boolean choiceChosen(CharSequence choice, @PAGE int page) { in choiceChosen() argument
90 if (!mPageSummary.containsKey(page)) { in choiceChosen()
93 return TextUtils.equals(choice, mPageSummary.get(page)); in choiceChosen()
102 public boolean containsPage(@PAGE int page) { in containsPage() argument
103 return mPageSummary.containsKey(page); in containsPage()
112 public String get(@PAGE int page) { in get() argument
113 if (!mPageSummary.containsKey(page)) { in get()
116 return mPageSummary.get(page).toString(); in get()
[all …]
DUserChoiceInfo.java63 public void put(@PAGE int page, String info) { in put() argument
64 mDataSummary.put(page, info); in put()
74 public boolean choiceChosen(CharSequence choice, @PAGE int page) { in choiceChosen() argument
75 if (!mDataSummary.containsKey(page)) { in choiceChosen()
78 return TextUtils.equals(choice, mDataSummary.get(page)); in choiceChosen()
87 public CharSequence getPageSummary(@PAGE int page) { in getPageSummary() argument
88 if (!mDataSummary.containsKey(page)) { in getPageSummary()
91 return mDataSummary.get(page); in getPageSummary()
99 public void removePageSummary(@PAGE int page) { in removePageSummary() argument
100 mDataSummary.remove(page); in removePageSummary()
/packages/services/BuiltInPrintService/src/com/android/bips/
DImageToPdfTask.java77 PdfDocument.Page page = mDocument.startPage(1); in writeBitmapToDocument() local
79 writeBitmapToPage(page, true); in writeBitmapToDocument()
82 writeBitmapToPage(page, false); in writeBitmapToDocument()
84 mDocument.finishPage(page); in writeBitmapToDocument()
87 private void writeBitmapToPage(PdfDocument.Page page, boolean fill) { in writeBitmapToPage() argument
88 RectF extent = new RectF(page.getInfo().getContentRect()); in writeBitmapToPage()
105 drawDirect(page, extent, fill, rotate); in writeBitmapToPage()
108 drawOptimized(page, extent, scale, rotate); in writeBitmapToPage()
115 private void drawDirect(PdfDocument.Page page, RectF extent, boolean fill, boolean rotate) { in drawDirect() argument
134 page.getCanvas().clipRect(extent); in drawDirect()
[all …]
/packages/services/BuiltInPrintService/jni/lib/
Dlib_wprint.c787 _page_t page; in _job_thread() local
989 while (OK == msgQReceive(jq->pageQ, (char *) &page, sizeof(page), in _job_thread()
1006 if (page.last_page && ((i == jq->job_params.num_copies - 1) || in _job_thread()
1010 jq->job_params.last_page = page.last_page; in _job_thread()
1015 if (strlen(page.filename) > 0) { in _job_thread()
1020 if (page.pdf_page) { in _job_thread()
1021 jq->job_params.page_num = page.page_num; in _job_thread()
1027 jq->job_params.print_top_margin += page.top_margin; in _job_thread()
1028 jq->job_params.print_left_margin += page.left_margin; in _job_thread()
1029 jq->job_params.print_right_margin += page.right_margin; in _job_thread()
[all …]
/packages/services/BuiltInPrintService/src/com/android/bips/render/
DPdfRenderService.java73 public SizeD getPageSize(int page) throws RemoteException {
74 if (!openPage(page)) {
81 public ParcelFileDescriptor renderPageStripe(int page, int y, int width, int height,
84 if (!openPage(page)) {
129 private boolean openPage(int page) {
135 if (mPage != null && mPage.getIndex() != page) {
141 mPage = mRenderer.openPage(page);
182 RenderThread(PdfRenderer.Page page, int y, int width, int height, double zoom, in RenderThread() argument
184 mPage = page; in RenderThread()
DIPdfRender.aidl36 SizeD getPageSize(int page); in getPageSize() argument
48 ParcelFileDescriptor renderPageStripe(int page, int y, int width, int height, in renderPageStripe() argument
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/widget/
DDotsPageIndicator.java352 for (int page = 0; page < pageCount; page++) { in drawUnselected()
353 int nextXIndex = page == pageCount - 1 ? page : page + 1; in drawUnselected()
357 Path unselectedPath = getUnselectedPath(page, in drawUnselected()
358 dotCenterX[page], in drawUnselected()
360 page == pageCount - 1 ? INVALID_FRACTION : joiningFractions[page], in drawUnselected()
361 dotRevealFractions[page]); in drawUnselected()
364 canvas.drawCircle(dotCenterX[page], dotCenterY, dotRadius, unselectedPaint); in drawUnselected()
396 private Path getUnselectedPath(int page, in getUnselectedPath() argument
405 && !(page == currentPage && selectedDotInPosition == true)) { in getUnselectedPath()
407 unselectedDotPath.addCircle(dotCenterX[page], dotCenterY, dotRadius, Path.Direction.CW); in getUnselectedPath()
[all …]
/packages/apps/Settings/src/com/android/settings/widget/
DDotsPageIndicator.java352 for (int page = 0; page < pageCount; page++) { in drawUnselected()
353 int nextXIndex = page == pageCount - 1 ? page : page + 1; in drawUnselected()
357 Path unselectedPath = getUnselectedPath(page, in drawUnselected()
358 dotCenterX[page], in drawUnselected()
360 page == pageCount - 1 ? INVALID_FRACTION : joiningFractions[page], in drawUnselected()
361 dotRevealFractions[page]); in drawUnselected()
364 canvas.drawCircle(dotCenterX[page], dotCenterY, dotRadius, unselectedPaint); in drawUnselected()
396 private Path getUnselectedPath(int page, in getUnselectedPath() argument
405 && !(page == currentPage && selectedDotInPosition == true)) { in getUnselectedPath()
407 unselectedDotPath.addCircle(dotCenterX[page], dotCenterY, dotRadius, Path.Direction.CW); in getUnselectedPath()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/
DPagedView.java279 private int ensureWithinScrollBounds(int page) { in ensureWithinScrollBounds() argument
281 int currScroll = getScrollForPage(page); in ensureWithinScrollBounds()
284 page += dir; in ensureWithinScrollBounds()
286 currScroll = getScrollForPage(page); in ensureWithinScrollBounds()
293 page -= dir; in ensureWithinScrollBounds()
295 currScroll = getScrollForPage(page); in ensureWithinScrollBounds()
301 return page; in ensureWithinScrollBounds()
723 int page = indexToPage(indexOfChild(child)); in requestChildRectangleOnScreen() local
724 if (page != mCurrentPage || !mScroller.isFinished()) { in requestChildRectangleOnScreen()
726 setCurrentPage(page); in requestChildRectangleOnScreen()
[all …]
DWorkspace.java318 CellLayout page = mWorkspaceScreens.valueAt(i); in setInsets() local
319 page.setRotationMode(rotationMode); in setInsets()
320 page.setPadding(paddingLeftRight, 0, paddingLeftRight, paddingBottom); in setInsets()
411 CellLayout page = (CellLayout) getPageAt(pageIndex); in onDragStart() local
412 if (page.hasReorderSolution(dragObject.dragInfo)) { in onDragStart()
1434 private void updateAccessibilityFlags(int accessibilityFlag, CellLayout page) { in updateAccessibilityFlags() argument
1435 page.setImportantForAccessibility(IMPORTANT_FOR_ACCESSIBILITY_NO); in updateAccessibilityFlags()
1436 page.getShortcutsAndWidgets().setImportantForAccessibility(accessibilityFlag); in updateAccessibilityFlags()
1437 page.setContentDescription(null); in updateAccessibilityFlags()
1438 page.setAccessibilityDelegate(null); in updateAccessibilityFlags()
[all …]
/packages/services/BuiltInPrintService/src/com/android/bips/jni/
DPdfRender.java126 public SizeD getPageSize(int page) { in getPageSize() argument
127 if (DEBUG) Log.d(TAG, "getPageSize() page=" + page); in getPageSize()
133 return mService.getPageSize(page - 1); in getPageSize()
150 public boolean renderPageStripe(int page, int y, int width, int height, in renderPageStripe() argument
153 Log.d(TAG, "renderPageStripe() page=" + page + " y=" + y + " w=" + width in renderPageStripe()
162 ParcelFileDescriptor input = mService.renderPageStripe(page - 1, y, width, height, in renderPageStripe()
/packages/services/BuiltInPrintService/jni/plugins/
Dpdf_render.c60 static int getPageAttributes(pdf_render_ifc_t *obj, int page, double *width, double *height) { in getPageAttributes() argument
61 LOGD("getPageAttributes %p %d", obj, page); in getPageAttributes()
67 page); in getPageAttributes()
76 static int renderPageStripe(pdf_render_ifc_t *obj, int page, int width, int height, float zoom, in renderPageStripe() argument
78 LOGD("renderPageStripe %p %d", obj, page); in renderPageStripe()
86 if (!(*self->env)->CallBooleanMethod(self->env, self->obj, gPdfRenderRenderPageStripe, page, in renderPageStripe()
Dplugin_pcl.c64 int page; member
137 priv->pcl_ifc->end_page(&priv->job_info, msg.param.end_page.page); in _send_thread()
309 msg.param.end_page.page = -1; in _print_page()
451 msg.param.end_page.page = job_params->page_num; in _print_page()
461 msg.param.end_page.page = -1; in _print_page()
470 msg.param.end_page.page = -1; in _print_page()
480 msg.param.end_page.page = -1; in _print_page()
488 msg.param.end_page.page = -1; in _print_page()
512 msg.param.end_page.page = -1; in _print_blank_page()
Dwprint_mupdf.c54 result = pdf_render->getPageAttributes(pdf_render, image_info->decoder_data.page, &pageWidth, in _mupdf_get_hdr()
72 LOGI("Render page=%d w=%.0f h=%.0f res=%d zoom=%0.2f size=%d", image_info->decoder_data.page, in _mupdf_get_hdr()
77 result = pdf_render->renderPageStripe(pdf_render, image_info->decoder_data.page, imageWidth, in _mupdf_get_hdr()
Dwprint_mupdf.h43 status_t (*renderPageStripe)(pdf_render_ifc_t *self, int page, int width,
49 status_t (*getPageAttributes)(pdf_render_ifc_t *self, int page,
/packages/apps/ThemePicker/src/com/android/customization/picker/
DBasePreviewAdapter.java77 T page = mPages.get(position); in instantiateItem() local
79 page.setCard(card); in instantiateItem()
80 page.bindPreviewContent(); in instantiateItem()
85 return page; in instantiateItem()
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/
DSpringLoadedDragController.java59 int page = w.indexOfChild(mScreen); in onAlarm() local
60 if (page != w.getCurrentPage()) { in onAlarm()
61 w.snapToPage(page); in onAlarm()
/packages/apps/Launcher3/src/com/android/launcher3/keyboard/
DViewGroupFocusHelper.java59 PagedView page = (PagedView) parent; in computeLocationRelativeToContainer() local
60 outRect.left -= page.getScrollForPage(page.indexOfChild(child)); in computeLocationRelativeToContainer()
/packages/apps/SettingsIntelligence/proto/
Dsettings_intelligence_log.proto25 // Opens search page
28 // Leaves search page
49 // Leaves search page without entering any query
/packages/apps/ThemePicker/src/com/android/customization/picker/theme/
DThemeFragment.java518 for (ThemePreviewPage page : mPages) { in rebindWallpaperIfAvailable()
519 if (page.containsWallpaper()) { in rebindWallpaperIfAvailable()
520 page.bindBody(true); in rebindWallpaperIfAvailable()
526 for (ThemePreviewPage page : mPages) { in updateTime()
527 if (page instanceof TimeContainer) { in updateTime()
528 ((TimeContainer)page).updateTime(); in updateTime()
/packages/apps/DeskClock/src/com/android/deskclock/timer/
DTimerFragment.kt388 val page: Int = mViewPager.getCurrentItem() in updatePageIndicators() constant
392 val states = computePageIndicatorStates(page, pageIndicatorCount, pageCount) in updatePageIndicators()
707 page: Int, in computePageIndicatorStates()
715 var rangeStart = page - rangeSize / 2 in computePageIndicatorStates()
753 states[page - rangeStart] = R.drawable.ic_swipe_circle_light in computePageIndicatorStates()

123