/frameworks/support/v17/tests/src/android/support/v17/leanback/widget/ |
D | PagingIndicatorTest.java | 50 int pageCount = mIndicator.getPageCount(); in assertSymmetry() local 51 int mid = pageCount / 2; in assertSymmetry() 53 int sum = selectedX[0] + selectedX[pageCount - 1]; in assertSymmetry() 56 selectedX[i] + selectedX[pageCount - i - 1]); in assertSymmetry() 60 sum = leftX[0] + rightX[pageCount - 1]; in assertSymmetry() 61 for (int i = 1; i < pageCount - 1; ++i) { in assertSymmetry() 63 leftX[i] + rightX[pageCount - i - 1]); in assertSymmetry() 68 int pageCount = mIndicator.getPageCount(); in assertDistance() local 73 for (int i = 2; i < pageCount; ++i) { in assertDistance() 78 for (int i = 2; i < pageCount - 1; ++i) { in assertDistance() [all …]
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/util/ |
D | PageRangeUtils.java | 71 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/ |
D | PrintDocumentInfo.java | 324 public @NonNull Builder setPageCount(@IntRange(from = -1) int pageCount) { in setPageCount() 325 if (pageCount < 0 && pageCount != PAGE_COUNT_UNKNOWN) { in setPageCount() 330 mPrototype.mPageCount = pageCount; in setPageCount()
|
/frameworks/base/core/java/android/database/sqlite/ |
D | SQLiteDebug.java | 136 public DbStats(String dbName, long pageCount, long pageSize, int lookaside, in DbStats() argument 140 dbSize = (pageCount * pageSize) / 1024; in DbStats()
|
D | SQLiteConnection.java | 1113 long pageCount = 0; in collectDbStats() local 1116 pageCount = executeForLong("PRAGMA page_count;", null, null); in collectDbStats() 1121 dbStatsList.add(getMainDbStatsUnsafe(lookaside, pageCount, pageSize)); in collectDbStats() 1132 pageCount = 0; in collectDbStats() 1135 pageCount = executeForLong("PRAGMA " + name + ".page_count;", null, null); in collectDbStats() 1144 dbStatsList.add(new DbStats(label, pageCount, pageSize, 0, 0, 0, 0)); in collectDbStats() 1163 private DbStats getMainDbStatsUnsafe(int lookaside, long pageCount, long pageSize) { in getMainDbStatsUnsafe() argument 1170 return new DbStats(label, pageCount, pageSize, lookaside, in getMainDbStatsUnsafe()
|
D | SQLiteDatabase.java | 884 long pageCount = DatabaseUtils.longForQuery(this, "PRAGMA max_page_count;", null); in getMaximumSize() local 885 return pageCount * getPageSize(); in getMaximumSize()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/ |
D | GsmCellBroadcastHandler.java | 141 int pageCount = header.getNumberOfPages(); in handleGsmBroadcastSms() local 142 if (pageCount > 1) { in handleGsmBroadcastSms() 152 pdus = new byte[pageCount][]; in handleGsmBroadcastSms()
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/ |
D | PrintActivity.java | 523 final int pageCount = PageRangeUtils.getNormalizedPageCount(document.writtenPages, in onUpdateCompleted() local 527 .setPageCount(pageCount) in onUpdateCompleted() 874 final int pageCount = (info != null) ? getAdjustedPageCount(info) : 0; in onAdvancedPrintOptionsActivityResult() local 876 if (pageRanges != null && pageCount > 0) { in onAdvancedPrintOptionsActivityResult() 883 if (pageRange.getEnd() >= pageCount) { in onAdvancedPrintOptionsActivityResult() 885 final int rangeEnd = pageCount - 1; in onAdvancedPrintOptionsActivityResult() 898 updateSelectedPages(validatedArray, pageCount); in onAdvancedPrintOptionsActivityResult() 1800 final int pageCount = getAdjustedPageCount(info); in updateOptionsUi() local 1801 if (pageCount > 0) { in updateOptionsUi() 1803 if (pageCount == 1) { in updateOptionsUi() [all …]
|
D | PrintPreviewController.java | 301 final int pageCount = args.argi1; in handleMessage() local 304 mPageAdapter.update(writtenPages, selectedPages, pageCount, in handleMessage()
|
D | PageAdapter.java | 501 final int pageCount = mConfirmedPagesInDocument.size(); in computeSelectedPages() local 502 for (int i = 0; i < pageCount; i++) { in computeSelectedPages()
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/renderer/ |
D | PdfManipulationService.java | 289 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/ |
D | PageContentRepository.java | 706 public void onPostExecute(Integer pageCount) { in onPostExecute() argument 707 switch (pageCount) { in onPostExecute() 721 mPageCount = pageCount; in onPostExecute()
|
D | RemotePrintDocument.java | 988 RemotePrintDocumentInfo document, int pageCount, PageRange[] pages, in WriteCommand() argument 994 mPageCount = pageCount; in WriteCommand()
|
D | PrintSpoolerService.java | 1284 final int pageCount = Integer.parseInt(parser.getAttributeValue(null, in parsePrintJob() local 1291 .setPageCount(pageCount) in parsePrintJob()
|