Home
last modified time | relevance | path

Searched refs:theme (Results 1 – 25 of 36) sorted by relevance

12

/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
DKeyboardTheme.java106 for (final KeyboardTheme theme : availableThemeIds) { in searchKeyboardThemeById()
107 if (theme.mThemeId == themeId) { in searchKeyboardThemeById()
108 return theme; in searchKeyboardThemeById()
122 final KeyboardTheme theme = searchKeyboardThemeById(themeId, in getDefaultKeyboardTheme() local
124 if (theme != null) { in getDefaultKeyboardTheme()
125 return theme; in getDefaultKeyboardTheme()
137 for (final KeyboardTheme theme : availableThemeArray) { in getDefaultKeyboardTheme()
138 if (sdkVersion >= theme.mMinApiVersion) { in getDefaultKeyboardTheme()
139 return theme; in getDefaultKeyboardTheme()
146 final KeyboardTheme theme = searchKeyboardThemeById(themeId, KEYBOARD_THEMES); in getKeyboardThemeName() local
[all …]
/packages/apps/Contacts/src/com/android/contacts/util/
DThemeUtils.java29 public static int getAttribute(Theme theme, int attrId) { in getAttribute() argument
31 theme.resolveAttribute(attrId, outValue, true); in getAttribute()
38 public static int getSelectableItemBackground(Theme theme) { in getSelectableItemBackground() argument
39 return getAttribute(theme, android.R.attr.selectableItemBackground); in getSelectableItemBackground()
45 public static int getActivatedBackground(Theme theme) { in getActivatedBackground() argument
46 return getAttribute(theme, android.R.attr.activatedBackgroundIndicator); in getActivatedBackground()
/packages/apps/Settings/src/com/android/settings/display/
DThemePreferenceController.java92 String theme = getCurrentTheme(); in updateState() local
93 if (TextUtils.isEmpty(theme)) { in updateState()
94 theme = mContext.getString(R.string.default_theme); in updateState()
95 pref.setSummary(theme); in updateState()
97 pref.setSummary(theme); in updateState()
98 pref.setValue(theme); in updateState()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/
DKeyboardThemeTests.java201 final KeyboardTheme theme = KeyboardTheme.getKeyboardTheme( in assertUpgradeKeyboardToLxxOn() local
204 assertNotNull(theme); in assertUpgradeKeyboardToLxxOn()
205 assertEquals(expectedThemeId, theme.mThemeId); in assertUpgradeKeyboardToLxxOn()
359 final KeyboardTheme theme = array[index]; in assertSortedKeyboardThemeArray() local
362 + theme.mThemeName + ": minApiVersion=" + theme.mMinApiVersion, in assertSortedKeyboardThemeArray()
363 theme.mMinApiVersion >= nextTheme.mMinApiVersion); in assertSortedKeyboardThemeArray()
/packages/apps/Contacts/src/com/android/contacts/datepicker/
DDatePickerDialog.java123 int theme, in DatePickerDialog() argument
128 this(context, theme, callBack, year, monthOfYear, dayOfMonth, false); in DatePickerDialog()
142 int theme, in DatePickerDialog() argument
148 super(context, theme); in DatePickerDialog()
/packages/apps/Settings/tests/robotests/src/com/android/settings/
DSetupWizardUtilsTest.java38 final String theme = "TEST_THEME"; in testCopySetupExtras() local
39 fromIntent.putExtra(WizardManagerHelper.EXTRA_THEME, theme); in testCopySetupExtras()
44 assertThat(theme).isEqualTo(toIntent.getStringExtra(WizardManagerHelper.EXTRA_THEME)); in testCopySetupExtras()
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/
DSettingsShadowResources.java83 public int getColor(@ColorRes int id, @Nullable Theme theme) throws NotFoundException { in getColor() argument
87 return directlyOn(realResources, Resources.class).getColor(id, theme); in getColor()
91 public Drawable loadDrawable(TypedValue value, int id, Theme theme) in loadDrawable() argument
107 return super.loadDrawable(value, id, theme); in loadDrawable()
/packages/services/Car/tests/InstrumentClusterRendererSample/src/com/android/car/cluster/sample/
DMediaAppInfo.java39 fetchAppColors(packageName, appInfo.theme, context); in MediaAppInfo()
54 Resources.Theme theme = packageContext.getTheme(); in fetchAppColors() local
55 ta = theme.obtainStyledAttributes(new int[]{ android.R.attr.colorAccent }); in fetchAppColors()
/packages/apps/Car/Stream/src/com/android/car/stream/media/
DMediaAppInfo.java90 appTheme = appInfo.theme; in MediaAppInfo()
142 Resources.Theme theme = packageContext.getTheme(); in fetchAppColors() local
143 ta = theme.obtainStyledAttributes(new int[]{ in fetchAppColors()
/packages/apps/Settings/src/com/android/settings/fingerprint/
DSetupFingerprintEnrollEnrolling.java35 protected void onApplyThemeResource(Resources.Theme theme, int resid, boolean first) { in onApplyThemeResource() argument
37 super.onApplyThemeResource(theme, resid, first); in onApplyThemeResource()
DSetupFingerprintEnrollFindSensor.java47 protected void onApplyThemeResource(Resources.Theme theme, int resid, boolean first) { in onApplyThemeResource() argument
49 super.onApplyThemeResource(theme, resid, first); in onApplyThemeResource()
DSetupFingerprintEnrollFinish.java44 protected void onApplyThemeResource(Resources.Theme theme, int resid, boolean first) { in onApplyThemeResource() argument
46 super.onApplyThemeResource(theme, resid, first); in onApplyThemeResource()
DSetupFingerprintEnrollIntroduction.java49 protected void onApplyThemeResource(Resources.Theme theme, int resid, boolean first) { in onApplyThemeResource() argument
51 super.onApplyThemeResource(theme, resid, first); in onApplyThemeResource()
/packages/apps/Launcher3/src/com/android/launcher3/util/
DThemes.java34 public static int getColorPrimary(Context context, int theme) { in getColorPrimary() argument
35 return getAttrColor(new ContextThemeWrapper(context, theme), android.R.attr.colorPrimary); in getColorPrimary()
/packages/apps/Settings/src/com/android/settings/
DSetupRedactionInterstitial.java64 protected void onApplyThemeResource(Resources.Theme theme, int resid, boolean first) { in onApplyThemeResource() argument
66 super.onApplyThemeResource(theme, resid, first); in onApplyThemeResource()
DSetupEncryptionInterstitial.java58 protected void onApplyThemeResource(Resources.Theme theme, int resid, boolean first) { in onApplyThemeResource() argument
60 super.onApplyThemeResource(theme, resid, first); in onApplyThemeResource()
DSetupChooseLockPattern.java67 protected void onApplyThemeResource(Resources.Theme theme, int resid, boolean first) { in onApplyThemeResource() argument
69 super.onApplyThemeResource(theme, resid, first); in onApplyThemeResource()
DSetupChooseLockPassword.java81 protected void onApplyThemeResource(Resources.Theme theme, int resid, boolean first) { in onApplyThemeResource() argument
83 super.onApplyThemeResource(theme, resid, first); in onApplyThemeResource()
DSetupChooseLockGeneric.java61 protected void onApplyThemeResource(Resources.Theme theme, int resid, boolean first) { in onApplyThemeResource() argument
63 super.onApplyThemeResource(theme, resid, first); in onApplyThemeResource()
/packages/services/NetworkRecommendation/src/com/android/networkrecommendation/util/
DRoboCompatUtil.java86 public Drawable getWifiIcon(int signalLevel, int badging, Theme theme) { in getWifiIcon() argument
87 return NetworkBadging.getWifiIcon(signalLevel, badging, theme); in getWifiIcon()
/packages/apps/TV/src/com/android/tv/dialog/
DSafeDismissDialogFragment.java97 public TvDialog(Context context, int theme) { in TvDialog() argument
98 super(context, theme); in TvDialog()
DFullscreenDialogFragment.java81 public FullscreenDialog(Context context, int theme) { in FullscreenDialog() argument
82 super(context, theme); in FullscreenDialog()
/packages/apps/PackageInstaller/src/android/support/wearable/view/
DWearableDialogHelper.java60 public WearableDialogHelper(@NonNull Resources resources, @NonNull Resources.Theme theme) { in WearableDialogHelper() argument
62 mTheme = theme; in WearableDialogHelper()
/packages/apps/Car/Media/src/com/android/car/media/
DMediaManager.java452 appTheme = applicationInfo.theme; in updateClientPackageAttributes()
457 Resources.Theme theme = packageContext.getTheme(); in updateClientPackageAttributes() local
458 ta = theme.obtainStyledAttributes(new int[] { in updateClientPackageAttributes()
/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/utils/
DUtils.java114 Theme theme = context.getTheme(); in applyTint() local
116 theme.resolveAttribute(attr, typedValue, true); in applyTint()

12