Home
last modified time | relevance | path

Searched refs:TypedArray (Results 1 – 25 of 1562) sorted by relevance

12345678910>>...63

/aosp_15_r20/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DKeyStylesSet.java19 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()
73 public int getInt(final TypedArray a, final int index, final int defaultValue) { in getInt()
78 public int getFlags(final TypedArray a, final int index) { in getFlags()
98 public String[] getStringArray(final TypedArray a, final int index) { in getStringArray()
113 public String getString(final TypedArray a, final int index) { in getString()
126 public int getInt(final TypedArray a, final int index, final int defaultValue) { in getInt()
139 public int getFlags(final TypedArray a, final int index) { in getFlags()
147 public void readKeyAttributes(final TypedArray keyAttr) { in readKeyAttributes()
[all …]
DKeyStyle.java19 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()
DKeyboardRow.java20 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()
DKeyboardBuilder.java21 import android.content.res.TypedArray;
239 final TypedArray keyboardAttr = mContext.obtainStyledAttributes( in parseKeyboardAttributes()
241 final TypedArray keyAttr = mResources.obtainAttributes(attr, R.styleable.Keyboard_Key); in parseKeyboardAttributes()
341 final TypedArray keyboardAttr = mResources.obtainAttributes(attr, R.styleable.Keyboard); in parseRowAttributes()
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()
531 final TypedArray keyAttr = mResources.obtainAttributes(attr, R.styleable.Keyboard_Key); in parseIncludeInternal()
643 final TypedArray caseAttr = mResources.obtainAttributes(attr, R.styleable.Keyboard_Case); in parseCaseCondition()
[all …]
/aosp_15_r20/packages/apps/Settings/src/com/android/settings/core/
DPreferenceXmlParserUtils.java21 import android.content.res.TypedArray;
147 final TypedArray preferenceAttributes = context.obtainStyledAttributes(attrs, in extractMetadata()
149 TypedArray preferenceScreenAttributes = null; in extractMetadata()
217 private static String getKey(TypedArray styledAttributes) { in getKey()
221 private static String getTitle(TypedArray styledAttributes) { in getTitle()
225 private static String getSummary(TypedArray styledAttributes) { in getSummary()
229 private static String getController(TypedArray styledAttributes) { in getController()
233 private static String getHighlightableMenuKey(TypedArray styledAttributes) { in getHighlightableMenuKey()
237 private static int getIcon(TypedArray styledAttributes) { in getIcon()
241 private static boolean isSearchable(TypedArray styledAttributes) { in isSearchable()
[all …]
/aosp_15_r20/external/robolectric/robolectric/src/test/java/org/robolectric/shadows/
H A DShadowTypedArrayTest.java7 import android.content.res.TypedArray;
48 TypedArray typedArray = in getInt_withFlags_shouldReturnValue()
67 TypedArray typedArray = in getResourceId_shouldReturnActualValue()
86 TypedArray typedArray = in getFraction_shouldReturnGivenValue()
103 TypedArray typedArray = in getDimension_shouldReturnGivenValue()
113 TypedArray typedArray = in getDrawable_withExplicitColorValue_shouldReturnColorDrawable()
126 TypedArray typedArray = in getTextArray_whenNoSuchAttribute_shouldReturnNull()
142 TypedArray typedArray = in getTextArray_shouldReturnValues()
154 TypedArray typedArray = in hasValue_withValue()
165 TypedArray typedArray = context.obtainStyledAttributes(null, new int[] {R.attr.responses}); in hasValue_withoutValue()
[all …]
H A DShadowAssetManagerTest.java8 import android.content.res.TypedArray;
73 TypedArray typedArray = in multiFormatAttributes_integerDecimalValue()
85 TypedArray typedArray = in multiFormatAttributes_integerHexValue()
97 TypedArray typedArray = in multiFormatAttributes_stringValue()
109 TypedArray typedArray = in multiFormatAttributes_booleanValue()
/aosp_15_r20/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/whitebalance/
H A DAmbientLuxTest.java31 import android.content.res.TypedArray;
80 @Mock private TypedArray mBrightnesses;
81 @Mock private TypedArray mBiases;
82 @Mock private TypedArray mHighLightBrightnesses;
83 @Mock private TypedArray mHighLightBiases;
84 @Mock private TypedArray mBrightnessesStrong;
85 @Mock private TypedArray mBiasesStrong;
86 @Mock private TypedArray mHighLightBrightnessesStrong;
87 @Mock private TypedArray mHighLightBiasesStrong;
88 @Mock private TypedArray mAmbientColorTemperatures;
[all …]
/aosp_15_r20/cts/tests/tests/content/src/android/content/res/cts/
H A DTypedArrayTest.java32 import android.content.res.TypedArray;
88 private TypedArray mTypedArray;
103 final TypedArray t = getContext().getTheme().obtainStyledAttributes( in testSourceResourceIdFromStyle()
127 final TypedArray t = getContext().getTheme().obtainStyledAttributes( in testSourceResourceIdFromLayout()
140 final TypedArray t = getContext().getTheme().obtainStyledAttributes( in testGetType()
167 final TypedArray t = getContext().getTheme().obtainStyledAttributes( in testBasics()
182 final TypedArray t = getContext().getTheme().obtainStyledAttributes( in testGetAttributes()
263 final TypedArray t = getContext().getTheme().obtainStyledAttributes( in testGetDrawableAttributes()
273 final TypedArray t = getContext().getTheme().obtainStyledAttributes( in testGetTypefaceAttributes()
282 final TypedArray t = getContext().getTheme().obtainStyledAttributes( in testPeekValue()
[all …]
/aosp_15_r20/development/tools/winscope/src/common/
H A Darray_utils.ts16 type TypedArray = alias
29 a: T[] | TypedArray,
30 b: T[] | TypedArray,
47 array: T[] | TypedArray,
48 subarray: T[] | TypedArray,
69 values: T[] | TypedArray,
101 values: T[] | TypedArray,
/aosp_15_r20/packages/apps/Car/Settings/src/com/android/car/settings/common/
DPreferenceXmlParser.java23 import android.content.res.TypedArray;
127 final TypedArray preferenceAttributes = context.obtainStyledAttributes(attrs, in extractMetadata()
183 private static String getKey(TypedArray styledAttributes) { in getKey()
187 private static String getController(TypedArray styledAttributes) { in getController()
191 private static boolean isSearchable(TypedArray styledAttributes) { in isSearchable()
195 private static String getDriver(TypedArray styledAttributes) { in getDriver()
199 private static String getFrontPassenger(TypedArray styledAttributes) { in getFrontPassenger()
203 private static String getRearPassenger(TypedArray styledAttributes) { in getRearPassenger()
/aosp_15_r20/packages/apps/Launcher3/src/com/android/launcher3/util/
DThemes.java25 import android.content.res.TypedArray;
75 TypedArray ta = context.obtainStyledAttributes(android.R.style.TextAppearance_DeviceDefault, in getDefaultBodyFont()
88 TypedArray ta = context.obtainStyledAttributes(new int[]{attr}); in getDimension()
113 TypedArray ta = context.obtainStyledAttributes(new int[]{attr}); in getAttrBoolean()
120 TypedArray ta = context.obtainStyledAttributes(new int[]{attr}); in getAttrDrawable()
127 TypedArray ta = context.obtainStyledAttributes(new int[]{attr}); in getAttrInteger()
184 TypedArray ta = context.obtainStyledAttributes(attrSet, attrNames); in createValueMap()
/aosp_15_r20/frameworks/base/core/java/com/android/internal/pm/pkg/parsing/
H A DParsingPackageUtils.java66 import android.content.res.TypedArray;
465 final TypedArray manifestArray = null; in parsePackageFromPackageLite()
729 final TypedArray manifestArray = res.obtainAttributes(parser, R.styleable.AndroidManifest);
824 TypedArray sa = res.obtainAttributes(parser, R.styleable.AndroidManifestApplication);
971 TypedArray sa, Resources res, XmlResourceParser parser, int flags,
1148 ParsingPackage pkg, TypedArray sa) {
1207 TypedArray sa = res.obtainAttributes(parser, R.styleable.AndroidManifestKeySet);
1223 TypedArray sa = res.obtainAttributes(parser,
1264 TypedArray sa = res.obtainAttributes(parser,
1367 private int parseMinOrMaxSdkVersion(TypedArray sa, int attr, int defaultValue) {
[all …]
/aosp_15_r20/packages/apps/Camera2/src/com/android/camera/widget/
DIndicatorIconController.java20 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()
/aosp_15_r20/external/setupdesign/main/src/com/google/android/setupdesign/items/
H A DItemAdapter.java21 import android.content.res.TypedArray;
89 TypedArray a = in getFirstBackground()
98 TypedArray a = in getLastBackground()
107 TypedArray a = context.getTheme().obtainStyledAttributes(new int[] {R.attr.sudItemBackground}); in getMiddleBackground()
115 TypedArray a = in getSingleBackground()
123 TypedArray a = in getCornerRadius()
153 TypedArray a = in updateBackground()
H A DRecyclerItemAdapter.java21 import android.content.res.TypedArray;
123 final TypedArray typedArray = in onCreateViewHolder()
179 TypedArray a = in getFirstBackground()
188 TypedArray a = in getLastBackground()
197 TypedArray a = context.getTheme().obtainStyledAttributes(new int[] {R.attr.sudItemBackground}); in getMiddleBackground()
205 TypedArray a = in getSingleBackground()
213 TypedArray a = in getCornerRadius()
/aosp_15_r20/frameworks/base/packages/overlays/tests/src/com/android/theme/icon/
H A DIconPackOverlayTest.java28 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()
/aosp_15_r20/frameworks/base/graphics/java/android/graphics/drawable/
H A DScaleDrawable.java24 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 DClipDrawable.java24 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()
/aosp_15_r20/frameworks/base/core/java/android/animation/
H A DAnimatorInflater.java28 import android.content.res.TypedArray;
275 private static PropertyValuesHolder getPVH(TypedArray styledAttributes, int valueType, in getPVH()
414 TypedArray arrayAnimator, TypedArray arrayObjectAnimator, float pixelSize) { in parseAnimatorFromTypeArray()
457 TypedArray arrayAnimator) { in setupAnimatorForPath()
498 private static void setupObjectAnimator(ValueAnimator anim, TypedArray arrayObjectAnimator, in setupObjectAnimator()
573 private static void setupValues(ValueAnimator anim, TypedArray arrayAnimator, in setupValues()
675 TypedArray a; in createAnimatorFromXml()
735 TypedArray a; in loadValues()
779 TypedArray a; in inferValueTypeOfKeyframe()
799 private static int inferValueTypeFromValues(TypedArray styledAttributes, int valueFromId, in inferValueTypeFromValues()
[all …]
/aosp_15_r20/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/about/
DUtils.java11 import android.content.res.TypedArray;
100 TypedArray ta = context.obtainStyledAttributes(new int[]{attr}); in applyAlphaAttr()
115 TypedArray ta = context.obtainStyledAttributes(new int[]{attr}); in getColorAttrDefaultColor()
122 TypedArray ta = context.obtainStyledAttributes(new int[]{attr}); in getColorAttr()
137 TypedArray ta = context.obtainStyledAttributes(new int[]{attr}); in getThemeAttr()
144 TypedArray ta = context.obtainStyledAttributes(new int[]{attr}); in getDrawable()
/aosp_15_r20/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/util/
DFallbackThemeWrapperTest.java22 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()
/aosp_15_r20/packages/apps/Nfc/tests/unit/src/com/android/nfc/
DRegisteredNfcFServicesCacheTest.java37 import android.content.res.TypedArray;
125 TypedArray typedArrayHost = mock(TypedArray.class); in setUp()
129 TypedArray typedArrayNfcid2 = mock(TypedArray.class); in setUp()
133 TypedArray typedArraySystem = mock(TypedArray.class); in setUp()
/aosp_15_r20/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DResourceUtils.java21 import android.content.res.TypedArray;
259 public static float getFraction(final TypedArray a, final int index, final float defValue) { in getFraction()
267 public static float getFraction(final TypedArray a, final int index) { in getFraction()
271 public static int getDimensionPixelSize(final TypedArray a, final int index) { in getDimensionPixelSize()
279 public static float getDimensionOrFraction(final TypedArray a, final int index, final int base, in getDimensionOrFraction()
293 public static int getEnumValue(final TypedArray a, final int index, final int defValue) { in getEnumValue()
/aosp_15_r20/cts/tests/tests/view/src/android/view/cts/
H A DContextThemeWrapperTest.java28 import android.content.res.TypedArray;
81 TypedArray ta = in testAccessTheme()
96 TypedArray ta = in testSetTheme()
160 private void verifyIdenticalTextAppearanceStyle(TypedArray ta) { in verifyIdenticalTextAppearanceStyle()
166 TypedArray expectedTa = expected.obtainStyledAttributes(R.styleable.TextAppearance); in verifyIdenticalTextAppearanceStyle()

12345678910>>...63