• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2017 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 package com.android.launcher3.uioverrides.dynamicui;
17 
18 /**
19  * A compatibility layer around platform implementation of WallpaperColors
20  */
21 public class WallpaperColorsCompat {
22 
23     public static final int HINT_SUPPORTS_DARK_TEXT = 0x1;
24     public static final int HINT_SUPPORTS_DARK_THEME = 0x2;
25 
26     private final int mPrimaryColor;
27     private final int mSecondaryColor;
28     private final int mTertiaryColor;
29     private final int mColorHints;
30 
WallpaperColorsCompat(int primaryColor, int secondaryColor, int tertiaryColor, int colorHints)31     public WallpaperColorsCompat(int primaryColor, int secondaryColor, int tertiaryColor,
32             int colorHints) {
33         mPrimaryColor = primaryColor;
34         mSecondaryColor = secondaryColor;
35         mTertiaryColor = tertiaryColor;
36         mColorHints = colorHints;
37     }
38 
getPrimaryColor()39     public int getPrimaryColor() {
40         return mPrimaryColor;
41     }
42 
getSecondaryColor()43     public int getSecondaryColor() {
44         return mSecondaryColor;
45     }
46 
getTertiaryColor()47     public int getTertiaryColor() {
48         return mTertiaryColor;
49     }
50 
getColorHints()51     public int getColorHints() {
52         return mColorHints;
53     }
54 
55 }
56