Searched refs:theme (Results 1 - 25 of 26) sorted by relevance

12

/packages/apps/Contacts/src/com/android/contacts/util/
H A DThemeUtils.java23 * Provides static functions to more easily resolve attributes of the current theme
27 * Resolves the given attribute id of the theme to a resource id
29 public static int getAttribute(Theme theme, int attrId) { argument
31 theme.resolveAttribute(attrId, outValue, true);
38 public static int getSelectableItemBackground(Theme theme) { argument
39 return getAttribute(theme, android.R.attr.selectableItemBackground);
45 public static int getActivatedBackground(Theme theme) { argument
46 return getAttribute(theme, android.R.attr.activatedBackgroundIndicator);
/packages/apps/Settings/src/com/android/settings/
H A DSetupWizardUtils.java28 static final String SYSTEM_PROP_SETUPWIZARD_THEME = "setupwizard.theme";
31 String theme = intent.getStringExtra(WizardManagerHelper.EXTRA_THEME);
32 if (theme == null) {
33 theme = SystemProperties.get(SYSTEM_PROP_SETUPWIZARD_THEME);
35 if (theme != null) {
36 switch (theme) {
H A DEncryptionInterstitial.java61 protected void onApplyThemeResource(Resources.Theme theme, int resid, boolean first) { argument
63 super.onApplyThemeResource(theme, resid, first);
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
H A DKeyboardTheme.java54 // Default theme for ICS, JB, and KLP.
57 // Default theme for LXX.
60 // This has never been selected as default theme.
106 for (final KeyboardTheme theme : availableThemeIds) {
107 if (theme.mThemeId == themeId) {
108 return theme;
122 final KeyboardTheme theme = searchKeyboardThemeById(themeId,
124 if (theme != null) {
125 return theme;
127 Log.w(TAG, "Unknown keyboard theme i
[all...]
/packages/services/Car/tests/InstrumentClusterRendererSample/src/com/android/car/cluster/sample/
H A DMediaAppInfo.java39 fetchAppColors(packageName, appInfo.theme, context);
54 Resources.Theme theme = packageContext.getTheme();
55 ta = theme.obtainStyledAttributes(new int[]{ android.R.attr.colorAccent });
/packages/apps/Settings/tests/robotests/src/com/android/settings/
H A DSetupWizardUtilsTest.java51 final String theme = "TEST_THEME";
52 fromIntent.putExtra(WizardManagerHelper.EXTRA_THEME, theme);
57 assertThat(theme).isEqualTo(toIntent.getStringExtra(WizardManagerHelper.EXTRA_THEME));
/packages/apps/Settings/tests/robotests/src/android/net/
H A DNetworkBadging.java46 int signalLevel, @NetworkBadging.Badging int badging, @Nullable Resources.Theme theme) {
45 getWifiIcon( int signalLevel, @NetworkBadging.Badging int badging, @Nullable Resources.Theme theme) argument
/packages/apps/TV/src/com/android/tv/dialog/
H A DFullscreenDialogFragment.java81 public FullscreenDialog(Context context, int theme) { argument
82 super(context, theme);
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/
H A DSettingsShadowResources.java84 public int getColor(@ColorRes int id, @Nullable Theme theme) throws NotFoundException { argument
88 return directlyOn(realResources, Resources.class).getColor(id, theme);
92 public ColorStateList getColorStateList(@ColorRes int id, @Nullable Theme theme) argument
97 return directlyOn(realResources, Resources.class).getColorStateList(id, theme);
101 public Drawable loadDrawable(TypedValue value, int id, Theme theme) argument
117 return super.loadDrawable(value, id, theme);
/packages/apps/Car/Stream/src/com/android/car/stream/media/
H A DMediaAppInfo.java36 /** Third-party defined application theme to use **/
38 = "com.google.android.gms.car.application.theme";
90 appTheme = appInfo.theme;
142 Resources.Theme theme = packageContext.getTheme();
143 ta = theme.obtainStyledAttributes(new int[]{
/packages/apps/Launcher3/src/com/android/launcher3/graphics/
H A DFixedScaleDrawable.java43 public void inflate(Resources r, XmlPullParser parser, AttributeSet attrs, Theme theme) { } argument
H A DShadowDrawable.java135 // Do not draw shadow on dark theme
157 Resources.Theme theme) throws XmlPullParserException, IOException {
158 super.inflate(r, parser, attrs, theme);
160 final TypedArray a = theme == null
162 : theme.obtainStyledAttributes(attrs, R.styleable.ShadowDrawable, 0, 0);
156 inflate(Resources r, XmlPullParser parser, AttributeSet attrs, Resources.Theme theme) argument
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/
H A DKeyboardThemeTests.java67 // Set valid theme id to preference.
77 // Simulate illegal format theme id in preference.
88 * Test keyboard theme preference on the same platform version and the same keyboard version.
138 * Test default keyboard theme based on the platform version.
178 // Forced to switch to LXX theme.
191 * Test keyboard theme preference while upgrading the keyboard that doesn't support LXX theme
192 * to the keyboard that supports LXX theme.
198 // Clean up new keyboard theme preference to simulate "upgrade to LXX keyboard".
201 final KeyboardTheme theme
[all...]
/packages/apps/Contacts/src/com/android/contacts/datepicker/
H A DDatePickerDialog.java93 // Don't pass a theme id. Instead use the default alert dialog theme.
100 * @param theme the theme to apply to this dialog
109 int theme,
115 super(context, theme);
108 DatePickerDialog(Context context, int theme, OnDateSetListener callBack, int year, int monthOfYear, int dayOfMonth, boolean yearOptional) argument
/packages/apps/PackageInstaller/src/android/support/wearable/view/
H A DWearableDialogHelper.java58 * @param theme the Theme used to properly obtain Drawables from resource IDs.
60 public WearableDialogHelper(@NonNull Resources resources, @NonNull Resources.Theme theme) { argument
62 mTheme = theme;
/packages/apps/Settings/src/com/android/settings/fingerprint/
H A DFingerprintEnrollBase.java62 protected void onApplyThemeResource(Resources.Theme theme, int resid, boolean first) { argument
64 super.onApplyThemeResource(theme, resid, first);
/packages/apps/Settings/src/com/android/settings/display/
H A DThemePreferenceController.java46 private static final String KEY_THEME = "theme";
93 String theme = getCurrentTheme();
97 if (TextUtils.equals(pkgs[i], theme)) {
108 pref.setValue(theme);
/packages/apps/Settings/src/com/android/settings/password/
H A DChooseLockSettingsHelper.java113 * get a dark theme, allow fingerprint authentication and it will forward
134 * get a dark theme, allow fingerprint authentication and it will forward
189 * get a dark theme, allow fingerprint authentication and it will forward
311 String theme = inIntent.getStringExtra(WizardManagerHelper.EXTRA_THEME);
312 if (theme != null) {
313 outIntent.putExtra(WizardManagerHelper.EXTRA_THEME, theme);
H A DSetupChooseLockGeneric.java44 * only overload base methods for minor theme and behavior differences specific to Setup Wizard.
63 protected void onApplyThemeResource(Resources.Theme theme, int resid, boolean first) { argument
65 super.onApplyThemeResource(theme, resid, first);
H A DChooseLockPattern.java86 protected void onApplyThemeResource(Theme theme, int resid, boolean first) { argument
88 super.onApplyThemeResource(theme, resid, first);
H A DChooseLockPassword.java95 protected void onApplyThemeResource(Theme theme, int resid, boolean first) { argument
97 super.onApplyThemeResource(theme, resid, first);
/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/utils/
H A DUtils.java114 Theme theme = context.getTheme();
116 theme.resolveAttribute(attr, typedValue, true);
/packages/apps/Settings/src/com/android/settings/notification/
H A DRedactionInterstitial.java59 protected void onApplyThemeResource(Resources.Theme theme, int resid, boolean first) { argument
61 super.onApplyThemeResource(theme, resid, first);
/packages/apps/Car/Media/src/com/android/car/media/
H A DMediaManager.java53 /** Third-party defined application theme to use **/
54 private static final String THEME_META_DATA_NAME = "com.google.android.gms.car.application.theme";
443 // Get the proper theme, check theme for service, then application.
452 appTheme = applicationInfo.theme;
457 Resources.Theme theme = packageContext.getTheme();
458 ta = theme.obtainStyledAttributes(new int[] {
/packages/apps/Dialer/
H A DAndroid.mk99 $(BASE_DIR)/dialer/theme/res \
160 $(BASE_DIR)/dialer/theme/AndroidManifest.xml \
242 --extra-packages com.android.dialer.theme \

Completed in 716 milliseconds

12