/cts/tests/tests/provider/src/android/provider/cts/ |
D | Contacts_PhonesTest.java | 26 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 …]
|
D | Contacts_ContactMethodsTest.java | 56 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 …]
|
D | Contacts_OrganizationsTest.java | 26 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/ |
D | DisplayTest.java | 17 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 …]
|
D | VirtualDisplayTest.java | 17 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/ |
D | GLtestView.java | 112 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/ |
D | OpenGLESActivity.java | 230 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/ |
D | DisplayMetricsTest.java | 29 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/ |
D | EglConfigTest.java | 73 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()
|
D | OpenGlEsVersionTest.java | 170 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()
|
D | EglConfigGLSurfaceView.java | 59 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/ |
D | GLSurfaceViewCustom.java | 770 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/ |
D | NoCaptureVideoPermissionTest.java | 21 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/ |
D | OffscreenPresentation.java | 31 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/ |
D | TouchPresentation.java | 35 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/ |
D | WidgetPresentation.java | 36 public WidgetPresentation(Context outerContext, Display display) { in WidgetPresentation() argument 37 super(outerContext, display); in WidgetPresentation()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/projection/ |
D | ProjectedPresentation.java | 30 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/ |
D | CubePresentation.java | 37 public CubePresentation(Context context, Display display) { in CubePresentation() argument 38 super(context, display); in CubePresentation()
|
/cts/hostsidetests/services/activitymanager/app/src/android/server/app/ |
D | ResizeableActivity.java | 47 final Display display = wm.getDefaultDisplay(); in dumpDisplaySize() local 49 display.getSize(point); in dumpDisplaySize()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/projection/list/ |
D | ListPresentation.java | 42 public ListPresentation(Context outerContext, Display display) { in ListPresentation() argument 43 super(outerContext, display); in ListPresentation()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | RemoteVirtualDisplayService.java | 24 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/ |
D | AspectRatioTest.java | 65 Display display = windowManager.getDefaultDisplay(); in getRealAspectRatio() local 67 display.getRealMetrics(metrics); in getRealAspectRatio()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/projection/video/ |
D | VideoPresentation.java | 40 public VideoPresentation(Context outerContext, Display display) { in VideoPresentation() argument 41 super(outerContext, display); in VideoPresentation()
|
/cts/hostsidetests/services/activitymanager/src/android/server/cts/ |
D | WindowManagerState.java | 125 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/ |
D | ScreenDeviceInfo.java | 36 Display display = windowManager.getDefaultDisplay(); in collectDeviceInfo() local 37 display.getRealMetrics(metrics); in collectDeviceInfo()
|