Home
last modified time | relevance | path

Searched refs:displayToken (Results 1 – 24 of 24) sorted by relevance

/frameworks/base/core/java/android/view/
DSurfaceControl.java94 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/
DAutomotiveDisplayProxyService.cpp34 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/
DSurfaceFlinger.h413 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 …]
DSurfaceFlinger.cpp515 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 …]
DDisplayDevice.cpp53 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()
DDisplayDevice.h219 DisplayDeviceCreationArgs(const sp<SurfaceFlinger>&, const wp<IBinder>& displayToken,
222 const wp<IBinder> displayToken; member
/frameworks/native/opengl/tests/lib/
DWindowSurface.cpp39 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/
DLocalDisplayAdapter.java94 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 …]
DDisplayDevice.java57 public DisplayDevice(DisplayAdapter displayAdapter, IBinder displayToken, String uniqueId) { in DisplayDevice() argument
59 mDisplayToken = displayToken; in DisplayDevice()
DVirtualDisplayAdapter.java96 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()
DOverlayDisplayAdapter.java280 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()
DWifiDisplayAdapter.java390 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/
DDisplayTransactionTest.cpp132 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 …]
DTestableSurfaceFlinger.h288 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/
DStubTransaction.java194 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/
DTransactionTestHarnesses.h38 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/
DISurfaceComposer.h454 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;
DSurfaceComposerClient.h122 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/
DDisplayWhiteBalanceTintController.java239 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/
DISurfaceComposer.cpp932 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 …]
DSurfaceComposerClient.cpp1746 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/
DScreenshotUtils.h34 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/
Dandroid_view_SurfaceControl.cpp286 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/
DSettingsProtoDumpUtil.java581 final long displayToken = p.start(GlobalSettingsProto.DISPLAY); in dumpProtoGlobalSettingsLocked() local
591 p.end(displayToken); in dumpProtoGlobalSettingsLocked()