/cts/tests/tests/graphics/jni/ |
D | android_graphics_cts_ANativeWindowTest.cpp | 29 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 …]
|
D | MediaTestHelpers.cpp | 51 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()
|
D | MediaTestHelpers.h | 30 ANativeWindow *window); 35 bool createMediaCodec(ANativeWindow *window);
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/ |
D | AccessibilityWindowQueryTest.java | 220 AccessibilityWindowInfo window = windows.get(i); in testTraverseAllWindows() local 222 window.getBoundsInScreen(boundsInScreen); in testTraverseAllWindows() 224 assertNull(window.getParent()); in testTraverseAllWindows() 225 assertSame(0, window.getChildCount()); in testTraverseAllWindows() 226 assertNull(window.getParent()); in testTraverseAllWindows() 227 assertNotNull(window.getRoot()); in testTraverseAllWindows() 229 if (window.getType() == AccessibilityWindowInfo.TYPE_APPLICATION) { in testTraverseAllWindows() 230 assertTrue(window.isFocused()); in testTraverseAllWindows() 231 assertTrue(window.isActive()); in testTraverseAllWindows() 232 verifyNodesInAppWindow(window.getRoot()); in testTraverseAllWindows() [all …]
|
D | AccessibilityWindowReportingTest.java | 122 final AccessibilityWindowInfo window = findWindowByTitle(sUiAutomation, updatedTitle); in testUpdatedWindowTitle_generatesEventAndIsReturnedByGetTitle() local 123 assertNotNull("Updated window title not reported to accessibility", window); in testUpdatedWindowTitle_generatesEventAndIsReturnedByGetTitle() 124 window.recycle(); in testUpdatedWindowTitle_generatesEventAndIsReturnedByGetTitle() 176 final AccessibilityWindowInfo window = windows.get(i); in putWindowInPictureInPicture_generatesEventAndReportsProperty() local 177 if (window.isInPictureInPictureMode()) { in putWindowInPictureInPicture_generatesEventAndReportsProperty() 290 final AccessibilityWindowInfo window = windows.get(i); in testGetAnchorForDropDownForAutoCompleteTextView_returnsTextViewNode() local 291 if (window.getAnchor() == null) { in testGetAnchorForDropDownForAutoCompleteTextView_returnsTextViewNode() 294 assertEquals(autoCompleteTextInfo, window.getAnchor()); in testGetAnchorForDropDownForAutoCompleteTextView_returnsTextViewNode()
|
D | AccessibilityOverlayTest.java | 95 AccessibilityWindowInfo window = windows.get(i); in findOverlayWindow() local 96 if (window.getType() == AccessibilityWindowInfo.TYPE_ACCESSIBILITY_OVERLAY) { in findOverlayWindow() 97 return window; in findOverlayWindow()
|
/cts/tests/tests/database/src/android/database/cts/ |
D | CursorWindowTest.java | 62 CursorWindow window = new CursorWindow(false); in testWriteCursorToWindow() local 63 cursor.fillWindow(0, window); in testWriteCursorToWindow() 69 String s = window.getString(i, j); in testWriteCursorToWindow() 77 window.clear(); in testWriteCursorToWindow() 78 cursor.fillWindow(1, window); in testWriteCursorToWindow() 83 String s = window.getString(i, j); in testWriteCursorToWindow() 91 window.clear(); in testWriteCursorToWindow() 92 assertEquals(0, window.getNumRows()); in testWriteCursorToWindow() 97 CursorWindow window = getOneByOneWindow(); in testNull() local 100 assertTrue(window.putNull(0, 0)); in testNull() [all …]
|
D | AbstractCursorTest.java | 320 CursorWindow window = new CursorWindow(false); in testGetWindow() local 321 assertEquals(0, window.getNumRows()); in testGetWindow() 323 mDatabaseCursor.fillWindow(0, window); in testGetWindow() 326 assertEquals(mDatabaseCursor.getCount(), window.getNumRows()); in testGetWindow() 330 window.getInt(mDatabaseCursor.getPosition(), POSITION1)); in testGetWindow() 332 window.clear(); in testGetWindow() 407 CursorWindow window = new CursorWindow(false); in testCopyStringToBuffer() local 408 mTestAbstractCursor.fillWindow(0, window); in testCopyStringToBuffer() 411 sb.append(window.getString(0, 0)); in testCopyStringToBuffer()
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/ |
D | ActivityLaunchUtils.java | 86 final AccessibilityWindowInfo window = in launchActivityAndWaitForItToBeOnscreen() 88 if (window == null) return false; in launchActivityAndWaitForItToBeOnscreen() 89 window.getBoundsInScreen(bounds); in launchActivityAndWaitForItToBeOnscreen() 113 final AccessibilityWindowInfo window = windows.get(i); in findWindowByTitle() local 114 if (TextUtils.equals(title, window.getTitle())) { in findWindowByTitle() 115 returnValue = window; in findWindowByTitle() 117 window.recycle(); in findWindowByTitle() 142 for (AccessibilityWindowInfo window : windows) { in homeScreenOrBust() 143 Log.e(LOG_TAG, window.toString()); in homeScreenOrBust() 159 for (AccessibilityWindowInfo window : windows) { in isHomeScreenShowing() [all …]
|
D | DisplayUtils.java | 27 Window window = activity.getWindow(); in getStatusBarHeight() local 28 window.getDecorView().getWindowVisibleDisplayFrame(rect); in getStatusBarHeight()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | PixelCopyTest.java | 292 Window window = waitForWindowProducerActivity(); in testWindowProducer() local 297 int result = mCopyHelper.request(window, src, bitmap); in testWindowProducer() 308 Window window = waitForWindowProducerActivity(); in testWindowProducerCropTopLeft() local 312 int result = mCopyHelper.request(window, makeWindowRect(0, 0, 50, 50), bitmap); in testWindowProducerCropTopLeft() 321 Window window = waitForWindowProducerActivity(); in testWindowProducerCropCenter() local 325 int result = mCopyHelper.request(window, makeWindowRect(25, 25, 75, 75), bitmap); in testWindowProducerCropCenter() 334 Window window = waitForWindowProducerActivity(); in testWindowProducerCropBottomHalf() local 338 int result = mCopyHelper.request(window, makeWindowRect(0, 50, 100, 100), bitmap); in testWindowProducerCropBottomHalf() 349 Window window = waitForWindowProducerActivity(); in testWindowProducerScaling() local 353 int result = mCopyHelper.request(window, bitmap); in testWindowProducerScaling() [all …]
|
D | TextureViewTest.java | 89 final Window window = windowRet[0]; in testFirstFrames() local 92 waitForColor(window, center, Color.WHITE); in testFirstFrames() 101 assertEquals(Color.WHITE, getPixel(window, center)); in testFirstFrames() 105 int color = waitForChange(window, center, Color.WHITE); in testFirstFrames() 110 color = waitForChange(window, center, color); in testFirstFrames() 156 Window window = activity.getWindow(); in testRotateScale() local 158 int result = new SynchronousPixelCopy().request(window, viewPos, screenshot); in testRotateScale() 198 Window window = activity.getWindow(); in testTransformScale() local 201 int result = new SynchronousPixelCopy().request(window, viewPos, screenshot); in testTransformScale() 339 Window window = activity.getWindow(); in testSamplingWithTransform() local [all …]
|
D | FrameMetricsListenerTest.java | 77 (Window window, FrameMetrics frameMetrics, int dropCount) -> { in testReceiveData() 78 assertEquals(myWindow, window); in testReceiveData() 112 (Window window, FrameMetrics frameMetrics, int dropCount) -> { in testMultipleListeners() 113 assertEquals(myWindow, window); in testMultipleListeners() 120 (Window window, FrameMetrics frameMetrics, int dropCount) -> { in testMultipleListeners() 121 assertEquals(myWindow, window); in testMultipleListeners() 156 (Window window, FrameMetrics frameMetrics, int dropCount) -> { in testDropCount()
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
D | WindowTest.java | 388 MockWindow window = new MockWindow(mActivity); in testIsActive() local 389 assertFalse(window.isActive()); in testIsActive() 391 window.makeActive(); in testIsActive() 392 assertTrue(window.isActive()); in testIsActive() 393 assertTrue(window.mIsOnActiveCalled); in testIsActive() 524 MockWindow window = new MockWindow(mActivity); in testSetDefaultWindowFormat() local 528 window.setFormat(PixelFormat.OPAQUE); in testSetDefaultWindowFormat() 529 window.setCallback(mWindowCallback); in testSetDefaultWindowFormat() 531 window.setDefaultWindowFormat(PixelFormat.JPEG); in testSetDefaultWindowFormat() 532 assertEquals(PixelFormat.OPAQUE, window.getAttributes().format); in testSetDefaultWindowFormat() [all …]
|
/cts/tests/tests/colormode/src/android/colormode/cts/ |
D | DefaultColorModeTest.java | 57 Window window = mActivity.getWindow(); in testDefaultColorMode() local 58 assertEquals(ActivityInfo.COLOR_MODE_DEFAULT, window.getAttributes().getColorMode()); in testDefaultColorMode() 60 assertFalse(window.isWideColorGamut()); in testDefaultColorMode()
|
D | WideColorModeTest.java | 56 Window window = mActivity.getWindow(); in testDefaultColorMode() local 58 window.getAttributes().getColorMode()); in testDefaultColorMode()
|
D | AttributeWideColorModeTest.java | 56 Window window = mActivity.getWindow(); in testDefaultColorMode() local 58 window.getAttributes().getColorMode()); in testDefaultColorMode()
|
/cts/tests/media/jni/ |
D | NativeCodecDecoderTest.cpp | 56 explicit CodecDecoderTest(const char* mime, ANativeWindow* window); 66 CodecDecoderTest::CodecDecoderTest(const char* mime, ANativeWindow* window) in CodecDecoderTest() argument 74 mWindow{window} {} in CodecDecoderTest() 643 ANativeWindow* window = surface ? ANativeWindow_fromSurface(env, surface) : nullptr; in nativeTestSimpleDecode() local 644 auto* codecDecoderTest = new CodecDecoderTest(cMime, window); in nativeTestSimpleDecode() 647 if (window) { in nativeTestSimpleDecode() 648 ANativeWindow_release(window); in nativeTestSimpleDecode() 649 window = nullptr; in nativeTestSimpleDecode() 677 ANativeWindow* window = surface ? ANativeWindow_fromSurface(env, surface) : nullptr; in nativeTestFlush() local 678 auto* codecDecoderTest = new CodecDecoderTest(cMime, window); in nativeTestFlush() [all …]
|
/cts/hostsidetests/inputmethodservice/deviceside/devicetest/src/android/inputmethodservice/cts/devicetest/ |
D | TestActivity.java | 115 final Window window = getWindow(); in setSoftInputState() local 116 final int currentSoftInputMode = window.getAttributes().softInputMode; in setSoftInputState() 120 window.setSoftInputMode(newSoftInputMode); in setSoftInputState()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/ |
D | SoundGenerator.java | 58 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/framework/base/windowmanager/util/src/android/server/wm/ |
D | WindowManagerState.java | 476 for (WindowState window : mWindowStates) { in containsWindow() 477 if (window.getName().equals(windowName)) { in containsWindow() 488 for (WindowState window : mWindowStates) { in isWindowVisible() 489 if (window.getName().equals(windowName)) { in isWindowVisible() 490 if (window.isShown()) { in isWindowVisible() 500 for (WindowState window : mWindowStates) { in allWindowsVisible() 501 if (window.getName().equals(windowName)) { in allWindowsVisible() 502 if (!window.isShown()) { in allWindowsVisible() 564 for (WindowState window : mWindowStates) { in findFirstWindowWithType() 565 if (window.getType() == type) { in findFirstWindowWithType() [all …]
|
/cts/tests/inputmethod/src/android/view/inputmethod/cts/util/ |
D | TestActivity.java | 150 final Window window = getWindow(); in setSoftInputState() local 151 final int currentSoftInputMode = window.getAttributes().softInputMode; in setSoftInputState() 155 window.setSoftInputMode(newSoftInputMode); in setSoftInputState()
|
/cts/tests/tests/dpi/src/android/dpi/cts/ |
D | OrientationActivity.java | 33 Window window = getWindow(); in onCreate() local 34 window.addFlags(WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD); in onCreate()
|
/cts/tests/tests/theme/src/android/theme/cts/ |
D | DeviceDefaultActivity.java | 34 Window window = getWindow(); in onCreate() local 35 window.addFlags(WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD); in onCreate()
|
/cts/tests/openglperf2/jni/primitive/pixeloutput/ |
D | PixelOutputRenderer.cpp | 53 PixelOutputRenderer::PixelOutputRenderer(ANativeWindow* window, bool offscreen) : in PixelOutputRenderer() argument 54 Renderer(window, offscreen), mWorkload(0) { in PixelOutputRenderer()
|