/cts/tests/tests/content/src/android/content/res/cts/ |
D | TypedArrayTest.java | 68 .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 …]
|
D | ConfigTest.java | 95 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 …]
|
D | PrimitiveTest.java | 36 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()
|
D | ResourcesTest.java | 103 final TypedArray testTypedArray = mResources.obtainAttributes(set, R.styleable.Style1); in testObtainAttributes()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | ContextThemeWrapperTest.java | 80 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 …]
|
D | ViewGroup_LayoutParamsTest.java | 67 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/ |
D | TableRow_LayoutParamsTest.java | 128 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 …]
|
D | TableLayout_LayoutParamsTest.java | 107 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 …]
|
D | RadioGroup_LayoutParamsTest.java | 151 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/ |
D | CustomDialogPreference.java | 43 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()
|
D | CustomPreferenceGroup.java | 42 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()
|
D | CustomCheckBoxPreference.java | 47 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()
|
D | CustomSwitchPreference.java | 47 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()
|
D | CustomEditTextPreference.java | 47 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()
|
D | CustomPreference.java | 45 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/ |
D | DaveyView.java | 44 R.styleable.DaveyView, in DaveyView() 48 mCauseDavey = a.getBoolean(R.styleable.DaveyView_causeDavey, false); in DaveyView()
|
/cts/tests/app/src/android/app/cts/ |
D | DialogTest.java | 129 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/ |
D | WaveformView.java | 49 R.styleable.WaveformView, 0, 0); in WaveformView()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/ |
D | BoxInsetLayout.java | 399 … 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/ |
D | ContextTest.java | 417 .obtainStyledAttributes(android.R.styleable.View); in testObtainStyledAttributes() 425 android.R.styleable.TextAppearance); in testObtainStyledAttributes() 446 int[] attrs = android.R.styleable.DatePicker; in testObtainStyledAttributes()
|