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.java87 .obtainStyledAttributes(R.style.Whatever, R.styleable.style1); in setUp()
98 R.style.StyleA, R.styleable.style1); in testSourceResourceIdFromStyle()
100 assertEquals(R.style.StyleA, t.getSourceResourceId(R.styleable.style1_type1, 0)); in testSourceResourceIdFromStyle()
101 assertEquals(R.style.StyleB, t.getSourceResourceId(R.styleable.style1_type2, 0)); in testSourceResourceIdFromStyle()
102 assertEquals(R.style.StyleC, t.getSourceResourceId(R.styleable.style1_type3, 0)); in testSourceResourceIdFromStyle()
103 assertEquals(R.style.StyleB, t.getSourceResourceId(R.styleable.style1_type4, 0)); in testSourceResourceIdFromStyle()
104 assertEquals(0, t.getSourceResourceId(R.styleable.style1_type5, 0)); in testSourceResourceIdFromStyle()
105 assertEquals(R.style.StyleA, t.getSourceResourceId(R.styleable.style1_type17, 0)); in testSourceResourceIdFromStyle()
122 attrs, R.styleable.style1, 0, 0); in testSourceResourceIdFromLayout()
124 t.getSourceResourceId(R.styleable.style1_type1, 0)); in testSourceResourceIdFromLayout()
[all …]
DConfigTest.java98 final int[] styleable, final String[] expectedValues) { in checkValue() argument
100 final TypedArray sa = theme.obtainStyledAttributes(resId, styleable); in checkValue()
101 for (int i = 0; i < styleable.length; i++) { in checkValue()
258 checkValue(res, bagRes, R.styleable.TestConfig, in checkPair()
285 R.styleable.TestConfig, new String[]{"bag default"}); in testAllEmptyConfigs()
292 R.styleable.TestConfig, new String[]{"bag xx"}); in testAllEmptyConfigs()
300 R.styleable.TestConfig, new String[]{"bag xx-rYY"}); in testAllEmptyConfigs()
307 R.styleable.TestConfig, new String[]{"bag mcc111"}); in testAllEmptyConfigs()
314 R.styleable.TestConfig, new String[]{"bag mnc222"}); in testAllEmptyConfigs()
321 R.styleable.TestConfig, new String[]{"bag notouch"}); in testAllEmptyConfigs()
[all …]
DPrimitiveTest.java51 final TypedArray sa = getContext().obtainStyledAttributes(resid, R.styleable.EnumStyle); in tryEnum()
52 final int value = sa.getInt(R.styleable.EnumStyle_testEnum, -1); in tryEnum()
69 final TypedArray sa = getContext().obtainStyledAttributes(resid, R.styleable.FlagStyle); in tryFlag()
70 final int value = sa.getInt(R.styleable.FlagStyle_testFlags, -1); in tryFlag()
DResourcesTest.java129 final TypedArray testTypedArray = mResources.obtainAttributes(set, R.styleable.Style1); in testObtainAttributes()
/cts/tests/tests/view/src/android/view/cts/
DContextThemeWrapperTest.java82 contextThemeWrapper.getTheme().obtainStyledAttributes(R.styleable.TextAppearance); in testAccessTheme()
97 contextThemeWrapper.getTheme().obtainStyledAttributes(R.styleable.TextAppearance); in testSetTheme()
166 TypedArray expectedTa = expected.obtainStyledAttributes(R.styleable.TextAppearance); in verifyIdenticalTextAppearanceStyle()
168 assertEquals(expectedTa.getColor(R.styleable.TextAppearance_textColor, defValue), in verifyIdenticalTextAppearanceStyle()
169 ta.getColor(R.styleable.TextAppearance_textColor, defValue)); in verifyIdenticalTextAppearanceStyle()
170 assertEquals(expectedTa.getColor(R.styleable.TextAppearance_textColorHint, defValue), in verifyIdenticalTextAppearanceStyle()
171 ta.getColor(R.styleable.TextAppearance_textColorHint, defValue)); in verifyIdenticalTextAppearanceStyle()
172 assertEquals(expectedTa.getColor(R.styleable.TextAppearance_textColorLink, defValue), in verifyIdenticalTextAppearanceStyle()
173 ta.getColor(R.styleable.TextAppearance_textColorLink, defValue)); in verifyIdenticalTextAppearanceStyle()
174 assertEquals(expectedTa.getColor(R.styleable.TextAppearance_textColorHighlight, defValue), in verifyIdenticalTextAppearanceStyle()
[all …]
DViewGroup_LayoutParamsTest.java69 int[] attrs = R.styleable.style1; in testSetBaseAttributes()
71 mockLayoutParams.setBaseAttributes(array, R.styleable.style1_type6, in testSetBaseAttributes()
72 R.styleable.style1_type7); in testSetBaseAttributes()
74 assertEquals(array.getDimensionPixelSize(R.styleable.style1_type6, defValue), in testSetBaseAttributes()
76 assertEquals(array.getDimensionPixelSize(R.styleable.style1_type7, defValue), in testSetBaseAttributes()
/cts/tests/tests/widget/src/android/widget/cts/
DTableRow_LayoutParamsTest.java137 android.R.styleable.ViewGroup_Layout); in testSetBaseAttributes()
139 mockLayoutParams.setBaseAttributes(a, android.R.styleable.ViewGroup_Layout_layout_width, in testSetBaseAttributes()
140 android.R.styleable.ViewGroup_Layout_layout_height); in testSetBaseAttributes()
144 mockLayoutParams.setBaseAttributes(a, android.R.styleable.ViewGroup_Layout_layout_height, in testSetBaseAttributes()
145 android.R.styleable.ViewGroup_Layout_layout_width); in testSetBaseAttributes()
152 a = mActivity.obtainStyledAttributes(attrs, android.R.styleable.ViewGroup_Layout); in testSetBaseAttributes()
154 mockLayoutParams.setBaseAttributes(a, android.R.styleable.ViewGroup_Layout_layout_width, in testSetBaseAttributes()
155 android.R.styleable.ViewGroup_Layout_layout_height); in testSetBaseAttributes()
159 mockLayoutParams.setBaseAttributes(a, android.R.styleable.ViewGroup_Layout_layout_height, in testSetBaseAttributes()
160 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/
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()
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()
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.java130 d.getContext().getTheme().obtainStyledAttributes(R.styleable.TextAppearance); in testConstructor()
134 ta = w.getContext().getTheme().obtainStyledAttributes(R.styleable.TextAppearance); in testConstructor()
177 TypedArray expectedTa = expected.obtainStyledAttributes(R.styleable.TextAppearance); in assertTextAppearanceStyle()
179 assertEquals(expectedTa.getColor(R.styleable.TextAppearance_textColor, defValue), in assertTextAppearanceStyle()
180 ta.getColor(R.styleable.TextAppearance_textColor, defValue)); in assertTextAppearanceStyle()
181 assertEquals(expectedTa.getColor(R.styleable.TextAppearance_textColorHint, defValue), in assertTextAppearanceStyle()
182 ta.getColor(R.styleable.TextAppearance_textColorHint, defValue)); in assertTextAppearanceStyle()
183 assertEquals(expectedTa.getColor(R.styleable.TextAppearance_textColorLink, defValue), in assertTextAppearanceStyle()
184 ta.getColor(R.styleable.TextAppearance_textColorLink, defValue)); in assertTextAppearanceStyle()
185 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.java517 .obtainStyledAttributes(android.R.styleable.View); in testObtainStyledAttributes()
525 android.R.styleable.TextAppearance); in testObtainStyledAttributes()
546 int[] attrs = android.R.styleable.DatePicker; in testObtainStyledAttributes()