/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | ActiveDisplayRotationFlagsTest.cpp | 54 auto displayToken = mInnerDisplay->getDisplayToken().promote(); in TEST_F() local 55 mFlinger.mutableDrawingState().displays.editValueFor(displayToken).orientation = ui::ROTATION_0; in TEST_F() 56 mFlinger.mutableCurrentState().displays.editValueFor(displayToken).orientation = in TEST_F() 64 auto displayToken = mOuterDisplay->getDisplayToken().promote(); in TEST_F() local 65 mFlinger.mutableDrawingState().displays.editValueFor(displayToken).orientation = ui::ROTATION_0; in TEST_F() 66 mFlinger.mutableCurrentState().displays.editValueFor(displayToken).orientation = in TEST_F() 74 auto displayToken = mInnerDisplay->getDisplayToken().promote(); in TEST_F() local 75 mFlinger.mutableDrawingState().displays.editValueFor(displayToken).orientation = ui::ROTATION_0; in TEST_F() 76 mFlinger.mutableCurrentState().displays.editValueFor(displayToken).orientation = in TEST_F() 79 displayToken = mOuterDisplay->getDisplayToken().promote(); in TEST_F() [all …]
|
D | DisplayTransactionTest.cpp | 138 bool DisplayTransactionTest::hasDisplayDevice(const sp<IBinder>& displayToken) const { in hasDisplayDevice() 139 return mFlinger.displays().contains(displayToken); in hasDisplayDevice() 143 const sp<IBinder>& displayToken) const { in getDisplayDevice() 144 return *mFlinger.displays().get(displayToken)->get(); in getDisplayDevice() 147 bool DisplayTransactionTest::hasCurrentDisplayState(const sp<IBinder>& displayToken) const { in hasCurrentDisplayState() 148 return mFlinger.currentState().displays.indexOfKey(displayToken) >= 0; in hasCurrentDisplayState() 152 const sp<IBinder>& displayToken) const { in getCurrentDisplayState() 153 return mFlinger.currentState().displays.valueFor(displayToken); in getCurrentDisplayState() 156 bool DisplayTransactionTest::hasDrawingDisplayState(const sp<IBinder>& displayToken) const { in hasDrawingDisplayState() 157 return mFlinger.drawingState().displays.indexOfKey(displayToken) >= 0; in hasDrawingDisplayState() [all …]
|
D | SurfaceFlinger_CreateDisplayTest.cpp | 40 sp<IBinder> displayToken = mFlinger.createVirtualDisplay(name, false, requestedRefreshRate); in createDisplayWithRequestedRefreshRate() local 46 ASSERT_TRUE(hasCurrentDisplayState(displayToken)); in createDisplayWithRequestedRefreshRate() 47 const auto& display = getCurrentDisplayState(displayToken); in createDisplayWithRequestedRefreshRate() 57 mFlinger.createVirtualDisplayDevice(displayToken, *vid, requestedRefreshRate); in createDisplayWithRequestedRefreshRate() 84 sp<IBinder> displayToken = mFlinger.createVirtualDisplay(name, false); in TEST_F() local 90 ASSERT_TRUE(hasCurrentDisplayState(displayToken)); in TEST_F() 91 const auto& display = getCurrentDisplayState(displayToken); in TEST_F() 115 sp<IBinder> displayToken = mFlinger.createVirtualDisplay(kDisplayName, true); in TEST_F() local 122 ASSERT_TRUE(hasCurrentDisplayState(displayToken)); in TEST_F() 123 const auto& display = getCurrentDisplayState(displayToken); in TEST_F() [all …]
|
D | SurfaceFlinger_DisplayTransactionCommitTest.cpp | 48 void verifyDisplayIsConnected(const sp<IBinder>& displayToken); 53 void verifyDisplayIsNotConnected(const sp<IBinder>& displayToken); 104 void DisplayTransactionCommitTest::verifyDisplayIsConnected(const sp<IBinder>& displayToken) { in verifyDisplayIsConnected() argument 106 ASSERT_TRUE(hasDisplayDevice(displayToken)); in verifyDisplayIsConnected() 107 const auto& display = getDisplayDevice(displayToken); in verifyDisplayIsConnected() 122 ASSERT_TRUE(hasCurrentDisplayState(displayToken)); in verifyDisplayIsConnected() 123 const auto& current = getCurrentDisplayState(displayToken); in verifyDisplayIsConnected() 128 ASSERT_TRUE(hasDrawingDisplayState(displayToken)); in verifyDisplayIsConnected() 129 const auto& draw = getDrawingDisplayState(displayToken); in verifyDisplayIsConnected() 152 void DisplayTransactionCommitTest::verifyDisplayIsNotConnected(const sp<IBinder>& displayToken) { in verifyDisplayIsNotConnected() argument [all …]
|
D | SurfaceFlinger_DestroyDisplayTest.cpp | 65 sp<BBinder> displayToken = sp<BBinder>::make(); in TEST_F() local 70 EXPECT_EQ(NAME_NOT_FOUND, mFlinger.destroyVirtualDisplay(displayToken)); in TEST_F()
|
D | SurfaceFlinger_GetDisplayStatsTest.cpp | 46 sp<IBinder> displayToken = mFlinger.createVirtualDisplay(kDisplayName, false /*isSecure*/); in TEST_F() local 48 status_t status = mFlinger.getDisplayStats(displayToken, &info); in TEST_F()
|
D | TestableSurfaceFlinger.h | 438 auto destroyVirtualDisplay(const sp<IBinder>& displayToken) { in destroyVirtualDisplay() argument 439 return mFlinger->destroyVirtualDisplay(displayToken); in destroyVirtualDisplay() 442 auto getDisplay(const sp<IBinder>& displayToken) { in getDisplay() argument 444 return mFlinger->getDisplayDeviceLocked(displayToken); in getDisplay() 450 const wp<IBinder>& displayToken, in setupNewDisplayDeviceInternal() argument 455 return mFlinger->setupNewDisplayDeviceInternal(displayToken, compositionDisplay, state, in setupNewDisplayDeviceInternal() 514 auto getDisplayNativePrimaries(const sp<IBinder>& displayToken, in getDisplayNativePrimaries() argument 516 return mFlinger->SurfaceFlinger::getDisplayNativePrimaries(displayToken, primaries); in getDisplayNativePrimaries() 564 auto setDesiredDisplayModeSpecs(const sp<IBinder>& displayToken, in setDesiredDisplayModeSpecs() argument 566 return mFlinger->setDesiredDisplayModeSpecs(displayToken, specs); in setDesiredDisplayModeSpecs() [all …]
|
/frameworks/base/core/java/android/view/ |
D | SurfaceControlHdrLayerInfoListener.java | 50 public abstract void onHdrInfoChanged(IBinder displayToken, int numberOfHdrLayers, in onHdrInfoChanged() argument 58 public void register(IBinder displayToken) { in register() argument 59 Objects.requireNonNull(displayToken); in register() 61 if (mRegisteredListeners.containsKey(displayToken)) { in register() 64 long nativePtr = nRegister(displayToken); in register() 66 mRegisteredListeners.put(displayToken, destructor); in register() 75 public void unregister(IBinder displayToken) { in unregister() argument 76 Objects.requireNonNull(displayToken); in unregister() 79 destructor = mRegisteredListeners.remove(displayToken); in unregister() 104 private native long nRegister(IBinder displayToken); in nRegister() argument
|
D | SurfaceControl.java | 181 IBinder displayToken, long nativeSurfaceObject); in nativeSetDisplaySurface() argument 183 IBinder displayToken, int layerStack); in nativeSetDisplayLayerStack() argument 185 IBinder displayToken, int flags); in nativeSetDisplayFlags() argument 187 IBinder displayToken, int orientation, in nativeSetDisplayProjection() argument 190 private static native void nativeSetDisplaySize(long transactionObj, IBinder displayToken, in nativeSetDisplaySize() argument 195 nativeGetDisplayedContentSamplingAttributes(IBinder displayToken); in nativeGetDisplayedContentSamplingAttributes() argument 196 private static native boolean nativeSetDisplayedContentSamplingEnabled(IBinder displayToken, in nativeSetDisplayedContentSamplingEnabled() argument 199 IBinder displayToken, long numFrames, long timestamp); in nativeGetDisplayedContentSample() argument 200 private static native boolean nativeSetDesiredDisplayModeSpecs(IBinder displayToken, in nativeSetDesiredDisplayModeSpecs() argument 203 nativeGetDesiredDisplayModeSpecs(IBinder displayToken); in nativeGetDesiredDisplayModeSpecs() argument [all …]
|
/frameworks/native/services/automotive/display/ |
D | AutomotiveDisplayProxyService.cpp | 34 sp<IBinder> displayToken = nullptr; in getIGraphicBufferProducer() local 38 displayToken = SurfaceComposerClient::getPhysicalDisplayToken(*displayId); in getIGraphicBufferProducer() 41 if (displayToken == nullptr) { in getIGraphicBufferProducer() 48 auto err = SurfaceComposerClient::getActiveDisplayMode(displayToken, &displayMode); in getIGraphicBufferProducer() 56 err = SurfaceComposerClient::getDisplayState(displayToken, &displayState); in getIGraphicBufferProducer() 88 DisplayDesc descriptor = {displayToken, surfaceControl}; in getIGraphicBufferProducer() 91 displayToken = it->second.token; in getIGraphicBufferProducer() 163 sp<IBinder> displayToken; in getDisplayInfo() local 165 displayToken = SurfaceComposerClient::getPhysicalDisplayToken(*displayId); in getDisplayInfo() 168 if (displayToken == nullptr) { in getDisplayInfo() [all …]
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | DisplayControl.java | 33 private static native void nativeDestroyVirtualDisplay(IBinder displayToken); in nativeDestroyVirtualDisplay() argument 34 private static native void nativeOverrideHdrTypes(IBinder displayToken, int[] modes); in nativeOverrideHdrTypes() argument 80 public static void destroyVirtualDisplay(IBinder displayToken) { in destroyVirtualDisplay() argument 81 if (displayToken == null) { in destroyVirtualDisplay() 84 nativeDestroyVirtualDisplay(displayToken); in destroyVirtualDisplay() 91 public static void overrideHdrTypes(@NonNull IBinder displayToken, @NonNull int[] modes) { in overrideHdrTypes() argument 92 nativeOverrideHdrTypes(displayToken, modes); in overrideHdrTypes()
|
D | LocalDisplayAdapter.java | 136 final IBinder displayToken = in tryConnectDisplayLocked() local 138 if (displayToken != null) { in tryConnectDisplayLocked() 170 mSurfaceControlProxy.getDesiredDisplayModeSpecs(displayToken); in tryConnectDisplayLocked() 181 device = new LocalDisplayDevice(displayToken, physicalDisplayId, staticInfo, in tryConnectDisplayLocked() 270 LocalDisplayDevice(IBinder displayToken, long physicalDisplayId, in LocalDisplayDevice() argument 274 super(LocalDisplayAdapter.this, displayToken, UNIQUE_ID_PREFIX + physicalDisplayId, in LocalDisplayDevice() 281 mBacklightAdapter = new BacklightAdapter(displayToken, isFirstDisplay, in LocalDisplayDevice() 1127 private void setDesiredDisplayModeSpecsAsync(IBinder displayToken, in setDesiredDisplayModeSpecsAsync() argument 1131 mSurfaceControlProxy.setDesiredDisplayModeSpecs(displayToken, modeSpecs); in setDesiredDisplayModeSpecsAsync() 1215 private void requestColorModeAsync(IBinder displayToken, int colorMode) { in requestColorModeAsync() argument [all …]
|
D | BrightnessRangeController.java | 45 DisplayManagerFlags flags, IBinder displayToken, DisplayDeviceInfo info) { in BrightnessRangeController() argument 49 displayToken, info); in BrightnessRangeController() 56 HdrClamper hdrClamper, DisplayManagerFlags flags, IBinder displayToken, in BrightnessRangeController() argument 68 updateHdrClamper(info, displayToken, displayDeviceConfig); in BrightnessRangeController()
|
D | HighBrightnessModeController.java | 122 HighBrightnessModeController(Handler handler, int width, int height, IBinder displayToken, in HighBrightnessModeController() argument 126 this(new Injector(), handler, width, height, displayToken, displayUniqueId, brightnessMin, in HighBrightnessModeController() 132 IBinder displayToken, String displayUniqueId, float brightnessMin, float brightnessMax, in HighBrightnessModeController() argument 148 resetHbmData(width, height, displayToken, displayUniqueId, hbmData, hdrBrightnessCfg); in HighBrightnessModeController() 273 void resetHbmData(int width, int height, IBinder displayToken, String displayUniqueId, in resetHbmData() argument 284 registerHdrListener(displayToken); in resetHbmData() 585 private void registerHdrListener(IBinder displayToken) { in registerHdrListener() argument 586 if (mRegisteredDisplayToken == displayToken) { in registerHdrListener() 591 mRegisteredDisplayToken = displayToken; in registerHdrListener() 607 public void onHdrInfoChanged(IBinder displayToken, int numberOfHdrLayers, in onHdrInfoChanged() argument
|
D | DisplayDevice.java | 85 DisplayDevice(DisplayAdapter displayAdapter, IBinder displayToken, String uniqueId, in DisplayDevice() argument 87 this(displayAdapter, displayToken, uniqueId, context, false); in DisplayDevice() 90 DisplayDevice(DisplayAdapter displayAdapter, IBinder displayToken, String uniqueId, in DisplayDevice() argument 93 mDisplayToken = displayToken; in DisplayDevice()
|
D | VirtualDisplayAdapter.java | 102 public void destroyDisplay(IBinder displayToken) { in VirtualDisplayAdapter() 103 DisplayControl.destroyVirtualDisplay(displayToken); in VirtualDisplayAdapter() 131 IBinder displayToken = mSurfaceControlDisplayFactory.createDisplay(name, secure, uniqueId, in createVirtualDisplayLocked() local 137 VirtualDisplayDevice device = new VirtualDisplayDevice(displayToken, appToken, in createVirtualDisplayLocked() 275 public VirtualDisplayDevice(IBinder displayToken, IBinder appToken, in VirtualDisplayDevice() argument 280 super(VirtualDisplayAdapter.this, displayToken, uniqueId, getContext()); in VirtualDisplayDevice() 677 void destroyDisplay(IBinder displayToken); in destroyDisplay() argument
|
/frameworks/native/libs/gui/aidl/android/gui/ |
D | ISurfaceComposer.aidl | 115 void destroyVirtualDisplay(IBinder displayToken); in destroyVirtualDisplay() argument 387 void setDesiredDisplayModeSpecs(IBinder displayToken, in DisplayModeSpecs specs); in setDesiredDisplayModeSpecs() argument 389 DisplayModeSpecs getDesiredDisplayModeSpecs(IBinder displayToken); in getDesiredDisplayModeSpecs() argument 403 boolean getDisplayBrightnessSupport(IBinder displayToken); in getDisplayBrightnessSupport() argument 418 void setDisplayBrightness(IBinder displayToken, in DisplayBrightness brightness); in setDisplayBrightness() argument 427 void addHdrLayerInfoListener(IBinder displayToken, IHdrLayerInfoListener listener); in addHdrLayerInfoListener() argument 436 void removeHdrLayerInfoListener(IBinder displayToken, IHdrLayerInfoListener listener); in removeHdrLayerInfoListener() argument 481 @nullable DisplayDecorationSupport getDisplayDecorationSupport(IBinder displayToken); in getDisplayDecorationSupport() argument
|
/frameworks/native/opengl/tests/lib/ |
D | WindowSurface.cpp | 46 const auto displayToken = SurfaceComposerClient::getPhysicalDisplayToken(ids.front()); in WindowSurface() local 47 if (displayToken == nullptr) { in WindowSurface() 53 err = SurfaceComposerClient::getActiveDisplayMode(displayToken, &displayMode); in WindowSurface() 60 err = SurfaceComposerClient::getDisplayState(displayToken, &displayState); in WindowSurface()
|
/frameworks/base/services/core/java/com/android/server/display/brightness/clamper/ |
D | HdrClamper.java | 124 float minimumHdrPercentOfScreen, IBinder displayToken) { in resetHdrConfig() argument 127 if (displayToken != mRegisteredDisplayToken) { // token changed, resubscribe in resetHdrConfig() 136 if (displayToken != null && mHdrListener.mHdrMinPixels >= 0) { in resetHdrConfig() 137 mHdrListener.register(displayToken); in resetHdrConfig() 138 mRegisteredDisplayToken = displayToken; in resetHdrConfig() 264 public void onHdrInfoChanged(IBinder displayToken, int numberOfHdrLayers, int maxW, in onHdrInfoChanged() argument
|
/frameworks/native/services/surfaceflinger/ |
D | SurfaceFlinger.h | 354 virtual void processDisplayAdded(const wp<IBinder>& displayToken, const DisplayDeviceState&) 553 status_t destroyVirtualDisplay(const sp<IBinder>& displayToken); 580 status_t getDisplayStats(const sp<IBinder>& displayToken, DisplayStatInfo* stats); 581 status_t getDisplayState(const sp<IBinder>& displayToken, ui::DisplayState*) 586 status_t getDynamicDisplayInfoFromToken(const sp<IBinder>& displayToken, 590 status_t getDisplayNativePrimaries(const sp<IBinder>& displayToken, ui::DisplayPrimaries&); 591 status_t setActiveColorMode(const sp<IBinder>& displayToken, ui::ColorMode colorMode); 595 status_t clearBootDisplayMode(const sp<IBinder>& displayToken); 601 void setAutoLowLatencyMode(const sp<IBinder>& displayToken, bool on); 602 void setGameContentType(const sp<IBinder>& displayToken, bool on); [all …]
|
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/util/ |
D | StubTransaction.java | 191 public SurfaceControl.Transaction setDisplaySurface(IBinder displayToken, Surface surface) { in setDisplaySurface() argument 196 public SurfaceControl.Transaction setDisplayLayerStack(IBinder displayToken, int layerStack) { in setDisplayLayerStack() argument 201 public SurfaceControl.Transaction setDisplayFlags(IBinder displayToken, int flags) { in setDisplayFlags() argument 206 public SurfaceControl.Transaction setDisplayProjection(IBinder displayToken, in setDisplayProjection() argument 212 public SurfaceControl.Transaction setDisplaySize(IBinder displayToken, int width, int height) { in setDisplaySize() argument
|
/frameworks/base/services/tests/servicestests/utils/com/android/server/testutils/ |
D | StubTransaction.java | 189 public SurfaceControl.Transaction setDisplaySurface(IBinder displayToken, Surface surface) { in setDisplaySurface() argument 194 public SurfaceControl.Transaction setDisplayLayerStack(IBinder displayToken, int layerStack) { in setDisplayLayerStack() argument 199 public SurfaceControl.Transaction setDisplayFlags(IBinder displayToken, int flags) { in setDisplayFlags() argument 204 public SurfaceControl.Transaction setDisplayProjection(IBinder displayToken, in setDisplayProjection() argument 210 public SurfaceControl.Transaction setDisplaySize(IBinder displayToken, int width, int height) { in setDisplaySize() argument
|
/frameworks/base/core/jni/ |
D | android_window_ScreenCapture.cpp | 53 jfieldID displayToken; member 188 captureArgs.displayToken = in displayCaptureArgsFromObject() 191 gDisplayCaptureArgsClassInfo.displayToken)); in displayCaptureArgsFromObject() 204 if (captureArgs.displayToken == nullptr) { in nativeCaptureDisplay() 318 gDisplayCaptureArgsClassInfo.displayToken = in register_android_window_ScreenCapture()
|
/frameworks/native/services/surfaceflinger/tests/ |
D | LayerState_test.cpp | 38 args.displayToken = sp<BBinder>::make(); in TEST() 55 ASSERT_EQ(args.displayToken, args2.displayToken); in TEST()
|
D | TransactionTestHarnesses.h | 42 const auto displayToken = ids.empty() in getScreenCapture() local 47 SurfaceComposerClient::getDisplayState(displayToken, &displayState); in getScreenCapture() 50 SurfaceComposerClient::getActiveDisplayMode(displayToken, &displayMode); in getScreenCapture()
|