Lines Matching defs:pageIndex
150 public PageContentProvider acquirePageContentProvider(int pageIndex, View owner) {
154 Log.i(LOG_TAG, "Acquiring provider for page: " + pageIndex);
157 return new PageContentProvider(pageIndex, owner);
204 public PageContentProvider(int pageIndex, View owner) {
205 mPageIndex = pageIndex;
259 public RenderedPage getRenderedPage(int pageIndex) {
260 return mRenderedPages.get(pageIndex);
263 public RenderedPage removeRenderedPage(int pageIndex) {
264 RenderedPage page = mRenderedPages.remove(pageIndex);
271 public RenderedPage putRenderedPage(int pageIndex, RenderedPage renderedPage) {
272 RenderedPage oldRenderedPage = mRenderedPages.remove(pageIndex);
285 return mRenderedPages.put(pageIndex, renderedPage);
304 Integer pageIndex = entry.getKey();
305 mRenderedPages.remove(pageIndex);
312 final int pageIndex = mRenderedPages.eldest().getKey();
313 RenderedPage renderedPage = mRenderedPages.remove(pageIndex);
570 public void getCachedPage(int pageIndex, RenderSpec renderSpec,
572 RenderedPage renderedPage = mPageContentCache.getRenderedPage(pageIndex);
576 Log.i(LOG_TAG, "Cache hit for page: " + pageIndex);
586 public void renderPage(int pageIndex, RenderSpec renderSpec,
589 RenderedPage renderedPage = mPageContentCache.getRenderedPage(pageIndex);
594 Log.i(LOG_TAG, "Cache hit for page: " + pageIndex);
609 RenderPageTask renderTask = mPageToRenderTaskMap.get(pageIndex);
631 renderTask = new RenderPageTask(pageIndex, renderSpec, callback);
632 mPageToRenderTaskMap.put(pageIndex, renderTask);
636 public void cancelRendering(int pageIndex) {
637 RenderPageTask task = mPageToRenderTaskMap.get(pageIndex);
744 public RenderPageTask(int pageIndex, RenderSpec renderSpec,
746 mPageIndex = pageIndex;