/cts/apps/CtsVerifier/src/com/android/cts/verifier/projection/ |
D | ProjectedPresentation.java | 35 getWindow().addFlags(WindowManager.LayoutParams.FLAG_LOCAL_FOCUS_MODE); in ProjectedPresentation() 36 getWindow().addFlags(WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED); in ProjectedPresentation() 40 getWindow().setLocalFocus(true, true); in injectTouchEvent() 41 getWindow().injectInputEvent(event); in injectTouchEvent() 45 getWindow().setLocalFocus(true, false); in injectKeyEvent() 46 getWindow().injectInputEvent(event); in injectKeyEvent()
|
/cts/tests/tests/app.usage/src/android/app/usage/cts/ |
D | ActivityTransitionActivity.java | 112 getWindow().setSharedElementEnterTransition(new ChangeBounds().setDuration(DURATION)); in onCreate() 113 getWindow().setSharedElementReturnTransition(new ChangeBounds().setDuration(DURATION)); in onCreate() 114 getWindow().setEnterTransition(createVisibilityTransition(true, ENTER_VISIBILITY)); in onCreate() 115 getWindow().setReturnTransition(createVisibilityTransition(true, RETURN_VISIBILITY)); in onCreate() 116 getWindow().setExitTransition(createVisibilityTransition(false, exitVisibility)); in onCreate() 117 getWindow().setReenterTransition(createVisibilityTransition(false, reenterVisibility)); in onCreate() 118 getWindow().getReenterTransition().addListener(new TransitionListenerAdapter() { in onCreate() 126 getWindow().setAllowReturnTransitionOverlap(mAllowOverlap); in onCreate() 128 getWindow().setReturnTransition(null); in onCreate() 129 getWindow().setSharedElementReturnTransition(null); in onCreate() [all …]
|
/cts/tests/tests/systemui/src/android/systemui/cts/ |
D | LightBarActivity.java | 37 getWindow().getAttributes().layoutInDisplayCutoutMode = in onCreate() 50 int vis = getWindow().getDecorView().getSystemUiVisibility(); in setLightBarLegacy() 56 getWindow().getDecorView().setSystemUiVisibility(vis); in setLightBarLegacy() 69 getWindow().getDecorView().getWindowInsetsController(); in setLightBarAppearance()
|
D | LightBarTests.java | 112 activity.getWindow().setStatusBarColor(LIGHT_BG_COLOR); in testAppearanceCanOverwriteLegacyFlags() 113 activity.getWindow().setNavigationBarColor(LIGHT_BG_COLOR); in testAppearanceCanOverwriteLegacyFlags() 139 activity.getWindow().setStatusBarColor(LIGHT_BG_COLOR); in testLegacyFlagsCannotOverwriteAppearance() 140 activity.getWindow().setNavigationBarColor(LIGHT_BG_COLOR); in testLegacyFlagsCannotOverwriteAppearance() 182 mActivityRule.getActivity().getWindow().setNavigationBarColor(Color.RED); in testNavigationBarDivider() 183 mActivityRule.getActivity().getWindow().setNavigationBarDividerColor(Color.WHITE); in testNavigationBarDivider() 201 final WindowManager.LayoutParams attrs = activity.getWindow().getAttributes(); in testLightBarIsNotAllowed_fitStatusBar() 207 activity.getWindow().setAttributes(attrs); in testLightBarIsNotAllowed_fitStatusBar() 208 activity.getWindow().setStatusBarColor(Color.BLACK); in testLightBarIsNotAllowed_fitStatusBar() 209 activity.getWindow().setNavigationBarColor(Color.BLACK); in testLightBarIsNotAllowed_fitStatusBar() [all …]
|
D | WindowInsetsActivity.java | 65 getWindow().requestFeature(Window.FEATURE_NO_TITLE); in onCreate() 75 new WindowInsetsPresenterDrawable(getWindow().getDecorView().getRootWindowInsets()); in onCreate() 80 getWindow().getDecorView().setOnApplyWindowInsetsListener(this::onApplyWindowInsets); in onCreate() 81 getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN in onCreate() 84 getWindow().getAttributes().layoutInDisplayCutoutMode in onCreate() 86 getWindow().setStatusBarColor(0x22ff0000); in onCreate() 87 getWindow().setNavigationBarColor(0x22ff0000); in onCreate() 92 mContentWindowInsets = getWindow().getDecorView().getRootWindowInsets(); in onCreate() 162 mDecorBound = getViewBoundOnScreen(getWindow().getDecorView()); in onAttachedToWindow()
|
/cts/tests/framework/base/windowmanager/app/src/android/server/wm/app/ |
D | BlurAttributesActivity.java | 31 getWindow().setDecorFitsSystemWindows(false); in onCreate() 32 getWindow().getInsetsController().hide(systemBars()); in onCreate() 33 getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT)); in onCreate()
|
D | TurnScreenOnActivity.java | 28 getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON); in onCreate() 33 getWindow().addFlags(WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON); in onCreate() 35 getWindow().addFlags(WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED); in onCreate()
|
D | TurnScreenOnWithRelayoutActivity.java | 27 getWindow().addFlags(WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED in onStart() 37 getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN); in onStop()
|
D | BackgroundImageActivity.java | 30 getWindow().setDecorFitsSystemWindows(false); in onCreate() 31 getWindow().getInsetsController().hide(systemBars()); in onCreate()
|
D | BlurActivity.java | 41 final Window window = getWindow(); 62 getWindow().setDecorFitsSystemWindows(false); in onCreate() 63 getWindow().getInsetsController().hide(systemBars()); in onCreate()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | ListPopupWindowTest.java | 160 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mActivity.getWindow().getDecorView(), in testAccessBackground() 174 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mActivity.getWindow().getDecorView(), in testAccessAnimationStyle() 189 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mActivity.getWindow().getDecorView(), in testAccessHeight() 232 mActivity.getWindow().getDecorView(), mPopupWindowBuilder::show); in testAccessWidth() 266 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mActivity.getWindow().getDecorView(), in verifyAnchoring() 297 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mActivity.getWindow().getDecorView(), in testAnchoring() 310 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mActivity.getWindow().getDecorView(), in testAnchoringWithHorizontalOffset() 323 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mActivity.getWindow().getDecorView(), in testAnchoringWithVerticalOffset() 336 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mActivity.getWindow().getDecorView(), in testAnchoringWithRightGravity() 349 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mActivity.getWindow().getDecorView(), in testAnchoringWithEndGravity() [all …]
|
/cts/tests/tests/view/src/android/view/cts/ |
D | AttachedSurfaceControlTest.java | 75 activity.getWindow().getRootSurfaceControl() in onBufferTransformHintChanged() 103 activity.getWindow().getRootSurfaceControl() in testOnBufferTransformHintChangedListener() 113 activity.getWindow().getRootSurfaceControl().getBufferTransformHint())); in testOnBufferTransformHintChangedListener() 120 activity.getWindow().getRootSurfaceControl() in testOnBufferTransformHintChangedListener() 130 activity.getWindow().getRootSurfaceControl().getBufferTransformHint())); in testOnBufferTransformHintChangedListener() 170 activity.getWindow().getRootSurfaceControl() in testOnBufferTransformHintChangesFromLandToSea() 181 activity.getWindow().getRootSurfaceControl().getBufferTransformHint())); in testOnBufferTransformHintChangesFromLandToSea() 187 activity.getWindow().getRootSurfaceControl() in testOnBufferTransformHintChangesFromLandToSea() 197 activity.getWindow().getRootSurfaceControl().getBufferTransformHint())); in testOnBufferTransformHintChangesFromLandToSea()
|
D | FrameMetricsListenerTest.java | 86 final Window myWindow = mActivity.getWindow(); in testReceiveData() 94 mActivityRule.runOnUiThread(() -> mActivity.getWindow(). in testReceiveData() 102 mActivity.getWindow().removeOnFrameMetricsAvailableListener(listener); in testReceiveData() 120 final Window myWindow = mActivity.getWindow(); in testMultipleListeners() 138 mActivity.getWindow().addOnFrameMetricsAvailableListener( in testMultipleListeners() 140 mActivity.getWindow().addOnFrameMetricsAvailableListener( in testMultipleListeners() 152 mActivity.getWindow().removeOnFrameMetricsAvailableListener(frameMetricsListener1); in testMultipleListeners() 153 mActivity.getWindow().removeOnFrameMetricsAvailableListener(frameMetricsListener2); in testMultipleListeners() 173 mActivityRule.runOnUiThread(() -> mActivity.getWindow(). in testDropCount() 184 mActivityRule.runOnUiThread(() -> mActivity.getWindow(). in testDropCount()
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
D | WindowInsetsControllerTests.java | 118 final View rootView = activity.getWindow().getDecorView(); in testHide() 136 final View rootView = activity.getWindow().getDecorView(); in testShow() 183 final View rootView = activity.getWindow().getDecorView(); in testTopAppHidesStatusBarByMethod() 192 final View rootView = activity.getWindow().getDecorView(); in testTopAppHidesStatusBarByWindowFlag() 195 () -> activity.getWindow().addFlags(FLAG_FULLSCREEN)); in testTopAppHidesStatusBarByWindowFlag() 201 final View rootView = activity.getWindow().getDecorView(); in testTopAppHidesStatusBarBySystemUiFlag() 217 final View rootView = activity.getWindow().getDecorView(); in testImeShowAndHide() 234 final View rootView = activity.getWindow().getDecorView(); in testImeForceShowingNavigationBar() 252 final View rootView = activity.getWindow().getDecorView(); in testSetSystemBarsBehavior_default() 278 final View rootView = activity.getWindow().getDecorView(); in testSetSystemBarsBehavior_showTransientBarsBySwipe() [all …]
|
D | ForceRelayoutTestBase.java | 62 activity.getWindow().setSoftInputMode(softInputMode); in testRelayoutWhenInsetsChange() 63 activity.getWindow().getInsetsController().hide(systemBars()); in testRelayoutWhenInsetsChange() 87 getWindow().requestFeature(Window.FEATURE_NO_TITLE); in onCreate() 88 getWindow().setDecorFitsSystemWindows(false); in onCreate() 89 … getWindow().getAttributes().layoutInDisplayCutoutMode = LAYOUT_IN_DISPLAY_CUTOUT_MODE_ALWAYS; in onCreate()
|
D | CloseOnOutsideTestActivity.java | 41 LayoutParams params = getWindow().getAttributes(); in onCreate() 44 getWindow().setAttributes(params); in onCreate()
|
D | WindowCtsActivity.java | 41 getWindow().requestFeature(Window.FEATURE_LEFT_ICON); in onCreate() 42 getWindow().setDecorFitsSystemWindows(true); in onCreate() 78 View decorView = getWindow().getDecorView(); in getAppliedInsets()
|
/cts/tests/tests/transition/src/android/transition/cts/ |
D | TargetActivity.java | 107 getWindow().setEnterTransition(enterTransition); in onCreate() 108 getWindow().setReturnTransition(returnTransition); in onCreate() 109 getWindow().setSharedElementEnterTransition(sharedElementEnterTransition); in onCreate() 110 getWindow().setSharedElementReturnTransition(sharedElementReturnTransition); in onCreate() 114 getWindow().getDecorView().getViewTreeObserver().addOnPreDrawListener(() -> { in onCreate()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/os/ |
D | TimeoutResetActivity.java | 73 WindowManager.LayoutParams params = activity.getWindow().getAttributes(); in turnOffScreen() 82 activity.getWindow().setAttributes(params); in turnOffScreen() 106 WindowManager.LayoutParams params = getWindow().getAttributes(); in onCreate() 108 getWindow().setAttributes(params); in onCreate()
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/devicepolicy/provisioning/ |
D | StartProvisioningActivity.java | 43 getWindow().addFlags(WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD); in onCreate() 45 getWindow().addFlags(WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON); in onCreate() 46 getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON); in onCreate()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | DecodeAccuracyTestActivity.java | 34 getWindow().addFlags(WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON); in onResume() 35 getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON); in onResume()
|
/cts/tests/framework/base/windowmanager/overlayappbase/src/android/server/wm/overlay/ |
D | OverlayActivity.java | 44 Window window = getWindow(); in onCreate() 60 getWindow().getDecorView().post(() -> { in onResume() 62 bundle.putBinder(EXTRA_TOKEN, getWindow().getAttributes().token); in onResume()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/displaycutout/ |
D | DisplayCutoutTestActivity.java | 54 getWindow().requestFeature(Window.FEATURE_NO_TITLE); in onCreate() 55 WindowManager.LayoutParams lp = getWindow().getAttributes(); in onCreate() 58 getWindow().setAttributes(lp); in onCreate() 59 getWindow().getDecorView().getWindowInsetsController().hide(WindowInsets.Type.systemBars()); in onCreate() 60 getWindow().getDecorView().getWindowInsetsController().setSystemBarsBehavior( in onCreate() 76 getWindow().getDecorView().setOnApplyWindowInsetsListener((v, insets) -> { in onCreate()
|
/cts/tests/inputmethod/src/android/view/inputmethod/cts/util/ |
D | StateInitializeActivity.java | 48 getWindow().setSoftInputMode(SOFT_INPUT_STATE_ALWAYS_HIDDEN); in onCreate() 51 getWindow().setNavigationBarColor(Color.BLACK); in onCreate()
|
/cts/hostsidetests/sustainedperf/shadertoy_android/src/ |
D | GPUStressTestActivity.java | 33 getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON); in onCreate() 37 getWindow().setSustainedPerformanceMode(true); in onCreate()
|