/frameworks/native/services/surfaceflinger/tests/unittests/mock/DisplayHardware/ |
D | MockComposer.h | 39 using android::hardware::graphics::composer::V2_1::Display; 48 using Display = android::hardware::graphics::composer::V2_1::Display; 60 MOCK_METHOD4(createVirtualDisplay, Error(uint32_t, uint32_t, PixelFormat*, Display*)); 61 MOCK_METHOD1(destroyVirtualDisplay, Error(Display)); 62 MOCK_METHOD1(acceptDisplayChanges, Error(Display)); 63 MOCK_METHOD2(createLayer, Error(Display, Layer* outLayer)); 64 MOCK_METHOD2(destroyLayer, Error(Display, Layer)); 65 MOCK_METHOD2(getActiveConfig, Error(Display, Config*)); 67 Error(Display, std::vector<Layer>*, std::vector<IComposerClient::Composition>*)); 68 MOCK_METHOD2(getColorModes, Error(Display, std::vector<ColorMode>*)); [all …]
|
D | MockDisplay.cpp | 24 Display::Display() = default; 25 Display::~Display() = default;
|
/frameworks/native/services/surfaceflinger/DisplayHardware/ |
D | ComposerHal.h | 70 using V2_1::Display; 109 Display* outDisplay) = 0; 110 virtual Error destroyVirtualDisplay(Display display) = 0; 112 virtual Error acceptDisplayChanges(Display display) = 0; 114 virtual Error createLayer(Display display, Layer* outLayer) = 0; 115 virtual Error destroyLayer(Display display, Layer layer) = 0; 117 virtual Error getActiveConfig(Display display, Config* outConfig) = 0; 119 Display display, std::vector<Layer>* outLayers, 121 virtual Error getColorModes(Display display, std::vector<ColorMode>* outModes) = 0; 122 virtual Error getDisplayAttribute(Display display, Config config, [all …]
|
D | HWC2.cpp | 70 Display::~Display() = default; 72 Display::Config::Config(Display& display, HWConfigId id) in Config() 81 Display::Config::Builder::Builder(Display& display, HWConfigId id) in Builder() 84 float Display::Config::Builder::getDefaultDensity() { in getDefaultDensity() 101 Display::Display(android::Hwc2::Composer& composer, in Display() function in android::HWC2::impl::Display 108 Display::~Display() { in ~Display() 135 Error Display::acceptChanges() in acceptChanges() 141 Error Display::createLayer(HWC2::Layer** outLayer) { in createLayer() 158 Error Display::destroyLayer(HWC2::Layer* layer) { in destroyLayer() 166 Error Display::getActiveConfig( in getActiveConfig() [all …]
|
D | ComposerHal.cpp | 284 PixelFormat* format, Display* outDisplay) in createVirtualDisplay() 321 Error Composer::destroyVirtualDisplay(Display display) in destroyVirtualDisplay() 327 Error Composer::acceptDisplayChanges(Display display) in acceptDisplayChanges() 334 Error Composer::createLayer(Display display, Layer* outLayer) in createLayer() 350 Error Composer::destroyLayer(Display display, Layer layer) in destroyLayer() 356 Error Composer::getActiveConfig(Display display, Config* outConfig) in getActiveConfig() 372 Error Composer::getChangedCompositionTypes(Display display, in getChangedCompositionTypes() 380 Error Composer::getColorModes(Display display, in getColorModes() 421 Error Composer::getDisplayAttribute(Display display, Config config, in getDisplayAttribute() 451 Error Composer::getDisplayConfigs(Display display, in getDisplayConfigs() [all …]
|
/frameworks/native/services/surfaceflinger/tests/fakehwc/ |
D | FakeComposerClient.h | 52 constexpr Display PRIMARY_DISPLAY = static_cast<Display>(HWC_DISPLAY_PRIMARY); 53 constexpr Display EXTERNAL_DISPLAY = static_cast<Display>(HWC_DISPLAY_EXTERNAL); 70 Display* outDisplay) override; 71 V2_1::Error destroyVirtualDisplay(Display display) override; 72 V2_1::Error createLayer(Display display, Layer* outLayer) override; 73 V2_1::Error destroyLayer(Display display, Layer layer) override; 75 V2_1::Error getActiveConfig(Display display, Config* outConfig) override; 76 V2_1::Error getClientTargetSupport(Display display, uint32_t width, uint32_t height, 79 V2_1::Error getColorModes(Display display, hidl_vec<V1_0::ColorMode>* outModes) override; 80 V2_1::Error getDisplayAttribute(Display display, Config config, [all …]
|
D | FakeComposerClient.cpp | 187 void FakeComposerClient::hotplugDisplay(Display display, IComposerCallback::Connection state) { in hotplugDisplay() 195 void FakeComposerClient::refreshDisplay(Display display) { in refreshDisplay() 210 Display* /*outDisplay*/) { in createVirtualDisplay() argument 215 V2_1::Error FakeComposerClient::destroyVirtualDisplay(Display /*display*/) { in destroyVirtualDisplay() argument 220 V2_1::Error FakeComposerClient::createLayer(Display /*display*/, Layer* outLayer) { in createLayer() argument 228 V2_1::Error FakeComposerClient::destroyLayer(Display /*display*/, Layer layer) { in destroyLayer() argument 234 V2_1::Error FakeComposerClient::getActiveConfig(Display display, Config* outConfig) { in getActiveConfig() 253 V2_1::Error FakeComposerClient::getClientTargetSupport(Display /*display*/, uint32_t /*width*/, in getClientTargetSupport() argument 261 V2_1::Error FakeComposerClient::getColorModes(Display /*display*/, in getColorModes() argument 267 V2_1::Error FakeComposerClient::getDisplayAttribute(Display display, Config config, in getDisplayAttribute() [all …]
|
D | MockComposerHal.h | 35 MOCK_METHOD2(getActiveConfig, V2_1::Error(Display, Config*)); 37 V2_4::Error(Display, Config, V2_4::IComposerClient::Attribute, int32_t*)); 38 MOCK_METHOD2(getDisplayConfigs, V2_1::Error(Display, hidl_vec<Config>*)); 39 MOCK_METHOD2(setActiveConfig, V2_1::Error(Display, Config)); 40 MOCK_METHOD2(getDisplayVsyncPeriod, V2_4::Error(Display, V2_4::VsyncPeriodNanos*)); 42 V2_4::Error(Display, Config,
|
/frameworks/native/services/vr/hardware_composer/impl/ |
D | vr_hwc.h | 42 using android::hardware::graphics::composer::V2_1::Display; 93 Display display_id; 213 Error setLayerInfo(Display display, Layer layer, uint32_t type, 216 Display display, const IVrComposerClient::BufferMetadata& metadata); 218 Display display, Layer layer, 230 Error destroyVirtualDisplay(Display display) override; 232 Error createLayer(Display display, Layer* outLayer) override; 233 Error destroyLayer(Display display, Layer layer) override; 235 Error getActiveConfig(Display display, Config* outConfig) override; 236 Error getDisplayAttribute(Display display, Config config, [all …]
|
D | vr_hwc.cpp | 45 const Display kDefaultDisplayId = 1; 286 Error VrHwc::destroyVirtualDisplay(Display display) { in destroyVirtualDisplay() 298 Error VrHwc::createLayer(Display display, Layer* outLayer) { in createLayer() 309 Error VrHwc::destroyLayer(Display display, Layer layer) { in destroyLayer() 319 Error VrHwc::getActiveConfig(Display display, Config* outConfig) { in getActiveConfig() 327 Error VrHwc::getDisplayAttribute(Display display, Config config, in getDisplayAttribute() 379 Error VrHwc::getDisplayConfigs(Display display, hidl_vec<Config>* outConfigs) { in getDisplayConfigs() 388 Error VrHwc::getDisplayName(Display /* display */, hidl_string* outName) { in getDisplayName() argument 393 Error VrHwc::getDisplayType(Display display, in getDisplayType() 410 Error VrHwc::getDozeSupport(Display display, bool* outSupport) { in getDozeSupport() [all …]
|
/frameworks/native/services/surfaceflinger/CompositionEngine/src/ |
D | Display.cpp | 44 std::shared_ptr<Display> createDisplay( in createDisplay() 47 return createDisplayTemplated<Display>(compositionEngine, args); in createDisplay() 50 Display::~Display() = default; 52 void Display::setConfiguration(const compositionengine::DisplayCreationArgs& args) { in setConfiguration() 69 std::optional<DisplayId> Display::maybeAllocateDisplayIdForVirtualDisplay( in maybeAllocateDisplayIdForVirtualDisplay() 76 bool Display::isValid() const { in isValid() 80 const std::optional<DisplayId>& Display::getId() const { in getId() 84 bool Display::isSecure() const { in isSecure() 88 bool Display::isVirtual() const { in isVirtual() 92 std::optional<DisplayId> Display::getDisplayId() const { in getDisplayId() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/ |
D | AccessibilityWindowManagerTest.java | 47 import android.view.Display; 84 private static final int SECONDARY_DISPLAY_ID = Display.DEFAULT_DISPLAY + 1; 102 private int mTopFocusedDisplayId = Display.INVALID_DISPLAY; 115 Display.DEFAULT_DISPLAY, SECONDARY_DISPLAY_ID)); 146 startTrackingPerDisplay(Display.DEFAULT_DISPLAY); in setUp() 163 assertTrue(mA11yWindowManager.isTrackingWindowsLocked(Display.DEFAULT_DISPLAY)); in startTrackingWindows_shouldEnableWindowManagerCallback() 165 mCallbackOfWindows.get(Display.DEFAULT_DISPLAY); in startTrackingWindows_shouldEnableWindowManagerCallback() 167 eq(Display.DEFAULT_DISPLAY), eq(callbacks)); in startTrackingWindows_shouldEnableWindowManagerCallback() 172 assertTrue(mA11yWindowManager.isTrackingWindowsLocked(Display.DEFAULT_DISPLAY)); in stopTrackingWindows_shouldDisableWindowManagerCallback() 175 mA11yWindowManager.stopTrackingWindows(Display.DEFAULT_DISPLAY); in stopTrackingWindows_shouldDisableWindowManagerCallback() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/ |
D | DozeSuspendScreenStatePreventingAdapterTest.java | 25 import android.view.Display; 55 mWrapper.setDozeScreenState(Display.STATE_ON); in forwards_setDozeScreenState_on() 56 verify(mInner).setDozeScreenState(Display.STATE_ON); in forwards_setDozeScreenState_on() 61 mWrapper.setDozeScreenState(Display.STATE_OFF); in forwards_setDozeScreenState_off() 62 verify(mInner).setDozeScreenState(Display.STATE_OFF); in forwards_setDozeScreenState_off() 67 mWrapper.setDozeScreenState(Display.STATE_DOZE); in forwards_setDozeScreenState_doze() 68 verify(mInner).setDozeScreenState(Display.STATE_DOZE); in forwards_setDozeScreenState_doze() 73 mWrapper.setDozeScreenState(Display.STATE_DOZE_SUSPEND); in forwards_setDozeScreenState_doze_suspend() 74 verify(mInner).setDozeScreenState(Display.STATE_DOZE); in forwards_setDozeScreenState_doze_suspend() 79 mWrapper.setDozeScreenState(Display.STATE_ON_SUSPEND); in forwards_setDozeScreenState_on_suspend() [all …]
|
D | DozeScreenStatePreventingAdapterTest.java | 25 import android.view.Display; 55 mWrapper.setDozeScreenState(Display.STATE_ON); in forwards_setDozeScreenState_on() 56 verify(mInner).setDozeScreenState(Display.STATE_ON); in forwards_setDozeScreenState_on() 61 mWrapper.setDozeScreenState(Display.STATE_OFF); in forwards_setDozeScreenState_off() 62 verify(mInner).setDozeScreenState(Display.STATE_OFF); in forwards_setDozeScreenState_off() 67 mWrapper.setDozeScreenState(Display.STATE_DOZE); in forwards_setDozeScreenState_doze() 68 verify(mInner).setDozeScreenState(Display.STATE_ON); in forwards_setDozeScreenState_doze() 73 mWrapper.setDozeScreenState(Display.STATE_DOZE_SUSPEND); in forwards_setDozeScreenState_doze_suspend() 74 verify(mInner).setDozeScreenState(Display.STATE_ON_SUSPEND); in forwards_setDozeScreenState_doze_suspend()
|
/frameworks/base/core/java/android/hardware/display/ |
D | DisplayManager.java | 35 import android.view.Display; 53 private final SparseArray<Display> mDisplays = new SparseArray<Display>(); 55 private final ArrayList<Display> mTempDisplays = new ArrayList<Display>(); 340 public Display getDisplay(int displayId) { in getDisplay() 351 public Display[] getDisplays() { in getDisplays() 371 public Display[] getDisplays(String category) { in getDisplays() 378 addPresentationDisplaysLocked(mTempDisplays, displayIds, Display.TYPE_WIFI); in getDisplays() 379 addPresentationDisplaysLocked(mTempDisplays, displayIds, Display.TYPE_EXTERNAL); in getDisplays() 380 addPresentationDisplaysLocked(mTempDisplays, displayIds, Display.TYPE_OVERLAY); in getDisplays() 381 addPresentationDisplaysLocked(mTempDisplays, displayIds, Display.TYPE_VIRTUAL); in getDisplays() [all …]
|
/frameworks/base/core/tests/coretests/src/android/hardware/display/ |
D | VirtualDisplayTest.java | 34 import android.view.Display; 118 Display display = virtualDisplay.getDisplay(); in testPrivateVirtualDisplay() 120 assertDisplayRegistered(display, Display.FLAG_PRIVATE); in testPrivateVirtualDisplay() 142 Display display = virtualDisplay.getDisplay(); in testPrivatePresentationVirtualDisplay() 144 assertDisplayRegistered(display, Display.FLAG_PRIVATE | Display.FLAG_PRESENTATION); in testPrivatePresentationVirtualDisplay() 171 Display display = virtualDisplay.getDisplay(); in testPublicPresentationVirtualDisplay() 173 assertDisplayRegistered(display, Display.FLAG_PRESENTATION); in testPublicPresentationVirtualDisplay() 178 Display defaultDisplay = mDisplayManager.getDisplay(Display.DEFAULT_DISPLAY); in testPublicPresentationVirtualDisplay() 225 Display display = virtualDisplay.getDisplay(); in testSecurePublicPresentationVirtualDisplay() 227 assertDisplayRegistered(display, Display.FLAG_PRESENTATION | Display.FLAG_SECURE); in testSecurePublicPresentationVirtualDisplay() [all …]
|
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | BatteryStatsNoteTest.java | 27 import android.view.Display; 62 bi.updateTimeBasesLocked(true, Display.STATE_OFF, 0, 0); in testNoteBluetoothScanResultLocked() 96 bi.updateTimeBasesLocked(true, Display.STATE_OFF, 0, 0); in testNoteStartWakeLocked() 142 bi.updateTimeBasesLocked(true, Display.STATE_ON, 0, 0); in testNoteUidProcessStateLocked() 209 bi.updateTimeBasesLocked(false, Display.STATE_OFF, 0, 0); in testUpdateTimeBasesLocked() 211 bi.updateTimeBasesLocked(false, Display.STATE_DOZE, 10, 10); in testUpdateTimeBasesLocked() 213 bi.updateTimeBasesLocked(false, Display.STATE_ON, 20, 20); in testUpdateTimeBasesLocked() 216 bi.updateTimeBasesLocked(true, Display.STATE_ON, 30, 30); in testUpdateTimeBasesLocked() 219 bi.updateTimeBasesLocked(true, Display.STATE_DOZE, 40, 40); in testUpdateTimeBasesLocked() 221 bi.updateTimeBasesLocked(true, Display.STATE_OFF, 40, 40); in testUpdateTimeBasesLocked() [all …]
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | LocalDisplayAdapter.java | 34 import android.view.Display; 121 activeColorMode = Display.COLOR_MODE_INVALID; in tryConnectDisplayLocked() 126 Display.HdrCapabilities hdrCapabilities = in tryConnectDisplayLocked() 159 case Display.STATE_OFF: in getPowerModeForState() 161 case Display.STATE_DOZE: in getPowerModeForState() 163 case Display.STATE_DOZE_SUSPEND: in getPowerModeForState() 165 case Display.STATE_ON_SUSPEND: in getPowerModeForState() 181 private int mState = Display.STATE_UNKNOWN; 193 private Display.HdrCapabilities mHdrCapabilities; 210 int[] colorModes, int activeColorMode, Display.HdrCapabilities hdrCapabilities, in LocalDisplayDevice() [all …]
|
/frameworks/base/core/java/android/view/ |
D | DisplayInfo.java | 184 public Display.Mode[] supportedModes = Display.Mode.EMPTY_ARRAY; 190 public int[] supportedColorModes = { Display.COLOR_MODE_DEFAULT }; 193 public Display.HdrCapabilities hdrCapabilities; 271 public int removeMode = Display.REMOVE_MODE_MOVE_CONTENT_TO_PRIMARY; 402 supportedModes = new Display.Mode[nModes]; in readFromParcel() 404 supportedModes[i] = Display.Mode.CREATOR.createFromParcel(source); in readFromParcel() 475 public Display.Mode getMode() { in getMode() 479 public Display.Mode getDefaultMode() { in getDefaultMode() 483 private Display.Mode findMode(int id) { in findMode() 497 Display.Mode[] modes = supportedModes; in findDefaultModeByRefreshRate() [all …]
|
/frameworks/base/core/tests/coretests/src/android/content/res/ |
D | ResourcesManagerTest.java | 25 import android.view.Display; 74 null, APP_ONE_RES_DIR, null, null, null, Display.DEFAULT_DISPLAY, null, in testMultipleCallsWithIdenticalParametersCacheReference() 79 null, APP_ONE_RES_DIR, null, null, null, Display.DEFAULT_DISPLAY, null, in testMultipleCallsWithIdenticalParametersCacheReference() 88 null, APP_ONE_RES_DIR, null, null, null, Display.DEFAULT_DISPLAY, null, in testMultipleCallsWithDifferentParametersReturnDifferentReferences() 95 null, APP_ONE_RES_DIR, null, null, null, Display.DEFAULT_DISPLAY, overrideConfig, in testMultipleCallsWithDifferentParametersReturnDifferentReferences() 104 null, APP_ONE_RES_DIR, null, null, null, Display.DEFAULT_DISPLAY, null, in testAddingASplitCreatesANewImpl() 110 Display.DEFAULT_DISPLAY, null, CompatibilityInfo.DEFAULT_COMPATIBILITY_INFO,null, in testAddingASplitCreatesANewImpl() 121 null, APP_ONE_RES_DIR, null, null, null, Display.DEFAULT_DISPLAY, null, in testUpdateConfigurationUpdatesAllAssetManagers() 126 null, APP_TWO_RES_DIR, null, null, null, Display.DEFAULT_DISPLAY, null, in testUpdateConfigurationUpdatesAllAssetManagers() 134 activity, APP_ONE_RES_DIR, null, null, null, Display.DEFAULT_DISPLAY, in testUpdateConfigurationUpdatesAllAssetManagers() [all …]
|
/frameworks/native/services/surfaceflinger/CompositionEngine/mock/ |
D | Display.cpp | 23 Display::Display() = default; 24 Display::~Display() = default;
|
/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | DisplayTransactionTest.cpp | 549 static std::shared_ptr<compositionengine::Display> injectCompositionDisplay( in injectCompositionDisplay() 688 static std::shared_ptr<compositionengine::Display> injectCompositionDisplay( in injectCompositionDisplay() 730 static std::shared_ptr<compositionengine::Display> injectCompositionDisplay( in injectCompositionDisplay() 791 template <typename Display> 804 EXPECT_CALL(*test->mComposer, getColorModes(Display::HWC_DISPLAY_ID, _)) in setupComposerCallExpectations() 808 getRenderIntents(Display::HWC_DISPLAY_ID, ColorMode::DISPLAY_P3, _)) in setupComposerCallExpectations() 813 setColorMode(Display::HWC_DISPLAY_ID, ColorMode::SRGB, in setupComposerCallExpectations() 822 template <typename Display> 832 EXPECT_CALL(*test->mComposer, getColorModes(Display::HWC_DISPLAY_ID, _)) in setupComposerCallExpectations() 850 template <typename Display> [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/ |
D | DozeScreenStatePreventingAdapter.java | 19 import android.view.Display; 37 if (state == Display.STATE_DOZE) { in setDozeScreenState() 38 state = Display.STATE_ON; in setDozeScreenState() 39 } else if (state == Display.STATE_DOZE_SUSPEND) { in setDozeScreenState() 40 state = Display.STATE_ON_SUSPEND; in setDozeScreenState()
|
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/mock/ |
D | Display.h | 30 class Display : public compositionengine::mock::Output, public compositionengine::Display { 32 Display(); 33 virtual ~Display();
|
/frameworks/base/core/tests/coretests/src/com/android/internal/policy/ |
D | DecorContextTest.java | 19 import static android.view.Display.DEFAULT_DISPLAY; 29 import android.view.Display; 66 Display defaultDisplay = new Display(DisplayManagerGlobal.getInstance(), DEFAULT_DISPLAY, in testDecorContextWithDefaultDisplay() 77 Display display = new Display(DisplayManagerGlobal.getInstance(), EXTERNAL_DISPLAY, in testDecorContextWithExternalDisplay() 88 Display associatedDisplay = decorContext.getDisplay(); in assertDecorContextDisplay()
|