Home
last modified time | relevance | path

Searched refs:pageSize (Results 1 – 17 of 17) sorted by relevance

/frameworks/base/core/java/android/database/sqlite/
DSQLiteDebug.java125 public long pageSize; field in SQLiteDebug.DbStats
136 public DbStats(String dbName, long pageCount, long pageSize, int lookaside, in DbStats() argument
139 this.pageSize = pageSize / 1024; in DbStats()
140 dbSize = (pageCount * pageSize) / 1024; in DbStats()
DSQLiteConnection.java1114 long pageSize = 0; in collectDbStats() local
1117 pageSize = executeForLong("PRAGMA page_size;", null, null); in collectDbStats()
1121 dbStatsList.add(getMainDbStatsUnsafe(lookaside, pageCount, pageSize)); in collectDbStats()
1133 pageSize = 0; in collectDbStats()
1136 pageSize = executeForLong("PRAGMA " + name + ".page_size;", 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()
DSQLiteDatabase.java896 long pageSize = getPageSize(); in setMaximumSize() local
897 long numPages = numBytes / pageSize; in setMaximumSize()
899 if ((numBytes % pageSize) != 0) { in setMaximumSize()
904 return newPageCount * pageSize; in setMaximumSize()
/frameworks/av/media/libmedia/
DMediaUtils.cpp34 long pageSize = sysconf(_SC_PAGESIZE); in limitProcessMemory() local
38 if (pageSize > 0 && numPages > 0) { in limitProcessMemory()
39 if (size_t(numPages) < SIZE_MAX / size_t(pageSize)) { in limitProcessMemory()
40 maxMem = size_t(numPages) * size_t(pageSize); in limitProcessMemory()
DIOMX.cpp742 size_t pageSize = 0; in onTransact() local
753 pageSize = (size_t) sysconf(_SC_PAGE_SIZE); in onTransact()
754 if (size > SIZE_MAX - (pageSize * 2)) { in onTransact()
757 allocSize = (size + pageSize * 2) & ~(pageSize - 1); in onTransact()
778 mprotect((char*)params + allocSize - pageSize, pageSize, PROT_NONE); in onTransact()
/frameworks/base/libs/hwui/utils/
DLinearAllocator.cpp102 void* end(int pageSize) { in end() argument
103 return (void*) (((size_t)start()) + pageSize); in end()
235 LinearAllocator::Page* LinearAllocator::newPage(size_t pageSize) { in newPage() argument
236 pageSize = ALIGN(pageSize + sizeof(LinearAllocator::Page)); in newPage()
238 mTotalAllocated += pageSize; in newPage()
240 void* buf = malloc(pageSize); in newPage()
DLinearAllocator.h134 Page* newPage(size_t pageSize);
/frameworks/compile/mclinker/lib/Core/
DGeneralOptions.cpp139 m_CommPageSize = pOption.pageSize(); in addZOption()
142 m_MaxPageSize = pOption.pageSize(); in addZOption()
/frameworks/base/media/java/android/service/media/
DMediaBrowserService.java680 int pageSize = options.getInt(MediaBrowser.EXTRA_PAGE_SIZE, -1); in applyOptions() local
681 if (page == -1 && pageSize == -1) { in applyOptions()
684 int fromIndex = pageSize * page; in applyOptions()
685 int toIndex = fromIndex + pageSize; in applyOptions()
686 if (page < 0 || pageSize < 1 || fromIndex >= list.size()) { in applyOptions()
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/dirlist/
DFocusManager.java234 int pageSize = last - first + 1; in findPagedTargetPosition() local
242 int target = current - pageSize; in findPagedTargetPosition()
253 int target = current + pageSize; in findPagedTargetPosition()
/frameworks/compile/mclinker/include/mcld/MC/
DZOption.h57 uint64_t pageSize() const { return m_PageSize; } in pageSize() function
/frameworks/av/media/libstagefright/
DNuCachedSource2.cpp34 PageCache(size_t pageSize);
66 PageCache::PageCache(size_t pageSize) in PageCache() argument
67 : mPageSize(pageSize), in PageCache()
DOggExtractor.cpp859 ssize_t pageSize; in buildTableOfContents() local
860 while ((pageSize = readPage(offset, &page)) > 0) { in buildTableOfContents()
869 offset += (size_t)pageSize; in buildTableOfContents()
/frameworks/support/v4/java/android/support/v4/media/
DMediaBrowserServiceCompat.java1066 int pageSize = options.getInt(MediaBrowserCompat.EXTRA_PAGE_SIZE, -1); in applyOptions() local
1067 if (page == -1 && pageSize == -1) { in applyOptions()
1070 int fromIndex = pageSize * page; in applyOptions()
1071 int toIndex = fromIndex + pageSize; in applyOptions()
1072 if (page < 0 || pageSize < 1 || fromIndex >= list.size()) { in applyOptions()
DMediaBrowserCompat.java621 int pageSize = options.getInt(MediaBrowserCompat.EXTRA_PAGE_SIZE, -1); in applyOptions() local
622 if (page == -1 && pageSize == -1) { in applyOptions()
625 int fromIndex = pageSize * page; in applyOptions()
626 int toIndex = fromIndex + pageSize; in applyOptions()
627 if (page < 0 || pageSize < 1 || fromIndex >= list.size()) { in applyOptions()
/frameworks/base/docs/html/training/printing/
Dcustom-docs.jd198 MediaSize pageSize = printAttributes.getMediaSize();
199 if (!pageSize.isPortrait()) {
/frameworks/base/core/java/android/app/
DActivityThread.java1085 pw.print(','); pw.print(dbStats.pageSize); in dumpMemInfo()
1129 (dbStats.pageSize > 0) ? String.valueOf(dbStats.pageSize) : " ", in dumpMemInfo()