Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/view/
DSurfaceControl.java90 private static native ScreenshotGraphicBuffer nativeScreenshot(IBinder displayToken, in nativeScreenshot() argument
93 private static native ScreenshotGraphicBuffer nativeCaptureLayers(IBinder displayToken, in nativeCaptureLayers() argument
142 private static native void nativeDestroyDisplay(IBinder displayToken); in nativeDestroyDisplay() argument
144 IBinder displayToken, long nativeSurfaceObject); in nativeSetDisplaySurface() argument
146 IBinder displayToken, int layerStack); in nativeSetDisplayLayerStack() argument
148 IBinder displayToken, int orientation, in nativeSetDisplayProjection() argument
151 private static native void nativeSetDisplaySize(long transactionObj, IBinder displayToken, in nativeSetDisplaySize() argument
154 IBinder displayToken); in nativeGetDisplayConfigs() argument
156 nativeGetDisplayedContentSamplingAttributes(IBinder displayToken); in nativeGetDisplayedContentSamplingAttributes() argument
157 private static native boolean nativeSetDisplayedContentSamplingEnabled(IBinder displayToken, in nativeSetDisplayedContentSamplingEnabled() argument
[all …]
/frameworks/native/services/surfaceflinger/
DSurfaceFlinger.h388 void destroyDisplay(const sp<IBinder>& displayToken) override;
403 status_t captureScreen(const sp<IBinder>& displayToken, sp<GraphicBuffer>* outBuffer,
417 status_t getDisplayStats(const sp<IBinder>& displayToken, DisplayStatInfo* stats) override;
418 status_t getDisplayConfigs(const sp<IBinder>& displayToken,
420 int getActiveConfig(const sp<IBinder>& displayToken) override;
421 status_t getDisplayColorModes(const sp<IBinder>& displayToken,
423 status_t getDisplayNativePrimaries(const sp<IBinder>& displayToken,
425 ui::ColorMode getActiveColorMode(const sp<IBinder>& displayToken) override;
426 status_t setActiveColorMode(const sp<IBinder>& displayToken, ui::ColorMode colorMode) override;
427 void setPowerMode(const sp<IBinder>& displayToken, int mode) override;
[all …]
DSurfaceFlinger.cpp461 void SurfaceFlinger::destroyDisplay(const sp<IBinder>& displayToken) { in destroyDisplay() argument
464 ssize_t index = mCurrentState.displays.indexOfKey(displayToken); in destroyDisplay()
466 ALOGE("destroyDisplay: Invalid display token %p", displayToken.get()); in destroyDisplay()
795 status_t SurfaceFlinger::getDisplayConfigs(const sp<IBinder>& displayToken, in getDisplayConfigs() argument
797 if (!displayToken || !configs) { in getDisplayConfigs()
803 const auto displayId = getPhysicalDisplayIdLocked(displayToken); in getDisplayConfigs()
916 int SurfaceFlinger::getActiveConfig(const sp<IBinder>& displayToken) { in getActiveConfig() argument
917 const auto display = getDisplayDevice(displayToken); in getActiveConfig()
919 ALOGE("getActiveConfig: Invalid display token %p", displayToken.get()); in getActiveConfig()
956 status_t SurfaceFlinger::setActiveConfig(const sp<IBinder>& displayToken, int mode) { in setActiveConfig() argument
[all …]
DDisplayDevice.cpp52 const wp<IBinder>& displayToken, in DisplayDeviceCreationArgs() argument
54 : flinger(flinger), displayToken(displayToken), displayId(displayId) {} in DisplayDeviceCreationArgs()
58 mDisplayToken(args.displayToken), in DisplayDevice()
DDisplayDevice.h229 DisplayDeviceCreationArgs(const sp<SurfaceFlinger>& flinger, const wp<IBinder>& displayToken,
233 const wp<IBinder> displayToken; member
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/display/
DLocalDisplayAdapterTest.java168 public final IBinder displayToken = new Binder(); field in LocalDisplayAdapterTest.DisplayConfig
179 doReturn(config.displayToken).when( in setUpDisplay()
183 }).when(() -> SurfaceControl.getDisplayConfigs(config.displayToken)); in setUpDisplay()
184 doReturn(0).when(() -> SurfaceControl.getActiveConfig(config.displayToken)); in setUpDisplay()
185 doReturn(0).when(() -> SurfaceControl.getActiveColorMode(config.displayToken)); in setUpDisplay()
188 }).when(() -> SurfaceControl.getDisplayColorModes(config.displayToken)); in setUpDisplay()
191 }).when(() -> SurfaceControl.getAllowedDisplayConfigs(config.displayToken)); in setUpDisplay()
/frameworks/native/services/surfaceflinger/tests/unittests/
DDisplayTransactionTest.cpp112 bool hasDisplayDevice(sp<IBinder> displayToken);
113 sp<DisplayDevice> getDisplayDevice(sp<IBinder> displayToken);
114 bool hasCurrentDisplayState(sp<IBinder> displayToken);
115 const DisplayDeviceState& getCurrentDisplayState(sp<IBinder> displayToken);
116 bool hasDrawingDisplayState(sp<IBinder> displayToken);
117 const DisplayDeviceState& getDrawingDisplayState(sp<IBinder> displayToken);
239 bool DisplayTransactionTest::hasDisplayDevice(sp<IBinder> displayToken) { in hasDisplayDevice() argument
240 return mFlinger.mutableDisplays().count(displayToken) == 1; in hasDisplayDevice()
243 sp<DisplayDevice> DisplayTransactionTest::getDisplayDevice(sp<IBinder> displayToken) { in getDisplayDevice() argument
244 return mFlinger.mutableDisplays()[displayToken]; in getDisplayDevice()
[all …]
DTestableSurfaceFlinger.h237 auto destroyDisplay(const sp<IBinder>& displayToken) { in destroyDisplay() argument
238 return mFlinger->destroyDisplay(displayToken); in destroyDisplay()
243 auto setupNewDisplayDeviceInternal(const wp<IBinder>& displayToken, in setupNewDisplayDeviceInternal() argument
248 return mFlinger->setupNewDisplayDeviceInternal(displayToken, displayId, state, dispSurface, in setupNewDisplayDeviceInternal()
294 auto getDisplayNativePrimaries(const sp<IBinder>& displayToken, in getDisplayNativePrimaries() argument
296 return mFlinger->SurfaceFlinger::getDisplayNativePrimaries(displayToken, primaries); in getDisplayNativePrimaries()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DStubTransaction.java202 public SurfaceControl.Transaction setDisplaySurface(IBinder displayToken, Surface surface) { in setDisplaySurface() argument
207 public SurfaceControl.Transaction setDisplayLayerStack(IBinder displayToken, int layerStack) { in setDisplayLayerStack() argument
212 public SurfaceControl.Transaction setDisplayProjection(IBinder displayToken, in setDisplayProjection() argument
218 public SurfaceControl.Transaction setDisplaySize(IBinder displayToken, int width, int height) { in setDisplaySize() argument
/frameworks/base/services/core/java/com/android/server/display/
DLocalDisplayAdapter.java89 final IBinder displayToken = SurfaceControl.getPhysicalDisplayToken(physicalDisplayId); in tryConnectDisplayLocked() local
90 if (displayToken != null) { in tryConnectDisplayLocked()
92 SurfaceControl.getDisplayConfigs(displayToken); in tryConnectDisplayLocked()
98 int activeConfig = SurfaceControl.getActiveConfig(displayToken); in tryConnectDisplayLocked()
105 int activeColorMode = SurfaceControl.getActiveColorMode(displayToken); in tryConnectDisplayLocked()
114 int[] colorModes = SurfaceControl.getDisplayColorModes(displayToken); in tryConnectDisplayLocked()
115 int[] allowedConfigs = SurfaceControl.getAllowedDisplayConfigs(displayToken); in tryConnectDisplayLocked()
120 device = new LocalDisplayDevice(displayToken, physicalDisplayId, in tryConnectDisplayLocked()
187 LocalDisplayDevice(IBinder displayToken, long physicalDisplayId, in LocalDisplayDevice() argument
191 super(LocalDisplayAdapter.this, displayToken, UNIQUE_ID_PREFIX + physicalDisplayId); in LocalDisplayDevice()
[all …]
DDisplayDevice.java55 public DisplayDevice(DisplayAdapter displayAdapter, IBinder displayToken, String uniqueId) { in DisplayDevice() argument
57 mDisplayToken = displayToken; in DisplayDevice()
DVirtualDisplayAdapter.java91 IBinder displayToken = mSurfaceControlDisplayFactory.createDisplay(name, secure); in createVirtualDisplayLocked() local
100 VirtualDisplayDevice device = new VirtualDisplayDevice(displayToken, appToken, in createVirtualDisplayLocked()
218 public VirtualDisplayDevice(IBinder displayToken, IBinder appToken, in VirtualDisplayDevice() argument
222 super(VirtualDisplayAdapter.this, displayToken, uniqueId); in VirtualDisplayDevice()
DOverlayDisplayAdapter.java237 public OverlayDisplayDevice(IBinder displayToken, String name, in OverlayDisplayDevice() argument
242 super(OverlayDisplayAdapter.this, displayToken, UNIQUE_ID_PREFIX + number); in OverlayDisplayDevice()
415 IBinder displayToken = SurfaceControl.createDisplay(mName, mSecure); in onWindowCreated() local
416 mDevice = new OverlayDisplayDevice(displayToken, mName, mModes, mActiveMode, in onWindowCreated()
DWifiDisplayAdapter.java383 IBinder displayToken = SurfaceControl.createDisplay(name, secure); in addDisplayDeviceLocked() local
384 mDisplayDevice = new WifiDisplayDevice(displayToken, name, width, height, in addDisplayDeviceLocked()
591 public WifiDisplayDevice(IBinder displayToken, String name, in WifiDisplayDevice() argument
594 super(WifiDisplayAdapter.this, displayToken, DISPLAY_NAME_PREFIX + address); in WifiDisplayDevice()
/frameworks/native/libs/gui/include/gui/
DISurfaceComposer.h387 virtual status_t setAllowedDisplayConfigs(const sp<IBinder>& displayToken,
395 virtual status_t getAllowedDisplayConfigs(const sp<IBinder>& displayToken,
409 virtual status_t getDisplayBrightnessSupport(const sp<IBinder>& displayToken,
426 virtual status_t setDisplayBrightness(const sp<IBinder>& displayToken,
DSurfaceComposerClient.h119 static status_t setAllowedDisplayConfigs(const sp<IBinder>& displayToken,
125 static status_t getAllowedDisplayConfigs(const sp<IBinder>& displayToken,
186 static bool getDisplayBrightnessSupport(const sp<IBinder>& displayToken);
202 static status_t setDisplayBrightness(const sp<IBinder>& displayToken, float brightness);
/frameworks/native/libs/gui/
DISurfaceComposer.cpp853 virtual status_t setAllowedDisplayConfigs(const sp<IBinder>& displayToken, in setAllowedDisplayConfigs() argument
861 result = data.writeStrongBinder(displayToken); in setAllowedDisplayConfigs()
879 virtual status_t getAllowedDisplayConfigs(const sp<IBinder>& displayToken, in getAllowedDisplayConfigs() argument
888 result = data.writeStrongBinder(displayToken); in getAllowedDisplayConfigs()
906 virtual status_t getDisplayBrightnessSupport(const sp<IBinder>& displayToken, in getDisplayBrightnessSupport() argument
914 error = data.writeStrongBinder(displayToken); in getDisplayBrightnessSupport()
934 virtual status_t setDisplayBrightness(const sp<IBinder>& displayToken, float brightness) const { in setDisplayBrightness() argument
941 error = data.writeStrongBinder(displayToken); in setDisplayBrightness()
1535 sp<IBinder> displayToken = data.readStrongBinder(); in onTransact() local
1538 status_t result = setAllowedDisplayConfigs(displayToken, allowedConfigs); in onTransact()
[all …]
DSurfaceComposerClient.cpp1434 const sp<IBinder>& displayToken, const std::vector<int32_t>& allowedConfigs) { in setAllowedDisplayConfigs() argument
1435 return ComposerService::getComposerService()->setAllowedDisplayConfigs(displayToken, in setAllowedDisplayConfigs()
1439 status_t SurfaceComposerClient::getAllowedDisplayConfigs(const sp<IBinder>& displayToken, in getAllowedDisplayConfigs() argument
1441 return ComposerService::getComposerService()->getAllowedDisplayConfigs(displayToken, in getAllowedDisplayConfigs()
1540 bool SurfaceComposerClient::getDisplayBrightnessSupport(const sp<IBinder>& displayToken) { in getDisplayBrightnessSupport() argument
1542 ComposerService::getComposerService()->getDisplayBrightnessSupport(displayToken, &support); in getDisplayBrightnessSupport()
1546 status_t SurfaceComposerClient::setDisplayBrightness(const sp<IBinder>& displayToken, in setDisplayBrightness() argument
1548 return ComposerService::getComposerService()->setDisplayBrightness(displayToken, brightness); in setDisplayBrightness()
/frameworks/base/services/core/java/com/android/server/display/color/
DDisplayWhiteBalanceTintController.java260 final IBinder displayToken = SurfaceControl.getInternalDisplayToken(); in getDisplayColorSpaceFromSurfaceControl() local
261 if (displayToken == null) { in getDisplayColorSpaceFromSurfaceControl()
265 DisplayPrimaries primaries = SurfaceControl.getDisplayNativePrimaries(displayToken); in getDisplayColorSpaceFromSurfaceControl()
/frameworks/base/core/jni/
Dandroid_view_SurfaceControl.cpp244 sp<IBinder> displayToken = ibinderForJavaObject(env, displayTokenObj); in nativeScreenshot() local
245 if (displayToken == NULL) { in nativeScreenshot()
248 const ui::ColorMode colorMode = SurfaceComposerClient::getActiveColorMode(displayToken); in nativeScreenshot()
254 status_t res = ScreenshotClient::capture(displayToken, dataspace, in nativeScreenshot()
306 sp<IBinder> displayToken = ibinderForJavaObject(env, displayTokenObj); in nativeCaptureLayers() local
307 if (displayToken != nullptr) { in nativeCaptureLayers()
308 const ui::ColorMode colorMode = SurfaceComposerClient::getActiveColorMode(displayToken); in nativeCaptureLayers()
1241 sp<IBinder> displayToken(ibinderForJavaObject(env, displayTokenObject)); in nativeGetDisplayBrightnessSupport() local
1242 if (displayToken == nullptr) { in nativeGetDisplayBrightnessSupport()
1245 return static_cast<jboolean>(SurfaceComposerClient::getDisplayBrightnessSupport(displayToken)); in nativeGetDisplayBrightnessSupport()
[all …]
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DSettingsProtoDumpUtil.java521 final long displayToken = p.start(GlobalSettingsProto.DISPLAY); in dumpProtoGlobalSettingsLocked() local
531 p.end(displayToken); in dumpProtoGlobalSettingsLocked()
/frameworks/native/services/surfaceflinger/tests/
DTransaction_test.cpp205 static void captureScreen(std::unique_ptr<ScreenCapture>* sc, sp<IBinder> displayToken) { in captureScreen() argument
210 ASSERT_EQ(NO_ERROR, sf->captureScreen(displayToken, &outBuffer, Rect(), 0, 0, false)); in captureScreen()