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

123

/frameworks/base/media/java/android/media/update/
H A DMediaBrowser2Provider.java31 void getChildren_impl(String parentId, int page, int pageSize, Bundle extras); argument
33 void getSearchResult_impl(String query, int page, int pageSize, Bundle extras); argument
/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/paging/common/src/main/java/androidx/paging/
H A DPagedStorage.java43 * Safe to access any item in any page.
45 * Non-contiguous - mPages may have nulls or a placeholder page, isTiled() always returns true.
75 PagedStorage(int leadingNulls, List<T> page, int trailingNulls) { argument
77 init(leadingNulls, page, trailingNulls, 0);
95 private void init(int leadingNulls, List<T> page, int trailingNulls, int positionOffset) { argument
98 mPages.add(page);
102 mStorageCount = page.size();
106 mPageSize = page.size();
112 void init(int leadingNulls, @NonNull List<T> page, int trailingNulls, int positionOffset, argument
114 init(leadingNulls, page, trailingNull
248 prependPage(@onNull List<T> page, @NonNull Callback callback) argument
279 appendPage(@onNull List<T> page, @NonNull Callback callback) argument
333 insertPage(int position, @NonNull List<T> page, @Nullable Callback callback) argument
[all...]
H A DPageResult.java54 public final List<T> page; field in class:PageResult
63 this.page = list;
70 this.page = list;
79 + ", " + page
H A DContiguousPagedList.java52 List<V> page = pageResult.page;
54 mStorage.init(pageResult.leadingNulls, page, pageResult.trailingNulls,
60 pageResult.leadingNulls + pageResult.positionOffset + page.size() / 2;
63 mStorage.appendPage(page, ContiguousPagedList.this);
65 mStorage.prependPage(page, ContiguousPagedList.this);
75 && pageResult.page.size() == 0;
78 && pageResult.page.size() == 0;
261 // consider whether to post more work, now that a page is fully prepended
279 // consider whether to post more work, now that a page i
[all...]
/frameworks/base/core/jni/android/graphics/pdf/
H A DPdfRenderer.cpp47 FPDF_PAGE page = FPDF_LoadPage(document, pageIndex); local
48 if (!page) {
50 "cannot load page");
60 "cannot get page size");
67 return reinterpret_cast<jlong>(page);
71 FPDF_PAGE page = reinterpret_cast<FPDF_PAGE>(pagePtr); local
72 FPDF_ClosePage(page);
78 FPDF_PAGE page = reinterpret_cast<FPDF_PAGE>(pagePtr); local
110 FPDF_RenderPageBitmapWithMatrix(bitmap, page, &transform, &clip, renderFlags);
H A DPdfEditor.cpp114 FPDF_PAGE* page = (FPDF_PAGE*) FPDF_LoadPage(document, pageIndex); local
115 if (!page) {
117 "cannot open page");
127 "cannot get page size");
134 SkMatrix moveUp = SkMatrix::MakeTrans(0, FPDF_GetPageHeight(page));
146 FPDF_ClosePage(page);
160 FPDFPage_TransFormWithClip(page, &transform, &clip);
162 FPDF_ClosePage(page);
169 FPDF_PAGE page = FPDF_LoadPage(document, pageIndex); local
170 if (!page) {
196 FPDF_PAGE page = FPDF_LoadPage(document, pageIndex); local
244 FPDF_PAGE page = FPDF_LoadPage(document, pageIndex); local
[all...]
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));
97 canvas->drawPicture(page->mPicture);
/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...]
/frameworks/av/packages/MediaComponents/src/com/android/media/
H A DMediaBrowser2Impl.java133 public void getChildren_impl(String parentId, int page, int pageSize, Bundle extras) { argument
137 if (page < 1 || pageSize < 1) {
138 throw new IllegalArgumentException("Neither page nor pageSize should be less than 1");
144 binder.getChildren(getControllerStub(), parentId, page, pageSize, extras);
177 public void getSearchResult_impl(String query, int page, int pageSize, Bundle extras) { argument
181 if (page < 1 || pageSize < 1) {
182 throw new IllegalArgumentException("Neither page nor pageSize should be less than 1");
187 binder.getSearchResult(getControllerStub(), query, page, pageSize, extras);
212 public void onGetChildrenDone(String parentId, int page, int pageSize, List<MediaItem2> result, argument
215 mCallback.onGetChildrenDone(getInstance(), parentId, page, pageSiz
225 onGetSearchResultDone(String query, int page, int pageSize, List<MediaItem2> result, Bundle extras) argument
[all...]
H A DIMediaController2.aidl62 void onGetChildrenDone(String parentId, int page, int pageSize, in List<Bundle> result,
65 void onGetSearchResultDone(String query, int page, int pageSize, in List<Bundle> result,
H A DIMediaSession2.aidl78 void getChildren(IMediaController2 caller, String parentId, int page, int pageSize,
81 void getSearchResult(IMediaController2 caller, String query, int page, int pageSize,
/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/base/media/java/android/media/
H A DMediaBrowser2.java80 * @param page page number that you've specified with
82 * @param pageSize page size that you've specified with
88 int page, int pageSize, @Nullable List<MediaItem2> result,
125 * @param page page number that you've specified with
127 * @param pageSize page size that you've specified with
133 int page, int pageSize, @Nullable List<MediaItem2> result,
192 * @param page page numbe
87 onGetChildrenDone(@onNull MediaBrowser2 browser, @NonNull String parentId, int page, int pageSize, @Nullable List<MediaItem2> result, @Nullable Bundle extras) argument
132 onGetSearchResultDone(@onNull MediaBrowser2 browser, @NonNull String query, int page, int pageSize, @Nullable List<MediaItem2> result, @Nullable Bundle extras) argument
196 getChildren(@onNull String parentId, int page, int pageSize, @Nullable Bundle extras) argument
234 getSearchResult(@onNull String query, int page, int pageSize, @Nullable Bundle extras) argument
[all...]
/frameworks/support/media/src/androidTest/java/androidx/media/
H A DMockMediaLibraryService2.java161 ControllerInfo controller, String parentId, int page, int pageSize, Bundle extras) {
163 return getPaginatedResult(GET_CHILDREN_RESULT, page, pageSize);
195 ControllerInfo controllerInfo, String query, int page, int pageSize,
198 return getPaginatedResult(SEARCH_RESULT, page, pageSize);
205 private List<MediaItem2> getPaginatedResult(List<MediaItem2> items, int page, int pageSize) { argument
213 int fromIndex = (page - 1) * pageSize;
214 int toIndex = Math.min(page * pageSize, totalItemCount);
222 + totalItemCount + ", page=" + page + ", pageSize=" + pageSize, ex);
160 onGetChildren(MediaLibrarySession session, ControllerInfo controller, String parentId, int page, int pageSize, Bundle extras) argument
194 onGetSearchResult(MediaLibrarySession session, ControllerInfo controllerInfo, String query, int page, int pageSize, Bundle extras) argument
H A DMediaBrowser2Test.java185 final int page = 4;
196 assertEquals(page, pageOut);
201 int fromIndex = (page - 1) * pageSize;
202 int toIndex = Math.min(page * pageSize, MockMediaLibraryService2.CHILDREN_COUNT);
218 browser.getChildren(parentId, page, pageSize, extras);
269 final int page = 4;
290 assertEquals(page, pageOut);
295 int fromIndex = (page - 1) * pageSize;
297 page * pageSize, MockMediaLibraryService2.SEARCH_RESULT_COUNT);
317 browser.getSearchResult(query, page, pageSiz
764 onGetChildrenDone(MediaBrowser2 browser, String parentId, int page, int pageSize, List<MediaItem2> result, Bundle extras) argument
784 onGetSearchResultDone(MediaBrowser2 browser, String query, int page, int pageSize, List<MediaItem2> result, Bundle extras) argument
[all...]
/frameworks/minikin/libs/minikin/
H A DSparseBitSet.cpp125 for (uint32_t page = fromPage + 1; page < maxPage; page++) {
126 uint16_t index = mIndices[page];
134 return (page << kLogValuesPerPage) + (j << kLogBitsPerEl) + CountLeadingZeros(e);
/frameworks/support/media/src/main/java/androidx/media/
H A DMediaBrowser2.java110 * @param page page number that you've specified with
112 * @param pageSize page size that you've specified with
118 int page, int pageSize, @Nullable List<MediaItem2> result,
155 * @param page page number that you've specified with
157 * @param pageSize page size that you've specified with
163 int page, int pageSize, @Nullable List<MediaItem2> result,
288 * @param page page numbe
117 onGetChildrenDone(@onNull MediaBrowser2 browser, @NonNull String parentId, int page, int pageSize, @Nullable List<MediaItem2> result, @Nullable Bundle extras) argument
162 onGetSearchResultDone(@onNull MediaBrowser2 browser, @NonNull String query, int page, int pageSize, @Nullable List<MediaItem2> result, @Nullable Bundle extras) argument
292 getChildren(@onNull String parentId, int page, int pageSize, @Nullable Bundle extras) argument
390 getSearchResult(final @NonNull String query, final int page, final int pageSize, final @Nullable Bundle extras) argument
535 GetChildrenCallback(String parentId, int page, int pageSize) argument
[all...]
H A DMediaLibraryService2.java131 * @param page number of page
132 * @param pageSize size of the page
138 @NonNull ControllerInfo controller, @NonNull String parentId, int page,
197 * @param page page number. Starts from {@code 1}.
198 * @param pageSize page size. Should be greater or equal to {@code 1}.
205 @NonNull String query, int page, int pageSize, @Nullable Bundle extras) {
528 int page = options.getInt(EXTRA_PAGE);
530 if (page >
137 onGetChildren(@onNull MediaLibrarySession session, @NonNull ControllerInfo controller, @NonNull String parentId, int page, int pageSize, @Nullable Bundle extras) argument
203 onGetSearchResult( @onNull MediaLibrarySession session, @NonNull ControllerInfo controllerInfo, @NonNull String query, int page, int pageSize, @Nullable Bundle extras) argument
[all...]
/frameworks/av/media/extractors/ogg/
H A DOggExtractor.cpp137 ssize_t readPage(off64_t offset, Page *page);
358 // Given the offset of the "current" page, find the page immediately preceding
360 // To do this we back up from the "current" page's offset until we find any
361 // page preceding it and then scan forward to just before the current page.
379 // We are at the last page and didn't back off enough;
392 // We did not find a page preceding this one.
478 // We found the page we wanted to seek to, but we'll also need
479 // the page precedin
497 readPage(off64_t offset, Page *page) argument
878 Page page; local
[all...]
/frameworks/support/paging/common/src/test/java/androidx/paging/
H A DPageKeyedDataSourceTest.kt46 val page = getPage(INIT_KEY)
47 callback.onResult(page.data, page.prev, page.next)
51 val page = getPage(params.key)
52 callback.onResult(page.data, page.prev)
56 val page = getPage(params.key)
57 callback.onResult(page.data, page
[all...]
/frameworks/support/media/version-compat-tests/previous/client/src/androidTest/java/android/support/mediacompat/client/
H A DMediaBrowserCompatTest.java355 for (int page = 0; page <= lastPage; ++page) {
357 options.putInt(MediaBrowserCompat.EXTRA_PAGE, page);
362 if (page != lastPage) {
368 // Check whether all the items in the current page are loaded.
370 assertEquals(MEDIA_ID_CHILDREN[page * pageSize + i],
375 mSubscriptionCallback.reset(page + 1);
378 assertEquals(page + 1, mSubscriptionCallback.mChildrenLoadedWithOptionCount);
430 final int page
[all...]
/frameworks/support/frameworks/support/samples/Support4Demos/src/main/java/com/example/android/supportv4/media/
H A DBrowseFragment.java60 // The number of media items per page.
81 int page = options.getInt(MediaBrowserCompat.EXTRA_PAGE, -1);
83 if (page < 0 || pageSize != PAGE_SIZE || children == null
88 int itemIndex = page * PAGE_SIZE;
93 // An additional page is loaded.
96 // An existing page is replaced by the newly loaded page.
106 // If the newly loaded page contains less than {PAGE_SIZE} items,
107 // then this page should be the last page
244 loadPage(int page) argument
[all...]
/frameworks/support/samples/Support4Demos/src/main/java/com/example/android/supportv4/media/
H A DBrowseFragment.java60 // The number of media items per page.
81 int page = options.getInt(MediaBrowserCompat.EXTRA_PAGE, -1);
83 if (page < 0 || pageSize != PAGE_SIZE || children == null
88 int itemIndex = page * PAGE_SIZE;
93 // An additional page is loaded.
96 // An existing page is replaced by the newly loaded page.
106 // If the newly loaded page contains less than {PAGE_SIZE} items,
107 // then this page should be the last page
244 loadPage(int page) argument
[all...]
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/
H A DPageAdapter.java303 View page;
306 page = mLayoutInflater.inflate(R.layout.preview_page_selected, parent, false);
308 page = mLayoutInflater.inflate(R.layout.preview_page, parent, false);
311 return new MyViewHolder(page);
323 PreviewPageFrame page = (PreviewPageFrame) holder.itemView;
324 page.setOnClickListener(mPageClickListener);
326 page.setTag(holder);
333 PageContentView content = (PageContentView) page.findViewById(R.id.page_content);
358 page.setSelected(true);
360 page
799 recyclePageView(PageContentView page, int pageIndexInAdapter) argument
[all...]

Completed in 211 milliseconds

123