/frameworks/base/packages/SettingsLib/Spa/tests/src/com/android/settingslib/spa/framework/common/ |
D | SettingsPageTest.kt | 39 val page = NullPageProvider.createSettingsPage() in testNullPage() constant 40 assertThat(page.id).isEqualTo(genPageId("NULL")) in testNullPage() 41 assertThat(page.sppName).isEqualTo("NULL") in testNullPage() 42 assertThat(page.displayName).isEqualTo("NULL") in testNullPage() 43 assertThat(page.buildRoute()).isEqualTo("NULL") in testNullPage() 44 assertThat(page.isCreateBy("NULL")).isTrue() in testNullPage() 45 assertThat(page.isCreateBy("Spp")).isFalse() in testNullPage() 46 assertThat(page.isBrowsable()).isFalse() in testNullPage() 51 val page = createSettingsPage("mySpp", "SppDisplayName") in testRegularPage() constant 52 assertThat(page.id).isEqualTo(genPageId("mySpp")) in testRegularPage() [all …]
|
/frameworks/libs/binary_translation/runtime_primitives/ |
D | table_of_tables_test.cc | 57 uint32_t page = (page_num << 17); in TEST() local 58 ASSERT_EQ(42U, tot->Get(page | (base + 4))); in TEST() 59 auto* addr = tot->GetPointer(page | (base + 5)); in TEST() 60 ASSERT_EQ(42U, tot->Get(page | (base + 4))); in TEST() 61 ASSERT_EQ(1729U, *tot->Put(page | (base + 5), 1729)); in TEST() 62 ASSERT_EQ(1U, *tot->Put(page | (base + 6), 1)); in TEST() 63 ASSERT_EQ(42U, tot->Get(page | (base + 4))); in TEST() 76 uint32_t page = (page_num << 17); in TEST() local 77 ASSERT_EQ(1729U, tot.Get(page | 5)); in TEST() 78 ASSERT_EQ(1U, tot.Get(page | 6)); in TEST() [all …]
|
/frameworks/base/packages/SettingsLib/Spa/spa/src/com/android/settingslib/spa/framework/common/ |
D | SettingsEntryRepository.kt | 27 val page: SettingsPage, constant in com.android.settingslib.spa.framework.common.SettingsPageWithEntry 50 for (page in sppRepository.getAllRootPages()) { constant 52 SettingsEntryBuilder.createRoot(owner = page).setLink(fromPage = nullPage).build() 61 val page = entry.toPage constant 62 if (page == null || pageWithEntryMap.containsKey(page.id)) continue 63 val spp = sppRepository.getProviderOrNull(page.sppName) ?: continue 64 val newEntries = spp.buildEntry(page.arguments) 68 pageWithEntryMap[page.id] = SettingsPageWithEntry( 69 page = page,
|
/frameworks/base/libs/hwui/jni/pdf/ |
D | PdfEditor.cpp | 110 FPDF_PAGE page = FPDF_LoadPage(document, pageIndex); in nativeSetTransformAndClip() local 111 if (!page) { in nativeSetTransformAndClip() 130 SkMatrix moveUp = SkMatrix::Translate(0, FPDF_GetPageHeight(page)); in nativeSetTransformAndClip() 142 FPDF_ClosePage(page); in nativeSetTransformAndClip() 156 FPDFPage_TransFormWithClip(page, &transform, &clip); in nativeSetTransformAndClip() 158 FPDF_ClosePage(page); in nativeSetTransformAndClip() 165 FPDF_PAGE page = FPDF_LoadPage(document, pageIndex); in nativeGetPageSize() local 166 if (!page) { in nativeGetPageSize() 185 FPDF_ClosePage(page); in nativeGetPageSize() 192 FPDF_PAGE page = FPDF_LoadPage(document, pageIndex); in nativeGetPageBox() local [all …]
|
D | PdfDocument.cpp | 68 PageRecord* page = new PageRecord(width, height, contentRect); in startPage() local 69 mPages.push_back(page); in startPage() 70 mCurrentPage = page; in startPage() 72 SkCanvas* canvas = page->mPictureRecorder->beginRecording( in startPage() 91 PageRecord* page = mPages[i]; in write() local 93 SkCanvas* canvas = document->beginPage(page->mWidth, page->mHeight, in write() 94 &(page->mContentRect)); in write() 95 canvas->drawPicture(page->mPicture); in write()
|
/frameworks/opt/photoviewer/src/com/android/ex/photo/ |
D | PhotoViewPager.java | 81 public void transformPage(View page, float position) { in initialize() 92 page.setTranslationX(0); in initialize() 93 page.setAlpha(1.f); in initialize() 94 page.setScaleX(1); in initialize() 95 page.setScaleY(1); in initialize() 97 page.setTranslationX(-position * page.getWidth()); in initialize() 98 page.setAlpha(Math.max(0,1.f - position)); in initialize() 100 page.setScaleX(scale); in initialize() 101 page.setScaleY(scale); in initialize()
|
/frameworks/av/media/libdatasource/ |
D | NuCachedSource2.cpp | 43 void releasePage(Page *page); 45 void appendPage(Page *page); 79 Page *page = *it; in freePages() local 81 free(page->mData); in freePages() 82 delete page; in freePages() 83 page = NULL; in freePages() 92 Page *page = *it; in acquirePage() local 95 return page; in acquirePage() 98 Page *page = new Page; in acquirePage() local 99 page->mData = malloc(mPageSize); in acquirePage() [all …]
|
/frameworks/proto_logging/stats/enums/healthfitness/ui/ |
D | enums.proto | 31 // Home page 38 // Onboarding page 42 // Recent access page 45 // App permissions page 55 // App permissions empty state & Help and feedback page 77 // Categories page 84 // Auto-delete page 96 // Permission types page 102 // Data access page 108 // Data entries page [all …]
|
/frameworks/base/packages/SettingsLib/Spa/spa/src/com/android/settingslib/spa/debug/ |
D | DebugProvider.kt | 121 val page = pageWithEntry.page in queryPageDebug() constant 122 if (!page.isBrowsable()) continue in queryPageDebug() 124 destination = page.buildRoute(), in queryPageDebug() 138 val page = entry.containerPage() in queryEntryDebug() constant 139 if (!page.isBrowsable()) continue in queryEntryDebug() 141 destination = page.buildRoute(), in queryEntryDebug() 156 val page = pageWithEntry.page in queryPageInfo() constant 157 val intent = page.createIntent(SESSION_BROWSE) ?: Intent() in queryPageInfo() 159 .add(ColumnEnum.PAGE_ID.id, page.id) in queryPageInfo() 160 .add(ColumnEnum.PAGE_NAME.id, page.displayName) in queryPageInfo() [all …]
|
D | DebugActivity.kt | 136 val page = pageWithEntry.page in <lambda>() constant 139 override val summary = { page.debugArguments() } in <lambda>() 173 val page = pageWithEntry.page in <lambda>() constant 176 Text(text = page.debugArguments()) in <lambda>() 182 spaEnvironment.browseActivityClass != null && page.isBrowsable() in <lambda>() 184 override val onClick = openPage(page) in <lambda>() 223 private fun openPage(page: SettingsPage): (() -> Unit)? { in <lambda>() 226 page.createIntent(SESSION_BROWSE) ?: return null in <lambda>() 227 val route = page.buildRoute() in <lambda>()
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/screenshot/scroll/ |
D | FakeSession.java | 89 Rect page = new Rect(0, 0, getPageWidth(), mPageHeight); in requestTile() local 90 page.offset(0, mScrollDelta); in requestTile() 91 Log.d(TAG, "page: " + page); in requestTile() 93 if (!page.contains(requested)) { in requestTile() 97 int distTop = requested.top - page.top; // positive means already visible in requestTile() 98 int distBottom = requested.bottom - page.bottom; // negative means already visible in requestTile() 118 int topEdgeDistance = max(0, requestedTop - page.top); in requestTile() 128 page.offsetTo(0, 0); in requestTile() 129 page.offset(0, mScrollDelta); in requestTile() 131 Log.d(TAG, "page (after scroll): " + page); in requestTile() [all …]
|
/frameworks/base/packages/SettingsLib/Spa/spa/src/com/android/settingslib/spa/widget/scaffold/ |
D | SettingsPager.kt | 35 fun SettingsPager(titles: List<String>, content: @Composable (page: Int) -> Unit) { in <lambda>() 53 titles.forEachIndexed { page, title -> in <lambda>() method 56 selected = pagerState.currentPage == page, in <lambda>() 60 pagerState.animateScrollToPage(page) in <lambda>() 67 HorizontalPager(state = pagerState) { page -> in <lambda>() method 68 content(page) in <lambda>()
|
/frameworks/base/packages/SettingsLib/Spa/tests/src/com/android/settingslib/spa/slice/ |
D | SettingsSliceDataRepositoryTest.kt | 54 val page = SppLayer2.createSettingsPage() in getOrBuildSliceDataTest() constant 55 val entryId = genEntryId("Layer2Entry1", page) in getOrBuildSliceDataTest() 56 val sliceUri = Uri.Builder().appendSpaParams(page.buildRoute(), entryId).build() in getOrBuildSliceDataTest() 64 val entryId2 = genEntryId("Layer2Entry2", page) in getOrBuildSliceDataTest() 65 val sliceUri2 = Uri.Builder().appendSpaParams(page.buildRoute(), entryId2).build() in getOrBuildSliceDataTest() 75 val page = SppLayer2.createSettingsPage() in getActiveSliceDataTest() constant 76 val entryId = genEntryId("Layer2Entry1", page) in getActiveSliceDataTest() 77 val sliceUri = Uri.Builder().appendSpaParams(page.buildRoute(), entryId).build() in getActiveSliceDataTest()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
D | PagedTileLayout.java | 156 View page = mPages.get(i); in onConfigurationChanged() local 157 if (page.getParent() == null) { in onConfigurationChanged() 158 page.dispatchConfigurationChanged(newConfig); in onConfigurationChanged() 180 final int page = getPageNumberForDirection(mLayoutDirection == LAYOUT_DIRECTION_RTL); in onRtlPropertiesChanged() local 185 setCurrentItem(page, false); in onRtlPropertiesChanged() 205 int page = getCurrentItem(); in getPageNumberForDirection() local 207 page = mPages.size() - 1 - page; in getPageNumberForDirection() 209 return page; in getPageNumberForDirection() 213 private void logVisibleTiles(TileLayout page) { in logVisibleTiles() argument 214 for (int i = 0; i < page.mRecords.size(); i++) { in logVisibleTiles() [all …]
|
/frameworks/libs/binary_translation/guest_os_primitives/ |
D | guest_map_shadow.cc | 69 uint32_t page = addr >> kGuestPageSizeLog2; in IsExecAddr() local 70 return shadow_[page >> 3] & (1 << (page & 7)); in IsExecAddr() 75 uint32_t page = addr >> kGuestPageSizeLog2; in SetExecAddr() local 76 uint8_t mask = 1 << (page & 7); in SetExecAddr() 77 int old = shadow_[page >> 3] & mask; in SetExecAddr() 79 shadow_[page >> 3] |= mask; in SetExecAddr() 82 shadow_[page >> 3] &= ~mask; in SetExecAddr()
|
/frameworks/base/packages/SettingsLib/Spa/tests/src/com/android/settingslib/spa/framework/util/ |
D | SpaIntentTest.kt | 49 val page = spaEnvironment.createPage("SppHome") in testCreateIntent() constant 50 val pageIntent = page.createIntent() in testCreateIntent() 52 Truth.assertThat(pageIntent!!.getDestination()).isEqualTo(page.buildRoute()) in testCreateIntent() 56 val entry = SettingsEntryBuilder.createInject(page).build() in testCreateIntent() 59 Truth.assertThat(entryIntent!!.getDestination()).isEqualTo(page.buildRoute()) in testCreateIntent()
|
/frameworks/base/packages/SettingsLib/Spa/spa/src/com/android/settingslib/spa/framework/ |
D | BrowseActivity.kt | 100 open fun isPageEnabled(page: SettingsPage) = page.isEnabled() in <lambda>() 113 controller.NavContent(sppRepository.getAllProviders()) { page -> in BrowseContent() method 114 if (remember { isPageEnabled(page) }) { in BrowseContent() 118 page.PageLogger() in BrowseContent() 119 page.UiLayout() in BrowseContent() 143 val page = remember { spp.createSettingsPage(navBackStackEntry.arguments) } in NavControllerWrapperImpl() constant 144 content(page) in NavControllerWrapperImpl()
|
/frameworks/base/graphics/java/android/graphics/pdf/ |
D | PdfDocument.java | 139 public void finishPage(Page page) { in finishPage() argument 141 if (page == null) { in finishPage() 144 if (page != mCurrentPage) { in finishPage() 147 if (page.isFinished()) { in finishPage() 150 mPages.add(page.getInfo()); in finishPage() 153 page.finish(); in finishPage()
|
/frameworks/libs/binary_translation/base/include/berberis/base/ |
D | forever_alloc.h | 53 uintptr_t page = reinterpret_cast<uintptr_t>(ptr); in AllocatePage() local 54 CHECK(IsAlignedPageSize(page)); in AllocatePage() 57 if (!curr_.compare_exchange_strong(curr, page, std::memory_order_acq_rel)) { in AllocatePage() 61 return page; in AllocatePage()
|
/frameworks/base/packages/SettingsLib/Spa/gallery/src/com/android/settingslib/spa/gallery/home/ |
D | HomePageProvider.kt | 36 import com.android.settingslib.spa.gallery.page.ArgumentPageModel 37 import com.android.settingslib.spa.gallery.page.ArgumentPageProvider 38 import com.android.settingslib.spa.gallery.page.FooterPageProvider 39 import com.android.settingslib.spa.gallery.page.IllustrationPageProvider 40 import com.android.settingslib.spa.gallery.page.LoadingBarPageProvider 41 import com.android.settingslib.spa.gallery.page.ProgressBarPageProvider 42 import com.android.settingslib.spa.gallery.page.SliderPageProvider
|
/frameworks/base/media/java/android/media/browse/ |
D | MediaBrowserUtils.java | 91 int page = options.getInt(MediaBrowser.EXTRA_PAGE, -1); in applyPagingOptions() local 93 if (page == -1 && pageSize == -1) { in applyPagingOptions() 96 int fromIndex = pageSize * page; in applyPagingOptions() 98 if (page < 0 || pageSize < 1 || fromIndex >= list.size()) { in applyPagingOptions()
|
/frameworks/base/packages/SettingsLib/Spa/gallery/src/com/android/settingslib/spa/gallery/ |
D | GallerySpaEnvironment.kt | 38 import com.android.settingslib.spa.gallery.page.ArgumentPageProvider 39 import com.android.settingslib.spa.gallery.page.FooterPageProvider 40 import com.android.settingslib.spa.gallery.page.IllustrationPageProvider 41 import com.android.settingslib.spa.gallery.page.LoadingBarPageProvider 42 import com.android.settingslib.spa.gallery.page.ProgressBarPageProvider 44 import com.android.settingslib.spa.gallery.page.SliderPageProvider
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/ |
D | PageAdapter.java | 303 View page; in onCreateViewHolder() local 306 page = mLayoutInflater.inflate(R.layout.preview_page_selected, parent, false); in onCreateViewHolder() 308 page = mLayoutInflater.inflate(R.layout.preview_page, parent, false); in onCreateViewHolder() 311 return new MyViewHolder(page); in onCreateViewHolder() 323 PreviewPageFrame page = (PreviewPageFrame) holder.itemView; in onBindViewHolder() local 324 page.setOnClickListener(mPageClickListener); in onBindViewHolder() 326 page.setTag(holder); in onBindViewHolder() 333 PageContentView content = (PageContentView) page.findViewById(R.id.page_content); in onBindViewHolder() 358 page.setSelected(true); in onBindViewHolder() 360 page.setSelected(false); in onBindViewHolder() [all …]
|
/frameworks/av/media/module/extractors/ogg/ |
D | OggExtractor.cpp | 143 ssize_t readPage(off64_t offset, Page *page); 571 ssize_t MyOggExtractor::readPage(off64_t offset, Page *page) { in readPage() argument 598 page->mFlags = header[5]; in readPage() 600 if (page->mFlags & ~7) { in readPage() 605 page->mGranulePosition = U64LE_AT(&header[6]); in readPage() 609 page->mGranulePosition, page->mGranulePosition); in readPage() 612 page->mSerialNo = U32LE_AT(&header[14]); in readPage() 613 page->mPageNo = U32LE_AT(&header[18]); in readPage() 615 page->mNumSegments = header[26]; in readPage() 617 offset + sizeof(header), page->mLace, page->mNumSegments) in readPage() [all …]
|
/frameworks/minikin/libs/minikin/ |
D | SparseBitSet.cpp | 152 for (uint32_t page = fromPage + 1; page < maxPage; page++) { in nextSetBit() local 153 uint16_t index = mData->indices()[page]; in nextSetBit() 161 return (page << kLogValuesPerPage) + (j << kLogBitsPerEl) + CountLeadingZeros(e); in nextSetBit()
|