/frameworks/base/core/java/android/view/ |
D | SurfaceControl.java | 89 private static native ScreenshotGraphicBuffer nativeScreenshot(IBinder displayToken, in nativeScreenshot() argument 92 private static native ScreenshotGraphicBuffer nativeCaptureLayers(IBinder displayToken, in nativeCaptureLayers() argument 141 private static native void nativeDestroyDisplay(IBinder displayToken); in nativeDestroyDisplay() argument 143 IBinder displayToken, long nativeSurfaceObject); in nativeSetDisplaySurface() argument 145 IBinder displayToken, int layerStack); in nativeSetDisplayLayerStack() argument 147 IBinder displayToken, int orientation, in nativeSetDisplayProjection() argument 150 private static native void nativeSetDisplaySize(long transactionObj, IBinder displayToken, in nativeSetDisplaySize() argument 153 IBinder displayToken); in nativeGetDisplayConfigs() argument 155 nativeGetDisplayedContentSamplingAttributes(IBinder displayToken); in nativeGetDisplayedContentSamplingAttributes() argument 156 private static native boolean nativeSetDisplayedContentSamplingEnabled(IBinder displayToken, in nativeSetDisplayedContentSamplingEnabled() argument [all …]
|
/frameworks/native/services/surfaceflinger/ |
D | SurfaceFlinger.h | 401 void destroyDisplay(const sp<IBinder>& displayToken) override; 418 status_t captureScreen(const sp<IBinder>& displayToken, sp<GraphicBuffer>* outBuffer, 432 status_t getDisplayStats(const sp<IBinder>& displayToken, DisplayStatInfo* stats) override; 433 status_t getDisplayConfigs(const sp<IBinder>& displayToken, 435 int getActiveConfig(const sp<IBinder>& displayToken) override; 436 status_t getDisplayColorModes(const sp<IBinder>& displayToken, 438 status_t getDisplayNativePrimaries(const sp<IBinder>& displayToken, 440 ui::ColorMode getActiveColorMode(const sp<IBinder>& displayToken) override; 441 status_t setActiveColorMode(const sp<IBinder>& displayToken, ui::ColorMode colorMode) override; 442 void setPowerMode(const sp<IBinder>& displayToken, int mode) override; [all …]
|
D | SurfaceFlinger.cpp | 468 void SurfaceFlinger::destroyDisplay(const sp<IBinder>& displayToken) { in destroyDisplay() argument 471 ssize_t index = mCurrentState.displays.indexOfKey(displayToken); in destroyDisplay() 473 ALOGE("destroyDisplay: Invalid display token %p", displayToken.get()); in destroyDisplay() 768 status_t SurfaceFlinger::getDisplayConfigs(const sp<IBinder>& displayToken, in getDisplayConfigs() argument 770 if (!displayToken || !configs) { in getDisplayConfigs() 776 const auto displayId = getPhysicalDisplayIdLocked(displayToken); in getDisplayConfigs() 890 int SurfaceFlinger::getActiveConfig(const sp<IBinder>& displayToken) { in getActiveConfig() argument 891 const auto display = getDisplayDevice(displayToken); in getActiveConfig() 893 ALOGE("getActiveConfig: Invalid display token %p", displayToken.get()); in getActiveConfig() 933 status_t SurfaceFlinger::setActiveConfig(const sp<IBinder>& displayToken, int mode) { in setActiveConfig() argument [all …]
|
D | DisplayDevice.cpp | 52 const wp<IBinder>& displayToken, in DisplayDeviceCreationArgs() argument 54 : flinger(flinger), displayToken(displayToken), displayId(displayId) {} in DisplayDeviceCreationArgs() 58 mDisplayToken(args.displayToken), in DisplayDevice()
|
D | DisplayDevice.h | 229 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/ |
D | LocalDisplayAdapterTest.java | 168 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/ |
D | DisplayTransactionTest.cpp | 113 bool hasDisplayDevice(sp<IBinder> displayToken); 114 sp<DisplayDevice> getDisplayDevice(sp<IBinder> displayToken); 115 bool hasCurrentDisplayState(sp<IBinder> displayToken); 116 const DisplayDeviceState& getCurrentDisplayState(sp<IBinder> displayToken); 117 bool hasDrawingDisplayState(sp<IBinder> displayToken); 118 const DisplayDeviceState& getDrawingDisplayState(sp<IBinder> displayToken); 249 bool DisplayTransactionTest::hasDisplayDevice(sp<IBinder> displayToken) { in hasDisplayDevice() argument 250 return mFlinger.mutableDisplays().count(displayToken) == 1; in hasDisplayDevice() 253 sp<DisplayDevice> DisplayTransactionTest::getDisplayDevice(sp<IBinder> displayToken) { in getDisplayDevice() argument 254 return mFlinger.mutableDisplays()[displayToken]; in getDisplayDevice() [all …]
|
D | TestableSurfaceFlinger.h | 237 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/ |
D | StubTransaction.java | 197 public SurfaceControl.Transaction setDisplaySurface(IBinder displayToken, Surface surface) { in setDisplaySurface() argument 202 public SurfaceControl.Transaction setDisplayLayerStack(IBinder displayToken, int layerStack) { in setDisplayLayerStack() argument 207 public SurfaceControl.Transaction setDisplayProjection(IBinder displayToken, in setDisplayProjection() argument 213 public SurfaceControl.Transaction setDisplaySize(IBinder displayToken, int width, int height) { in setDisplaySize() argument
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | LocalDisplayAdapter.java | 89 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 …]
|
D | DisplayDevice.java | 55 public DisplayDevice(DisplayAdapter displayAdapter, IBinder displayToken, String uniqueId) { in DisplayDevice() argument 57 mDisplayToken = displayToken; in DisplayDevice()
|
D | OverlayDisplayAdapter.java | 237 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()
|
D | VirtualDisplayAdapter.java | 91 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()
|
D | WifiDisplayAdapter.java | 383 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/ |
D | ISurfaceComposer.h | 390 virtual status_t setAllowedDisplayConfigs(const sp<IBinder>& displayToken, 398 virtual status_t getAllowedDisplayConfigs(const sp<IBinder>& displayToken, 412 virtual status_t getDisplayBrightnessSupport(const sp<IBinder>& displayToken, 429 virtual status_t setDisplayBrightness(const sp<IBinder>& displayToken,
|
D | SurfaceComposerClient.h | 119 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/ |
D | ISurfaceComposer.cpp | 854 virtual status_t setAllowedDisplayConfigs(const sp<IBinder>& displayToken, in setAllowedDisplayConfigs() argument 862 result = data.writeStrongBinder(displayToken); in setAllowedDisplayConfigs() 880 virtual status_t getAllowedDisplayConfigs(const sp<IBinder>& displayToken, in getAllowedDisplayConfigs() argument 889 result = data.writeStrongBinder(displayToken); in getAllowedDisplayConfigs() 907 virtual status_t getDisplayBrightnessSupport(const sp<IBinder>& displayToken, in getDisplayBrightnessSupport() argument 915 error = data.writeStrongBinder(displayToken); in getDisplayBrightnessSupport() 935 virtual status_t setDisplayBrightness(const sp<IBinder>& displayToken, float brightness) const { in setDisplayBrightness() argument 942 error = data.writeStrongBinder(displayToken); in setDisplayBrightness() 1539 sp<IBinder> displayToken = data.readStrongBinder(); in onTransact() local 1542 status_t result = setAllowedDisplayConfigs(displayToken, allowedConfigs); in onTransact() [all …]
|
D | SurfaceComposerClient.cpp | 1435 const sp<IBinder>& displayToken, const std::vector<int32_t>& allowedConfigs) { in setAllowedDisplayConfigs() argument 1436 return ComposerService::getComposerService()->setAllowedDisplayConfigs(displayToken, in setAllowedDisplayConfigs() 1440 status_t SurfaceComposerClient::getAllowedDisplayConfigs(const sp<IBinder>& displayToken, in getAllowedDisplayConfigs() argument 1442 return ComposerService::getComposerService()->getAllowedDisplayConfigs(displayToken, in getAllowedDisplayConfigs() 1541 bool SurfaceComposerClient::getDisplayBrightnessSupport(const sp<IBinder>& displayToken) { in getDisplayBrightnessSupport() argument 1543 ComposerService::getComposerService()->getDisplayBrightnessSupport(displayToken, &support); in getDisplayBrightnessSupport() 1547 status_t SurfaceComposerClient::setDisplayBrightness(const sp<IBinder>& displayToken, in setDisplayBrightness() argument 1549 return ComposerService::getComposerService()->setDisplayBrightness(displayToken, brightness); in setDisplayBrightness()
|
/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/base/core/jni/ |
D | android_view_SurfaceControl.cpp | 238 sp<IBinder> displayToken = ibinderForJavaObject(env, displayTokenObj); in nativeScreenshot() local 239 if (displayToken == NULL) { in nativeScreenshot() 242 const ui::ColorMode colorMode = SurfaceComposerClient::getActiveColorMode(displayToken); in nativeScreenshot() 248 status_t res = ScreenshotClient::capture(displayToken, dataspace, in nativeScreenshot() 300 sp<IBinder> displayToken = ibinderForJavaObject(env, displayTokenObj); in nativeCaptureLayers() local 301 if (displayToken != nullptr) { in nativeCaptureLayers() 302 const ui::ColorMode colorMode = SurfaceComposerClient::getActiveColorMode(displayToken); in nativeCaptureLayers() 1223 sp<IBinder> displayToken(ibinderForJavaObject(env, displayTokenObject)); in nativeGetDisplayBrightnessSupport() local 1224 if (displayToken == nullptr) { in nativeGetDisplayBrightnessSupport() 1227 return static_cast<jboolean>(SurfaceComposerClient::getDisplayBrightnessSupport(displayToken)); in nativeGetDisplayBrightnessSupport() [all …]
|
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
D | SettingsProtoDumpUtil.java | 521 final long displayToken = p.start(GlobalSettingsProto.DISPLAY); in dumpProtoGlobalSettingsLocked() local 531 p.end(displayToken); in dumpProtoGlobalSettingsLocked()
|
/frameworks/native/services/surfaceflinger/tests/ |
D | Transaction_test.cpp | 206 static void captureScreen(std::unique_ptr<ScreenCapture>* sc, sp<IBinder> displayToken) { in captureScreen() argument 211 ASSERT_EQ(NO_ERROR, sf->captureScreen(displayToken, &outBuffer, Rect(), 0, 0, false)); in captureScreen()
|