Home
last modified time | relevance | path

Searched refs:display (Results 1 – 25 of 383) sorted by relevance

12345678910>>...16

/packages/apps/Launcher3/src/com/android/launcher3/util/
DDisplayController.java34 import android.hardware.display.DisplayManager;
35 import android.hardware.display.DisplayManager.DisplayListener;
87 Display display = mDM.getDisplay(DEFAULT_DISPLAY); in DisplayController() local
89 mWindowContext = mContext.createWindowContext(display, TYPE_APPLICATION, null); in DisplayController()
103 if (ApiWrapper.isInternalDisplay(display) && d.getDisplayId() != DEFAULT_DISPLAY) { in DisplayController()
109 mInfo = new Info(getDisplayInfoContext(display), display, extraInternalDisplays); in DisplayController()
125 Display display = mDM.getDisplay(DEFAULT_DISPLAY); in onDisplayChanged() local
126 if (display == null) { in onDisplayChanged()
131 if (getSingleFrameMs(display) == mInfo.singleFrameMs) { in onDisplayChanged()
135 handleInfoChange(display); in onDisplayChanged()
[all …]
/packages/apps/LegacyCamera/src/com/android/camera/panorama/
DMosaicRendererSurfaceView.java102 public EGLContext createContext(EGL10 egl, EGLDisplay display, EGLConfig eglConfig) { in createContext() argument
107 display, eglConfig, EGL10.EGL_NO_CONTEXT, attribList); in createContext()
112 public void destroyContext(EGL10 egl, EGLDisplay display, EGLContext context) { in destroyContext() argument
113 egl.eglDestroyContext(display, context); in destroyContext()
149 public EGLConfig chooseConfig(EGL10 egl, EGLDisplay display) { in chooseConfig() argument
154 egl.eglChooseConfig(display, CONFIG_ATTRIBUTES, null, 0, numConfig); in chooseConfig()
165 egl.eglChooseConfig(display, CONFIG_ATTRIBUTES, configs, numConfigs, numConfig); in chooseConfig()
168 printConfigs(egl, display, configs); in chooseConfig()
172 return chooseConfig(egl, display, configs); in chooseConfig()
175 public EGLConfig chooseConfig(EGL10 egl, EGLDisplay display, in chooseConfig() argument
[all …]
/packages/services/Car/tests/MultiDisplayTest/src/com/google/android/car/multidisplaytest/present/
DPresentTestFragment.java26 import android.hardware.display.DisplayManager;
144 final Display display = (Display) v.getTag(); in setupListeners()
148 R.string.presentation_alert_info_text, display.getDisplayId())) in setupListeners()
149 .setMessage(display.toString()) in setupListeners()
165 final Display display = (Display) buttonView.getTag(); in setupListeners()
169 showPresentation(display, contents); in setupListeners()
171 hidePresentation(display); in setupListeners()
205 private void showPresentation(Display display, DemoPresentationContents contents) { in showPresentation() argument
206 final int displayId = display.getDisplayId(); in showPresentation()
215 DemoPresentation presentation = new DemoPresentation(getContext(), display, contents); in showPresentation()
[all …]
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/util/
DScreenSizeCalculator.java62 public Point getScreenSize(Display display) { in getScreenSize() argument
65 return getPortraitScreenSize(display); in getScreenSize()
67 return getLandscapeScreenSize(display); in getScreenSize()
71 return getPortraitScreenSize(display); in getScreenSize()
86 private Point getPortraitScreenSize(Display display) { in getPortraitScreenSize() argument
90 writeDisplaySizeToPoint(display, mPortraitScreenSize); in getPortraitScreenSize()
94 private Point getLandscapeScreenSize(Display display) { in getLandscapeScreenSize() argument
98 writeDisplaySizeToPoint(display, mLandscapeScreenSize); in getLandscapeScreenSize()
105 private void writeDisplaySizeToPoint(Display display, Point outPoint) { in writeDisplaySizeToPoint() argument
107 display.getRealSize(outPoint); in writeDisplaySizeToPoint()
[all …]
DDisplayMetricsRetriever.java56 public DisplayMetrics getDisplayMetrics(Resources resources, Display display) { in getDisplayMetrics() argument
59 return getPortraitDisplayMetrics(display); in getDisplayMetrics()
61 return getLandscapeDisplayMetrics(display); in getDisplayMetrics()
64 return getPortraitDisplayMetrics(display); in getDisplayMetrics()
68 private DisplayMetrics getPortraitDisplayMetrics(Display display) { in getPortraitDisplayMetrics() argument
71 writeDisplayMetrics(display, mPortraitDisplayMetrics); in getPortraitDisplayMetrics()
76 private DisplayMetrics getLandscapeDisplayMetrics(Display display) { in getLandscapeDisplayMetrics() argument
79 writeDisplayMetrics(display, mLandscapeDisplayMetrics); in getLandscapeDisplayMetrics()
84 private void writeDisplayMetrics(Display display, DisplayMetrics outMetrics) { in writeDisplayMetrics() argument
85 display.getMetrics(outMetrics); in writeDisplayMetrics()
/packages/apps/Settings/src/com/android/settings/wfd/
DWifiDisplaySettings.java27 import android.hardware.display.DisplayManager;
28 import android.hardware.display.WifiDisplay;
29 import android.hardware.display.WifiDisplayStatus;
284 for (WifiDisplay display : mWifiDisplayStatus.getDisplays()) { in update()
285 if (!display.isRemembered() && display.isAvailable() in update()
286 && !display.equals(mWifiDisplayStatus.getActiveDisplay())) { in update()
288 getPrefContext(), display)); in update()
305 WifiDisplay display = findWifiDisplay(route.getDeviceAddress()); in createRoutePreference() local
306 if (display != null) { in createRoutePreference()
307 return new WifiDisplayRoutePreference(getPrefContext(), route, display); in createRoutePreference()
[all …]
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/sideloaded/
DSideLoadedAppListenerTest.java27 import android.hardware.display.DisplayManager;
28 import android.hardware.display.DisplayManagerGlobal;
119 Display display = createDisplay(displayId); in onTaskCreated_unsafeTask_callsUnsafeTaskCreated() local
123 when(mDisplayManager.getDisplay(displayId)).thenReturn(display); in onTaskCreated_unsafeTask_callsUnsafeTaskCreated()
130 verify(mSideLoadedAppStateController).onUnsafeTaskCreatedOnDisplay(display); in onTaskCreated_unsafeTask_callsUnsafeTaskCreated()
137 Display display = createDisplay(123); in onTaskStackChanged_safeTask_callsSafeTaskDisplayed() local
143 when(mActivityTaskManager.getAllRootTaskInfosOnDisplay(display.getDisplayId())) in onTaskStackChanged_safeTask_callsSafeTaskDisplayed()
146 when(mDisplayManager.getDisplays()).thenReturn(new Display[]{display}); in onTaskStackChanged_safeTask_callsSafeTaskDisplayed()
155 verify(mSideLoadedAppStateController).onSafeTaskDisplayedOnDisplay(display); in onTaskStackChanged_safeTask_callsSafeTaskDisplayed()
161 Display display = createDisplay(123); in onTaskStackChanged_unsafeTask_callsUnsafeTaskDisplayed() local
[all …]
/packages/apps/Settings/src/com/android/settings/
DDisplaySettings.java24 import com.android.settings.display.BrightnessLevelPreferenceController;
25 import com.android.settings.display.CameraGesturePreferenceController;
26 import com.android.settings.display.LiftToWakePreferenceController;
27 import com.android.settings.display.ScreenSaverPreferenceController;
28 import com.android.settings.display.ShowOperatorNamePreferenceController;
29 import com.android.settings.display.TapToWakePreferenceController;
30 import com.android.settings.display.ThemePreferenceController;
31 import com.android.settings.display.VrDisplayPreferenceController;
/packages/apps/Settings/src/com/android/settings/display/
DColorModeUtils.java17 package com.android.settings.display;
19 import static android.hardware.display.ColorDisplayManager.COLOR_MODE_AUTOMATIC;
20 import static android.hardware.display.ColorDisplayManager.COLOR_MODE_BOOSTED;
21 import static android.hardware.display.ColorDisplayManager.COLOR_MODE_NATURAL;
22 import static android.hardware.display.ColorDisplayManager.COLOR_MODE_SATURATED;
23 import static android.hardware.display.ColorDisplayManager.VENDOR_COLOR_MODE_RANGE_MAX;
24 import static android.hardware.display.ColorDisplayManager.VENDOR_COLOR_MODE_RANGE_MIN;
DColorModePreferenceFragment.java14 package com.android.settings.display;
16 import static android.hardware.display.ColorDisplayManager.COLOR_MODE_AUTOMATIC;
17 import static android.hardware.display.ColorDisplayManager.COLOR_MODE_BOOSTED;
18 import static android.hardware.display.ColorDisplayManager.COLOR_MODE_NATURAL;
19 import static android.hardware.display.ColorDisplayManager.COLOR_MODE_SATURATED;
20 import static android.hardware.display.ColorDisplayManager.VENDOR_COLOR_MODE_RANGE_MAX;
21 import static android.hardware.display.ColorDisplayManager.VENDOR_COLOR_MODE_RANGE_MIN;
29 import android.hardware.display.ColorDisplayManager;
DBrightnessLevelPreferenceController.java14 package com.android.settings.display;
18 import static com.android.settingslib.display.BrightnessUtils.GAMMA_SPACE_MAX;
19 import static com.android.settingslib.display.BrightnessUtils.GAMMA_SPACE_MIN;
20 import static com.android.settingslib.display.BrightnessUtils.convertLinearToGammaFloat;
26 import android.hardware.display.BrightnessInfo;
27 import android.hardware.display.DisplayManager;
28 import android.hardware.display.DisplayManager.DisplayListener;
DPeakRefreshRatePreferenceController.java17 package com.android.settings.display;
20 import android.hardware.display.DisplayManager;
70 final Display display = dm.getDisplay(Display.DEFAULT_DISPLAY); in PeakRefreshRatePreferenceController() local
72 if (display == null) { in PeakRefreshRatePreferenceController()
76 mPeakRefreshRate = findPeakRefreshRate(display.getSupportedModes()); in PeakRefreshRatePreferenceController()
/packages/services/Car/cpp/evs/support_library/
DRenderBase.cpp68 EGLDisplay display = eglGetDisplay(EGL_DEFAULT_DISPLAY); in prepareGL() local
69 if (display == EGL_NO_DISPLAY) { in prepareGL()
76 if (!eglInitialize(display, &major, &minor)) { in prepareGL()
87 if (!eglChooseConfig(display, config_attribs, &egl_config, 1, &num_configs)) { in prepareGL()
96 sMockSurface = eglCreatePbufferSurface(display, egl_config, surface_attribs); in prepareGL()
108 EGLContext context = eglCreateContext(display, egl_config, EGL_NO_CONTEXT, context_attribs); in prepareGL()
116 if (!eglMakeCurrent(display, sMockSurface, sMockSurface, context)) { in prepareGL()
139 sDisplay = display; in prepareGL()
/packages/services/Car/cpp/evs/apps/default/
DRenderBase.cpp63 EGLDisplay display = eglGetDisplay(EGL_DEFAULT_DISPLAY); in prepareGL() local
64 if (display == EGL_NO_DISPLAY) { in prepareGL()
71 if (!eglInitialize(display, &major, &minor)) { in prepareGL()
82 if (!eglChooseConfig(display, config_attribs, &egl_config, 1, &num_configs)) { in prepareGL()
91 sMockSurface = eglCreatePbufferSurface(display, egl_config, surface_attribs); in prepareGL()
103 EGLContext context = eglCreateContext(display, egl_config, EGL_NO_CONTEXT, context_attribs); in prepareGL()
111 if (!eglMakeCurrent(display, sMockSurface, sMockSurface, context)) { in prepareGL()
134 sDisplay = display; in prepareGL()
/packages/services/Car/cpp/evs/manager/1.1/test/fuzzer/
DEnumeratorFuzzer.cpp124 sp<IEvsDisplay_1_0> display = sEnumerator->openDisplay(); in LLVMFuzzerTestOneInput() local
125 if (display != nullptr) { in LLVMFuzzerTestOneInput()
126 vDisplays.emplace_back(display); in LLVMFuzzerTestOneInput()
133 sp<IEvsDisplay_1_0> display = vDisplays.back(); in LLVMFuzzerTestOneInput() local
134 sEnumerator->closeDisplay(display); in LLVMFuzzerTestOneInput()
178 sp<IEvsDisplay_1_1> display = sEnumerator->openDisplay_1_1( in LLVMFuzzerTestOneInput() local
180 if (display != nullptr) { in LLVMFuzzerTestOneInput()
181 vDisplays.emplace_back(display); in LLVMFuzzerTestOneInput()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/sideloaded/
DSideLoadedAppStateController.java41 void onUnsafeTaskCreatedOnDisplay(Display display) { in onUnsafeTaskCreatedOnDisplay() argument
42 Log.d(TAG, "Unsafe task created on display " + display.getDisplayId() + "."); in onUnsafeTaskCreatedOnDisplay()
45 void onSafeTaskDisplayedOnDisplay(Display display) { in onSafeTaskDisplayedOnDisplay() argument
46 Log.d(TAG, "Safe task displayed on display " + display.getDisplayId() + "."); in onSafeTaskDisplayedOnDisplay()
49 void onUnsafeTaskDisplayedOnDisplay(Display display) { in onUnsafeTaskDisplayedOnDisplay() argument
50 Log.d(TAG, "Unsafe task displayed on display " + display.getDisplayId() + "."); in onUnsafeTaskDisplayedOnDisplay()
DSideLoadedAppListener.java23 import android.hardware.display.DisplayManager;
66 Display display = mDisplayManager.getDisplay(taskInfo.displayId); in onTaskCreated() local
67 mSideLoadedAppStateController.onUnsafeTaskCreatedOnDisplay(display); in onTaskCreated()
76 for (Display display : displays) { in onTaskStackChanged()
79 mActivityTaskManager.getAllRootTaskInfosOnDisplay(display.getDisplayId()); in onTaskStackChanged()
89 mSideLoadedAppStateController.onSafeTaskDisplayedOnDisplay(display); in onTaskStackChanged()
91 mSideLoadedAppStateController.onUnsafeTaskDisplayedOnDisplay(display); in onTaskStackChanged()
/packages/services/Car/service/src/com/android/car/
DCarOccupantZoneService.java40 import android.hardware.display.DisplayManager;
133 public final Display display; field in CarOccupantZoneService.DisplayInfo
136 DisplayInfo(Display display, int displayType) { in DisplayInfo() argument
137 this.display = display; in DisplayInfo()
146 b.append(display.getDisplayId()); in toString()
468 displayIds[i] = config.displayInfos.get(i).display.getDisplayId(); in getAllDisplaysForOccupantZone()
483 return config.displayInfos.get(i).display.getDisplayId(); in getDisplayForOccupant()
499 return displayInfo.display.getDisplayId(); in getDisplayIdForDriver()
569 Display display = mDisplayManager.getDisplay(displayId); in findDisplayConfigForDisplayIdLocked() local
570 if (display == null) { in findDisplayConfigForDisplayIdLocked()
[all …]
DCarUxRestrictionsManagerService.java45 import android.hardware.display.DisplayManager;
914 for (Display display : mDisplayManager.getDisplays()) { in initPhysicalPort()
915 if (display.getType() == Display.TYPE_VIRTUAL) { in initPhysicalPort()
919 if (display.getDisplayId() == Display.DEFAULT_DISPLAY && display.getAddress() == null) { in initPhysicalPort()
928 } else if (display.getAddress() instanceof DisplayAddress.Physical) { in initPhysicalPort()
929 int port = ((DisplayAddress.Physical) display.getAddress()).getPort(); in initPhysicalPort()
931 Slog.i(TAG, "Display " + display.getDisplayId() + " uses port " + port); in initPhysicalPort()
938 + display); in initPhysicalPort()
1013 Display display = mDisplayManager.getDisplay(displayId); in getPhysicalPortLocked() local
1014 if (display == null) { in getPhysicalPortLocked()
[all …]
/packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/
DTestInCallUI.java267 StringBuilder display = new StringBuilder(); in onCreate() local
268 display.append("priority="); in onCreate()
271 display.append("normal"); in onCreate()
274 display.append("urgent"); in onCreate()
277 display.append("unset"); in onCreate()
279 display.append(";"); in onCreate()
281 display.append("lat=" + location.getLatitude()); in onCreate()
282 display.append("lon=" + location.getLongitude()); in onCreate()
284 display.append("loc=null"); in onCreate()
287 display.append(" subject=" + subject); in onCreate()
[all …]
/packages/apps/Gallery2/jni/
Djni_egl_fence.cpp40 EGLDisplay display = eglGetCurrentDisplay(); in IsEglKHRFenceSyncSupported() local
41 const char* eglExtensions = eglQueryString(display, EGL_EXTENSIONS); in IsEglKHRFenceSyncSupported()
60 EGLDisplay display = eglGetCurrentDisplay(); in Java_com_android_gallery3d_photoeditor_FilterStack_nativeEglSetFenceAndWait() local
65 EGLSyncKHR fence = FuncEglCreateSyncKHR(display, EGL_SYNC_FENCE_KHR, NULL); in Java_com_android_gallery3d_photoeditor_FilterStack_nativeEglSetFenceAndWait()
70 EGLint result = FuncEglClientWaitSyncKHR(display, in Java_com_android_gallery3d_photoeditor_FilterStack_nativeEglSetFenceAndWait()
77 FuncEglDestroySyncKHR(display, fence); in Java_com_android_gallery3d_photoeditor_FilterStack_nativeEglSetFenceAndWait()
/packages/services/Car/car-lib/src/android/car/
DCarOccupantZoneManager.java25 import android.hardware.display.DisplayManager;
309 Display display = mDisplayManager.getDisplay(displayIds[i]); in getAllDisplaysForOccupant() local
310 if (display != null) { // necessary as display list could have changed. in getAllDisplaysForOccupant()
311 displays.add(display); in getAllDisplaysForOccupant()
405 public int getDisplayType(@NonNull Display display) { in getDisplayType() argument
406 assertNonNullDisplay(display); in getDisplayType()
408 return mService.getDisplayType(display.getDisplayId()); in getDisplayType()
459 private void assertNonNullDisplay(Display display) { in assertNonNullDisplay() argument
460 if (display == null) { in assertNonNullDisplay()
/packages/services/Car/cpp/evs/manager/1.1/
DHalDisplay.cpp34 HalDisplay::HalDisplay(sp<IEvsDisplay_1_0> display, int32_t id) : in HalDisplay() argument
35 mHwDisplay(display), in HalDisplay()
117 sp<IEvsDisplay_1_1> display = IEvsDisplay_1_1::castFrom(mHwDisplay) in getDisplayInfo_1_1() local
119 if (display != nullptr) { in getDisplayInfo_1_1()
120 display->getDisplayInfo_1_1(_info_cb); in getDisplayInfo_1_1()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/
DOccupantZoneStartActivity.java65 Display display = getDisplay(); in startActivity() local
67 if (display == null) { in startActivity()
72 OccupantZoneInfo zoneInfo = getOccupantZoneForDisplay(display); in startActivity()
86 private OccupantZoneInfo getOccupantZoneForDisplay(Display display) { in getOccupantZoneForDisplay() argument
93 if (displays.get(displayIndex).getDisplayId() == display.getDisplayId()) { in getOccupantZoneForDisplay()
/packages/apps/Dialer/java/com/android/incallui/answerproximitysensor/
DSystemProximityWakeLock.java20 import android.hardware.display.DisplayManager;
21 import android.hardware.display.DisplayManager.DisplayListener;
86 Display display = in isDefaultDisplayOn() local
88 return display.getState() != Display.STATE_OFF; in isDefaultDisplayOn()

12345678910>>...16