Home
last modified time | relevance | path

Searched refs:PAGE_SIZE (Results 1 – 25 of 34) sorted by relevance

12

/frameworks/support/paging/common/src/test/java/androidx/paging/
DTiledPagedListTest.kt50 if (loadedPageList.contains(i / PAGE_SIZE)) { in verifyLoadedPages()
59 prefetchDistance: Int = PAGE_SIZE, in createTiledPagedList()
65 .setPageSize(PAGE_SIZE) in createTiledPagedList()
66 .setInitialLoadSizeHint(PAGE_SIZE * initPageCount) in createTiledPagedList()
300 .setPageSize(PAGE_SIZE) in placeholdersDisabled()
301 .setPrefetchDistance(PAGE_SIZE) in placeholdersDisabled()
302 .setInitialLoadSizeHint(PAGE_SIZE) in placeholdersDisabled()
316 assertEquals(PAGE_SIZE, contiguousPagedList.mStorage.storageCount) in placeholdersDisabled()
423 assertNotNull(pagedList[pagedList.size - 1 - PAGE_SIZE]) in validateCallbackForSize()
447 validateCallbackForSize(2, 3 * PAGE_SIZE - 2) in boundaryCallbackPageSize1()
[all …]
/frameworks/support/samples/Support4Demos/src/main/java/com/example/android/supportv4/media/
DBrowseFragment.java61 private static final int PAGE_SIZE = 6; field in BrowseFragment
83 if (page < 0 || pageSize != PAGE_SIZE || children == null
84 || children.size() > PAGE_SIZE) {
88 int itemIndex = page * PAGE_SIZE;
108 if (children.size() < PAGE_SIZE) {
218 loadPage((mMediaItems.size() + PAGE_SIZE - 1) / PAGE_SIZE); in onCreateView()
252 options.putInt(MediaBrowserCompat.EXTRA_PAGE_SIZE, PAGE_SIZE); in loadPage()
/frameworks/base/packages/FakeOemFeatures/src/com/android/fakeoemfeatures/
DFakeApp.java43 static final int PAGE_SIZE = 4*1024; field in FakeApp
148 for (int i=0; i<STUFFING_SIZE_BYTES/PAGE_SIZE; i++) { in onCreate()
151 final int OFF = (i*PAGE_SIZE)/4; in onCreate()
152 for (int j=0; j<(PAGE_SIZE/4); j++) { in onCreate()
DFakeBackgroundService.java49 int[] alloc = new int[FakeApp.PAGE_SIZE/4];
52 for (int j=0; j<FakeApp.PAGE_SIZE/4; j++) {
/frameworks/support/samples/SupportContentDemos/src/main/java/com/example/android/support/content/demos/
DContentPagerDemoActivity.java48 private static final int PAGE_SIZE = 20; field in ContentPagerDemoActivity
64 mAdapter = new Adapter(mPager, PAGE_SIZE); in onCreate()
138 int lastPage = (UnpagedDemoDataProvider.TOTAL_SIZE / PAGE_SIZE) - 1; in updateOptionsMenu()
169 if (page < 0 || page >= (UnpagedDemoDataProvider.TOTAL_SIZE / PAGE_SIZE)) {
/frameworks/base/services/core/java/com/android/server/
DPinnerService.java75 private static final int PAGE_SIZE = (int) Os.sysconf(OsConstants._SC_PAGESIZE); field in PinnerService
489 if (maxBytesToPin % PAGE_SIZE != 0) { in pinFileRanges()
490 maxBytesToPin -= maxBytesToPin % PAGE_SIZE; in pinFileRanges()
507 pinLength += pinStart % PAGE_SIZE; in pinFileRanges()
508 pinStart -= pinStart % PAGE_SIZE; in pinFileRanges()
509 if (pinLength % PAGE_SIZE != 0) { in pinFileRanges()
510 pinLength += PAGE_SIZE - pinLength % PAGE_SIZE; in pinFileRanges()
/frameworks/base/core/java/android/nfc/tech/
DMifareUltralight.java72 public static final int PAGE_SIZE = 4; field in MifareUltralight
/frameworks/base/services/core/java/com/android/server/am/
DProcessList.java127 static final int PAGE_SIZE = 4*1024; field in ProcessList
296 buf.putInt((mOomMinFree[i]*1024)/PAGE_SIZE); in updateOomLevels()
DActivityManagerService.java18681 longOut[KSM_SHARED] = longTmp[0] * ProcessList.PAGE_SIZE / 1024; in getKsmInfo()
18685 longOut[KSM_SHARING] = longTmp[0] * ProcessList.PAGE_SIZE / 1024; in getKsmInfo()
18689 longOut[KSM_UNSHARED] = longTmp[0] * ProcessList.PAGE_SIZE / 1024; in getKsmInfo()
18693 longOut[KSM_VOLATILE] = longTmp[0] * ProcessList.PAGE_SIZE / 1024; in getKsmInfo()
/frameworks/base/core/jni/
Dcom_android_internal_content_NativeLibraryHelper.cpp202 if (offset % PAGE_SIZE != 0) { in copyFileIfChanged()
/frameworks/native/vulkan/libvulkan/
Dlayers_extensions.cpp385 if (entry.method != kCompressStored || entry.offset % PAGE_SIZE != 0) in ForEachFileInZip()
/frameworks/native/cmds/installd/
Dotapreopt.cpp692 constexpr size_t kPageSize = PAGE_SIZE; in ChooseRelocationOffsetDelta()
/frameworks/native/libs/binder/tests/
DbinderLibTest.cpp38 if (((unsigned long)buf & ((unsigned long)PAGE_SIZE - 1)) == 0) in IsPageAligned()
/frameworks/support/media/api_legacy/
D26.0.0.txt67 …ield public static final java.lang.String EXTRA_PAGE_SIZE = "android.media.browse.extra.PAGE_SIZE";
D26.1.0.txt67 …ield public static final java.lang.String EXTRA_PAGE_SIZE = "android.media.browse.extra.PAGE_SIZE";
D28.0.0-alpha1.txt67 …ield public static final java.lang.String EXTRA_PAGE_SIZE = "android.media.browse.extra.PAGE_SIZE";
Dcurrent.txt67 …ield public static final java.lang.String EXTRA_PAGE_SIZE = "android.media.browse.extra.PAGE_SIZE";
D27.1.0.txt67 …ield public static final java.lang.String EXTRA_PAGE_SIZE = "android.media.browse.extra.PAGE_SIZE";
D27.0.0.txt67 …ield public static final java.lang.String EXTRA_PAGE_SIZE = "android.media.browse.extra.PAGE_SIZE";
/frameworks/support/media/api/
Dcurrent.txt24 …ield public static final java.lang.String EXTRA_PAGE_SIZE = "android.media.browse.extra.PAGE_SIZE";
/frameworks/support/api/
D25.2.0.txt5384 …ield public static final java.lang.String EXTRA_PAGE_SIZE = "android.media.browse.extra.PAGE_SIZE";
D25.0.0.txt5002 …ield public static final java.lang.String EXTRA_PAGE_SIZE = "android.media.browse.extra.PAGE_SIZE";
D24.2.0.txt4946 …ield public static final java.lang.String EXTRA_PAGE_SIZE = "android.media.browse.extra.PAGE_SIZE";
D25.4.0.txt5823 …ield public static final java.lang.String EXTRA_PAGE_SIZE = "android.media.browse.extra.PAGE_SIZE";
D26.0.0-alpha1.txt6253 …ield public static final java.lang.String EXTRA_PAGE_SIZE = "android.media.browse.extra.PAGE_SIZE";

12