Home
last modified time | relevance | path

Searched refs:styleable (Results 1 – 19 of 19) sorted by relevance

/cts/tests/tests/content/src/android/content/res/cts/
DTypedArrayTest.java67 .obtainStyledAttributes(R.style.Whatever, R.styleable.style1); in setUp()
78 R.style.Whatever, R.styleable.style1); in testGetType()
80 assertEquals(TypedValue.TYPE_INT_BOOLEAN, t.getType(R.styleable.style1_type1)); in testGetType()
81 assertEquals(TypedValue.TYPE_INT_BOOLEAN, t.getType(R.styleable.style1_type2)); in testGetType()
82 assertEquals(TypedValue.TYPE_INT_COLOR_ARGB8, t.getType(R.styleable.style1_type3)); in testGetType()
83 assertEquals(TypedValue.TYPE_INT_COLOR_ARGB8, t.getType(R.styleable.style1_type4)); in testGetType()
84 assertEquals(TypedValue.TYPE_DIMENSION, t.getType(R.styleable.style1_type5)); in testGetType()
85 assertEquals(TypedValue.TYPE_DIMENSION, t.getType(R.styleable.style1_type6)); in testGetType()
86 assertEquals(TypedValue.TYPE_DIMENSION, t.getType(R.styleable.style1_type7)); in testGetType()
87 assertEquals(TypedValue.TYPE_STRING, t.getType(R.styleable.style1_type8)); in testGetType()
[all …]
DConfigTest.java76 final int[] styleable, final String[] expectedValues) { in checkValue() argument
78 final TypedArray sa = theme.obtainStyledAttributes(resId, styleable); in checkValue()
79 for (int i = 0; i < styleable.length; i++) { in checkValue()
233 checkValue(res, bagRes, R.styleable.TestConfig, in checkPair()
247 R.styleable.TestConfig, new String[]{"bag default"}); in testAllEmptyConfigs()
254 R.styleable.TestConfig, new String[]{"bag xx"}); in testAllEmptyConfigs()
262 R.styleable.TestConfig, new String[]{"bag xx-rYY"}); in testAllEmptyConfigs()
269 R.styleable.TestConfig, new String[]{"bag mcc111"}); in testAllEmptyConfigs()
276 R.styleable.TestConfig, new String[]{"bag mnc222"}); in testAllEmptyConfigs()
283 R.styleable.TestConfig, new String[]{"bag notouch"}); in testAllEmptyConfigs()
[all …]
DPrimitiveTest.java36 final TypedArray sa = mContext.obtainStyledAttributes(resid, R.styleable.EnumStyle); in tryEnum()
37 final int value = sa.getInt(R.styleable.EnumStyle_testEnum, -1); in tryEnum()
53 final TypedArray sa = mContext.obtainStyledAttributes(resid, R.styleable.FlagStyle); in tryFlag()
54 final int value = sa.getInt(R.styleable.FlagStyle_testFlags, -1); in tryFlag()
DResourcesTest.java96 final TypedArray testTypedArray = mResources.obtainAttributes(set, R.styleable.Style1); in testObtainAttributes()
/cts/tests/tests/view/src/android/view/cts/
DContextThemeWrapperTest.java79 contextThemeWrapper.getTheme().obtainStyledAttributes(R.styleable.TextAppearance); in testAccessTheme()
150 TypedArray expectedTa = expected.obtainStyledAttributes(R.styleable.TextAppearance); in verifyIdenticalTextAppearanceStyle()
152 assertEquals(expectedTa.getColor(R.styleable.TextAppearance_textColor, defValue), in verifyIdenticalTextAppearanceStyle()
153 ta.getColor(R.styleable.TextAppearance_textColor, defValue)); in verifyIdenticalTextAppearanceStyle()
154 assertEquals(expectedTa.getColor(R.styleable.TextAppearance_textColorHint, defValue), in verifyIdenticalTextAppearanceStyle()
155 ta.getColor(R.styleable.TextAppearance_textColorHint, defValue)); in verifyIdenticalTextAppearanceStyle()
156 assertEquals(expectedTa.getColor(R.styleable.TextAppearance_textColorLink, defValue), in verifyIdenticalTextAppearanceStyle()
157 ta.getColor(R.styleable.TextAppearance_textColorLink, defValue)); in verifyIdenticalTextAppearanceStyle()
158 assertEquals(expectedTa.getColor(R.styleable.TextAppearance_textColorHighlight, defValue), in verifyIdenticalTextAppearanceStyle()
159 ta.getColor(R.styleable.TextAppearance_textColorHighlight, defValue)); in verifyIdenticalTextAppearanceStyle()
[all …]
DViewGroup_LayoutParamsTest.java66 int[] attrs = R.styleable.style1; in testSetBaseAttributes()
68 mockLayoutParams.setBaseAttributes(array, R.styleable.style1_type6, in testSetBaseAttributes()
69 R.styleable.style1_type7); in testSetBaseAttributes()
71 assertEquals(array.getDimensionPixelSize(R.styleable.style1_type6, defValue), in testSetBaseAttributes()
73 assertEquals(array.getDimensionPixelSize(R.styleable.style1_type7, defValue), in testSetBaseAttributes()
/cts/tests/tests/widget/src/android/widget/cts/
DTableRow_LayoutParamsTest.java127 android.R.styleable.ViewGroup_Layout); in testSetBaseAttributes()
129 mockLayoutParams.setBaseAttributes(a, android.R.styleable.ViewGroup_Layout_layout_width, in testSetBaseAttributes()
130 android.R.styleable.ViewGroup_Layout_layout_height); in testSetBaseAttributes()
134 mockLayoutParams.setBaseAttributes(a, android.R.styleable.ViewGroup_Layout_layout_height, in testSetBaseAttributes()
135 android.R.styleable.ViewGroup_Layout_layout_width); in testSetBaseAttributes()
142 a = mActivity.obtainStyledAttributes(attrs, android.R.styleable.ViewGroup_Layout); in testSetBaseAttributes()
144 mockLayoutParams.setBaseAttributes(a, android.R.styleable.ViewGroup_Layout_layout_width, in testSetBaseAttributes()
145 android.R.styleable.ViewGroup_Layout_layout_height); in testSetBaseAttributes()
149 mockLayoutParams.setBaseAttributes(a, android.R.styleable.ViewGroup_Layout_layout_height, in testSetBaseAttributes()
150 android.R.styleable.ViewGroup_Layout_layout_width); in testSetBaseAttributes()
[all …]
DTableLayout_LayoutParamsTest.java106 android.R.styleable.ViewGroup_Layout); in testSetBaseAttributes()
108 mockLayoutParams.setBaseAttributes(a, android.R.styleable.ViewGroup_Layout_layout_width, in testSetBaseAttributes()
109 android.R.styleable.ViewGroup_Layout_layout_height); in testSetBaseAttributes()
113 mockLayoutParams.setBaseAttributes(a, android.R.styleable.ViewGroup_Layout_layout_height, in testSetBaseAttributes()
114 android.R.styleable.ViewGroup_Layout_layout_width); in testSetBaseAttributes()
121 a = mContext.obtainStyledAttributes(attrs, android.R.styleable.ViewGroup_Layout); in testSetBaseAttributes()
123 mockLayoutParams.setBaseAttributes(a, android.R.styleable.ViewGroup_Layout_layout_width, in testSetBaseAttributes()
124 android.R.styleable.ViewGroup_Layout_layout_height); in testSetBaseAttributes()
128 mockLayoutParams.setBaseAttributes(a, android.R.styleable.ViewGroup_Layout_layout_height, in testSetBaseAttributes()
129 android.R.styleable.ViewGroup_Layout_layout_width); in testSetBaseAttributes()
[all …]
DRadioGroup_LayoutParamsTest.java150 android.R.styleable.ViewGroup_MarginLayout); in testSetBaseAttributes()
152 android.R.styleable.ViewGroup_MarginLayout_layout_width, in testSetBaseAttributes()
153 android.R.styleable.ViewGroup_MarginLayout_layout_height); in testSetBaseAttributes()
/cts/tests/tests/preference2/src/android/preference2/cts/
DCustomDialogPreference.java44 TypedArray a = getContext().obtainStyledAttributes(attrs,R.styleable.CustPref); in init()
45 mTitle = a.getString(R.styleable.CustPref_title); in init()
46 mIcon = a.getDrawable(R.styleable.CustPref_icon); in init()
DCustomCheckBoxPreference.java48 TypedArray a = getContext().obtainStyledAttributes(attrs,R.styleable.CustPref); in init()
49 mTitle = a.getString(R.styleable.CustPref_title); in init()
50 mIcon = a.getDrawable(R.styleable.CustPref_icon); in init()
DCustomPreferenceGroup.java45 TypedArray a = getContext().obtainStyledAttributes(attrs,R.styleable.CustPref); in init()
46 setTitle(a.getString(R.styleable.CustPref_title)); in init()
47 setIcon(a.getDrawable(R.styleable.CustPref_icon)); in init()
DCustomSwitchPreference.java49 TypedArray a = getContext().obtainStyledAttributes(attrs,R.styleable.CustPref); in init()
50 mTitle =a.getString(R.styleable.CustPref_title); in init()
51 mIcon = a.getDrawable(R.styleable.CustPref_icon); in init()
DCustomEditTextPreference.java48 TypedArray a = getContext().obtainStyledAttributes(attrs,R.styleable.CustPref); in init()
49 mTitle =a.getString(R.styleable.CustPref_title); in init()
50 mIcon = a.getDrawable(R.styleable.CustPref_icon); in init()
DCustomPreference.java48 TypedArray a = getContext().obtainStyledAttributes(attrs,R.styleable.CustPref); in init()
49 setTitle(a.getString(R.styleable.CustPref_title)); in init()
50 setIcon(a.getDrawable(R.styleable.CustPref_icon)); in init()
/cts/tests/app/src/android/app/cts/
DDialogTest.java105 d.getContext().getTheme().obtainStyledAttributes(R.styleable.TextAppearance); in testConstructor()
109 ta = w.getContext().getTheme().obtainStyledAttributes(R.styleable.TextAppearance); in testConstructor()
133 TypedArray expectedTa = expected.obtainStyledAttributes(R.styleable.TextAppearance); in assertTextAppearanceStyle()
135 assertEquals(expectedTa.getColor(R.styleable.TextAppearance_textColor, defValue), in assertTextAppearanceStyle()
136 ta.getColor(R.styleable.TextAppearance_textColor, defValue)); in assertTextAppearanceStyle()
137 assertEquals(expectedTa.getColor(R.styleable.TextAppearance_textColorHint, defValue), in assertTextAppearanceStyle()
138 ta.getColor(R.styleable.TextAppearance_textColorHint, defValue)); in assertTextAppearanceStyle()
139 assertEquals(expectedTa.getColor(R.styleable.TextAppearance_textColorLink, defValue), in assertTextAppearanceStyle()
140 ta.getColor(R.styleable.TextAppearance_textColorLink, defValue)); in assertTextAppearanceStyle()
141 assertEquals(expectedTa.getColor(R.styleable.TextAppearance_textColorHighlight, defValue), in assertTextAppearanceStyle()
[all …]
/cts/tests/tests/content/src/android/content/cts/
DContextTest.java222 .obtainStyledAttributes(android.R.styleable.View); in testObtainStyledAttributes()
230 android.R.styleable.TextAppearance); in testObtainStyledAttributes()
251 int[] attrs = android.R.styleable.DatePicker; in testObtainStyledAttributes()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/
DBoxInsetLayout.java399 … TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.BoxInsetLayout_Layout, 0, 0); in LayoutParams()
400 boxedEdges = a.getInt(R.styleable.BoxInsetLayout_Layout_ctsv_layout_box, BOX_NONE); in LayoutParams()
/cts/tools/dex-tools/dex/
Dclasses.out.dex2122 @dalvik.annotation.InnerClass (accessFlags =25 name =styleable )
2124 public final class android.R$styleable extends java.lang.Object
3862 @dalvik.annotation.MemberClasses (value =Landroid/R$styleable;Landroid/R$xml;Landroid/R$style;Landr…
114583 @dalvik.annotation.InnerClass (accessFlags =25 name =styleable )
114584 public final class com.android.internal.R$styleable extends java.lang.Object
116330 @dalvik.annotation.MemberClasses (value =Lcom/android/internal/R$styleable;Lcom/android/internal/R$…