/aosp12/system/extras/tests/pftest/ |
H A D | pftest.c | 56 int numPages = numPagesList[j]; in main() local 67 for (i = 0; i < numPages; i++) { in main() 68 int nextPageIdx = (pageIdx + 1) % numPages; in main() 75 if (i != numPages -1) { in main() 105 printf("%d, %f\n", numPages, (float) (t1 - t0) / WORKLOAD); in main()
|
/aosp12/frameworks/av/media/utils/ |
H A D | LimitProcessMemory.cpp | 35 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()
|
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
H A D | PagedTileLayout.java | 128 int numPages = mPages.size(); in onConfigurationChanged() local 129 for (int i = 0; i < numPages; i++) { in onConfigurationChanged() 351 final int numPages = getNumPages(); in emptyAndInflateOrRemovePages() local 356 if (NP == numPages) { in emptyAndInflateOrRemovePages() 359 while (mPages.size() < numPages) { in emptyAndInflateOrRemovePages() 363 while (mPages.size() > numPages) { in emptyAndInflateOrRemovePages() 475 int numPages = Math.max(nTiles / mPages.get(0).maxTiles(), 1); in getNumPages() local 478 if (nTiles > numPages * mPages.get(0).maxTiles()) { in getNumPages() 479 numPages++; in getNumPages() 482 return numPages; in getNumPages()
|
H A D | PageIndicator.java | 82 public void setNumPages(int numPages) { in setNumPages() argument 83 setVisibility(numPages > 1 ? View.VISIBLE : View.GONE); in setNumPages() 84 if (numPages == getChildCount()) { in setNumPages() 90 while (numPages < getChildCount()) { in setNumPages() 93 while (numPages > getChildCount()) { in setNumPages()
|
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/management/ |
H A D | ManagementPageIndicator.kt | 37 val numPages = childCount regex 38 super.setLocation(numPages - 1 - location)
|
/aosp12/packages/apps/WallpaperPicker2/src/com/android/wallpaper/widget/ |
H A D | PageIndicator.java | 92 public void setNumPages(int numPages) { in setNumPages() argument 93 setVisibility(numPages > 1 ? View.VISIBLE : View.INVISIBLE); in setNumPages() 97 while (numPages < getChildCount()) { in setNumPages() 104 while (numPages > getChildCount()) { in setNumPages()
|
/aosp12/frameworks/base/core/java/android/service/wallpaper/ |
H A D | WallpaperService.java | 1582 void updatePage(EngineWindowPage currentPage, int pageIndx, int numPages, in updatePage() argument 1618 updatePageColors(currentPage, pageIndx, numPages, xOffsetStep); in updatePage() 1625 updatePageColors(currentPage, pageIndx, numPages, xOffsetStep); in updatePage() 1641 RectF subArea = generateSubRect(area, pageIndx, numPages); in updatePageColors() 1661 + " and with page " + pageIndx + " of " + numPages); in updatePageColors() 1669 + " of " + numPages); in updatePageColors() 1681 private RectF generateSubRect(RectF in, int pageInx, int numPages) { in generateSubRect() argument 1682 float minLeft = (float) (pageInx) / (float) (numPages); in generateSubRect() 1683 float maxRight = (float) (pageInx + 1) / (float) (numPages); in generateSubRect() 1692 left = (left * (float) numPages) % 1f; in generateSubRect() [all …]
|
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/pageindicators/ |
H A D | WorkspacePageIndicator.java | 86 public void set(WorkspacePageIndicator obj, Float numPages) { 87 obj.mNumPagesFloat = numPages;
|
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/media/ |
H A D | MediaCarouselController.kt | 541 val numPages = mediaContent.getChildCount() regex 542 pageIndicator.setNumPages(numPages) 543 if (numPages == 1) {
|
/aosp12/frameworks/base/core/java/android/database/sqlite/ |
H A D | SQLiteDatabase.java | 1125 long numPages = numBytes / pageSize; in setMaximumSize() local 1128 numPages++; in setMaximumSize() 1130 long newPageCount = DatabaseUtils.longForQuery(this, "PRAGMA max_page_count = " + numPages, in setMaximumSize()
|