Home
last modified time | relevance | path

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

/frameworks/av/media/utils/
DLimitProcessMemory.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()
/frameworks/base/media/java/android/media/browse/
DMediaBrowserUtils.java92 int pageSize = options.getInt(MediaBrowser.EXTRA_PAGE_SIZE, -1); in applyPagingOptions() local
93 if (page == -1 && pageSize == -1) { in applyPagingOptions()
96 int fromIndex = pageSize * page; in applyPagingOptions()
97 int toIndex = fromIndex + pageSize; in applyPagingOptions()
98 if (page < 0 || pageSize < 1 || fromIndex >= list.size()) { in applyPagingOptions()
/frameworks/base/core/java/android/database/sqlite/
DSQLiteDebug.java165 public long pageSize; field in SQLiteDebug.DbStats
186 public DbStats(@NonNull String dbName, long pageCount, long pageSize, int lookaside, in DbStats() argument
189 this.pageSize = pageSize / 1024; in DbStats()
190 dbSize = (pageCount * pageSize) / 1024; in DbStats()
DSQLiteConnection.java1375 long pageSize = 0; in collectDbStats() local
1378 pageSize = executeForLong("PRAGMA page_size;", null, null); in collectDbStats()
1382 dbStatsList.add(getMainDbStatsUnsafe(lookaside, pageCount, pageSize)); in collectDbStats()
1394 pageSize = 0; in collectDbStats()
1397 pageSize = executeForLong("PRAGMA " + name + ".page_size;", null, null); in collectDbStats()
1406 new DbStats(label.toString(), pageCount, pageSize, 0, 0, 0, 0, false)); in collectDbStats()
1425 private DbStats getMainDbStatsUnsafe(int lookaside, long pageCount, long pageSize) { in getMainDbStatsUnsafe() argument
1434 return new DbStats(label, pageCount, pageSize, lookaside, in getMainDbStatsUnsafe()
DSQLiteDatabase.java1368 long pageSize = getPageSize(); in setMaximumSize() local
1369 long numPages = numBytes / pageSize; in setMaximumSize()
1371 if ((numBytes % pageSize) != 0) { in setMaximumSize()
1376 return newPageCount * pageSize; in setMaximumSize()
/frameworks/base/libs/hwui/utils/
DLinearAllocator.cpp89 void* end(int pageSize) { return (void*)(((size_t)start()) + pageSize); } in end() argument
219 LinearAllocator::Page* LinearAllocator::newPage(size_t pageSize) { in newPage() argument
220 pageSize = ALIGN(pageSize + sizeof(LinearAllocator::Page)); in newPage()
222 mTotalAllocated += pageSize; in newPage()
224 void* buf = malloc(pageSize); in newPage()
DLinearAllocator.h135 Page* newPage(size_t pageSize);
/frameworks/av/media/libshmem/
DShmemCompat.cpp34 const size_t pageSize = getpagesize(); in convertSharedFileRegionToIMemory() local
35 const size_t pageMask = ~(pageSize - 1); in convertSharedFileRegionToIMemory()
44 const uint64_t heapEndOffset = (endOffset + pageSize - 1) & pageMask; in convertSharedFileRegionToIMemory()
/frameworks/av/media/utils/include/mediautils/
DSharedMemoryAllocator.h57 constexpr inline size_t roundup(size_t size, size_t pageSize) {
58 LOG_ALWAYS_FATAL_IF(pageSize == 0 || (pageSize & (pageSize - 1)) != 0,
60 return ((size + pageSize - 1) & ~(pageSize - 1));
/frameworks/compile/mclinker/lib/Core/
DGeneralOptions.cpp139 m_CommPageSize = pOption.pageSize(); in addZOption()
142 m_MaxPageSize = pOption.pageSize(); in addZOption()
/frameworks/compile/mclinker/include/mcld/MC/
DZOption.h57 uint64_t pageSize() const { return m_PageSize; } in pageSize() function
/frameworks/native/libs/binder/tests/
DbinderRecordedTransactionTest.cpp94 const size_t pageSize = sysconf(_SC_PAGE_SIZE); in TEST() local
95 const size_t largeDataSize = pageSize + 100; in TEST()
/frameworks/av/media/libmedia/
DIOMX.cpp527 size_t pageSize = 0; in onTransact() local
537 pageSize = (size_t) sysconf(_SC_PAGE_SIZE); in onTransact()
538 if (size > SIZE_MAX - (pageSize * 2)) { in onTransact()
541 allocSize = (size + pageSize * 2) & ~(pageSize - 1); in onTransact()
561 if (mprotect((char*)params + allocSize - pageSize, pageSize, in onTransact()
/frameworks/native/libs/binder/
DRecordedTransaction.cpp182 const long pageSize = sysconf(_SC_PAGE_SIZE); in fromFile() local
211 off_t mmapPageAlignedStart = (fdCurrentPosition / pageSize) * pageSize; in fromFile()
/frameworks/av/media/libdatasource/
DNuCachedSource2.cpp34 explicit PageCache(size_t pageSize);
66 PageCache::PageCache(size_t pageSize) in PageCache() argument
67 : mPageSize(pageSize), in PageCache()
/frameworks/base/services/core/java/com/android/server/
DBootReceiver.java249 long pageSize = Os.sysconf(OsConstants._SC_PAGESIZE); in getCurrentBootHeaders() local
250 if (pageSize != 4096) { in getCurrentBootHeaders()
251 builder.append("PageSize: ").append(pageSize).append("\n"); in getCurrentBootHeaders()
/frameworks/av/media/module/extractors/ogg/
DOggExtractor.cpp1028 ssize_t pageSize; in buildTableOfContents() local
1029 while ((pageSize = readPage(offset, &page)) > 0) { in buildTableOfContents()
1038 offset += (size_t)pageSize; in buildTableOfContents()
/frameworks/base/core/java/android/app/
DActivityThread.java1683 pw.print(','); pw.print(dbStats.pageSize); in dumpMemInfo()
1733 (dbStats.pageSize > 0) ? String.valueOf(dbStats.pageSize) : " ", in dumpMemInfo()
1876 proto.write(MemInfoDumpProto.AppData.SqlStats.Database.PAGE_SIZE, dbStats.pageSize); in dumpMemInfo()
/frameworks/base/services/core/java/com/android/server/am/
DActivityManagerService.java9935 long pageSize = Os.sysconf(OsConstants._SC_PAGESIZE); in addErrorToDropBox() local
9936 if (pageSize != 4096) { in addErrorToDropBox()
9937 sb.append("PageSize: ").append(pageSize).append("\n"); in addErrorToDropBox()
/frameworks/base/core/api/
Dtest-current.txt1434 field public long pageSize;
/frameworks/base/config/
Dboot-image-profile.txt25821 HSPLjava/nio/Bits;->pageSize()I
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt14738 Landroid/database/sqlite/SQLiteDebug$DbStats;->pageSize:J