Home
last modified time | relevance | path

Searched refs:mContent (Results 1 – 6 of 6) sorted by relevance

/cts/tests/tests/systemui/src/android/systemui/cts/
DLightBarBaseActivity.java28 private View mContent; field in LightBarBaseActivity
33 mContent = new View(this); in onCreate()
34 mContent.setLayoutParams(new LayoutParams(LayoutParams.MATCH_PARENT, in onCreate()
36 setContentView(mContent); in onCreate()
45 return mContent.getWindowSystemUiVisibility(); in getSystemUiVisibility()
49 return mContent.getLocationOnScreen()[1]; in getTop()
53 return mContent.getLocationOnScreen()[1] + mContent.getHeight(); in getBottom()
57 return mContent.getWidth(); in getWidth()
DWindowInsetsActivity.java45 private TextView mContent; field in WindowInsetsActivity
68 mContent = new TextView(this); in onCreate()
69 mContent.setTextSize(10); in onCreate()
70 mContent.setGravity(Gravity.CENTER); in onCreate()
71 mContent.setLayoutParams(new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, in onCreate()
75 mContent.setOnTouchListener(presenterDrawable); in onCreate()
76 mContent.setBackground(presenterDrawable); in onCreate()
77 mContent.setOnApplyWindowInsetsListener(this::onApplyWindowInsets); in onCreate()
78 mContent.getRootView().setOnApplyWindowInsetsListener(this::onApplyWindowInsets); in onCreate()
87 mContent.setOnClickListener(this); in onCreate()
[all …]
/cts/tests/tests/view/src/android/view/cts/
DPixelCopyViewProducerActivity.java48 private View mContent; field in PixelCopyViewProducerActivity
66 mContent = new ColoredGrid(this); in onCreate()
67 setContentView(mContent); in onCreate()
70 mContent.getViewTreeObserver().addOnDrawListener(this); in onCreate()
71 mContent.setOnApplyWindowInsetsListener(this); in onCreate()
80 boolean contentPortrait = mContent.getHeight() > mContent.getWidth(); in onDraw()
84 mContent.post(() -> { in onDraw()
88 mContent.getGlobalVisibleRect(mContentBounds, offset); in onDraw()
90 offset.x - mOutsets.left + mContent.getWidth(), in onDraw()
91 offset.y - mOutsets.top + mContent.getHeight()); in onDraw()
[all …]
DPixelCopyWideGamutViewProducerActivity.java48 private View mContent; field in PixelCopyWideGamutViewProducerActivity
65 mContent = new WideGamutBitmapView(this); in onCreate()
66 setContentView(mContent); in onCreate()
69 mContent.getViewTreeObserver().addOnDrawListener(this); in onCreate()
78 boolean contentPortrait = mContent.getHeight() > mContent.getWidth(); in onDraw()
82 mContent.post(() -> { in onDraw()
86 mContent.getGlobalVisibleRect(mContentBounds, offset); in onDraw()
88 offset.x + mContent.getWidth(), offset.y + mContent.getHeight()); in onDraw()
91 mContent.invalidate(); in onDraw()
/cts/tests/tests/transition/src/android/transition/cts/
DTransitionActivity.java27 private View mContent; field in TransitionActivity
33 mContent = findViewById(R.id.container); in onCreate()
34 mContent.setOnApplyWindowInsetsListener(this); in onCreate()
40 FrameLayout.LayoutParams params = (FrameLayout.LayoutParams) mContent.getLayoutParams(); in onApplyWindowInsets()
43 mContent.setLayoutParams(params); in onApplyWindowInsets()
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DAlertWindowsAppOpsTestsActivity.java26 private View mContent; field in AlertWindowsAppOpsTestsActivity
33 mContent = new View(this); in showSystemAlertWindow()
34 getWindowManager().addView(mContent, params); in showSystemAlertWindow()
38 getWindowManager().removeView(mContent); in hideSystemAlertWindow()