Home
last modified time | relevance | path

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

/cts/tests/tests/content/src/android/content/res/cts/
DTypedArrayTest.java68 .obtainStyledAttributes(R.style.Whatever, R.styleable.style1); in setUp()
79 R.style.StyleA, R.styleable.style1); in testSourceResourceIdFromStyle()
81 assertEquals(R.style.StyleA, t.getSourceResourceId(R.styleable.style1_type1, 0)); in testSourceResourceIdFromStyle()
82 assertEquals(R.style.StyleB, t.getSourceResourceId(R.styleable.style1_type2, 0)); in testSourceResourceIdFromStyle()
83 assertEquals(R.style.StyleC, t.getSourceResourceId(R.styleable.style1_type3, 0)); in testSourceResourceIdFromStyle()
84 assertEquals(R.style.StyleB, t.getSourceResourceId(R.styleable.style1_type4, 0)); in testSourceResourceIdFromStyle()
85 assertEquals(0, t.getSourceResourceId(R.styleable.style1_type5, 0)); in testSourceResourceIdFromStyle()
86 assertEquals(R.style.StyleA, t.getSourceResourceId(R.styleable.style1_type17, 0)); in testSourceResourceIdFromStyle()
102 attrs, R.styleable.style1, 0, 0); in testSourceResourceIdFromLayout()
104 t.getSourceResourceId(R.styleable.style1_type1, 0)); in testSourceResourceIdFromLayout()
[all …]
DConfigTest.java95 final int[] styleable, final String[] expectedValues) { in checkValue() argument
97 final TypedArray sa = theme.obtainStyledAttributes(resId, styleable); in checkValue()
98 for (int i = 0; i < styleable.length; i++) { in checkValue()
252 checkValue(res, bagRes, R.styleable.TestConfig, in checkPair()
278 R.styleable.TestConfig, new String[]{"bag default"}); in testAllEmptyConfigs()
285 R.styleable.TestConfig, new String[]{"bag xx"}); in testAllEmptyConfigs()
293 R.styleable.TestConfig, new String[]{"bag xx-rYY"}); in testAllEmptyConfigs()
300 R.styleable.TestConfig, new String[]{"bag mcc111"}); in testAllEmptyConfigs()
307 R.styleable.TestConfig, new String[]{"bag mnc222"}); in testAllEmptyConfigs()
314 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.java103 final TypedArray testTypedArray = mResources.obtainAttributes(set, R.styleable.Style1); in testObtainAttributes()
/cts/tests/tests/view/src/android/view/cts/
DContextThemeWrapperTest.java80 contextThemeWrapper.getTheme().obtainStyledAttributes(R.styleable.TextAppearance); in testAccessTheme()
95 contextThemeWrapper.getTheme().obtainStyledAttributes(R.styleable.TextAppearance); in testSetTheme()
164 TypedArray expectedTa = expected.obtainStyledAttributes(R.styleable.TextAppearance); in verifyIdenticalTextAppearanceStyle()
166 assertEquals(expectedTa.getColor(R.styleable.TextAppearance_textColor, defValue), in verifyIdenticalTextAppearanceStyle()
167 ta.getColor(R.styleable.TextAppearance_textColor, defValue)); in verifyIdenticalTextAppearanceStyle()
168 assertEquals(expectedTa.getColor(R.styleable.TextAppearance_textColorHint, defValue), in verifyIdenticalTextAppearanceStyle()
169 ta.getColor(R.styleable.TextAppearance_textColorHint, defValue)); in verifyIdenticalTextAppearanceStyle()
170 assertEquals(expectedTa.getColor(R.styleable.TextAppearance_textColorLink, defValue), in verifyIdenticalTextAppearanceStyle()
171 ta.getColor(R.styleable.TextAppearance_textColorLink, defValue)); in verifyIdenticalTextAppearanceStyle()
172 assertEquals(expectedTa.getColor(R.styleable.TextAppearance_textColorHighlight, defValue), in verifyIdenticalTextAppearanceStyle()
[all …]
DViewGroup_LayoutParamsTest.java67 int[] attrs = R.styleable.style1; in testSetBaseAttributes()
69 mockLayoutParams.setBaseAttributes(array, R.styleable.style1_type6, in testSetBaseAttributes()
70 R.styleable.style1_type7); in testSetBaseAttributes()
72 assertEquals(array.getDimensionPixelSize(R.styleable.style1_type6, defValue), in testSetBaseAttributes()
74 assertEquals(array.getDimensionPixelSize(R.styleable.style1_type7, defValue), in testSetBaseAttributes()
/cts/tests/tests/widget/src/android/widget/cts/
DTableRow_LayoutParamsTest.java128 android.R.styleable.ViewGroup_Layout); in testSetBaseAttributes()
130 mockLayoutParams.setBaseAttributes(a, android.R.styleable.ViewGroup_Layout_layout_width, in testSetBaseAttributes()
131 android.R.styleable.ViewGroup_Layout_layout_height); in testSetBaseAttributes()
135 mockLayoutParams.setBaseAttributes(a, android.R.styleable.ViewGroup_Layout_layout_height, in testSetBaseAttributes()
136 android.R.styleable.ViewGroup_Layout_layout_width); in testSetBaseAttributes()
143 a = mActivity.obtainStyledAttributes(attrs, android.R.styleable.ViewGroup_Layout); in testSetBaseAttributes()
145 mockLayoutParams.setBaseAttributes(a, android.R.styleable.ViewGroup_Layout_layout_width, in testSetBaseAttributes()
146 android.R.styleable.ViewGroup_Layout_layout_height); in testSetBaseAttributes()
150 mockLayoutParams.setBaseAttributes(a, android.R.styleable.ViewGroup_Layout_layout_height, in testSetBaseAttributes()
151 android.R.styleable.ViewGroup_Layout_layout_width); in testSetBaseAttributes()
[all …]
DTableLayout_LayoutParamsTest.java107 android.R.styleable.ViewGroup_Layout); in testSetBaseAttributes()
109 mockLayoutParams.setBaseAttributes(a, android.R.styleable.ViewGroup_Layout_layout_width, in testSetBaseAttributes()
110 android.R.styleable.ViewGroup_Layout_layout_height); in testSetBaseAttributes()
114 mockLayoutParams.setBaseAttributes(a, android.R.styleable.ViewGroup_Layout_layout_height, in testSetBaseAttributes()
115 android.R.styleable.ViewGroup_Layout_layout_width); in testSetBaseAttributes()
122 a = mContext.obtainStyledAttributes(attrs, android.R.styleable.ViewGroup_Layout); in testSetBaseAttributes()
124 mockLayoutParams.setBaseAttributes(a, android.R.styleable.ViewGroup_Layout_layout_width, in testSetBaseAttributes()
125 android.R.styleable.ViewGroup_Layout_layout_height); in testSetBaseAttributes()
129 mockLayoutParams.setBaseAttributes(a, android.R.styleable.ViewGroup_Layout_layout_height, in testSetBaseAttributes()
130 android.R.styleable.ViewGroup_Layout_layout_width); in testSetBaseAttributes()
[all …]
DRadioGroup_LayoutParamsTest.java151 android.R.styleable.ViewGroup_Layout); in testSetBaseAttributes()
153 android.R.styleable.ViewGroup_Layout_layout_width, in testSetBaseAttributes()
154 android.R.styleable.ViewGroup_Layout_layout_height); in testSetBaseAttributes()
/cts/tests/tests/preference/src/android/preference/cts/
DCustomDialogPreference.java43 TypedArray a = getContext().obtainStyledAttributes(attrs, R.styleable.CustPref); in init()
44 mTitle = a.getString(R.styleable.CustPref_title); in init()
45 mIcon = a.getDrawable(R.styleable.CustPref_icon); in init()
DCustomPreferenceGroup.java42 TypedArray a = getContext().obtainStyledAttributes(attrs, R.styleable.CustPref); in init()
43 setTitle(a.getString(R.styleable.CustPref_title)); in init()
44 setIcon(a.getDrawable(R.styleable.CustPref_icon)); in init()
DCustomCheckBoxPreference.java47 TypedArray a = getContext().obtainStyledAttributes(attrs, R.styleable.CustPref); in init()
48 mTitle = a.getString(R.styleable.CustPref_title); in init()
49 mIcon = a.getDrawable(R.styleable.CustPref_icon); in init()
DCustomSwitchPreference.java47 TypedArray a = getContext().obtainStyledAttributes(attrs, R.styleable.CustPref); in init()
48 mTitle = a.getString(R.styleable.CustPref_title); in init()
49 mIcon = a.getDrawable(R.styleable.CustPref_icon); in init()
DCustomEditTextPreference.java47 TypedArray a = getContext().obtainStyledAttributes(attrs, R.styleable.CustPref); in init()
48 mTitle = a.getString(R.styleable.CustPref_title); in init()
49 mIcon = a.getDrawable(R.styleable.CustPref_icon); in init()
DCustomPreference.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()
/cts/hostsidetests/statsdatom/apps/statsdapp/src/com/android/server/cts/device/statsdatom/
DDaveyView.java44 R.styleable.DaveyView, in DaveyView()
48 mCauseDavey = a.getBoolean(R.styleable.DaveyView_causeDavey, false); in DaveyView()
/cts/tests/app/src/android/app/cts/
DDialogTest.java129 d.getContext().getTheme().obtainStyledAttributes(R.styleable.TextAppearance); in testConstructor()
133 ta = w.getContext().getTheme().obtainStyledAttributes(R.styleable.TextAppearance); in testConstructor()
176 TypedArray expectedTa = expected.obtainStyledAttributes(R.styleable.TextAppearance); in assertTextAppearanceStyle()
178 assertEquals(expectedTa.getColor(R.styleable.TextAppearance_textColor, defValue), in assertTextAppearanceStyle()
179 ta.getColor(R.styleable.TextAppearance_textColor, defValue)); in assertTextAppearanceStyle()
180 assertEquals(expectedTa.getColor(R.styleable.TextAppearance_textColorHint, defValue), in assertTextAppearanceStyle()
181 ta.getColor(R.styleable.TextAppearance_textColorHint, defValue)); in assertTextAppearanceStyle()
182 assertEquals(expectedTa.getColor(R.styleable.TextAppearance_textColorLink, defValue), in assertTextAppearanceStyle()
183 ta.getColor(R.styleable.TextAppearance_textColorLink, defValue)); in assertTextAppearanceStyle()
184 assertEquals(expectedTa.getColor(R.styleable.TextAppearance_textColorHighlight, defValue), in assertTextAppearanceStyle()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/audiolib/
DWaveformView.java49 R.styleable.WaveformView, 0, 0); in WaveformView()
/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/tests/tests/content/src/android/content/cts/
DContextTest.java417 .obtainStyledAttributes(android.R.styleable.View); in testObtainStyledAttributes()
425 android.R.styleable.TextAppearance); in testObtainStyledAttributes()
446 int[] attrs = android.R.styleable.DatePicker; in testObtainStyledAttributes()