Home
last modified time | relevance | path

Searched refs:pageCount (Results 1 – 15 of 15) sorted by relevance

/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/util/
DPageRangeUtils.java71 public static boolean contains(PageRange[] ourRanges, PageRange[] otherRanges, int pageCount) { in contains() argument
81 otherRanges[0] = new PageRange(0, pageCount - 1); in contains()
346 int pageCount = 0; in getNormalizedPageCount() local
354 pageCount += pageRange.getSize(); in getNormalizedPageCount()
357 return pageCount; in getNormalizedPageCount()
360 public static PageRange asAbsoluteRange(PageRange pageRange, int pageCount) { in asAbsoluteRange() argument
362 return new PageRange(0, pageCount - 1); in asAbsoluteRange()
382 public static boolean isAllPages(PageRange[] pageRanges, int pageCount) { in isAllPages() argument
386 if (isAllPages(pageRange, pageCount)) { in isAllPages()
393 public static boolean isAllPages(PageRange pageRanges, int pageCount) { in isAllPages() argument
[all …]
/frameworks/base/core/java/android/print/
DPrintDocumentInfo.java327 public @NonNull Builder setPageCount(@IntRange(from = -1) int pageCount) { in setPageCount()
328 if (pageCount < 0 && pageCount != PAGE_COUNT_UNKNOWN) { in setPageCount()
333 mPrototype.mPageCount = pageCount; in setPageCount()
/frameworks/base/services/core/java/com/android/server/
DZramWriteback.java98 int pageCount = getWrittenPageCount(); in markAndFlushPages() local
103 if (pageCount != -1) { in markAndFlushPages()
104 Slog.i(TAG, "Total pages written to disk is " + (getWrittenPageCount() - pageCount)); in markAndFlushPages()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/
DGsmCellBroadcastHandler.java143 int pageCount = header.getNumberOfPages(); in handleGsmBroadcastSms() local
144 if (pageCount > 1) { in handleGsmBroadcastSms()
154 pdus = new byte[pageCount][]; in handleGsmBroadcastSms()
/frameworks/base/core/java/android/database/sqlite/
DSQLiteDebug.java164 public DbStats(String dbName, long pageCount, long pageSize, int lookaside, in DbStats() argument
168 dbSize = (pageCount * pageSize) / 1024; in DbStats()
DSQLiteConnection.java1210 long pageCount = 0; in collectDbStats() local
1213 pageCount = executeForLong("PRAGMA page_count;", null, null); in collectDbStats()
1218 dbStatsList.add(getMainDbStatsUnsafe(lookaside, pageCount, pageSize)); in collectDbStats()
1229 pageCount = 0; in collectDbStats()
1232 pageCount = executeForLong("PRAGMA " + name + ".page_count;", null, null); in collectDbStats()
1241 dbStatsList.add(new DbStats(label, pageCount, pageSize, 0, 0, 0, 0)); in collectDbStats()
1260 private DbStats getMainDbStatsUnsafe(int lookaside, long pageCount, long pageSize) { in getMainDbStatsUnsafe() argument
1267 return new DbStats(label, pageCount, pageSize, lookaside, in getMainDbStatsUnsafe()
DSQLiteDatabase.java1009 long pageCount = DatabaseUtils.longForQuery(this, "PRAGMA max_page_count;", null); in getMaximumSize() local
1010 return pageCount * getPageSize(); in getMaximumSize()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/
DPrintActivity.java569 final int pageCount = PageRangeUtils.getNormalizedPageCount( in onUpdateCompleted() local
573 .setPageCount(pageCount) in onUpdateCompleted()
950 final int pageCount = (info != null) ? getAdjustedPageCount(info) : 0; in onAdvancedPrintOptionsActivityResult() local
952 if (pageRanges != null && pageCount > 0) { in onAdvancedPrintOptionsActivityResult()
959 if (pageRange.getEnd() >= pageCount) { in onAdvancedPrintOptionsActivityResult()
961 final int rangeEnd = pageCount - 1; in onAdvancedPrintOptionsActivityResult()
974 updateSelectedPages(validatedArray, pageCount); in onAdvancedPrintOptionsActivityResult()
1897 final int pageCount = getAdjustedPageCount(info); in updateOptionsUi() local
1898 if (pageCount > 0) { in updateOptionsUi()
1900 if (pageCount == 1) { in updateOptionsUi()
[all …]
DPrintPreviewController.java301 final int pageCount = args.argi1; in handleMessage() local
304 mPageAdapter.update(writtenPages, selectedPages, pageCount, in handleMessage()
DPageAdapter.java526 final int pageCount = mConfirmedPagesInDocument.size(); in computeSelectedPages() local
527 for (int i = 0; i < pageCount; i++) { in computeSelectedPages()
/frameworks/base/core/java/com/android/internal/print/
DDumpUtils.java247 int pageCount = info.getPageCount(); in writePrintDocumentInfo() local
248 if (pageCount != PrintDocumentInfo.PAGE_COUNT_UNKNOWN) { in writePrintDocumentInfo()
249 proto.write("page_count", PrintDocumentInfoProto.PAGE_COUNT, pageCount); in writePrintDocumentInfo()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/renderer/
DPdfManipulationService.java289 final int pageCount = mEditor.getPageCount(); in applyPrintAttributes() local
290 for (int i = 0; i < pageCount; i++) { in applyPrintAttributes()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/
DPageContentRepository.java769 public void onPostExecute(Integer pageCount) { in onPostExecute() argument
770 switch (pageCount) { in onPostExecute()
784 mPageCount = pageCount; in onPostExecute()
DRemotePrintDocument.java1011 RemotePrintDocumentInfo document, int pageCount, PageRange[] pages, in WriteCommand() argument
1017 mPageCount = pageCount; in WriteCommand()
DPrintSpoolerService.java1329 final int pageCount = Integer.parseInt(parser.getAttributeValue(null, in parsePrintJobLocked() local
1336 .setPageCount(pageCount) in parsePrintJobLocked()