Home
last modified time | relevance | path

Searched refs:mContent (Results 1 – 7 of 7) 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
69 mContent = new TextView(this); in onCreate()
70 mContent.setTextSize(10); in onCreate()
71 mContent.setGravity(Gravity.CENTER); in onCreate()
72 mContent.setLayoutParams(new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, in onCreate()
76 mContent.setOnTouchListener(presenterDrawable); in onCreate()
77 mContent.setBackground(presenterDrawable); in onCreate()
78 mContent.setOnApplyWindowInsetsListener(this::onApplyWindowInsets); in onCreate()
79 mContent.getRootView().setOnApplyWindowInsetsListener(this::onApplyWindowInsets); in onCreate()
88 mContent.setOnClickListener(this); in onCreate()
[all …]
/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()
44 if (mContent != null) { in onDestroy()
/cts/tests/tests/view/src/android/view/cts/
DPixelCopyViewProducerActivity.java52 private View mContent; field in PixelCopyViewProducerActivity
69 mContent = new ColoredGrid(this); in onCreate()
70 setContentView(mContent); in onCreate()
73 mContent.getViewTreeObserver().addOnDrawListener(this); in onCreate()
74 mContent.setOnApplyWindowInsetsListener(this); in onCreate()
86 mContent.post(() -> { in onDraw()
90 mContent.getGlobalVisibleRect(mContentBounds, offset); in onDraw()
92 offset.x - mOutsets.left + mContent.getWidth(), in onDraw()
93 offset.y - mOutsets.top + mContent.getHeight()); in onDraw()
96 mContent.invalidate(); in onDraw()
[all …]
DPixelCopyWideGamutViewProducerActivity.java48 private View mContent; field in PixelCopyWideGamutViewProducerActivity
63 mContent = new WideGamutBitmapView(this); in onCreate()
64 setContentView(mContent); in onCreate()
67 mContent.getViewTreeObserver().addOnDrawListener(this); in onCreate()
79 mContent.post(() -> { in onDraw()
83 mContent.getGlobalVisibleRect(mContentBounds, offset); in onDraw()
85 offset.x + mContent.getWidth(), offset.y + mContent.getHeight()); in onDraw()
88 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/autofillservice/src/android/autofillservice/cts/unittests/
DDatasetTest.java63 private final ClipData mContent = new ClipData("sample label", new String[] {"image/png"}, field in DatasetTest
229 Dataset.Builder builder = new Dataset.Builder().setContent(mId, mContent); in testBuilder_setContent()
232 assertThat(dataset.getFieldContent()).isEqualTo(mContent); in testBuilder_setContent()
256 .setContent(mId, mContent) in testBuilder_setContentWithAuthentication()
260 assertThat(dataset.getFieldContent()).isEqualTo(mContent); in testBuilder_setContentWithAuthentication()
269 builder.setContent(mId, mContent); in testBuilder_settingBothContentAndValuesIsNotAllowed()
275 builder.setContent(mId, mContent); in testBuilder_settingBothContentAndValuesIsNotAllowed()
283 builder.setContent(mId, mContent); in testBuilder_settingContentForMultipleFieldsIsNotAllowed()
284 builder.setContent(mId2, mContent); in testBuilder_settingContentForMultipleFieldsIsNotAllowed()
316 assertThrows(IllegalStateException.class, () -> builder.setContent(mId, mContent)); in testNoMoreInteractionsAfterBuild()
[all …]