Home
last modified time | relevance | path

Searched refs:setBackgroundColor (Results 1 – 25 of 121) sorted by relevance

12345

/aosp14/frameworks/base/packages/SettingsLib/AdaptiveIcon/src/com/android/settingslib/widget/
H A DAdaptiveIcon.java64 public void setBackgroundColor(Context context, Tile tile) { in setBackgroundColor() method in AdaptiveIcon
83 setBackgroundColor(bgColor); in setBackgroundColor()
90 setBackgroundColor(context.getColor(R.color.homepage_generic_icon_background)); in setBackgroundColor()
96 public void setBackgroundColor(int color) { in setBackgroundColor() method in AdaptiveIcon
123 icon.setBackgroundColor(mColor); in newDrawable()
/aosp14/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/widget/
H A DAdaptiveIconTest.java81 icon.setBackgroundColor(Color.BLUE); in setBackgroundColor_shouldUpdateColorFilter()
95 icon.setBackgroundColor(mContext, tile); in setBackgroundColor_externalTileWithBackgroundColorRawValue_shouldUpdateIcon()
106 icon.setBackgroundColor(mContext, tile); in setBackgroundColor_tileWithoutBackgroundColor_shouldSetDefaultBackgroundColor()
122 icon.setBackgroundColor(mContext, tile); in onBindTile_externalTileWithBackgroundColorHint_shouldUpdateIcon()
132 icon.setBackgroundColor(Color.YELLOW); in getConstantState_returnCorrectState()
/aosp14/frameworks/base/tests/SurfaceControlViewHostTest/src/com/android/test/viewembed/
H A DSurfaceControlViewHostTest.java57 v.setBackgroundColor(Color.BLUE); in addEmbeddedView()
60 v.setBackgroundColor(Color.RED); in addEmbeddedView()
64 v.setBackgroundColor(focused ? Color.MAGENTA : Color.DKGRAY)); in addEmbeddedView()
/aosp14/frameworks/base/tests/WindowAnimationJank/src/android/windowanimationjank/
H A DElementLayoutActivity.java50 mLayout.setBackgroundColor(BACKGROUND_COLOR); in onCreate()
55 mIndicator.setBackgroundColor(BACKGROUND_COLOR); in onCreate()
152 mIndicator.setBackgroundColor(background); in onPreDraw()
/aosp14/frameworks/base/core/tests/coretests/src/android/widget/gridview/
H A DGridSimple.java44 getGridView().setBackgroundColor(0xFFC0C0C0); in onCreate()
50 view.setBackgroundColor(0xFF000000); in createView()
/aosp14/frameworks/base/tests/JobSchedulerTestApp/src/com/android/demo/jobSchedulerApp/
H A DMainActivity.java105 mShowStartView.setBackgroundColor(defaultColor);
108 mShowStopView.setBackgroundColor(defaultColor);
180 mShowStartView.setBackgroundColor(startJobColor); in onReceivedStartJob()
187 mShowStopView.setBackgroundColor(stopJobColor); in onReceivedStopJob()
/aosp14/frameworks/base/tests/TaskOrganizerTest/src/com/android/test/taskembed/
H A DTaskOrganizerMultiWindowTest.java120 mTaskView1.setBackgroundColor(Color.DKGRAY); in openTaskView()
129 mTaskView2.setBackgroundColor(Color.LTGRAY); in openTaskView()
177 v.setBackgroundColor(Color.RED); in onCreate()
192 v.setBackgroundColor(Color.GREEN); in onCreate()
/aosp14/frameworks/base/core/tests/coretests/src/android/view/
H A DBigCache.java48 tiny.setBackgroundColor(0xFFFF0000); in onCreate()
53 large.setBackgroundColor(0xFF00FF00); in onCreate()
/aosp14/frameworks/base/samples/demo/haptic-assessment/src/com/example/android/hapticassessment/
H A DMainActivity.kt62 button.setBackgroundColor(Color.GREEN)
66 button.setBackgroundColor(Color.RED)
/aosp14/frameworks/base/tests/FlickerTests/test-apps/flickerapp/src/com/android/server/wm/flicker/testapp/
H A DDialogThemedActivity.java42 getWindow().getDecorView().setBackgroundColor(Color.TRANSPARENT); in onCreate()
49 layout.setBackgroundColor(Color.GREEN); in onCreate()
H A DActivityEmbeddingBaseActivity.java29 findViewById(R.id.root_activity_layout).setBackgroundColor(getBackgroundColor()); in onCreate()
H A DActivityEmbeddingThirdActivity.java32 findViewById(R.id.root_activity_layout).setBackgroundColor(Color.RED); in onCreate()
H A DActivityEmbeddingAlwaysExpandActivity.java30 findViewById(R.id.root_activity_layout).setBackgroundColor(Color.GREEN); in onCreate()
H A DMailContentFragment.java34 view.setBackgroundColor(Color.LTGRAY); in onViewCreated()
H A DImeStateInitializeActivity.java41 view.setBackgroundColor(Color.WHITE); in onCreate()
/aosp14/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
H A DSurfaceSyncGroupTests.java94 () -> mActivity.runOnUiThread(() -> backgroundView.setBackgroundColor(Color.RED))); in testOverlappingSyncsEnsureOrder_WhenTimeout()
143 () -> mActivity.runOnUiThread(() -> backgroundView.setBackgroundColor(Color.RED))); in testOverlappingSyncsEnsureOrder_WhileHoldingTransaction()
161 () -> backgroundView.setBackgroundColor(Color.BLUE))); in addSecondSyncGroup()
H A DSurfaceControlViewHostTests.java116 mView1.setBackgroundColor(Color.RED); in requestFocusWithMultipleWindows()
117 mView2.setBackgroundColor(Color.BLUE); in requestFocusWithMultipleWindows()
164 mSurfaceView.setBackgroundColor(Color.BLACK); in onCreate()
/aosp14/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DHardwareBufferRendererActivity.java49 mImageView.setBackgroundColor(Color.MAGENTA); in onCreate()
51 layout.setBackgroundColor(Color.CYAN); in onCreate()
H A DSurfaceViewAlphaActivity.java72 leftBlueView.setBackgroundColor(Color.BLUE); in overlapViews()
85 rightBlueView.setBackgroundColor(Color.BLUE); in overlapViews()
H A DNinePatchesActivity.java37 layout.setBackgroundColor(0xffffffff); in onCreate()
/aosp14/frameworks/base/tests/UsageReportingTest/src/com/android/tests/usagereporter/
H A DUsageReporterActivity.java246 parent.setBackgroundColor(getColor(R.color.active_color));
264 parent.setBackgroundColor(getColor(R.color.inactive_color));
307 convertView.setBackgroundColor(getColor(R.color.active_color)); in getView()
309 convertView.setBackgroundColor(getColor(R.color.inactive_color)); in getView()
/aosp14/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/windowdecor/
H A DWindowDecorationTests.java164 .setBackgroundColor(Color.YELLOW); in testLayoutResultCalculation_invisibleTask()
208 .setBackgroundColor(Color.YELLOW); in testLayoutResultCalculation_visibleFocusedTask()
288 .setBackgroundColor(Color.YELLOW); in testLayoutResultCalculation_visibleFocusedTaskToInvisible()
331 .setBackgroundColor(Color.BLACK); in testNotCrashWhenDisplayAppearsAfterTask()
387 .setBackgroundColor(Color.YELLOW); in testAddWindow()
457 .setBackgroundColor(Color.YELLOW); in testLayoutResultCalculation_fullWidthCaption()
498 .setBackgroundColor(Color.YELLOW); in testRelayout_applyTransactionInSyncWithDraw()
/aosp14/frameworks/base/tests/ActivityTests/src/com/google/android/test/activity/
H A DDisableScreenshotsActivity.java34 getWindow().getDecorView().setBackgroundColor(Color.RED); in onCreate()
/aosp14/frameworks/base/services/tests/PackageManagerServiceTests/host/test-apps/UsesStaticLibrary/src/com/android/server/pm/test/static_library/
H A DTestActivity.kt30 setBackgroundColor(Color.BLUE)
/aosp14/frameworks/base/core/tests/coretests/src/android/widget/listview/
H A DListSimple.java46 view.setBackgroundColor(0xFF191919); in createView()

12345