Home
last modified time | relevance | path

Searched refs:numPages (Results 1 – 6 of 6) sorted by relevance

/frameworks/av/media/utils/
DLimitProcessMemory.cpp35 long numPages = sysconf(_SC_PHYS_PAGES); 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/packages/SystemUI/src/com/android/systemui/qs/
DPageIndicator.java47 public void setNumPages(int numPages) { in setNumPages() argument
52 setNumPages(numPages, color); in setNumPages()
56 public void setNumPages(int numPages, int color) { in setNumPages() argument
57 setVisibility(numPages > 1 ? View.VISIBLE : View.GONE); in setNumPages()
58 if (numPages == getChildCount()) { in setNumPages()
64 while (numPages < getChildCount()) { in setNumPages()
67 while (numPages > getChildCount()) { in setNumPages()
DPagedTileLayout.java294 final int numPages = getNumPages(); in emptyAndInflateOrRemovePages() local
299 if (NP == numPages) { in emptyAndInflateOrRemovePages()
302 while (mPages.size() < numPages) { in emptyAndInflateOrRemovePages()
306 while (mPages.size() > numPages) { in emptyAndInflateOrRemovePages()
432 int numPages = Math.max(nTiles / mPages.get(0).maxTiles(), 1); in getNumPages() local
435 if (nTiles > numPages * mPages.get(0).maxTiles()) { in getNumPages()
436 numPages++; in getNumPages()
439 return numPages; in getNumPages()
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/management/
DManagementPageIndicator.kt37 val numPages = childCount in setLocation() constant
38 super.setLocation(numPages - 1 - location) in setLocation()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/
DMediaCarouselController.kt308 val numPages = mediaContent.getChildCount() in <lambda>() constant
309 pageIndicator.setNumPages(numPages, Color.WHITE) in <lambda>()
310 if (numPages == 1) { in <lambda>()
/frameworks/base/core/java/android/database/sqlite/
DSQLiteDatabase.java1124 long numPages = numBytes / pageSize; in setMaximumSize() local
1127 numPages++; in setMaximumSize()
1129 long newPageCount = DatabaseUtils.longForQuery(this, "PRAGMA max_page_count = " + numPages, in setMaximumSize()