/aosp12/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
H A D | KeyStylesSet.java | 19 import android.content.res.TypedArray; 62 public String[] getStringArray(final TypedArray a, final int index) { in getStringArray() 68 public String getString(final TypedArray a, final int index) { in getString() 78 public int getFlags(final TypedArray a, final int index) { in getFlags() 113 public String getString(final TypedArray a, final int index) { in getString() 139 public int getFlags(final TypedArray a, final int index) { in getFlags() 147 public void readKeyAttributes(final TypedArray keyAttr) { in readKeyAttributes() 161 private void readString(final TypedArray a, final int index) { in readString() 167 private void readInt(final TypedArray a, final int index) { in readInt() 173 private void readFlags(final TypedArray a, final int index) { in readFlags() [all …]
|
H A D | KeyStyle.java | 19 import android.content.res.TypedArray; 27 public abstract @Nullable String[] getStringArray(TypedArray a, int index); in getStringArray() 28 public abstract @Nullable String getString(TypedArray a, int index); in getString() 29 public abstract int getInt(TypedArray a, int index, int defaultValue); in getInt() 30 public abstract int getFlags(TypedArray a, int index); in getFlags() 37 protected String parseString(final TypedArray a, final int index) { in parseString() 45 protected String[] parseStringArray(final TypedArray a, final int index) { in parseStringArray()
|
H A D | KeyboardRow.java | 20 import android.content.res.TypedArray; 64 public RowAttributes(final TypedArray keyAttr, final float defaultKeyWidth, in RowAttributes() 81 public RowAttributes(final TypedArray keyAttr, final RowAttributes defaultRowAttr, in RowAttributes() 99 final TypedArray keyboardAttr = res.obtainAttributes(Xml.asAttributeSet(parser), in KeyboardRow() 104 final TypedArray keyAttr = res.obtainAttributes(Xml.asAttributeSet(parser), in KeyboardRow() 118 public void pushRowAttributes(final TypedArray keyAttr) { in pushRowAttributes() 152 public float getKeyX(final TypedArray keyAttr) { in getKeyX() 170 public float getKeyWidth(final TypedArray keyAttr, final float keyXPos) { in getKeyWidth()
|
H A D | KeyboardBuilder.java | 21 import android.content.res.TypedArray; 239 final TypedArray keyboardAttr = mContext.obtainStyledAttributes( in parseKeyboardAttributes() 401 final TypedArray gridRowAttr = mResources.obtainAttributes( in parseGridRows() 477 final TypedArray keyAttr = mResources.obtainAttributes( in parseKey() 501 final TypedArray keyAttr = mResources.obtainAttributes( in parseSpacer() 529 final TypedArray keyboardAttr = mResources.obtainAttributes( in parseIncludeInternal() 734 private static boolean matchLocaleCodes(TypedArray caseAttr, final Locale locale) { in matchLocaleCodes() 738 private static boolean matchLanguageCodes(TypedArray caseAttr, Locale locale) { in matchLanguageCodes() 742 private static boolean matchCountryCodes(TypedArray caseAttr, Locale locale) { in matchCountryCodes() 782 private static boolean isIconDefined(final TypedArray a, final int index, in isIconDefined() [all …]
|
/aosp12/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/util/ |
H A D | Themes.java | 20 import android.content.res.TypedArray; 37 TypedArray ta = context.obtainStyledAttributes(styleResId, new int[]{attr}); in getAttrColor() 59 TypedArray ta = context.obtainStyledAttributes(styleResId, new int[]{attr}); in getAttrColorStateList() 74 TypedArray ta = context.obtainStyledAttributes(styleResId, new int[]{attr}); in getAttrBoolean() 87 TypedArray ta = context.obtainStyledAttributes(styleResId, new int[]{attr}); in getAttrDrawable() 100 TypedArray ta = context.obtainStyledAttributes(styleResId, new int[]{attr}); in getAttrInteger() 116 TypedArray ta = context.obtainStyledAttributes(styleResId, new int[]{attr}); in getAttrResourceId() 133 TypedArray ta = context.obtainStyledAttributes(styleResId, new int[]{attr}); in getAttrDimensionPixelSize()
|
/aosp12/packages/apps/Settings/src/com/android/settings/core/ |
H A D | PreferenceXmlParserUtils.java | 23 import android.content.res.TypedArray; 212 TypedArray preferenceScreenAttributes = null; in extractMetadata() 308 private static String getKey(TypedArray styledAttributes) { in getKey() 312 private static String getTitle(TypedArray styledAttributes) { in getTitle() 316 private static String getSummary(TypedArray styledAttributes) { in getSummary() 320 private static String getController(TypedArray styledAttributes) { in getController() 328 private static int getIcon(TypedArray styledAttributes) { in getIcon() 332 private static boolean isSearchable(TypedArray styledAttributes) { in isSearchable() 336 private static String getKeywords(TypedArray styledAttributes) { in getKeywords() 340 private static boolean isAppended(TypedArray styledAttributes) { in isAppended() [all …]
|
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/display/whitebalance/ |
H A D | AmbientLuxTest.java | 30 import android.content.res.TypedArray; 72 @Mock private TypedArray mBrightnesses; 73 @Mock private TypedArray mBiases; 74 @Mock private TypedArray mHighLightBrightnesses; 75 @Mock private TypedArray mHighLightBiases; 76 @Mock private TypedArray mAmbientColorTemperatures; 77 @Mock private TypedArray mDisplayColorTemperatures; 403 TypedArray base = mResourcesSpy.obtainTypedArray( in mockThrottler() 405 TypedArray inc = mResourcesSpy.obtainTypedArray( in mockThrottler() 407 TypedArray dec = mResourcesSpy.obtainTypedArray( in mockThrottler() [all …]
|
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/util/ |
H A D | Themes.java | 25 import android.content.res.TypedArray; 82 TypedArray ta = context.obtainStyledAttributes(android.R.style.TextAppearance_DeviceDefault, in getDefaultBodyFont() 95 TypedArray ta = context.obtainStyledAttributes(new int[]{attr}); in getDimension() 120 TypedArray ta = context.obtainStyledAttributes(new int[]{attr}); in getAttrBoolean() 127 TypedArray ta = context.obtainStyledAttributes(new int[]{attr}); in getAttrDrawable() 134 TypedArray ta = context.obtainStyledAttributes(new int[]{attr}); in getAttrInteger() 191 TypedArray ta = context.obtainStyledAttributes(attrSet, attrNames); in createValueMap()
|
/aosp12/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/util/ |
H A D | FallbackThemeWrapperTest.java | 22 import android.content.res.TypedArray; 47 final TypedArray a = in testThemeValueOnlyInBase() 55 final TypedArray a = in testThemeValueOnlyInFallback() 63 final TypedArray a = mThemedContext.obtainStyledAttributes(new int[] {android.R.attr.theme}); in testThemeValueInBoth()
|
/aosp12/packages/apps/Camera2/src/com/android/camera/widget/ |
H A D | IndicatorIconController.java | 20 import android.content.res.TypedArray; 56 private TypedArray mFlashIndicatorPhotoIcons; 57 private TypedArray mFlashIndicatorVideoIcons; 58 private TypedArray mHdrPlusIndicatorIcons; 59 private TypedArray mHdrIndicatorIcons; 60 private TypedArray mPanoIndicatorIcons; 61 private TypedArray mCountdownTimerIndicatorIcons; 299 TypedArray iconArray, boolean showDefault) { in setIndicatorState()
|
/aosp12/packages/apps/Car/Settings/src/com/android/car/settings/common/ |
H A D | PreferenceXmlParser.java | 22 import android.content.res.TypedArray; 112 final TypedArray preferenceAttributes = context.obtainStyledAttributes(attrs, in extractMetadata() 140 private static String getKey(TypedArray styledAttributes) { in getKey() 144 private static String getController(TypedArray styledAttributes) { in getController() 148 private static boolean isSearchable(TypedArray styledAttributes) { in isSearchable()
|
/aosp12/packages/apps/Settings/src/com/android/settings/widget/ |
H A D | TintDrawable.java | 24 import android.content.res.TypedArray; 56 final TypedArray a = obtainAttributes(r, theme, attrs, R.styleable.TintDrawable); in inflate() 72 final TypedArray a = t.resolveAttributes(mThemeAttrs, R.styleable.TintDrawable); in applyTheme() 87 private void updateStateFromTypedArray(@NonNull TypedArray a) { in updateStateFromTypedArray()
|
/aosp12/packages/apps/Dialer/java/com/android/dialer/common/preference/ |
H A D | SwitchPreferenceWithClickableSummary.java | 23 import android.content.res.TypedArray; 53 TypedArray typedArray = in SwitchPreferenceWithClickableSummary() 63 TypedArray typedArray = in SwitchPreferenceWithClickableSummary() 72 TypedArray typedArray = in SwitchPreferenceWithClickableSummary()
|
/aosp12/packages/apps/DeskClock/src/com/android/deskclock/ |
H A D | ThemeUtils.kt | 20 import android.content.res.TypedArray 52 var a: TypedArray 78 var a: TypedArray
|
/aosp12/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | ClipDrawable.java | 24 import android.content.res.TypedArray; 93 final TypedArray a = obtainAttributes(r, theme, attrs, R.styleable.ClipDrawable); in inflate() 113 final TypedArray a = t.resolveAttributes(state.mThemeAttrs, R.styleable.ClipDrawable); in applyTheme() 125 private void verifyRequiredAttributes(@NonNull TypedArray a) throws XmlPullParserException { in verifyRequiredAttributes() 135 private void updateStateFromTypedArray(@NonNull TypedArray a) { in updateStateFromTypedArray()
|
H A D | ScaleDrawable.java | 24 import android.content.res.TypedArray; 104 final TypedArray a = obtainAttributes(r, theme, attrs, R.styleable.ScaleDrawable); in inflate() 126 final TypedArray a = t.resolveAttributes(state.mThemeAttrs, R.styleable.ScaleDrawable); in applyTheme() 140 private void verifyRequiredAttributes(@NonNull TypedArray a) throws XmlPullParserException { in verifyRequiredAttributes() 150 private void updateStateFromTypedArray(@NonNull TypedArray a) { in updateStateFromTypedArray() 174 private static float getPercent(TypedArray a, int index, float defaultValue) { in getPercent()
|
H A D | AnimatedRotateDrawable.java | 24 import android.content.res.TypedArray; 129 final TypedArray a = obtainAttributes(r, theme, attrs, R.styleable.AnimatedRotateDrawable); in inflate() 151 final TypedArray a = t.resolveAttributes( in applyTheme() 166 private void verifyRequiredAttributes(@NonNull TypedArray a) throws XmlPullParserException { in verifyRequiredAttributes() 176 private void updateStateFromTypedArray(@NonNull TypedArray a) { in updateStateFromTypedArray()
|
H A D | RotateDrawable.java | 24 import android.content.res.TypedArray; 72 final TypedArray a = obtainAttributes(r, theme, attrs, R.styleable.RotateDrawable); in inflate() 92 final TypedArray a = t.resolveAttributes(state.mThemeAttrs, R.styleable.RotateDrawable); in applyTheme() 104 private void verifyRequiredAttributes(@NonNull TypedArray a) throws XmlPullParserException { in verifyRequiredAttributes() 114 private void updateStateFromTypedArray(@NonNull TypedArray a) { in updateStateFromTypedArray()
|
/aosp12/frameworks/base/packages/overlays/tests/src/com/android/theme/icon/ |
H A D | IconPackOverlayTest.java | 28 import android.content.res.TypedArray; 212 TypedArray targetAttrs = getAVDAttributes(targetRes, targetRid); in hasEqualVectorDrawableAttributes() 220 TypedArray overlayAttrs = getAVDAttributes(overlayRes, overlayRid); in hasEqualVectorDrawableAttributes() 243 private TypedArray getAVDAttributes(Resources resources, @DrawableRes int rid) { in getAVDAttributes() 254 private boolean attributesEquals(TypedArray target, TypedArray overlay) { in attributesEquals()
|
/aosp12/packages/apps/Dialer/java/com/android/incallui/ |
H A D | InCallUIMaterialColorMapUtils.java | 21 import android.content.res.TypedArray; 28 private final TypedArray primaryColors; 29 private final TypedArray secondaryColors;
|
/aosp12/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
H A D | ResourceUtils.java | 20 import android.content.res.TypedArray; 242 public static float getFraction(final TypedArray a, final int index, final float defValue) { in getFraction() 250 public static float getFraction(final TypedArray a, final int index) { in getFraction() 254 public static int getDimensionPixelSize(final TypedArray a, final int index) { in getDimensionPixelSize() 262 public static float getDimensionOrFraction(final TypedArray a, final int index, final int base, in getDimensionOrFraction() 276 public static int getEnumValue(final TypedArray a, final int index, final int defValue) { in getEnumValue()
|
/aosp12/frameworks/layoutlib/bridge/src/android/content/res/ |
H A D | Resources_Theme_Delegate.java | 55 /*package*/ static TypedArray obtainStyledAttributes( in obtainStyledAttributes() 67 /*package*/ static TypedArray obtainStyledAttributes( in obtainStyledAttributes() 80 /*package*/ static TypedArray obtainStyledAttributes( in obtainStyledAttributes() 104 /*package*/ static TypedArray resolveAttributes(Resources thisResources, Theme thisTheme, in resolveAttributes()
|
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/util/ |
H A D | AlphaTintDrawableWrapper.java | 22 import android.content.res.TypedArray; 69 final TypedArray a = obtainAttributes(r, theme, attrs, in inflate() 86 final TypedArray a = t.resolveAttributes(mThemeAttrs, in applyTheme() 102 private void updateStateFromTypedArray(@NonNull TypedArray a) { in updateStateFromTypedArray()
|
/aosp12/frameworks/base/core/java/android/view/ |
H A D | RoundedCorners.java | 30 import android.content.res.TypedArray; 175 final TypedArray array = res.obtainTypedArray(R.array.config_roundedCornerRadiusArray); in getRoundedCornerRadius() 197 final TypedArray array = res.obtainTypedArray(R.array.config_roundedCornerTopRadiusArray); in getRoundedCornerTopRadius() 219 final TypedArray array = res.obtainTypedArray( in getRoundedCornerBottomRadius() 242 final TypedArray array = res.obtainTypedArray( in getRoundedCornerRadiusAdjustment() 265 final TypedArray array = res.obtainTypedArray( in getRoundedCornerRadiusTopAdjustment() 289 final TypedArray array = res.obtainTypedArray( in getRoundedCornerRadiusBottomAdjustment() 311 final TypedArray array = res.obtainTypedArray(R.array.config_builtInDisplayIsRoundArray); in getBuiltInDisplayIsRound()
|
/aosp12/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/search/indexing/ |
H A D | XmlParserUtils.java | 20 import android.content.res.TypedArray; 97 final TypedArray ta = context.obtainStyledAttributes(attrs, R.styleable.Preference); in getDataIcon() 113 final TypedArray ta = context.obtainStyledAttributes(set, attrs); in getData() 122 final TypedArray sa = context.obtainStyledAttributes(set, attrs); in getDataEntries()
|