Home
last modified time | relevance | path

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

12

/cts/tests/tests/provider/src/android/provider/cts/
DContacts_PhonesTest.java26 String display = Phones.getDisplayLabel(getContext(), in testGetDisplayLabel() local
28 assertEquals(label, display); in testGetDisplayLabel()
32 display = Phones.getDisplayLabel(getContext(), in testGetDisplayLabel()
34 assertEquals(labels[Phones.TYPE_HOME - 1], display); in testGetDisplayLabel()
36 display = Phones.getDisplayLabel(getContext(), in testGetDisplayLabel()
38 assertEquals(labels[Phones.TYPE_MOBILE - 1], display); in testGetDisplayLabel()
40 display = Phones.getDisplayLabel(getContext(), in testGetDisplayLabel()
42 assertEquals(labels[Phones.TYPE_WORK - 1], display); in testGetDisplayLabel()
44 display = Phones.getDisplayLabel(getContext(), in testGetDisplayLabel()
46 assertEquals(labels[Phones.TYPE_FAX_WORK - 1], display); in testGetDisplayLabel()
[all …]
DContacts_ContactMethodsTest.java56 String display = ContactMethods.getDisplayLabel(getContext(), Contacts.KIND_EMAIL, in test() local
58 assertEquals(label, display); in test()
62 display = ContactMethods.getDisplayLabel(getContext(), Contacts.KIND_EMAIL, in test()
64 assertEquals(labels[ContactMethods.TYPE_HOME - 1], display); in test()
66 display = ContactMethods.getDisplayLabel(getContext(), Contacts.KIND_EMAIL, in test()
68 assertEquals(labels[ContactMethods.TYPE_OTHER - 1], display); in test()
70 display = ContactMethods.getDisplayLabel(getContext(), Contacts.KIND_EMAIL, in test()
72 assertEquals(labels[ContactMethods.TYPE_WORK - 1], display); in test()
75 display = ContactMethods.getDisplayLabel(getContext(), Contacts.KIND_IM, in test()
77 assertEquals(untitled, display); in test()
[all …]
DContacts_OrganizationsTest.java26 String display = Organizations.getDisplayLabel(getContext(), in testGetDisplayLabel() local
28 assertEquals(label, display); in testGetDisplayLabel()
32 display = Organizations.getDisplayLabel(getContext(), in testGetDisplayLabel()
34 assertEquals(labels[Organizations.TYPE_OTHER - 1], display); in testGetDisplayLabel()
36 display = Organizations.getDisplayLabel(getContext(), in testGetDisplayLabel()
38 assertEquals(labels[Organizations.TYPE_WORK - 1], display); in testGetDisplayLabel()
/cts/tests/tests/display/src/android/display/cts/
DDisplayTest.java17 package android.display.cts;
28 import android.hardware.display.DisplayManager;
29 import android.hardware.display.DisplayManager.DisplayListener;
118 private boolean isSecondarySize(Display display) { in isSecondarySize() argument
120 display.getSize(p); in isSecondarySize()
125 for (Display display : displays) { in getSecondaryDisplay()
126 if (isSecondarySize(display)) { in getSecondaryDisplay()
127 return display; in getSecondaryDisplay()
142 for (Display display : displays) { in testGetDisplays()
143 if (display.getDisplayId() == Display.DEFAULT_DISPLAY) { in testGetDisplays()
[all …]
DVirtualDisplayTest.java17 package android.display.cts;
25 import android.hardware.display.DisplayManager;
26 import android.hardware.display.VirtualDisplay;
124 Display display = virtualDisplay.getDisplay(); in testPrivateVirtualDisplay() local
126 assertDisplayRegistered(display, Display.FLAG_PRIVATE); in testPrivateVirtualDisplay()
131 display, BLUEISH, in testPrivateVirtualDisplay()
136 assertDisplayUnregistered(display); in testPrivateVirtualDisplay()
149 Display display = virtualDisplay.getDisplay(); in testPrivatePresentationVirtualDisplay() local
151 assertDisplayRegistered(display, Display.FLAG_PRIVATE | Display.FLAG_PRESENTATION); in testPrivatePresentationVirtualDisplay()
156 display, BLUEISH, in testPrivatePresentationVirtualDisplay()
[all …]
/cts/hostsidetests/sustainedperf/shadertoy_android/src/
DGLtestView.java112 public EGLContext createContext(EGL10 egl, EGLDisplay display, EGLConfig eglConfig) { in createContext() argument
116 … EGLContext context = egl.eglCreateContext(display, eglConfig, EGL10.EGL_NO_CONTEXT, attrib_list); in createContext()
121 public void destroyContext(EGL10 egl, EGLDisplay display, EGLContext context) { in destroyContext() argument
122 egl.eglDestroyContext(display, context); in destroyContext()
158 public EGLConfig chooseConfig(EGL10 egl, EGLDisplay display) { in chooseConfig() argument
163 egl.eglChooseConfig(display, s_configAttribs2, null, 0, num_config); in chooseConfig()
174 egl.eglChooseConfig(display, s_configAttribs2, configs, numConfigs, num_config); in chooseConfig()
177 printConfigs(egl, display, configs); in chooseConfig()
181 return chooseConfig(egl, display, configs); in chooseConfig()
184 public EGLConfig chooseConfig(EGL10 egl, EGLDisplay display, in chooseConfig() argument
[all …]
/cts/tests/vr/src/android/vr/cts/
DOpenGLESActivity.java230 public EGLContext createContext(EGL10 egl, EGLDisplay display, EGLConfig config) { in createContext() argument
236 EGLContext context = egl.eglCreateContext(display, config, EGL10.EGL_NO_CONTEXT, in createContext()
245 public void destroyContext(EGL10 egl, EGLDisplay display, EGLContext context) { in destroyContext() argument
246 if (!egl.eglDestroyContext(display, context)) { in destroyContext()
247 Log.e("DefaultContextFactory", "display:" + display + " context: " + context); in destroyContext()
256 public EGLContext createContext(EGL10 egl, EGLDisplay display, EGLConfig config) { in createContext() argument
262 EGLContext context = egl.eglCreateContext(display, config, EGL10.EGL_NO_CONTEXT, in createContext()
271 public void destroyContext(EGL10 egl, EGLDisplay display, EGLContext context) { in destroyContext() argument
272 if (!egl.eglDestroyContext(display, context)) { in destroyContext()
273 Log.e("DefaultContextFactory", "display:" + display + " context: " + context); in destroyContext()
[all …]
/cts/tests/tests/util/src/android/util/cts/
DDisplayMetricsTest.java29 Display display = windowManager.getDefaultDisplay(); in initDisplay() local
30 assertNotNull(display); in initDisplay()
31 return display; in initDisplay()
45 Display display = initDisplay(); in testDisplayMetricsOp() local
46 display.getMetrics(outMetrics); in testDisplayMetricsOp()
49 assertEquals(display.getHeight(), metrics.heightPixels); in testDisplayMetricsOp()
50 assertEquals(display.getWidth(), metrics.widthPixels); in testDisplayMetricsOp()
/cts/tests/tests/graphics/src/android/opengl/cts/
DEglConfigTest.java73 EGLDisplay display = egl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); in getEglConfigIds() local
88 if (egl.eglInitialize(display, null)) { in getEglConfigIds()
90 if (egl.eglChooseConfig(display, attributeList, null, 0, numConfigs)) { in getEglConfigIds()
92 if (egl.eglChooseConfig(display, attributeList, configs, configs.length, in getEglConfigIds()
97 if (egl.eglGetConfigAttrib(display, configs[i], EGL10.EGL_CONFIG_ID, in getEglConfigIds()
112 egl.eglTerminate(display); in getEglConfigIds()
DOpenGlEsVersionTest.java170 EGLDisplay display = egl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); in testRequiredExtensionsForVrHighPerformance() local
171 extensions = egl.eglQueryString(display, EGL10.EGL_EXTENSIONS); in testRequiredExtensionsForVrHighPerformance()
201 EGLDisplay display = egl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); in getDetectedMajorVersion() local
204 if (egl.eglInitialize(display, null)) { in getDetectedMajorVersion()
206 boolean checkES3 = hasExtension(egl.eglQueryString(display, EGL10.EGL_EXTENSIONS), in getDetectedMajorVersion()
208 if (egl.eglGetConfigs(display, null, 0, numConfigs)) { in getDetectedMajorVersion()
210 if (egl.eglGetConfigs(display, configs, numConfigs[0], numConfigs)) { in getDetectedMajorVersion()
214 if (egl.eglGetConfigAttrib(display, configs[i], in getDetectedMajorVersion()
243 egl.eglTerminate(display); in getDetectedMajorVersion()
DEglConfigGLSurfaceView.java59 public EGLConfig chooseConfig(EGL10 egl, EGLDisplay display) { in chooseConfig() argument
66 if (egl.eglChooseConfig(display, attributeList, configs, 1, new int[] {1})) { in chooseConfig()
68 printConfig(egl, display, configs[0]); in chooseConfig()
243 private static void printConfig(EGL10 egl, EGLDisplay display, in printConfig() argument
319 if (egl.eglGetConfigAttrib(display, config, attribute, value)) { in printConfig()
/cts/tests/tests/openglperf/src/android/openglperf/cts/
DGLSurfaceViewCustom.java770 EGLContext createContext(EGL10 egl, EGLDisplay display, EGLConfig eglConfig); in createContext() argument
771 void destroyContext(EGL10 egl, EGLDisplay display, EGLContext context); in destroyContext() argument
777 public EGLContext createContext(EGL10 egl, EGLDisplay display, EGLConfig config) { in createContext() argument
781 return egl.eglCreateContext(display, config, EGL10.EGL_NO_CONTEXT, in createContext()
785 public void destroyContext(EGL10 egl, EGLDisplay display, in destroyContext() argument
787 if (!egl.eglDestroyContext(display, context)) { in destroyContext()
788 Log.e("DefaultContextFactory", "display:" + display + " context: " + context); in destroyContext()
807 EGLSurface createWindowSurface(EGL10 egl, EGLDisplay display, EGLConfig config, in createWindowSurface() argument
809 void destroySurface(EGL10 egl, EGLDisplay display, EGLSurface surface); in destroySurface() argument
814 public EGLSurface createWindowSurface(EGL10 egl, EGLDisplay display, in createWindowSurface() argument
[all …]
/cts/tests/tests/permission/src/android/permission/cts/
DNoCaptureVideoPermissionTest.java21 import android.hardware.display.DisplayManager;
22 import android.hardware.display.VirtualDisplay;
94 VirtualDisplay display = displayManager.createVirtualDisplay( in testCreatePrivateVirtualDisplay() local
97 display.release(); in testCreatePrivateVirtualDisplay()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/projection/offscreen/
DOffscreenPresentation.java31 public OffscreenPresentation(Context outerContext, Display display) { in OffscreenPresentation() argument
32 super(outerContext, display); in OffscreenPresentation()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/projection/touch/
DTouchPresentation.java35 public TouchPresentation(Context outerContext, Display display) { in TouchPresentation() argument
36 super(outerContext, display); in TouchPresentation()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/projection/widgets/
DWidgetPresentation.java36 public WidgetPresentation(Context outerContext, Display display) { in WidgetPresentation() argument
37 super(outerContext, display); in WidgetPresentation()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/projection/
DProjectedPresentation.java30 public ProjectedPresentation(Context outerContext, Display display) { in ProjectedPresentation() argument
32 super(outerContext, display, android.R.style.Theme_Holo_Light_NoActionBar_TranslucentDecor); in ProjectedPresentation()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/projection/cube/
DCubePresentation.java37 public CubePresentation(Context context, Display display) { in CubePresentation() argument
38 super(context, display); in CubePresentation()
/cts/hostsidetests/services/activitymanager/app/src/android/server/app/
DResizeableActivity.java47 final Display display = wm.getDefaultDisplay(); in dumpDisplaySize() local
49 display.getSize(point); in dumpDisplaySize()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/projection/list/
DListPresentation.java42 public ListPresentation(Context outerContext, Display display) { in ListPresentation() argument
43 super(outerContext, display); in ListPresentation()
/cts/tests/tests/media/src/android/media/cts/
DRemoteVirtualDisplayService.java24 import android.hardware.display.DisplayManager;
25 import android.hardware.display.VirtualDisplay;
172 public TestPresentation(Context outerContext, Display display) { in TestPresentation() argument
174 super(outerContext, display, in TestPresentation()
/cts/tests/tests/dpi/src/android/dpi/cts/
DAspectRatioTest.java65 Display display = windowManager.getDefaultDisplay(); in getRealAspectRatio() local
67 display.getRealMetrics(metrics); in getRealAspectRatio()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/projection/video/
DVideoPresentation.java40 public VideoPresentation(Context outerContext, Display display) { in VideoPresentation() argument
41 super(outerContext, display); in VideoPresentation()
/cts/hostsidetests/services/activitymanager/src/android/server/cts/
DWindowManagerState.java125 final Display display = in parseSysDump() local
127 if (display != null) { in parseSysDump()
128 log(display.toString()); in parseSysDump()
129 mDisplays.add(display); in parseSysDump()
216 for (Display display : mDisplays) { in getDisplay()
217 if (displayId == display.getDisplayId()) { in getDisplay()
218 return display; in getDisplay()
541 final Display display = new Display(displayId); in create() local
542 display.extract(dump, exitPatterns); in create()
543 return display; in create()
/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/
DScreenDeviceInfo.java36 Display display = windowManager.getDefaultDisplay(); in collectDeviceInfo() local
37 display.getRealMetrics(metrics); in collectDeviceInfo()

12