Home
last modified time | relevance | path

Searched refs:window (Results 1 – 25 of 61) sorted by relevance

123

/cts/tests/tests/graphics/jni/
Dandroid_graphics_cts_ANativeWindowTest.cpp29 auto window = ANativeWindow_fromSurface(env, jSurface); in pushBufferWithTransform() local
30 ANativeWindow_setBuffersTransform(window, transform); in pushBufferWithTransform()
32 ANativeWindow_lock(window, &mappedBuffer, nullptr); in pushBufferWithTransform()
33 ANativeWindow_unlockAndPost(window); in pushBufferWithTransform()
34 ANativeWindow_release(window); in pushBufferWithTransform()
38 ANativeWindow* window = nullptr; in setBuffersDataSpace() local
40 window = ANativeWindow_fromSurface(env, jSurface); in setBuffersDataSpace()
42 int error = ANativeWindow_setBuffersDataSpace(window, dataSpace); in setBuffersDataSpace()
47 ANativeWindow_lock(window, &mappedBuffer, nullptr); in setBuffersDataSpace()
48 ANativeWindow_unlockAndPost(window); in setBuffersDataSpace()
[all …]
DMediaTestHelpers.h30 ANativeWindow *window);
35 bool createMediaCodec(ANativeWindow *window);
DMediaTestHelpers.cpp51 ANativeWindow *window) { in init() argument
56 ASSERT(createMediaCodec(window)); in init()
104 bool MediaHelper::createMediaCodec(ANativeWindow *window) { in createMediaCodec() argument
126 MEDIA_CALL(AMediaCodec_configure(mCodec, format, window, NULL, 0)); in createMediaCodec()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/
DActivityLaunchUtils.java64 final AccessibilityWindowInfo window = in launchActivityAndWaitForItToBeOnscreen()
66 if (window == null) return false; in launchActivityAndWaitForItToBeOnscreen()
67 window.getBoundsInScreen(bounds); in launchActivityAndWaitForItToBeOnscreen()
91 final AccessibilityWindowInfo window = windows.get(i); in findWindowByTitle() local
92 if (TextUtils.equals(title, window.getTitle())) { in findWindowByTitle()
93 returnValue = window; in findWindowByTitle()
95 window.recycle(); in findWindowByTitle()
DDisplayUtils.java27 Window window = activity.getWindow(); in getStatusBarHeight() local
28 window.getDecorView().getWindowVisibleDisplayFrame(rect); in getStatusBarHeight()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityWindowQueryTest.java177 AccessibilityWindowInfo window = windows.get(i); in testTraverseAllWindows() local
179 window.getBoundsInScreen(boundsInScreen); in testTraverseAllWindows()
181 assertNull(window.getParent()); in testTraverseAllWindows()
182 assertSame(0, window.getChildCount()); in testTraverseAllWindows()
183 assertNull(window.getParent()); in testTraverseAllWindows()
184 assertNotNull(window.getRoot()); in testTraverseAllWindows()
186 if (window.getType() == AccessibilityWindowInfo.TYPE_APPLICATION) { in testTraverseAllWindows()
187 assertTrue(window.isFocused()); in testTraverseAllWindows()
188 assertTrue(window.isActive()); in testTraverseAllWindows()
189 verifyNodesInAppWindow(window.getRoot()); in testTraverseAllWindows()
[all …]
DAccessibilityOverlayTest.java93 AccessibilityWindowInfo window = windows.get(i); in findOverlayWindow() local
94 if (window.getType() == AccessibilityWindowInfo.TYPE_ACCESSIBILITY_OVERLAY) { in findOverlayWindow()
95 return window; in findOverlayWindow()
DAccessibilityWindowReportingTest.java120 final AccessibilityWindowInfo window = findWindowByTitle(sUiAutomation, updatedTitle); in testUpdatedWindowTitle_generatesEventAndIsReturnedByGetTitle() local
121 assertNotNull("Updated window title not reported to accessibility", window); in testUpdatedWindowTitle_generatesEventAndIsReturnedByGetTitle()
122 window.recycle(); in testUpdatedWindowTitle_generatesEventAndIsReturnedByGetTitle()
174 final AccessibilityWindowInfo window = windows.get(i); in putWindowInPictureInPicture_generatesEventAndReportsProperty() local
175 if (window.isInPictureInPictureMode()) { in putWindowInPictureInPicture_generatesEventAndReportsProperty()
288 final AccessibilityWindowInfo window = windows.get(i); in testGetAnchorForDropDownForAutoCompleteTextView_returnsTextViewNode() local
289 if (window.getAnchor() == null) { in testGetAnchorForDropDownForAutoCompleteTextView_returnsTextViewNode()
292 assertEquals(autoCompleteTextInfo, window.getAnchor()); in testGetAnchorForDropDownForAutoCompleteTextView_returnsTextViewNode()
/cts/tests/tests/database/src/android/database/cts/
DCursorWindowTest.java60 CursorWindow window = new CursorWindow(false); in testWriteCursorToWindow() local
61 cursor.fillWindow(0, window); in testWriteCursorToWindow()
67 String s = window.getString(i, j); in testWriteCursorToWindow()
75 window.clear(); in testWriteCursorToWindow()
76 cursor.fillWindow(1, window); in testWriteCursorToWindow()
81 String s = window.getString(i, j); in testWriteCursorToWindow()
89 window.clear(); in testWriteCursorToWindow()
90 assertEquals(0, window.getNumRows()); in testWriteCursorToWindow()
95 CursorWindow window = getOneByOneWindow(); in testNull() local
98 assertTrue(window.putNull(0, 0)); in testNull()
[all …]
/cts/tests/tests/view/src/android/view/cts/
DTextureViewTest.java82 final Window window = windowRet[0]; in testFirstFrames() local
85 waitForColor(window, center, Color.WHITE); in testFirstFrames()
94 assertEquals(Color.WHITE, getPixel(window, center)); in testFirstFrames()
98 int color = waitForChange(window, center, Color.WHITE); in testFirstFrames()
103 color = waitForChange(window, center, color); in testFirstFrames()
289 private int getPixel(Window window, Point point) { in getPixel() argument
290 Bitmap screenshot = Bitmap.createBitmap(window.getDecorView().getWidth(), in getPixel()
291 window.getDecorView().getHeight(), Bitmap.Config.ARGB_8888); in getPixel()
292 int result = new SynchronousPixelCopy().request(window, screenshot); in getPixel()
299 private void waitForColor(Window window, Point point, int color) in waitForColor() argument
[all …]
DPixelCopyTest.java288 Window window = waitForWindowProducerActivity(); in testWindowProducer() local
293 int result = mCopyHelper.request(window, src, bitmap); in testWindowProducer()
304 Window window = waitForWindowProducerActivity(); in testWindowProducerCropTopLeft() local
308 int result = mCopyHelper.request(window, makeWindowRect(0, 0, 50, 50), bitmap); in testWindowProducerCropTopLeft()
317 Window window = waitForWindowProducerActivity(); in testWindowProducerCropCenter() local
321 int result = mCopyHelper.request(window, makeWindowRect(25, 25, 75, 75), bitmap); in testWindowProducerCropCenter()
330 Window window = waitForWindowProducerActivity(); in testWindowProducerCropBottomHalf() local
334 int result = mCopyHelper.request(window, makeWindowRect(0, 50, 100, 100), bitmap); in testWindowProducerCropBottomHalf()
345 Window window = waitForWindowProducerActivity(); in testWindowProducerScaling() local
349 int result = mCopyHelper.request(window, bitmap); in testWindowProducerScaling()
[all …]
DFrameMetricsListenerTest.java76 (Window window, FrameMetrics frameMetrics, int dropCount) -> { in testReceiveData()
77 assertEquals(myWindow, window); in testReceiveData()
111 (Window window, FrameMetrics frameMetrics, int dropCount) -> { in testMultipleListeners()
112 assertEquals(myWindow, window); in testMultipleListeners()
119 (Window window, FrameMetrics frameMetrics, int dropCount) -> { in testMultipleListeners()
120 assertEquals(myWindow, window); in testMultipleListeners()
155 (Window window, FrameMetrics frameMetrics, int dropCount) -> { in testDropCount()
DWindowTest.java386 MockWindow window = new MockWindow(mActivity); in testIsActive() local
387 assertFalse(window.isActive()); in testIsActive()
389 window.makeActive(); in testIsActive()
390 assertTrue(window.isActive()); in testIsActive()
391 assertTrue(window.mIsOnActiveCalled); in testIsActive()
522 MockWindow window = new MockWindow(mActivity); in testSetDefaultWindowFormat() local
526 window.setFormat(PixelFormat.OPAQUE); in testSetDefaultWindowFormat()
527 window.setCallback(mWindowCallback); in testSetDefaultWindowFormat()
529 window.setDefaultWindowFormat(PixelFormat.JPEG); in testSetDefaultWindowFormat()
530 assertEquals(PixelFormat.OPAQUE, window.getAttributes().format); in testSetDefaultWindowFormat()
[all …]
/cts/tests/tests/dpi/src/android/dpi/cts/
DOrientationActivity.java33 Window window = getWindow(); in onCreate() local
34 window.addFlags(WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD); in onCreate()
/cts/tests/tests/colormode/src/android/colormode/cts/
DDefaultColorModeTest.java55 Window window = mActivity.getWindow(); in testDefaultColorMode() local
56 assertEquals(ActivityInfo.COLOR_MODE_DEFAULT, window.getAttributes().getColorMode()); in testDefaultColorMode()
58 assertFalse(window.isWideColorGamut()); in testDefaultColorMode()
DWideColorModeTest.java54 Window window = mActivity.getWindow(); in testDefaultColorMode() local
56 window.getAttributes().getColorMode()); in testDefaultColorMode()
DAttributeWideColorModeTest.java54 Window window = mActivity.getWindow(); in testDefaultColorMode() local
56 window.getAttributes().getColorMode()); in testDefaultColorMode()
/cts/tests/tests/theme/src/android/theme/cts/
DDeviceDefaultActivity.java34 Window window = getWindow(); in onCreate() local
35 window.addFlags(WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD); in onCreate()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DSoundGenerator.java58 private static double[] getPip(double[] window, double frequency) { in getPip() argument
59 int pipArrayLength = window.length; in getPip()
63 pipArray[i] = window[i] * Math.sin(i * radPerSample); in getPip()
/cts/tests/inputmethod/src/android/view/inputmethod/cts/util/
DTestActivity.java149 final Window window = getWindow(); in setSoftInputState() local
150 final int currentSoftInputMode = window.getAttributes().softInputMode; in setSoftInputState()
154 window.setSoftInputMode(newSoftInputMode); in setSoftInputState()
/cts/tests/openglperf2/jni/primitive/pixeloutput/
DPixelOutputRenderer.cpp53 PixelOutputRenderer::PixelOutputRenderer(ANativeWindow* window, bool offscreen) : in PixelOutputRenderer() argument
54 Renderer(window, offscreen), mWorkload(0) { in PixelOutputRenderer()
DPixelOutputRenderer.h21 PixelOutputRenderer(ANativeWindow* window, bool offscreen);
/cts/tests/openglperf2/jni/reference/
DReferenceRenderer.cpp25 ReferenceRenderer::ReferenceRenderer(ANativeWindow* window) : in ReferenceRenderer() argument
26 Renderer(window, false) { in ReferenceRenderer()
/cts/tests/framework/base/activitymanager/util/src/android/server/am/
DWindowManagerState.java447 for (WindowState window : mWindowStates) { in containsWindow()
448 if (window.getName().equals(windowName)) { in containsWindow()
459 for (WindowState window : mWindowStates) { in isWindowVisible()
460 if (window.getName().equals(windowName)) { in isWindowVisible()
461 if (window.isShown()) { in isWindowVisible()
471 for (WindowState window : mWindowStates) { in allWindowsVisible()
472 if (window.getName().equals(windowName)) { in allWindowsVisible()
473 if (!window.isShown()) { in allWindowsVisible()
535 for (WindowState window : mWindowStates) { in findFirstWindowWithType()
536 if (window.getType() == type) { in findFirstWindowWithType()
[all …]
/cts/tests/openglperf2/jni/primitive/shaderperf/
DShaderPerfRenderer.h21 ShaderPerfRenderer(ANativeWindow* window, bool offscreen);

123