Home
last modified time | relevance | path

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

1234567

/frameworks/base/packages/SettingsLib/AdaptiveIcon/src/com/android/settingslib/widget/
DAdaptiveIcon.java65 public void setBackgroundColor(Context context, Tile tile) { in setBackgroundColor() method in AdaptiveIcon
84 setBackgroundColor(bgColor); in setBackgroundColor()
91 setBackgroundColor(context.getColor(R.color.homepage_generic_icon_background)); in setBackgroundColor()
97 public void setBackgroundColor(int color) { in setBackgroundColor() method in AdaptiveIcon
124 icon.setBackgroundColor(mColor); in newDrawable()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/widget/
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()
131 icon.setBackgroundColor(Color.YELLOW); in getConstantState_returnCorrectState()
/frameworks/base/tests/SurfaceControlViewHostTest/src/com/android/test/viewembed/
DSurfaceControlViewHostTest.java58 v.setBackgroundColor(Color.BLUE); in addEmbeddedView()
61 v.setBackgroundColor(Color.RED); in addEmbeddedView()
65 v.setBackgroundColor(focused ? Color.MAGENTA : Color.DKGRAY)); in addEmbeddedView()
/frameworks/base/core/tests/coretests/src/android/widget/gridview/
DGridSimple.java44 getGridView().setBackgroundColor(0xFFC0C0C0); in onCreate()
50 view.setBackgroundColor(0xFF000000); in createView()
/frameworks/base/tests/WindowAnimationJank/src/android/windowanimationjank/
DElementLayoutActivity.java50 mLayout.setBackgroundColor(BACKGROUND_COLOR); in onCreate()
55 mIndicator.setBackgroundColor(BACKGROUND_COLOR); in onCreate()
152 mIndicator.setBackgroundColor(background); in onPreDraw()
/frameworks/base/tests/JobSchedulerTestApp/src/com/android/demo/jobSchedulerApp/
DMainActivity.java105 mShowStartView.setBackgroundColor(defaultColor);
108 mShowStopView.setBackgroundColor(defaultColor);
180 mShowStartView.setBackgroundColor(startJobColor); in onReceivedStartJob()
187 mShowStopView.setBackgroundColor(stopJobColor); in onReceivedStopJob()
/frameworks/base/tests/TaskOrganizerTest/src/com/android/test/taskembed/
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()
/frameworks/base/core/java/com/android/internal/widget/
DNotificationRowIconView.java187 super.setBackgroundColor(mOriginalBackgroundColor);
198 public void setBackgroundColor(int color) {
201 super.setBackgroundColor(color);
/frameworks/base/services/core/java/com/android/server/input/debug/
DTouchpadDebugView.java124 setBackgroundColor(Color.TRANSPARENT); in init()
128 mTouchpadSelectionView.setBackgroundColor(BUTTON_RELEASED_BACKGROUND_COLOR); in init()
267 mGestureInfoView.setBackgroundColor(Color.WHITE); in setLightModeTheme()
273 mGestureInfoView.setBackgroundColor(Color.BLACK); in setNightModeTheme()
360 mTouchpadSelectionView.setBackgroundColor(BUTTON_PRESSED_BACKGROUND_COLOR); in onTouchpadButtonPress()
365 mTouchpadSelectionView.setBackgroundColor(BUTTON_RELEASED_BACKGROUND_COLOR); in onTouchpadButtonRelease()
DTouchpadSelectionView.java51 setBackgroundColor(Color.TRANSPARENT); in init()
67 arrowButton.setBackgroundColor(Color.TRANSPARENT); in init()
/frameworks/base/samples/demo/haptic-assessment/src/com/example/android/hapticassessment/
DMainActivity.kt62 button.setBackgroundColor(Color.GREEN) in <lambda>()
66 button.setBackgroundColor(Color.RED) in <lambda>()
/frameworks/base/core/tests/coretests/src/android/view/
DBigCache.java48 tiny.setBackgroundColor(0xFFFF0000); in onCreate()
53 large.setBackgroundColor(0xFF00FF00); in onCreate()
/frameworks/base/tests/MultiDeviceInput/src/test/multideviceinput/
DMainActivity.kt72 left.setBackgroundColor(Color.LTGRAY) in onResume()
79 right.setBackgroundColor(Color.LTGRAY) in onResume()
/frameworks/base/tests/FlickerTests/test-apps/flickerapp/src/com/android/server/wm/flicker/testapp/
DDialogThemedActivity.java42 getWindow().getDecorView().setBackgroundColor(Color.TRANSPARENT); in onCreate()
49 layout.setBackgroundColor(Color.GREEN); in onCreate()
DActivityEmbeddingBaseActivity.java29 findViewById(R.id.root_activity_layout).setBackgroundColor(getBackgroundColor()); in onCreate()
DActivityEmbeddingAlwaysExpandActivity.java30 findViewById(R.id.root_activity_layout).setBackgroundColor(Color.GREEN); in onCreate()
DActivityEmbeddingThirdActivity.java32 findViewById(R.id.root_activity_layout).setBackgroundColor(Color.RED); in onCreate()
DMailContentFragment.java34 view.setBackgroundColor(Color.LTGRAY); in onViewCreated()
DImeStateInitializeActivity.java41 view.setBackgroundColor(Color.WHITE); in onCreate()
/frameworks/base/tests/graphics/HwAccelerationTest/src/com/android/test/hwui/
DHardwareBufferRendererActivity.java49 mImageView.setBackgroundColor(Color.MAGENTA); in onCreate()
51 layout.setBackgroundColor(Color.CYAN); in onCreate()
/frameworks/base/tests/UsageReportingTest/src/com/android/tests/usagereporter/
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()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/communal/util/
DFakeCommunalColors.kt30 fun setBackgroundColor(color: Color) { in setBackgroundColor() method in com.android.systemui.communal.util.FakeCommunalColors
/frameworks/base/tests/ActivityTests/src/com/google/android/test/activity/
DDisableScreenshotsActivity.java34 getWindow().getDecorView().setBackgroundColor(Color.RED); in onCreate()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DSurfaceSyncGroupTests.java108 () -> mActivity.runOnUiThread(() -> backgroundView.setBackgroundColor(Color.RED))); in testOverlappingSyncsEnsureOrder_WhenTimeout()
157 () -> mActivity.runOnUiThread(() -> backgroundView.setBackgroundColor(Color.RED))); in testOverlappingSyncsEnsureOrder_WhileHoldingTransaction()
175 () -> backgroundView.setBackgroundColor(Color.BLUE))); in addSecondSyncGroup()
/frameworks/base/services/tests/PackageManagerServiceTests/host/test-apps/UsesStaticLibrary/src/com/android/server/pm/test/static_library/
DTestActivity.kt30 setBackgroundColor(Color.BLUE) in onCreate()

1234567