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

12

/frameworks/opt/photoviewer/src/com/android/ex/photo/
H A DPhotoViewPager.java77 // Set the page transformer to perform the transition animation
78 // for each page in the view.
81 public void transformPage(View page, float position) {
83 // The >= 1 is needed so that the page
84 // (page A) that transitions behind the newly visible
85 // page (page B) that comes in from the left does not
87 // (page A is still technically on screen despite being
92 page.setTranslationX(0);
93 page
[all...]
/frameworks/support/frameworks/support/samples/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/app/page/
H A DPageAndListRowActivity.java15 package android.support.v17.leanback.supportleanbackshowcase.app.page;
H A DSettingsIconPresenter.java15 package android.support.v17.leanback.supportleanbackshowcase.app.page;
H A DCustomTitleView.java15 package android.support.v17.leanback.supportleanbackshowcase.app.page;
/frameworks/support/samples/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/app/page/
H A DPageAndListRowActivity.java15 package android.support.v17.leanback.supportleanbackshowcase.app.page;
H A DSettingsIconPresenter.java15 package android.support.v17.leanback.supportleanbackshowcase.app.page;
H A DCustomTitleView.java15 package android.support.v17.leanback.supportleanbackshowcase.app.page;
/frameworks/base/core/jni/android/graphics/pdf/
H A DPdfDocument.cpp70 PageRecord* page = new PageRecord(width, height, contentRect); local
71 mPages.push_back(page);
72 mCurrentPage = page;
74 SkCanvas* canvas = page->mPictureRecorder->beginRecording(
93 PageRecord* page = mPages[i]; local
95 SkCanvas* canvas = document->beginPage(page->mWidth, page->mHeight,
96 &(page->mContentRect));
98 canvas->drawPicture(page->mPicture);
H A DPdfEditor.cpp179 CPDF_Page* page = (CPDF_Page*) FPDF_LoadPage(document, pageIndex); local
180 if (!page) {
182 "cannot open page");
192 "cannot get page size");
209 matrix.Set(1, 0, 0, -1, 0, page->GetPageHeight());
217 matrix.Concat(1, 0, 0, -1, 0, page->GetPageHeight());
222 FPDFPage_TransFormWithClip(page, &transform, &clip);
224 FPDF_ClosePage(page);
231 FPDF_PAGE page = FPDF_LoadPage(document, pageIndex); local
232 if (!page) {
264 FPDF_PAGE page = FPDF_LoadPage(document, pageIndex); local
312 FPDF_PAGE page = FPDF_LoadPage(document, pageIndex); local
[all...]
H A DPdfRenderer.cpp108 FPDF_PAGE page = FPDF_LoadPage(document, pageIndex); local
110 if (!page) {
112 "cannot load page");
123 "cannot get page size");
130 return reinterpret_cast<jlong>(page);
134 FPDF_PAGE page = reinterpret_cast<FPDF_PAGE>(pagePtr); local
135 FPDF_ClosePage(page);
158 static void renderPageBitmap(FPDF_BITMAP bitmap, FPDF_PAGE page, int destLeft, int destTop, argument
167 CPDF_Page* pPage = (CPDF_Page*) page;
225 ALOGE("Error rendering page!");
245 FPDF_PAGE page = reinterpret_cast<FPDF_PAGE>(pagePtr); local
[all...]
/frameworks/av/media/libstagefright/
H A DNuCachedSource2.cpp43 void releasePage(Page *page);
45 void appendPage(Page *page);
79 Page *page = *it; local
81 free(page->mData);
82 delete page;
83 page = NULL;
92 Page *page = *it; local
95 return page;
98 Page *page = new Page; local
99 page
105 releasePage(Page *page) argument
110 appendPage(Page *page) argument
121 Page *page = *it; local
360 PageCache::Page *page = mCache->acquirePage(); local
[all...]
H A DOggExtractor.cpp132 ssize_t readPage(off64_t offset, Page *page);
355 // Given the offset of the "current" page, find the page immediately preceding
357 // To do this we back up from the "current" page's offset until we find any
358 // page preceding it and then scan forward to just before the current page.
376 // We are at the last page and didn't back off enough;
389 // We did not find a page preceding this one.
475 // We found the page we wanted to seek to, but we'll also need
476 // the page precedin
494 readPage(off64_t offset, Page *page) argument
858 Page page; local
[all...]
/frameworks/opt/setupwizard/library/test/src/com/android/setupwizardlib/test/
H A DRequireScrollHelperTest.java74 assertEquals("ScrollView page should be initially 0", 0, mScrollView.page);
77 assertEquals("ScrollView page should be scrolled by 1", 1, mScrollView.page);
83 public int page = 0; field in class:RequireScrollHelperTest.TestBottomScrollView
97 page++;
99 page--;
/frameworks/base/graphics/java/android/graphics/pdf/
H A DPdfDocument.java35 * create a new document and then for every page you want to add you start a page,
36 * write content to the page, and finish the page. After you are done with all
39 * created one by one, i.e. you can have only a single page to which you are
49 * // crate a page description
52 * // start a page
53 * Page page = document.startPage(pageInfo);
55 * // draw something on the page
57 * content.draw(page
139 finishPage(Page page) argument
[all...]
/frameworks/minikin/libs/minikin/
H A DSparseBitSet.cpp133 for (uint32_t page = fromPage + 1; page < maxPage; page++) {
134 uint32_t index = mIndices[page];
142 return (page << kLogValuesPerPage) + (j << kLogBitsPerEl) + CountLeadingZeros(e);
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/
H A DPageAdapter.java300 View page = mLayoutInflater.inflate(R.layout.preview_page, parent, false);
301 return new MyViewHolder(page);
313 PreviewPageFrame page = (PreviewPageFrame) holder.itemView;
314 page.setOnClickListener(mPageClickListener);
316 page.setTag(holder);
323 PageContentView content = (PageContentView) page.findViewById(R.id.page_content);
348 page.setSelected(true, false);
350 page.setSelected(false, false);
353 page.setContentDescription(mContext.getString(R.string.page_description_template,
356 TextView pageNumberView = (TextView) page
771 recyclePageView(PageContentView page, int pageIndexInAdapter) argument
[all...]
/frameworks/base/libs/hwui/utils/
H A DLinearAllocator.cpp34 // The ideal size of a page allocation (these need to be multiples of 8)
38 // The maximum amount of wasted space we can have per page
39 // Allocations exceeding this will have their own dedicated page
174 // Allocation is too large, create a dedicated page for the allocation
175 Page* page = newPage(size); local
177 page->setNext(mPages);
178 mPages = page;
181 return start(page);
/frameworks/support/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/media/
H A DBrowseFragment.java56 // The number of media items per page.
76 int page = options.getInt(MediaBrowserCompat.EXTRA_PAGE, -1);
78 if (page < 0 || pageSize != PAGE_SIZE || children == null
83 int itemIndex = page * PAGE_SIZE;
88 // An additional page is loaded.
91 // An existing page is replaced by the newly loaded page.
101 // If the newly loaded page contains less than {PAGE_SIZE} items,
102 // then this page should be the last page
238 loadPage(int page) argument
[all...]
H A DMediaBrowserServiceSupport.java280 int page = -1;
285 page = options.getInt(MediaBrowserCompat.EXTRA_PAGE, -1);
288 if (page < 0 || pageSize < 1) {
294 int fromIndex = page == -1 ? 0 : page * pageSize;
301 if (page <= 0) {
316 toIndex = page == -1 ? genres.size() : Math.min(fromIndex + pageSize, genres.size());
337 toIndex = page == -1 ? tracks.size() : Math.min(fromIndex + pageSize, tracks.size());
/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/media/
H A DBrowseFragment.java56 // The number of media items per page.
76 int page = options.getInt(MediaBrowserCompat.EXTRA_PAGE, -1);
78 if (page < 0 || pageSize != PAGE_SIZE || children == null
83 int itemIndex = page * PAGE_SIZE;
88 // An additional page is loaded.
91 // An existing page is replaced by the newly loaded page.
101 // If the newly loaded page contains less than {PAGE_SIZE} items,
102 // then this page should be the last page
238 loadPage(int page) argument
[all...]
H A DMediaBrowserServiceSupport.java280 int page = -1;
285 page = options.getInt(MediaBrowserCompat.EXTRA_PAGE, -1);
288 if (page < 0 || pageSize < 1) {
294 int fromIndex = page == -1 ? 0 : page * pageSize;
301 if (page <= 0) {
316 toIndex = page == -1 ? genres.size() : Math.min(fromIndex + pageSize, genres.size());
337 toIndex = page == -1 ? tracks.size() : Math.min(fromIndex + pageSize, tracks.size());
/frameworks/support/design/tests/src/android/support/design/testutils/
H A DViewPagerActions.java38 * Moves <code>ViewPager</code> to the right by one page.
49 return "ViewPager scroll one page to the right";
66 * Moves <code>ViewPager</code> to the left by one page.
77 return "ViewPager scroll one page to the left";
94 * Moves <code>ViewPager</code> to the last page.
105 return "ViewPager scroll to last page";
124 * Moves <code>ViewPager</code> to the first page.
135 return "ViewPager scroll to first page";
154 * Moves <code>ViewPager</code> to specific page.
156 public static ViewAction scrollToPage(final int page) { argument
[all...]
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/renderer/
H A DPdfManipulationService.java111 try (PdfRenderer.Page page = mRenderer.openPage(pageIndex)) {
112 final int srcWidthPts = page.getWidth();
113 final int srcHeightPts = page.getHeight();
157 Log.i(LOG_TAG, "Rendering page:" + pageIndex);
161 page.render(bitmap, clip, matrix, PdfRenderer.Page.RENDER_MODE_FOR_DISPLAY);
166 Log.e(LOG_TAG, "Cannot render page", e);
/frameworks/support/core-utils/kitkat/android/support/v4/print/
H A DPrintHelperKitkat.java154 * @param orientation The page orientation which is one of
162 * Gets the page orientation with which the image will be printed.
283 * Calculates the transform the print an Image to fill the page
287 * @param content The output page dimensions
294 // Compute and apply scale to fill the page.
355 Page page = pdfDocument.startPage(1);
359 contentRect = new RectF(page.getInfo().getContentRect());
383 page.getCanvas().clipRect(contentRect);
387 page.getCanvas().drawBitmap(maybeGrayscale, matrix, null);
389 // Finish the page
[all...]
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/
H A DPageContentRepository.java155 Log.i(LOG_TAG, "Acquiring provider for page: " + pageIndex);
165 Log.i(LOG_TAG, "Releasing provider for page: " + provider.mPageIndex);
265 RenderedPage page = mRenderedPages.remove(pageIndex);
266 if (page != null) {
267 mSizeInBytes -= page.getSizeInBytes();
269 return page;
276 throw new IllegalStateException("Wrong page size");
300 // First try to remove a rendered page that holds invalidated
378 public boolean hasSameSize(RenderedPage page) { argument
379 Bitmap bitmap = page
[all...]

Completed in 854 milliseconds

12