/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 | 236 AccessibilityWindowInfo window = windows.get(i); in testTraverseAllWindows() local 238 window.getBoundsInScreen(boundsInScreen); in testTraverseAllWindows() 240 assertNull(window.getParent()); in testTraverseAllWindows() 241 assertSame(0, window.getChildCount()); in testTraverseAllWindows() 242 assertNull(window.getParent()); in testTraverseAllWindows() 243 assertNotNull(window.getRoot()); in testTraverseAllWindows() 245 if (window.getType() == AccessibilityWindowInfo.TYPE_APPLICATION) { in testTraverseAllWindows() 246 assertTrue(window.isFocused()); in testTraverseAllWindows() 247 assertTrue(window.isActive()); in testTraverseAllWindows() 248 verifyNodesInAppWindow(window.getRoot()); in testTraverseAllWindows() [all …]
|
D | AccessibilityWindowReportingTest.java | 142 final AccessibilityWindowInfo window = findWindowByTitle(sUiAutomation, updatedTitle); in testUpdatedWindowTitle_generatesEventAndIsReturnedByGetTitle() local 143 assertNotNull("Updated window title not reported to accessibility", window); in testUpdatedWindowTitle_generatesEventAndIsReturnedByGetTitle() 144 window.recycle(); in testUpdatedWindowTitle_generatesEventAndIsReturnedByGetTitle() 196 final AccessibilityWindowInfo window = windows.get(i); in putWindowInPictureInPicture_generatesEventAndReportsProperty() local 197 if (window.isInPictureInPictureMode()) { in putWindowInPictureInPicture_generatesEventAndReportsProperty() 387 final AccessibilityWindowInfo window = windows.get(i); in testGetAnchorForDropDownForAutoCompleteTextView_returnsTextViewNode() local 388 if (window.getAnchor() == null) { in testGetAnchorForDropDownForAutoCompleteTextView_returnsTextViewNode() 391 assertEquals(autoCompleteTextInfo, window.getAnchor()); in testGetAnchorForDropDownForAutoCompleteTextView_returnsTextViewNode()
|
/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 …]
|
/cts/hostsidetests/systemui/src/android/host/systemui/ |
D | TvMicrophoneCaptureIndicatorTest.java | 251 final WindowStateProto window = getMicCaptureIndicatorWindow(); in assertIndicatorVisible() local 253 assertNotNull("\"MicrophoneCaptureIndicator\" window does not exist", window); in assertIndicatorVisible() 255 window.getIsVisible()); in assertIndicatorVisible() 257 window.getIsOnScreen()); in assertIndicatorVisible() 261 final WindowStateProto window = getMicCaptureIndicatorWindow(); in assertIndicatorInvisible() local 262 if (window == null) { in assertIndicatorInvisible() 268 window.getIsVisible()); in assertIndicatorInvisible() 270 window.getIsOnScreen()); in assertIndicatorInvisible() 281 for (WindowStateProto window : windows) { in getMicCaptureIndicatorWindow() 282 final String title = window.getIdentifier().getTitle(); in getMicCaptureIndicatorWindow() [all …]
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/ |
D | ActivityLaunchUtils.java | 154 for (AccessibilityWindowInfo window : windows) { in homeScreenOrBust() 155 Log.e(LOG_TAG, window.toString()); in homeScreenOrBust() 176 for (AccessibilityWindowInfo window : windows) { in isHomeScreenShowing() 177 final AccessibilityNodeInfo root = window.getRoot(); in isHomeScreenShowing() 281 final AccessibilityWindowInfo window = node.getWindow(); in launchActivityOnSpecifiedDisplayAndWaitForItToBeOnscreen() 282 if(!TextUtils.equals(activityTitle, window.getTitle())) { in launchActivityOnSpecifiedDisplayAndWaitForItToBeOnscreen() 286 final AccessibilityWindowInfo window = in launchActivityOnSpecifiedDisplayAndWaitForItToBeOnscreen() 288 if (window == null) return false; in launchActivityOnSpecifiedDisplayAndWaitForItToBeOnscreen() 289 window.getBoundsInScreen(bounds); in launchActivityOnSpecifiedDisplayAndWaitForItToBeOnscreen() 306 final AccessibilityWindowInfo window = windows.get(i); in findWindowByTitleWithList() local [all …]
|
/cts/tests/tests/view/src/android/view/cts/ |
D | PixelCopyTest.java | 297 Window window = waitForWindowProducerActivity(); in testWindowProducer() local 302 int result = mCopyHelper.request(window, src, bitmap); in testWindowProducer() 313 Window window = waitForWindowProducerActivity(); in testWindowProducerCropTopLeft() local 317 int result = mCopyHelper.request(window, makeWindowRect(0, 0, 50, 50), bitmap); in testWindowProducerCropTopLeft() 326 Window window = waitForWindowProducerActivity(); in testWindowProducerCropCenter() local 330 int result = mCopyHelper.request(window, makeWindowRect(25, 25, 75, 75), bitmap); in testWindowProducerCropCenter() 339 Window window = waitForWindowProducerActivity(); in testWindowProducerCropBottomHalf() local 343 int result = mCopyHelper.request(window, makeWindowRect(0, 50, 100, 100), bitmap); in testWindowProducerCropBottomHalf() 354 Window window = waitForWindowProducerActivity(); in testWindowProducerScaling() local 358 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() 354 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/common/host-side/util-axt/src/com/android/compatibility/common/util/ |
D | WindowManagerUtil.java | 66 for (WindowStateProto window : windows) { in getWindowWithTitle() 67 if (expectedTitle.equals(window.getIdentifier().getTitle())) { in getWindowWithTitle() 68 return window; in getWindowWithTitle() 135 final WindowStateProto window = child.getWindow(); in collectWindowStates() local 137 out.add(window); in collectWindowStates() 139 collectWindowStates(window.getWindowContainer(), out); in collectWindowStates()
|
/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/hostsidetests/inputmethodservice/deviceside/devicetest/src/android/inputmethodservice/cts/devicetest/ |
D | TestActivity.java | 116 final Window window = getWindow(); in setSoftInputState() local 117 final int currentSoftInputMode = window.getAttributes().softInputMode; in setSoftInputState() 121 window.setSoftInputMode(newSoftInputMode); in setSoftInputState()
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
D | WindowTest.java | 395 MockWindow window = new MockWindow(mActivity); in testIsActive() local 396 assertFalse(window.isActive()); in testIsActive() 398 window.makeActive(); in testIsActive() 399 assertTrue(window.isActive()); in testIsActive() 400 assertTrue(window.mIsOnActiveCalled); in testIsActive() 531 MockWindow window = new MockWindow(mActivity); in testSetDefaultWindowFormat() local 535 window.setFormat(PixelFormat.OPAQUE); in testSetDefaultWindowFormat() 536 window.setCallback(mWindowCallback); in testSetDefaultWindowFormat() 538 window.setDefaultWindowFormat(PixelFormat.JPEG); in testSetDefaultWindowFormat() 539 assertEquals(PixelFormat.OPAQUE, window.getAttributes().format); in testSetDefaultWindowFormat() [all …]
|
/cts/tests/framework/base/windowmanager/jetpack/src/android/server/wm/jetpack/wrapper/extensionwrapperimpl/ |
D | TestExtensionCompat.java | 26 import androidx.window.extensions.ExtensionDeviceState; 27 import androidx.window.extensions.ExtensionInterface; 28 import androidx.window.extensions.ExtensionWindowLayoutInfo;
|
/cts/tests/framework/base/windowmanager/jetpack/src/android/server/wm/jetpack/wrapper/sidecarwrapperimpl/ |
D | TestSidecarCompat.java | 26 import androidx.window.sidecar.SidecarDeviceState; 27 import androidx.window.sidecar.SidecarInterface; 28 import androidx.window.sidecar.SidecarWindowLayoutInfo;
|
/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/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/inputmethod/src/android/view/inputmethod/cts/util/ |
D | TestActivity.java | 151 final Window window = getWindow(); in setSoftInputState() local 152 final int currentSoftInputMode = window.getAttributes().softInputMode; in setSoftInputState() 156 window.setSoftInputMode(newSoftInputMode); in setSoftInputState()
|
/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/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/incident/src/com/android/server/cts/ |
D | WindowManagerIncidentTest.java | 50 for (WindowStateProto window : rwcp.getWindowsList()) { in verifyRootWindowContainerProto() 51 verifyIdentifierProto(window.getIdentifier(), filterLevel); in verifyRootWindowContainerProto()
|