/frameworks/base/core/java/android/view/ |
D | SurfaceControl.java | 94 private static native ScreenshotGraphicBuffer nativeScreenshot(IBinder displayToken, in nativeScreenshot() argument 97 private static native ScreenshotGraphicBuffer nativeCaptureLayers(IBinder displayToken, in nativeCaptureLayers() argument 151 private static native void nativeDestroyDisplay(IBinder displayToken); in nativeDestroyDisplay() argument 153 IBinder displayToken, long nativeSurfaceObject); in nativeSetDisplaySurface() argument 155 IBinder displayToken, int layerStack); in nativeSetDisplayLayerStack() argument 157 IBinder displayToken, int orientation, in nativeSetDisplayProjection() argument 160 private static native void nativeSetDisplaySize(long transactionObj, IBinder displayToken, in nativeSetDisplaySize() argument 162 private static native SurfaceControl.DisplayInfo nativeGetDisplayInfo(IBinder displayToken); in nativeGetDisplayInfo() argument 164 IBinder displayToken); in nativeGetDisplayConfigs() argument 166 nativeGetDisplayedContentSamplingAttributes(IBinder displayToken); in nativeGetDisplayedContentSamplingAttributes() argument [all …]
|
/frameworks/native/services/automotive/display/ |
D | AutomotiveDisplayProxyService.cpp | 34 sp<IBinder> displayToken = nullptr; in getIGraphicBufferProducer() local 37 displayToken = SurfaceComposerClient::getPhysicalDisplayToken(id); in getIGraphicBufferProducer() 38 if (displayToken == nullptr) { in getIGraphicBufferProducer() 45 auto err = SurfaceComposerClient::getActiveDisplayConfig(displayToken, &displayConfig); in getIGraphicBufferProducer() 53 err = SurfaceComposerClient::getDisplayState(displayToken, &displayState); in getIGraphicBufferProducer() 85 DisplayDesc descriptor = {displayToken, surfaceControl}; in getIGraphicBufferProducer() 88 displayToken = it->second.token; in getIGraphicBufferProducer() 160 auto displayToken = SurfaceComposerClient::getPhysicalDisplayToken(id); in getDisplayInfo() local 161 if (displayToken == nullptr) { in getDisplayInfo() 165 auto err = SurfaceComposerClient::getActiveDisplayConfig(displayToken, &displayConfig); in getDisplayInfo() [all …]
|
/frameworks/native/services/surfaceflinger/ |
D | SurfaceFlinger.h | 413 void destroyDisplay(const sp<IBinder>& displayToken) override; 431 status_t captureScreen(const sp<IBinder>& displayToken, sp<GraphicBuffer>* outBuffer, 445 status_t getDisplayStats(const sp<IBinder>& displayToken, DisplayStatInfo* stats) override; 446 status_t getDisplayState(const sp<IBinder>& displayToken, ui::DisplayState*) override; 447 status_t getDisplayInfo(const sp<IBinder>& displayToken, DisplayInfo*) override; 448 status_t getDisplayConfigs(const sp<IBinder>& displayToken, Vector<DisplayConfig>*) override; 449 int getActiveConfig(const sp<IBinder>& displayToken) override; 450 status_t getDisplayColorModes(const sp<IBinder>& displayToken, Vector<ui::ColorMode>*) override; 451 status_t getDisplayNativePrimaries(const sp<IBinder>& displayToken, 453 ui::ColorMode getActiveColorMode(const sp<IBinder>& displayToken) override; [all …]
|
D | SurfaceFlinger.cpp | 515 void SurfaceFlinger::destroyDisplay(const sp<IBinder>& displayToken) { in destroyDisplay() argument 518 const ssize_t index = mCurrentState.displays.indexOfKey(displayToken); in destroyDisplay() 520 ALOGE("%s: Invalid display token %p", __FUNCTION__, displayToken.get()); in destroyDisplay() 825 status_t SurfaceFlinger::getDisplayState(const sp<IBinder>& displayToken, ui::DisplayState* state) { in getDisplayState() argument 826 if (!displayToken || !state) { in getDisplayState() 832 const auto display = getDisplayDeviceLocked(displayToken); in getDisplayState() 846 status_t SurfaceFlinger::getDisplayInfo(const sp<IBinder>& displayToken, DisplayInfo* info) { in getDisplayInfo() argument 847 if (!displayToken || !info) { in getDisplayInfo() 853 const auto display = getDisplayDeviceLocked(displayToken); in getDisplayInfo() 879 status_t SurfaceFlinger::getDisplayConfigs(const sp<IBinder>& displayToken, in getDisplayConfigs() argument [all …]
|
D | DisplayDevice.cpp | 53 const sp<SurfaceFlinger>& flinger, const wp<IBinder>& displayToken, in DisplayDeviceCreationArgs() argument 55 : flinger(flinger), displayToken(displayToken), compositionDisplay(compositionDisplay) {} in DisplayDeviceCreationArgs() 59 mDisplayToken(args.displayToken), in DisplayDevice()
|
D | DisplayDevice.h | 219 DisplayDeviceCreationArgs(const sp<SurfaceFlinger>&, const wp<IBinder>& displayToken, 222 const wp<IBinder> displayToken; member
|
/frameworks/native/opengl/tests/lib/ |
D | WindowSurface.cpp | 39 const auto displayToken = SurfaceComposerClient::getInternalDisplayToken(); in WindowSurface() local 40 if (displayToken == nullptr) { in WindowSurface() 46 err = SurfaceComposerClient::getActiveDisplayConfig(displayToken, &displayConfig); in WindowSurface() 53 err = SurfaceComposerClient::getDisplayState(displayToken, &displayState); in WindowSurface()
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | LocalDisplayAdapter.java | 94 final IBinder displayToken = SurfaceControl.getPhysicalDisplayToken(physicalDisplayId); in tryConnectDisplayLocked() local 95 if (displayToken != null) { in tryConnectDisplayLocked() 96 SurfaceControl.DisplayInfo info = SurfaceControl.getDisplayInfo(displayToken); in tryConnectDisplayLocked() 101 SurfaceControl.DisplayConfig[] configs = SurfaceControl.getDisplayConfigs(displayToken); in tryConnectDisplayLocked() 107 int activeConfig = SurfaceControl.getActiveConfig(displayToken); in tryConnectDisplayLocked() 114 int activeColorMode = SurfaceControl.getActiveColorMode(displayToken); in tryConnectDisplayLocked() 124 SurfaceControl.getDesiredDisplayConfigSpecs(displayToken); in tryConnectDisplayLocked() 125 int[] colorModes = SurfaceControl.getDisplayColorModes(displayToken); in tryConnectDisplayLocked() 127 SurfaceControl.getHdrCapabilities(displayToken); in tryConnectDisplayLocked() 132 device = new LocalDisplayDevice(displayToken, physicalDisplayId, info, in tryConnectDisplayLocked() [all …]
|
D | DisplayDevice.java | 57 public DisplayDevice(DisplayAdapter displayAdapter, IBinder displayToken, String uniqueId) { in DisplayDevice() argument 59 mDisplayToken = displayToken; in DisplayDevice()
|
D | VirtualDisplayAdapter.java | 96 IBinder displayToken = mSurfaceControlDisplayFactory.createDisplay(name, secure); in createVirtualDisplayLocked() local 106 VirtualDisplayDevice device = new VirtualDisplayDevice(displayToken, appToken, in createVirtualDisplayLocked() 233 public VirtualDisplayDevice(IBinder displayToken, IBinder appToken, in VirtualDisplayDevice() argument 237 super(VirtualDisplayAdapter.this, displayToken, uniqueId); in VirtualDisplayDevice()
|
D | OverlayDisplayAdapter.java | 280 OverlayDisplayDevice(IBinder displayToken, String name, in OverlayDisplayDevice() argument 284 super(OverlayDisplayAdapter.this, displayToken, UNIQUE_ID_PREFIX + number); in OverlayDisplayDevice() 462 IBinder displayToken = SurfaceControl.createDisplay(mName, mFlags.mSecure); in onWindowCreated() local 463 mDevice = new OverlayDisplayDevice(displayToken, mName, mModes, mActiveMode, in onWindowCreated()
|
D | WifiDisplayAdapter.java | 390 IBinder displayToken = SurfaceControl.createDisplay(name, secure); in addDisplayDeviceLocked() local 391 mDisplayDevice = new WifiDisplayDevice(displayToken, name, width, height, in addDisplayDeviceLocked() 598 public WifiDisplayDevice(IBinder displayToken, String name, in WifiDisplayDevice() argument 601 super(WifiDisplayAdapter.this, displayToken, DISPLAY_NAME_PREFIX + address); in WifiDisplayDevice()
|
/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | DisplayTransactionTest.cpp | 132 bool hasDisplayDevice(sp<IBinder> displayToken); 133 sp<DisplayDevice> getDisplayDevice(sp<IBinder> displayToken); 134 bool hasCurrentDisplayState(sp<IBinder> displayToken); 135 const DisplayDeviceState& getCurrentDisplayState(sp<IBinder> displayToken); 136 bool hasDrawingDisplayState(sp<IBinder> displayToken); 137 const DisplayDeviceState& getDrawingDisplayState(sp<IBinder> displayToken); 303 bool DisplayTransactionTest::hasDisplayDevice(sp<IBinder> displayToken) { in hasDisplayDevice() argument 304 return mFlinger.mutableDisplays().count(displayToken) == 1; in hasDisplayDevice() 307 sp<DisplayDevice> DisplayTransactionTest::getDisplayDevice(sp<IBinder> displayToken) { in getDisplayDevice() argument 308 return mFlinger.mutableDisplays()[displayToken]; in getDisplayDevice() [all …]
|
D | TestableSurfaceFlinger.h | 288 auto destroyDisplay(const sp<IBinder>& displayToken) { in destroyDisplay() argument 289 return mFlinger->destroyDisplay(displayToken); in destroyDisplay() 295 const wp<IBinder>& displayToken, in setupNewDisplayDeviceInternal() argument 300 return mFlinger->setupNewDisplayDeviceInternal(displayToken, compositionDisplay, state, in setupNewDisplayDeviceInternal() 347 auto getDisplayNativePrimaries(const sp<IBinder>& displayToken, in getDisplayNativePrimaries() argument 349 return mFlinger->SurfaceFlinger::getDisplayNativePrimaries(displayToken, primaries); in getDisplayNativePrimaries()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | StubTransaction.java | 194 public SurfaceControl.Transaction setDisplaySurface(IBinder displayToken, Surface surface) { in setDisplaySurface() argument 199 public SurfaceControl.Transaction setDisplayLayerStack(IBinder displayToken, int layerStack) { in setDisplayLayerStack() 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/native/services/surfaceflinger/tests/ |
D | TransactionTestHarnesses.h | 38 const auto displayToken = SurfaceComposerClient::getInternalDisplayToken(); in getScreenCapture() local 41 SurfaceComposerClient::getDisplayState(displayToken, &displayState); in getScreenCapture() 44 SurfaceComposerClient::getActiveDisplayConfig(displayToken, &displayConfig); in getScreenCapture()
|
/frameworks/native/libs/gui/include/gui/ |
D | ISurfaceComposer.h | 454 virtual status_t setDesiredDisplayConfigSpecs(const sp<IBinder>& displayToken, 461 virtual status_t getDesiredDisplayConfigSpecs(const sp<IBinder>& displayToken, 479 virtual status_t getDisplayBrightnessSupport(const sp<IBinder>& displayToken, 496 virtual status_t setDisplayBrightness(const sp<IBinder>& displayToken, float brightness) = 0;
|
D | SurfaceComposerClient.h | 122 static status_t setDesiredDisplayConfigSpecs(const sp<IBinder>& displayToken, 128 static status_t getDesiredDisplayConfigSpecs(const sp<IBinder>& displayToken, 201 static bool getDisplayBrightnessSupport(const sp<IBinder>& displayToken); 217 static status_t setDisplayBrightness(const sp<IBinder>& displayToken, float brightness);
|
/frameworks/base/services/core/java/com/android/server/display/color/ |
D | DisplayWhiteBalanceTintController.java | 239 final IBinder displayToken = SurfaceControl.getInternalDisplayToken(); in getDisplayColorSpaceFromSurfaceControl() local 240 if (displayToken == null) { in getDisplayColorSpaceFromSurfaceControl() 244 DisplayPrimaries primaries = SurfaceControl.getDisplayNativePrimaries(displayToken); in getDisplayColorSpaceFromSurfaceControl()
|
/frameworks/native/libs/gui/ |
D | ISurfaceComposer.cpp | 932 virtual status_t setDesiredDisplayConfigSpecs(const sp<IBinder>& displayToken, in setDesiredDisplayConfigSpecs() argument 944 result = data.writeStrongBinder(displayToken); in setDesiredDisplayConfigSpecs() 986 virtual status_t getDesiredDisplayConfigSpecs(const sp<IBinder>& displayToken, in getDesiredDisplayConfigSpecs() argument 1002 result = data.writeStrongBinder(displayToken); in getDesiredDisplayConfigSpecs() 1043 virtual status_t getDisplayBrightnessSupport(const sp<IBinder>& displayToken, in getDisplayBrightnessSupport() argument 1051 error = data.writeStrongBinder(displayToken); in getDisplayBrightnessSupport() 1071 virtual status_t setDisplayBrightness(const sp<IBinder>& displayToken, float brightness) { in setDisplayBrightness() argument 1078 error = data.writeStrongBinder(displayToken); in setDisplayBrightness() 1862 sp<IBinder> displayToken = data.readStrongBinder(); in onTransact() local 1898 setDesiredDisplayConfigSpecs(displayToken, defaultConfig, primaryRefreshRateMin, in onTransact() [all …]
|
D | SurfaceComposerClient.cpp | 1746 status_t SurfaceComposerClient::setDesiredDisplayConfigSpecs(const sp<IBinder>& displayToken, in setDesiredDisplayConfigSpecs() argument 1753 ->setDesiredDisplayConfigSpecs(displayToken, defaultConfig, primaryRefreshRateMin, in setDesiredDisplayConfigSpecs() 1758 status_t SurfaceComposerClient::getDesiredDisplayConfigSpecs(const sp<IBinder>& displayToken, in getDesiredDisplayConfigSpecs() argument 1765 ->getDesiredDisplayConfigSpecs(displayToken, outDefaultConfig, outPrimaryRefreshRateMin, in getDesiredDisplayConfigSpecs() 1885 bool SurfaceComposerClient::getDisplayBrightnessSupport(const sp<IBinder>& displayToken) { in getDisplayBrightnessSupport() argument 1887 ComposerService::getComposerService()->getDisplayBrightnessSupport(displayToken, &support); in getDisplayBrightnessSupport() 1891 status_t SurfaceComposerClient::setDisplayBrightness(const sp<IBinder>& displayToken, in setDisplayBrightness() argument 1893 return ComposerService::getComposerService()->setDisplayBrightness(displayToken, brightness); in setDisplayBrightness()
|
/frameworks/native/services/surfaceflinger/tests/utils/ |
D | ScreenshotUtils.h | 34 static void captureScreen(std::unique_ptr<ScreenCapture>* sc, sp<IBinder> displayToken) { in captureScreen() argument 39 ASSERT_EQ(NO_ERROR, sf->captureScreen(displayToken, &outBuffer, Rect(), 0, 0, false)); in captureScreen()
|
/frameworks/base/core/jni/ |
D | android_view_SurfaceControl.cpp | 286 sp<IBinder> displayToken = ibinderForJavaObject(env, displayTokenObj); in nativeScreenshot() local 287 if (displayToken == NULL) { in nativeScreenshot() 290 const ui::ColorMode colorMode = SurfaceComposerClient::getActiveColorMode(displayToken); in nativeScreenshot() 296 status_t res = ScreenshotClient::capture(displayToken, dataspace, in nativeScreenshot() 350 sp<IBinder> displayToken = ibinderForJavaObject(env, displayTokenObj); in nativeCaptureLayers() local 351 if (displayToken != nullptr) { in nativeCaptureLayers() 352 const ui::ColorMode colorMode = SurfaceComposerClient::getActiveColorMode(displayToken); in nativeCaptureLayers() 1412 sp<IBinder> displayToken(ibinderForJavaObject(env, displayTokenObject)); in nativeGetDisplayBrightnessSupport() local 1413 if (displayToken == nullptr) { in nativeGetDisplayBrightnessSupport() 1416 return static_cast<jboolean>(SurfaceComposerClient::getDisplayBrightnessSupport(displayToken)); in nativeGetDisplayBrightnessSupport() [all …]
|
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
D | SettingsProtoDumpUtil.java | 581 final long displayToken = p.start(GlobalSettingsProto.DISPLAY); in dumpProtoGlobalSettingsLocked() local 591 p.end(displayToken); in dumpProtoGlobalSettingsLocked()
|