Home
last modified time | relevance | path

Searched refs:getWindow (Results 1 – 25 of 332) sorted by relevance

12345678910>>...14

/cts/apps/CtsVerifier/src/com/android/cts/verifier/projection/
DProjectedPresentation.java35 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/framework/base/windowmanager/util/src/android/server/wm/
DMetricsActivity.java48 getWindow().getDecorView().addOnLayoutChangeListener(mListener); in onCreate()
51 final WindowManager.LayoutParams attrs = getWindow().getAttributes(); in onCreate()
53 getWindow().setAttributes(attrs); in onCreate()
59 getWindow().getDecorView().removeOnLayoutChangeListener(mListener); in onDestroy()
/cts/tests/tests/app.usage/src/android/app/usage/cts/
DActivityTransitionActivity.java112 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/
DLightBarActivity.java37 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()
DWindowInsetsActivity.java65 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/surfacecontrol/src/android/view/surfacecontrol/cts/
DTestActivity.java47 WindowInsetsController windowInsetsController = getWindow().getInsetsController(); in onCreate()
49 WindowManager.LayoutParams params = getWindow().getAttributes(); in onCreate()
52 getWindow().setAttributes(params); in onCreate()
53 getWindow().setDecorFitsSystemWindows(false); in onCreate()
/cts/tests/framework/base/windowmanager/src/android/server/wm/animations/
DMoveAnimationTests.java96 getWindow() in setContentSquare()
100 getWindow().setContentView(mContentView, new ViewGroup.LayoutParams(size, size)); in setContentSquare()
102 WindowManager.LayoutParams attrs = getWindow().getAttributes(); in setContentSquare()
104 getWindow().setAttributes(attrs); in setContentSquare()
112 final Window window = activity.getWindow(); in testCanPlayMoveAnimationByDefault()
124 final Window window = activity.getWindow(); in testCanOverrideTheme()
146 final Window window = activity.getWindow(); in testThemeCanDisable()
/cts/tests/tests/widget/src/android/widget/cts/
DListPopupWindowTest.java176 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mActivity.getWindow().getDecorView(), in testAccessBackground()
190 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mActivity.getWindow().getDecorView(), in testAccessAnimationStyle()
205 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mActivity.getWindow().getDecorView(), in testAccessHeight()
248 mActivity.getWindow().getDecorView(), mPopupWindowBuilder::show); in testAccessWidth()
282 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mActivity.getWindow().getDecorView(), in verifyAnchoring()
313 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mActivity.getWindow().getDecorView(), in testAnchoring()
326 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mActivity.getWindow().getDecorView(), in testAnchoringWithHorizontalOffset()
339 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mActivity.getWindow().getDecorView(), in testAnchoringWithVerticalOffset()
352 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mActivity.getWindow().getDecorView(), in testAnchoringWithRightGravity()
365 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mActivity.getWindow().getDecorView(), in testAnchoringWithEndGravity()
[all …]
/cts/tests/framework/base/windowmanager/app/src/android/server/wm/app/
DTurnScreenOnActivity.java28 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()
DTurnScreenOnWithRelayoutActivity.java27 getWindow().addFlags(WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED in onStart()
37 getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN); in onStop()
/cts/tests/tests/transition/src/android/transition/cts/
DTargetActivity.java107 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/tests/tests/view/src/android/view/cts/
DFrameMetricsListenerTest.java96 final Window myWindow = mActivity.getWindow(); in testReceiveData()
104 mActivityRule.runOnUiThread(() -> mActivity.getWindow(). in testReceiveData()
112 mActivity.getWindow().removeOnFrameMetricsAvailableListener(listener); in testReceiveData()
130 final Window myWindow = mActivity.getWindow(); in testMultipleListeners()
148 mActivity.getWindow().addOnFrameMetricsAvailableListener( in testMultipleListeners()
150 mActivity.getWindow().addOnFrameMetricsAvailableListener( in testMultipleListeners()
162 mActivity.getWindow().removeOnFrameMetricsAvailableListener(frameMetricsListener1); in testMultipleListeners()
163 mActivity.getWindow().removeOnFrameMetricsAvailableListener(frameMetricsListener2); in testMultipleListeners()
183 mActivityRule.runOnUiThread(() -> mActivity.getWindow(). in testDropCount()
194 mActivityRule.runOnUiThread(() -> mActivity.getWindow(). in testDropCount()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/os/
DTimeoutResetActivity.java73 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/tests/framework/base/windowmanager/src/android/server/wm/insets/
DWindowInsetsControllerTests.java142 final View rootView = activity.getWindow().getDecorView(); in testHide()
162 final View rootView = activity.getWindow().getDecorView(); in testShow()
211 final View rootView = activity.getWindow().getDecorView(); in testTopAppHidesStatusBarByMethod()
222 final View rootView = activity.getWindow().getDecorView(); in testTopAppHidesStatusBarByWindowFlag()
225 () -> activity.getWindow().addFlags(FLAG_FULLSCREEN)); in testTopAppHidesStatusBarByWindowFlag()
233 final View rootView = activity.getWindow().getDecorView(); in testTopAppHidesStatusBarBySystemUiFlag()
249 final View rootView = activity.getWindow().getDecorView(); in testImeShowAndHide()
272 final View rootView = activity.getWindow().getDecorView(); in testImeForceShowingNavigationBar()
313 final View rootView = activity.getWindow().getDecorView(); in testSetSystemBarsAppearance()
351 final View rootView = activity.getWindow().getDecorView(); in testSetSystemBarsBehavior_default()
[all …]
DForceRelayoutTestBase.java67 activity.getWindow().setSoftInputMode(softInputMode); in testRelayoutWhenInsetsChange()
68 activity.getWindow().getInsetsController().hide(systemBars()); in testRelayoutWhenInsetsChange()
94 getWindow().requestFeature(Window.FEATURE_NO_TITLE); in onCreate()
122 getWindow().setDecorFitsSystemWindows(false); in onCreate()
123 getWindow().getAttributes().layoutInDisplayCutoutMode = in onCreate()
/cts/tests/framework/base/windowmanager/src/android/server/wm/activity/
DCloseOnOutsideTestActivity.java42 View contentView = getWindow().getDecorView().findViewById(android.R.id.content); in setupWindowSize()
49 LayoutParams params = getWindow().getAttributes(); in setupWindowSize()
55 getWindow().setAttributes(params); in setupWindowSize()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/audiolib/
DDisplayUtils.java35 activity.getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON); in setKeepScreenOn()
37 activity.getWindow().clearFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON); in setKeepScreenOn()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/devicepolicy/provisioning/
DStartProvisioningActivity.java43 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/decoder/src/android/media/decoder/cts/
DDecodeAccuracyTestActivity.java32 getWindow().addFlags(WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON); in onResume()
33 getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON); in onResume()
/cts/tests/framework/base/windowmanager/src/android/server/wm/window/
DSnapshotTaskTests.java91 final View decor = mActivity.getWindow().getDecorView(); in testSetDisablePreviewScreenshots()
164 getWindow().getDecorView().getRootSurfaceControl().applyTransactionOnDraw(t); in onAttachedToWindow()
176 WindowInsetsController windowInsetsController = getWindow().getInsetsController(); in onCreate()
179 WindowManager.LayoutParams params = getWindow().getAttributes(); in onCreate()
181 getWindow().setAttributes(params); in onCreate()
182 getWindow().setDecorFitsSystemWindows(false); in onCreate()
/cts/tests/framework/base/windowmanager/overlayappbase/src/android/server/wm/overlay/
DOverlayActivity.java44 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/
DDisplayCutoutTestActivity.java55 getWindow().requestFeature(Window.FEATURE_NO_TITLE); in onCreate()
56 WindowManager.LayoutParams lp = getWindow().getAttributes(); in onCreate()
59 getWindow().setAttributes(lp); in onCreate()
60 getWindow().getDecorView().getWindowInsetsController().hide(WindowInsets.Type.systemBars()); in onCreate()
61 getWindow().getDecorView().getWindowInsetsController().setSystemBarsBehavior( in onCreate()
78 getWindow().getDecorView().setOnApplyWindowInsetsListener((v, insets) -> { in onCreate()
/cts/tests/tests/gameservice/CtsGameServiceTakeScreenshotVerifier/src/android/service/games/cts/takescreenshotverifier/
DMainActivity.java36 getWindow() in onCreate()
45 getWindow().getAttributes().layoutInDisplayCutoutMode = in onCreate()
/cts/tests/tests/display/src/android/display/cts/
DHdrConversionTestActivity.java57 WindowManager.LayoutParams params = getWindow().getAttributes(); in updateLayoutParams()
59 getWindow().setAttributes(params); in updateLayoutParams()
/cts/hostsidetests/sustainedperf/shadertoy_android/src/
DGPUStressTestActivity.java33 getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON); in onCreate()
37 getWindow().setSustainedPerformanceMode(true); in onCreate()

12345678910>>...14