/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | VSyncReactorTest.cpp | 86 ftl::NonNull<DisplayModePtr> displayMode(nsecs_t vsyncPeriod) { in displayMode() function 201 mReactor.onDisplayModeChanged(displayMode(newPeriod), false); in TEST_F() 214 mReactor.onDisplayModeChanged(displayMode(newPeriod), false); in TEST_F() 233 auto modePtr = displayMode(newPeriod); in TEST_F() 242 modePtr = displayMode(period); in TEST_F() 254 mReactor.onDisplayModeChanged(displayMode(secondPeriod), false); in TEST_F() 260 mReactor.onDisplayModeChanged(displayMode(thirdPeriod), false); in TEST_F() 301 mReactor.onDisplayModeChanged(displayMode(newPeriod), false); in TEST_F() 308 mReactor.onDisplayModeChanged(displayMode(newPeriod), false); in TEST_F() 315 EXPECT_CALL(*mMockTracker, setDisplayModePtr(DisplayModeMatcher(displayMode(newPeriod)))) in TEST_F() [all …]
|
D | VSyncPredictorTest.cpp | 71 ftl::NonNull<DisplayModePtr> displayMode(nsecs_t period) { in displayMode() function 105 ftl::NonNull<DisplayModePtr> mMode = displayMode(mPeriod); 124 tracker.setDisplayModePtr(displayMode(changedPeriod)); in TEST_F() 145 tracker.setDisplayModePtr(displayMode(changedPeriod)); in TEST_F() 179 tracker.setDisplayModePtr(displayMode(changedPeriod)); in TEST_F() 225 tracker.setDisplayModePtr(displayMode(idealPeriod)); in TEST_F() 244 tracker.setDisplayModePtr(displayMode(idealPeriod)); in TEST_F() 271 tracker.setDisplayModePtr(displayMode(idealPeriod)); in TEST_F() 297 tracker.setDisplayModePtr(displayMode(idealPeriod)); in TEST_F() 317 tracker.setDisplayModePtr(displayMode(fastPeriod)); in TEST_F() [all …]
|
D | SurfaceFlinger_ExcludeDolbyVisionTest.cpp | 31 for (DisplayModePtr displayMode : displayModePtrs) { in injectDisplayModes() local 32 modes.try_emplace(displayMode->getId(), displayMode); in injectDisplayModes()
|
/frameworks/native/services/automotive/display/ |
D | AutomotiveDisplayProxyService.cpp | 47 ui::DisplayMode displayMode = {}; in getIGraphicBufferProducer() local 48 auto err = SurfaceComposerClient::getActiveDisplayMode(displayToken, &displayMode); in getIGraphicBufferProducer() 63 auto displayWidth = displayMode.resolution.getWidth(); in getIGraphicBufferProducer() 64 auto displayHeight = displayMode.resolution.getHeight(); in getIGraphicBufferProducer() 171 ui::DisplayMode displayMode = {}; in getDisplayInfo() local 172 auto err = SurfaceComposerClient::getActiveDisplayMode(displayToken, &displayMode); in getDisplayInfo() 185 activeConfig.setToExternal((uint8_t*)&displayMode, sizeof(ui::DisplayMode)); in getDisplayInfo()
|
/frameworks/native/libs/renderengine/benchmark/ |
D | RenderEngineBench.cpp | 49 ui::DisplayMode displayMode; in getDisplaySize() local 50 if (surfaceComposerClient->getActiveDisplayMode(displayToken, &displayMode) < 0) { in getDisplaySize() 53 auto tw = displayMode.resolution.width; in getDisplaySize() 54 auto th = displayMode.resolution.height; in getDisplaySize() 57 displayMode.resolution.width * displayMode.resolution.height) { in getDisplaySize() 58 resolution = displayMode.resolution; in getDisplaySize()
|
/frameworks/native/opengl/tests/lib/ |
D | WindowSurface.cpp | 52 ui::DisplayMode displayMode; in WindowSurface() local 53 err = SurfaceComposerClient::getActiveDisplayMode(displayToken, &displayMode); in WindowSurface() 66 const ui::Size& resolution = displayMode.resolution; in WindowSurface()
|
/frameworks/base/core/tests/mockingcoretests/src/android/view/ |
D | DisplayTest.java | 457 Display.Mode displayMode = new Display.Mode(0, 0, 0, 0, new float[0], nonSortedHdrTypes); in testSupportedHdrTypesForDisplayModeAreSorted() local 460 assertArrayEquals(sortedHdrTypes, displayMode.getSupportedHdrTypes()); in testSupportedHdrTypesForDisplayModeAreSorted() 466 Display.Mode displayMode = new Display.Mode(0, 0, 0, 0, new float[0], hdrTypes); in testGetSupportedHdrTypesReturnsCopy() local 468 int[] hdrTypesCopy = displayMode.getSupportedHdrTypes(); in testGetSupportedHdrTypesReturnsCopy() 470 assertArrayEquals(hdrTypes, displayMode.getSupportedHdrTypes()); in testGetSupportedHdrTypesReturnsCopy() 476 Display.Mode displayMode = new Display.Mode(0, 0, 0, 0, alternativeRates, new int[0]); in testGetAlternativeRefreshRatesReturnsCopy() local 478 float[] alternativeRatesCopy = displayMode.getAlternativeRefreshRates(); in testGetAlternativeRefreshRatesReturnsCopy() 480 assertArrayEquals(alternativeRates, displayMode.getAlternativeRefreshRates(), 0.0f); in testGetAlternativeRefreshRatesReturnsCopy()
|
/frameworks/native/services/surfaceflinger/tests/ |
D | TransactionTestHarnesses.h | 49 ui::DisplayMode displayMode; in getScreenCapture() local 50 SurfaceComposerClient::getActiveDisplayMode(displayToken, &displayMode); in getScreenCapture() 51 const ui::Size& resolution = displayMode.resolution; in getScreenCapture()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | DisplayCutoutBaseView.kt | 55 private var displayMode: Display.Mode? = null in <lambda>() variable in com.android.systemui.DisplayCutoutBaseView 94 val oldMode: Display.Mode? = displayMode in <lambda>() 95 displayMode = info.mode in <lambda>() 100 if (!displayModeChanged(oldMode, displayMode) && in <lambda>()
|
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/ |
D | LocalDisplayAdapterTest.java | 258 SurfaceControl.DisplayMode displayMode = createFakeDisplayMode(0, 1920, 1080, 0); in testSupportedDisplayModesGetOverriddenWhenDisplayIsUpdated() local 259 displayMode.supportedHdrTypes = new int[0]; in testSupportedDisplayModesGetOverriddenWhenDisplayIsUpdated() 260 FakeDisplay display = new FakeDisplay(PORT_A, new SurfaceControl.DisplayMode[]{displayMode}, in testSupportedDisplayModesGetOverriddenWhenDisplayIsUpdated() 273 displayMode.supportedHdrTypes = new int[]{3, 2}; in testSupportedDisplayModesGetOverriddenWhenDisplayIsUpdated() 274 display.dynamicInfo.supportedDisplayModes = new SurfaceControl.DisplayMode[]{displayMode}; in testSupportedDisplayModesGetOverriddenWhenDisplayIsUpdated() 439 SurfaceControl.DisplayMode displayMode = createFakeDisplayMode(0, 1920, 1080, 60f); in testAfterDisplayChange_DefaultDisplayModeIsUpdated() local 441 new SurfaceControl.DisplayMode[]{displayMode}; in testAfterDisplayChange_DefaultDisplayModeIsUpdated() 442 FakeDisplay display = new FakeDisplay(PORT_A, modes, 0, displayMode.peakRefreshRate); in testAfterDisplayChange_DefaultDisplayModeIsUpdated() 455 assertModeIsSupported(displayDeviceInfo.supportedModes, displayMode); in testAfterDisplayChange_DefaultDisplayModeIsUpdated() 458 assertThat(matches(defaultMode, displayMode)).isTrue(); in testAfterDisplayChange_DefaultDisplayModeIsUpdated() [all …]
|
D | DisplayManagerServiceTest.java | 425 SurfaceControl.DisplayMode displayMode = new SurfaceControl.DisplayMode(); 426 displayMode.width = 100; 427 displayMode.height = 200; 428 displayMode.supportedHdrTypes = new int[]{1, 2}; 429 dynamicDisplayMode.supportedDisplayModes = new SurfaceControl.DisplayMode[] {displayMode};
|
/frameworks/base/packages/SystemUI/accessibility/accessibilitymenu/src/com/android/systemui/accessibility/accessibilitymenu/view/ |
D | A11yMenuViewPager.java | 295 final int displayMode = mService.getResources().getConfiguration().orientation; 298 if (displayMode == Configuration.ORIENTATION_PORTRAIT) { 302 } else if (displayMode == Configuration.ORIENTATION_LANDSCAPE) {
|
/frameworks/base/tests/TouchLatency/app/src/main/java/com/prefabulated/touchlatency/ |
D | TouchLatencyActivity.java | 119 private void updateDisplayMode(MenuItem menuItem, Mode displayMode) { in updateDisplayMode() argument 120 int fps = (int) displayMode.getRefreshRate(); in updateDisplayMode()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/cdma/sms/ |
D | CdmaSmsTest.java | 337 assertEquals(bearerData.displayMode, BearerData.DISPLAY_MODE_USER); in testMonolithicOne() 384 assertEquals(bearerData.displayMode, BearerData.DISPLAY_MODE_USER); in testMonolithicTwo() 755 assertEquals(bd4.displayMode, BearerData.DISPLAY_MODE_IMMEDIATE); in testMiscParams() 822 assertEquals(bd1.displayMode, BearerData.DISPLAY_MODE_IMMEDIATE); in testDisplayMode() 825 assertEquals(bd2.displayMode, BearerData.DISPLAY_MODE_DEFAULT); in testDisplayMode() 828 assertEquals(bd3.displayMode, BearerData.DISPLAY_MODE_USER); in testDisplayMode() 840 bearerData.displayMode = BearerData.DISPLAY_MODE_IMMEDIATE; in testDisplayModeFeedback() 846 assertEquals(revBearerData.displayMode, bearerData.displayMode); in testDisplayModeFeedback() 847 bearerData.displayMode = BearerData.DISPLAY_MODE_USER; in testDisplayModeFeedback() 852 assertEquals(revBearerData.displayMode, bearerData.displayMode); in testDisplayModeFeedback()
|
/frameworks/av/cmds/screenrecord/ |
D | screenrecord.cpp | 873 DisplayMode displayMode; in recordScreen() local 874 err = SurfaceComposerClient::getActiveDisplayMode(display, &displayMode); in recordScreen() 897 displayMode.peakRefreshRate, toCString(displayState.orientation), in recordScreen() 915 err = prepareEncoder(displayMode.peakRefreshRate, &recordingData.encoder, in recordScreen() 929 err = prepareEncoder(displayMode.peakRefreshRate, &recordingData.encoder, in recordScreen()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | LockPatternView.java | 467 public void setPattern(DisplayMode displayMode, List<Cell> pattern) { in setPattern() argument 475 setDisplayMode(displayMode); in setPattern() 485 public void setDisplayMode(DisplayMode displayMode) { in setDisplayMode() argument 486 mPatternDisplayMode = displayMode; in setDisplayMode() 487 if (displayMode == DisplayMode.Animate) { in setDisplayMode() 1596 private SavedState(Parcelable superState, String serializedPattern, int displayMode, 1600 mDisplayMode = displayMode;
|
/frameworks/base/cmds/bootanimation/ |
D | BootAnimation.cpp | 456 DisplayMode displayMode; in handleEvent() local 458 mBootAnimation->mDisplayToken, &displayMode); in handleEvent() 462 mBootAnimation->resizeSurface(displayMode.resolution.getWidth(), in handleEvent() 463 displayMode.resolution.getHeight()); in handleEvent() 562 DisplayMode displayMode; in readyToRun() local 564 SurfaceComposerClient::getActiveDisplayMode(mDisplayToken, &displayMode); in readyToRun() 571 ui::Size resolution = displayMode.resolution; in readyToRun()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/shade/ |
D | NotificationShadeWindowControllerImpl.java | 199 for (Display.Mode displayMode : context.getDisplay().getSystemSupportedModes()) { in NotificationShadeWindowControllerImpl() 200 if (Math.abs(displayMode.getRefreshRate() - desiredPreferredRefreshRate) <= .1) { in NotificationShadeWindowControllerImpl() 201 actualPreferredRefreshRate = displayMode.getRefreshRate(); in NotificationShadeWindowControllerImpl()
|
/frameworks/base/telephony/java/com/android/internal/telephony/cdma/sms/ |
D | BearerData.java | 157 public int displayMode = DISPLAY_MODE_DEFAULT; field in BearerData 493 builder.append(", displayMode=" + (displayModeSet ? displayMode : "unset")); in toString() 972 outStream.write(2, bData.displayMode); in encodeDisplayMode() 1755 bData.displayMode = inStream.read(2); in decodeDisplayMode()
|
/frameworks/base/telephony/java/com/android/internal/telephony/cdma/ |
D | SmsMessage.java | 899 if (BearerData.DISPLAY_MODE_IMMEDIATE == mBearerData.displayMode ) {
|
/frameworks/base/core/java/android/view/ |
D | SurfaceControl.java | 211 private static native void nativeSetBootDisplayMode(IBinder displayToken, int displayMode); in nativeSetBootDisplayMode() argument
|