Home
last modified time | relevance | path

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

123456789

/cts/tests/tests/graphics/jni/
Dandroid_graphics_cts_ANativeWindowTest.cpp35 auto window = ANativeWindow_fromSurface(env, jSurface); in pushBufferWithTransform() local
36 ANativeWindow_setBuffersTransform(window, transform); in pushBufferWithTransform()
38 ANativeWindow_lock(window, &mappedBuffer, nullptr); in pushBufferWithTransform()
39 ANativeWindow_unlockAndPost(window); in pushBufferWithTransform()
40 ANativeWindow_release(window); in pushBufferWithTransform()
44 ANativeWindow* window = nullptr; in setBuffersDataSpace() local
46 window = ANativeWindow_fromSurface(env, jSurface); in setBuffersDataSpace()
48 int error = ANativeWindow_setBuffersDataSpace(window, dataSpace); in setBuffersDataSpace()
53 ANativeWindow_lock(window, &mappedBuffer, nullptr); in setBuffersDataSpace()
54 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/hostsidetests/securitybulletin/securityPatch/CVE-2023-21276/
Dpoc.cpp38 CursorWindow* window; in main() local
39 CursorWindow::create(kEmptyString, kSize, &window); in main()
46 window->mAllocOffset = 1; in main()
47 window->mName = kEmptyString; in main()
48 window->mNumColumns = kSize; in main()
49 window->mNumRows = kSize; in main()
50 window->mSize = kSize; in main()
51 window->mSlotsOffset = kSize; in main()
55 window->writeToParcel(parcel); in main()
64 FAIL_CHECK(parcel->readUint32(&window->mNumRows) == kSize); in main()
[all …]
/cts/tests/framework/base/windowmanager/src/android/server/wm/animations/
DMoveAnimationTests.java112 final Window window = activity.getWindow(); in testCanPlayMoveAnimationByDefault() local
116 window.getAttributes().canPlayMoveAnimation()); in testCanPlayMoveAnimationByDefault()
124 final Window window = activity.getWindow(); in testCanOverrideTheme() local
128 window.getAttributes().canPlayMoveAnimation()); in testCanOverrideTheme()
132 WindowManager.LayoutParams attrs = window.getAttributes(); in testCanOverrideTheme()
134 window.setAttributes(attrs); in testCanOverrideTheme()
138 window.getAttributes().canPlayMoveAnimation()); in testCanOverrideTheme()
146 final Window window = activity.getWindow(); in testThemeCanDisable() local
150 WindowManager.LayoutParams attrs = window.getAttributes(); in testThemeCanDisable()
152 window.setAttributes(attrs); in testThemeCanDisable()
[all …]
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityWindowQueryTest.java242 AccessibilityWindowInfo window = windows.get(i); in testTraverseAllWindows() local
244 if (window.getType() == AccessibilityWindowInfo.TYPE_APPLICATION in testTraverseAllWindows()
245 && !TextUtils.equals(window.getTitle(), mActivity.getTitle())) { in testTraverseAllWindows()
248 window.getBoundsInScreen(boundsInScreen); in testTraverseAllWindows()
250 assertNull(window.getParent()); in testTraverseAllWindows()
251 assertSame(0, window.getChildCount()); in testTraverseAllWindows()
252 assertNull(window.getParent()); in testTraverseAllWindows()
253 assertNotNull(window.getRoot()); in testTraverseAllWindows()
255 if (window.getType() == AccessibilityWindowInfo.TYPE_APPLICATION) { in testTraverseAllWindows()
256 assertTrue(window.isFocused()); in testTraverseAllWindows()
[all …]
/cts/tests/framework/base/windowmanager/jetpack/
DAndroid.bp23 "androidx.window.extensions_extensions-nodeps",
32 "androidx.window.extensions.core_core-nodeps",
39 aars: ["window-sidecar-release.aar"],
62 "com.android.window.flags.window-aconfig-java",
78 "com.android.window.flags.window-aconfig-java",
97 "com.android.window.flags.window-aconfig-java",
/cts/tests/tests/database/src/android/database/cts/
DCursorWindowTest.java63 CursorWindow window = new CursorWindow(false); in testWriteCursorToWindow() local
64 cursor.fillWindow(0, window); in testWriteCursorToWindow()
70 String s = window.getString(i, j); in testWriteCursorToWindow()
78 window.clear(); in testWriteCursorToWindow()
79 cursor.fillWindow(1, window); in testWriteCursorToWindow()
84 String s = window.getString(i, j); in testWriteCursorToWindow()
92 window.clear(); in testWriteCursorToWindow()
93 assertEquals(0, window.getNumRows()); in testWriteCursorToWindow()
98 CursorWindow window = getOneByOneWindow(); in testNull() local
101 assertTrue(window.putNull(0, 0)); in testNull()
[all …]
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/
DActivityLaunchUtils.java186 for (AccessibilityWindowInfo window : windows) { in homeScreenOrBust()
187 Log.e(LOG_TAG, window.toString()); in homeScreenOrBust()
213 for (AccessibilityWindowInfo window : windows) { in isHomeScreenShowing()
217 if (!window.isActive() || !window.isFocused()) { in isHomeScreenShowing()
221 final AccessibilityNodeInfo root = window.getRoot(); in isHomeScreenShowing()
301 final AccessibilityWindowInfo window = in launchActivityOnSpecifiedDisplayAndWaitForItToBeOnscreen()
303 if (window == null || window.getRoot() == null in launchActivityOnSpecifiedDisplayAndWaitForItToBeOnscreen()
307 && (!window.isActive() || !window.isFocused()))) { in launchActivityOnSpecifiedDisplayAndWaitForItToBeOnscreen()
315 window.getBoundsInScreen(bounds); in launchActivityOnSpecifiedDisplayAndWaitForItToBeOnscreen()
322 event, Arrays.toString(location), window)); in launchActivityOnSpecifiedDisplayAndWaitForItToBeOnscreen()
[all …]
/cts/tests/accessibility/src/android/view/accessibility/cts/
DAccessibilityTestActivity.java37 final Window window = getWindow(); in turnOnScreen() local
40 window.addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON); in turnOnScreen()
46 window.addFlags(WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD); in turnOnScreen()
/cts/tests/framework/base/windowmanager/src/android/server/wm/window/
DWindowPolicyTests.java17 package android.server.wm.window;
47 import com.android.window.flags.Flags;
230 final Window window = activity.getWindow(); in testSystemBarColor() local
232 Color.TRANSPARENT, Color.alpha(window.getStatusBarColor())); in testSystemBarColor()
234 Color.TRANSPARENT, window.getNavigationBarColor()); in testSystemBarColor()
236 Color.TRANSPARENT, window.getNavigationBarDividerColor()); in testSystemBarColor()
238 window.setStatusBarColor(Color.BLACK); in testSystemBarColor()
240 Color.TRANSPARENT, window.getStatusBarColor()); in testSystemBarColor()
241 window.setNavigationBarColor(Color.BLACK); in testSystemBarColor()
243 Color.TRANSPARENT, window.getNavigationBarColor()); in testSystemBarColor()
[all …]
/cts/tests/framework/base/windowmanager/jetpack/src/android/server/wm/jetpack/utils/
DSidecarCallbackCounter.java25 import androidx.window.sidecar.SidecarDeviceState;
26 import androidx.window.sidecar.SidecarInterface.SidecarCallback;
27 import androidx.window.sidecar.SidecarWindowLayoutInfo;
/cts/tests/tests/colormode/src/android/colormode/cts/
DDefaultColorModeTest.java57 Window window = mActivity.getWindow(); in testDefaultColorMode() local
58 assertEquals(ActivityInfo.COLOR_MODE_DEFAULT, window.getAttributes().getColorMode()); in testDefaultColorMode()
60 assertFalse(window.isWideColorGamut()); in testDefaultColorMode()
/cts/common/host-side/util-axt/src/com/android/compatibility/common/util/
DWindowManagerUtil.java94 for (WindowStateProto window : windows) { in getWindowWithTitle()
95 String title = window.getWindowContainer().getIdentifier().getTitle(); in getWindowWithTitle()
97 return window; in getWindowWithTitle()
164 final WindowStateProto window = child.getWindow(); in collectWindowStates() local
166 out.add(window); in collectWindowStates()
168 collectWindowStates(window.getWindowContainer(), out); in collectWindowStates()
208 final WindowStateProto window = child.getWindow(); in collectActivityRecords() local
209 collectActivityRecords(window.getWindowContainer(), out); in collectActivityRecords()
/cts/tests/framework/base/windowmanager/jetpack/SignedApp/src/android/server/wm/jetpack/signed/
DSignedEmbeddingActivity.java34 import androidx.window.extensions.embedding.ActivityEmbeddingComponent;
35 import androidx.window.extensions.embedding.SplitAttributes;
36 import androidx.window.extensions.embedding.SplitInfo;
37 import androidx.window.extensions.embedding.SplitPairRule;
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DWindowUtil.java43 public static void waitForFocus(Window window) { in waitForFocus() argument
45 window.getDecorView()::hasWindowFocus); in waitForFocus()
/cts/tests/tests/car_builtin/src/android/car/cts/builtin/window/
DDisplayAreaOrganizerHelperTest.java17 package android.car.cts.builtin.window;
21 import android.car.builtin.window.DisplayAreaOrganizerHelper;
/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/framework/base/windowmanager/src/android/server/wm/taskfragment/
DTaskFragmentOrganizerTestBase.java23 import static android.window.TaskFragmentOrganizer.TASK_FRAGMENT_TRANSIT_OPEN;
24 import static android.window.TaskFragmentTransaction.TYPE_ACTIVITY_REPARENTED_TO_TASK;
25 import static android.window.TaskFragmentTransaction.TYPE_TASK_FRAGMENT_APPEARED;
26 import static android.window.TaskFragmentTransaction.TYPE_TASK_FRAGMENT_ERROR;
27 import static android.window.TaskFragmentTransaction.TYPE_TASK_FRAGMENT_INFO_CHANGED;
28 import static android.window.TaskFragmentTransaction.TYPE_TASK_FRAGMENT_PARENT_INFO_CHANGED;
29 import static android.window.TaskFragmentTransaction.TYPE_TASK_FRAGMENT_VANISHED;
51 import android.window.TaskFragmentCreationParams;
52 import android.window.TaskFragmentInfo;
53 import android.window.TaskFragmentOrganizer;
[all …]
/cts/tests/framework/base/windowmanager/jetpack/src/android/server/wm/jetpack/embedding/
DSplitAttributesRuntimeApisTests.java28 import androidx.window.extensions.core.util.function.Function;
29 import androidx.window.extensions.embedding.SplitAttributes;
30 import androidx.window.extensions.embedding.SplitAttributesCalculatorParams;
31 import androidx.window.extensions.embedding.SplitInfo;
32 import androidx.window.extensions.embedding.SplitPairRule;
/cts/tests/framework/base/windowmanager/overlayappbase/src/android/server/wm/overlay/
DOverlayActivity.java44 Window window = getWindow(); in onCreate() local
46 window.getAttributes().alpha = intent.getFloatExtra(EXTRA_OPACITY, 1f); in onCreate()
48 window.addFlags(LayoutParams.FLAG_NOT_TOUCHABLE); in onCreate()
/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/tests/framework/base/windowmanager/jetpack/src/android/server/wm/jetpack/extensions/util/
DExtensionsUtil.java36 import androidx.window.extensions.WindowExtensions;
37 import androidx.window.extensions.WindowExtensionsProvider;
38 import androidx.window.extensions.area.WindowAreaComponent;
39 import androidx.window.extensions.layout.DisplayFeature;
40 import androidx.window.extensions.layout.FoldingFeature;
41 import androidx.window.extensions.layout.WindowLayoutComponent;
42 import androidx.window.extensions.layout.WindowLayoutInfo;
/cts/hostsidetests/adpf/app/hintsession/src/cpp/external/
Dandroid_native_app_glue.c109 android_app->window = android_app->pendingWindow; in android_app_pre_exec_cmd()
149 android_app->window = NULL; in android_app_post_exec_cmd()
295 static void android_app_set_window(struct android_app* android_app, ANativeWindow* window) { in android_app_set_window() argument
300 android_app->pendingWindow = window; in android_app_set_window()
301 if (window != NULL) { in android_app_set_window()
304 while (android_app->window != android_app->pendingWindow) { in android_app_set_window()
401 static void onNativeWindowCreated(ANativeActivity* activity, ANativeWindow* window) { in onNativeWindowCreated() argument
402 LOGV("NativeWindowCreated: %p -- %p\n", activity, window); in onNativeWindowCreated()
403 android_app_set_window((struct android_app*)activity->instance, window); in onNativeWindowCreated()
406 static void onNativeWindowDestroyed(ANativeActivity* activity, ANativeWindow* window) { in onNativeWindowDestroyed() argument
[all …]
/cts/tests/tests/view/src/android/view/cts/
DPixelCopyViewProducerActivity.java73 Window window = getWindow(); in onCreate() local
74 window.setDecorFitsSystemWindows(false); in onCreate()
75 window.setStatusBarColor(Color.TRANSPARENT); in onCreate()
76 window.setStatusBarContrastEnforced(false); in onCreate()
77 window.setNavigationBarColor(Color.TRANSPARENT); in onCreate()
78 window.setNavigationBarContrastEnforced(false); in onCreate()

123456789