Home
last modified time | relevance | path

Searched refs:mDisplay (Results 1 – 25 of 34) sorted by relevance

12

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/systeminterface/
DDisplayInterfaceTest.java125 private Display mDisplay; field in DisplayInterfaceTest
161 addDisplay(mDisplay, MAIN_DISPLAY_ID, DisplayHelper.TYPE_INTERNAL); in setUp()
171 mDisplay, mDistantDisplay, mVirtualDisplay, mOverlayDisplay}); in testStartDisplayStateMonitoring_visibleBgUsersSupported()
172 when(mDisplay.getState()).thenReturn(Display.STATE_ON); in testStartDisplayStateMonitoring_visibleBgUsersSupported()
198 when(mDisplayManager.getDisplays()).thenReturn(new Display[]{mDisplay, mDistantDisplay}); in testStartDisplayStateMonitoring_visibleBgUsersNotSupported()
199 when(mDisplay.getState()).thenReturn(Display.STATE_ON); in testStartDisplayStateMonitoring_visibleBgUsersNotSupported()
214 when(mDisplayManager.getDisplays()).thenReturn(new Display[]{mDisplay, mDistantDisplay}); in testStartDisplayStateMonitoring_multiDisplayControlSupported()
215 when(mDisplay.getState()).thenReturn(Display.STATE_ON); in testStartDisplayStateMonitoring_multiDisplayControlSupported()
233 when(mDisplayManager.getDisplays()).thenReturn(new Display[]{mDisplay}); in testStopDisplayStateMonitoring_visibleBgUsersSupported()
247 when(mDisplayManager.getDisplays()).thenReturn(new Display[]{mDisplay}); in testStopDisplayStateMonitoring_visibleBgUsersNoSupported()
[all …]
/packages/services/Car/cpp/evs/v4l2_hal/aidl/src/
DGlWrapper.cpp229 mDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY); in initialize()
230 if (mDisplay == EGL_NO_DISPLAY) { in initialize()
237 if (!eglInitialize(mDisplay, &major, &minor)) { in initialize()
256 eglChooseConfig(mDisplay, config_attribs, &egl_config, 1, &numConfigs); in initialize()
263 mSurface = eglCreateWindowSurface(mDisplay, egl_config, mWindow, nullptr); in initialize()
273 mContext = eglCreateContext(mDisplay, egl_config, EGL_NO_CONTEXT, context_attribs); in initialize()
280 if (!eglMakeCurrent(mDisplay, mSurface, mSurface, mContext)) { in initialize()
311 eglDestroyImageKHR(mDisplay, mKHRimage); in shutdown()
317 eglMakeCurrent(mDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT); in shutdown()
319 eglDestroySurface(mDisplay, mSurface); in shutdown()
[all …]
/packages/services/Car/cpp/evs/v4l2_hal/hidl/
DGlWrapper.cpp218 mDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY); in initialize()
219 if (mDisplay == EGL_NO_DISPLAY) { in initialize()
226 if (!eglInitialize(mDisplay, &major, &minor)) { in initialize()
238 eglChooseConfig(mDisplay, config_attribs, &egl_config, 1, &numConfigs); in initialize()
245 mSurface = eglCreateWindowSurface(mDisplay, egl_config, mWindow, nullptr); in initialize()
255 mContext = eglCreateContext(mDisplay, egl_config, EGL_NO_CONTEXT, context_attribs); in initialize()
262 if (!eglMakeCurrent(mDisplay, mSurface, mSurface, mContext)) { in initialize()
293 eglDestroyImageKHR(mDisplay, mKHRimage); in shutdown()
298 eglMakeCurrent(mDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT); in shutdown()
299 eglDestroySurface(mDisplay, mSurface); in shutdown()
[all …]
/packages/services/Car/cpp/evs/support_library/
DResourceManager.cpp120 if (mDisplay.get() == nullptr) { in openDisplay()
121 mDisplay = getEvsEnumerator()->openDisplay(); in openDisplay()
122 if (mDisplay.get() != nullptr) { in openDisplay()
129 return mDisplay; in openDisplay()
142 if (mDisplay.get() == pDisplay.get()) { in closeDisplay()
143 getEvsEnumerator()->closeDisplay(mDisplay); in closeDisplay()
144 mDisplay = nullptr; in closeDisplay()
155 return mDisplay.get() != nullptr; in isDisplayOpened()
DDisplayUseCase.cpp78 mDisplay = mResourceManager->openDisplay(); in initialize()
79 if (mDisplay.get() == nullptr) { in initialize()
143 Return<EvsResult> result = mDisplay->setDisplayState(DisplayState::VISIBLE_ON_NEXT_FRAME); in startVideoStream()
184 mResourceManager->closeDisplay(mDisplay); in stopVideoStream()
185 mDisplay = nullptr; in stopVideoStream()
203 mDisplay->getTargetBuffer([&tgtBuffer](const BufferDesc& buff) { tgtBuffer = buff; }); in streamFrame()
243 mDisplay->returnTargetBufferForDisplay(tgtBuffer); in streamFrame()
DVideoTex.cpp44 VideoTex::VideoTex(EGLDisplay glDisplay) : TexWrapper(), mDisplay(glDisplay) { in VideoTex()
51 eglDestroyImageKHR(mDisplay, mKHRimage); in ~VideoTex()
65 eglDestroyImageKHR(mDisplay, mKHRimage); in refresh()
85 mKHRimage = eglCreateImageKHR(mDisplay, EGL_NO_CONTEXT, EGL_NATIVE_BUFFER_ANDROID, clientBuf, in refresh()
DVideoTex.h48 EGLDisplay mDisplay;
/packages/apps/TvSettings/unbundle/java/com/android/tv/settings/unbundle/sdklib/
DDisplayCompat.java20 private final Display mDisplay; field in DisplayCompat
23 this.mDisplay = display; in DisplayCompat()
27 return mDisplay.getReportedHdrTypes(); in getReportedHdrTypes()
31 return mDisplay.getColorMode(); in getColorMode()
35 mDisplay.requestColorMode(colorMode); in requestColorMode()
/packages/apps/Launcher3/src/com/android/launcher3/
DBubbleTextView.java211 protected int mDisplay; field in BubbleTextView
303 mDisplay = a.getInteger(R.styleable.BubbleTextView_iconDisplay, DISPLAY_WORKSPACE); in BubbleTextView()
305 if (mDisplay == DISPLAY_WORKSPACE) { in BubbleTextView()
310 } else if (mDisplay == DISPLAY_ALL_APPS || mDisplay == DISPLAY_PREDICTION_ROW in BubbleTextView()
311 || mDisplay == DISPLAY_SEARCH_RESULT_APP_ROW) { in BubbleTextView()
315 } else if (mDisplay == DISPLAY_FOLDER) { in BubbleTextView()
319 } else if (mDisplay == DISPLAY_SEARCH_RESULT) { in BubbleTextView()
322 } else if (mDisplay == DISPLAY_SEARCH_RESULT_SMALL) { in BubbleTextView()
325 } else if (mDisplay == DISPLAY_TASKBAR) { in BubbleTextView()
598 if (mHideBadge || mDisplay == DISPLAY_SEARCH_RESULT_SMALL) { in setNonPendingIcon()
[all …]
/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/
DCellBroadcastChannelManagerTest.java132 assertFalse(list.get(0).mDisplay); in verifyChannelRangesForConfig1()
143 assertTrue(list.get(1).mDisplay); in verifyChannelRangesForConfig1()
155 assertTrue(list.get(2).mDisplay); in verifyChannelRangesForConfig1()
167 assertTrue(list.get(3).mDisplay); in verifyChannelRangesForConfig1()
178 assertTrue(list.get(4).mDisplay); in verifyChannelRangesForConfig1()
189 assertTrue(list.get(5).mDisplay); in verifyChannelRangesForConfig1()
232 assertTrue(list.get(0).mDisplay); in verifyChannelRangesForConfig2()
243 assertTrue(list.get(1).mDisplay); in verifyChannelRangesForConfig2()
255 assertTrue(list.get(2).mDisplay); in verifyChannelRangesForConfig2()
/packages/apps/Settings/src/com/android/settings/development/
DColorModePreference.java37 private Display mDisplay; field in ColorModePreference
99 mDisplay = mDisplayManager.getDisplay(Display.DEFAULT_DISPLAY); in updateCurrentAndSupported()
103 int currentColorMode = mDisplay.getColorMode(); in updateCurrentAndSupported()
120 mDisplay.requestColorMode(desc.colorMode); in persistBoolean()
/packages/apps/Settings/src/com/android/settings/display/
DScreenResolutionController.java42 private Display mDisplay; field in ScreenResolutionController
52 mDisplay = in ScreenResolutionController()
136 return mDisplay.getMode().getPhysicalWidth(); in getDisplayWidth()
141 return mDisplay.getSupportedModes(); in getSupportedModes()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/development/
DColorModePreference.java35 private Display mDisplay; field in ColorModePreference
77 mDisplay = mDisplayManager.getDisplay(Display.DEFAULT_DISPLAY); in updateCurrentAndSupported()
96 int currentColorMode = mDisplay.getColorMode(); in updateCurrentAndSupported()
113 mDisplay.requestColorMode(desc.colorMode); in persistBoolean()
/packages/apps/Settings/tests/robotests/src/com/android/settings/display/
DBrightnessLevelPreferenceControllerTest.java67 private Display mDisplay; field in BrightnessLevelPreferenceControllerTest
91 doReturn(mDisplay).when(mContext).getDisplay(); in setUp()
133 when(mDisplay.getBrightnessInfo()).thenReturn( in onStart_shouldSetSummary()
146 when(mDisplay.getBrightnessInfo()).thenReturn( in updateState_autoBrightness_shouldSetSummaryToAutoBrightness()
160 when(mDisplay.getBrightnessInfo()).thenReturn( in updateState_manualBrightness_shouldSetSummaryToScreenBrightness()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/vendor/
DDisplayPreviewFragment.java52 private Display mDisplay = null; field in DisplayPreviewFragment
73 mDisplay = mDisplayManager.getDisplay(Display.DEFAULT_DISPLAY); in onCreatePreferences()
74 if (mDisplay.getSystemPreferredDisplayMode() != null) { in onCreatePreferences()
127 if (mDisplay.getSystemPreferredDisplayMode() != null) { in onStart()
144 if (mDisplay.getSystemPreferredDisplayMode() != null) { in onStop()
/packages/services/Car/cpp/evs/apps/default/src/
DVideoTex.cpp52 mDisplay(glDisplay) { in VideoTex()
65 eglDestroyImageKHR(mDisplay, mKHRimage); in ~VideoTex()
81 eglDestroyImageKHR(mDisplay, mKHRimage); in refresh()
125 mKHRimage = eglCreateImageKHR(mDisplay, EGL_NO_CONTEXT, EGL_NATIVE_BUFFER_ANDROID, clientBuf, in refresh()
DEvsStateControl.cpp73 mDisplay(pDisplay), in EvsStateControl()
193 displayHandle = mDisplay.lock(); in updateLoop()
384 std::shared_ptr<IEvsDisplay> displayHandle = mDisplay.lock(); in configureEvsPipeline()
/packages/apps/TvSettings/Settings/tests/robotests/src/com/android/tv/settings/device/displaysound/
DPreferredDynamicRangeFragmentTest.java56 private Display mDisplay; field in PreferredDynamicRangeFragmentTest
138 doReturn(mDisplay).when(mDisplayManager).getDisplay(Display.DEFAULT_DISPLAY); in createPreferredDynamicRangeFragmentWith()
139 doReturn(new Display.Mode[]{TEST_MODE}).when(mDisplay).getSupportedModes(); in createPreferredDynamicRangeFragmentWith()
155 doReturn(mDisplay).when(mDisplayManager).getDisplay(Display.DEFAULT_DISPLAY); in createPreferredDynamicRangeForceFragmentWith()
156 doReturn(new Display.Mode[]{TEST_MODE}).when(mDisplay).getSupportedModes(); in createPreferredDynamicRangeForceFragmentWith()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DEyePosition.java55 private Display mDisplay; field in EyePosition
78 mDisplay = wManager.getDefaultDisplay(); in EyePosition()
117 switch (mDisplay.getRotation()) { in onAccelerometerChanged()
166 switch (mDisplay.getRotation()) { in onGyroscopeChanged()
/packages/services/Car/service/jni/evs/
DEvsServiceContext.cpp223 mDisplay = nullptr; in initialize()
386 &mDisplay); in acquireCameraAndDisplayLocked()
387 if (!status.isOk() || !mDisplay) { in acquireCameraAndDisplayLocked()
394 mDisplay = ndk::SharedRefBase::make<NoOpEvsDisplay>(); in acquireCameraAndDisplayLocked()
399 status = mCamera->forcePrimaryClient(mDisplay); in acquireCameraAndDisplayLocked()
424 if (!mDisplay) { in doneWithFrame()
/packages/modules/HealthFitness/tests/cts/phr/src/android/healthconnect/cts/phr/utils/
DObservationBuilder.java63 private final String mDisplay; field in ObservationBuilder.ObservationCategory
67 mDisplay = display; in ObservationCategory()
75 return mDisplay; in getDisplay()
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/qc/
DQCLogoutButtonControllerTest.java88 private Display mDisplay; field in QCLogoutButtonControllerTest
220 when(mDisplay.getDisplayId()).thenReturn(displayId); in setOccupantZoneForDisplay()
221 List<Display> displays = new ArrayList<Display>(Arrays.asList(mDisplay)); in setOccupantZoneForDisplay()
/packages/apps/Settings/src/com/android/settings/wfd/
DWifiDisplaySettings.java714 private final WifiDisplay mDisplay; field in WifiDisplaySettings.WifiDisplayRoutePreference
724 mDisplay = display; in WifiDisplayRoutePreference()
746 showWifiDisplayOptionsDialog(mDisplay); in onClick()
752 private final WifiDisplay mDisplay; field in WifiDisplaySettings.UnpairedWifiDisplayPreference
757 mDisplay = display; in UnpairedWifiDisplayPreference()
772 pairWifiDisplay(mDisplay); in onPreferenceClick()
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastChannelManager.java165 public boolean mDisplay; field in CellBroadcastChannelManager.CellBroadcastChannelRange
203 mDisplay = true; in CellBroadcastChannelRange()
273 mDisplay = false; in CellBroadcastChannelRange()
356 + ",display=" + mDisplay + ",testMode=" + mTestMode + ",mAlwaysOn=" in toString()
/packages/apps/Launcher3/src/com/android/launcher3/graphics/
DPreviewSurfaceRenderer.java119 private final Display mDisplay; field in PreviewSurfaceRenderer
146 mDisplay = context.getSystemService(DisplayManager.class) in PreviewSurfaceRenderer()
149 if (mDisplay == null) { in PreviewSurfaceRenderer()
291 Context context = mContext.createDisplayContext(mDisplay); in getPreviewContext()

12