Home
last modified time | relevance | path

Searched refs:obtainStyledAttributes (Results 1 – 25 of 39) sorted by relevance

12

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowTypedArrayTest.java29 assertNotNull(context.obtainStyledAttributes(new int[]{}).getResources()); in getResources()
34 …assertThat(context.obtainStyledAttributes(new int[]{android.R.attr.alpha}).getInt(0, -1)).isEqualT… in getInt_shouldReturnDefaultValue()
39 …assertThat(context.obtainStyledAttributes(new int[]{android.R.attr.alpha}).getInteger(0, -1)).isEq… in getInteger_shouldReturnDefaultValue()
44 TypedArray typedArray = context.obtainStyledAttributes( in getInt_withFlags_shouldReturnValue()
54 …assertThat(context.obtainStyledAttributes(new int[]{android.R.attr.alpha}).getResourceId(0, -1)).i… in getResourceId_shouldReturnDefaultValue()
59 TypedArray typedArray = context.obtainStyledAttributes( in getResourceId_shouldReturnActualValue()
69 assertThat(context.obtainStyledAttributes(new int[]{android.R.attr.width}).getDimension(0, -1f)) in getFraction_shouldReturnDefaultValue()
75 TypedArray typedArray = context.obtainStyledAttributes( in getFraction_shouldReturnGivenValue()
86 …assertThat(context.obtainStyledAttributes(new int[]{android.R.attr.width}).getDimension(0, -1f)).i… in getDimension_shouldReturnDefaultValue()
91 TypedArray typedArray = context.obtainStyledAttributes( in getDimension_shouldReturnGivenValue()
[all …]
DShadowThemeTest.java84 assertThat(theme.obtainStyledAttributes(new int[] {R.attr.string1}).hasValue(0)).isFalse(); in forStylesWithImplicitParents_shouldInheritValuesNotDefinedInChild()
90 assertThat(theme.obtainStyledAttributes(new int[] {R.attr.parent_string}).getString(0)) in shouldApplyParentStylesFromAttrs()
97 assertThat(theme.obtainStyledAttributes(new int[] {R.attr.parent_string}).getString(0)) in applyStyle_shouldOverrideParentAttrs()
104 assertThat(theme.obtainStyledAttributes(new int[] {R.attr.parent_string}).getString(0)) in applyStyle_shouldOverrideImplicitParentAttrs()
111 assertThat(theme.obtainStyledAttributes(new int[] {R.attr.child_string}).getString(0)) in applyStyle_shouldInheritParentAttrs()
113 assertThat(theme.obtainStyledAttributes(new int[] {R.attr.parent_string}).getString(0)) in applyStyle_shouldInheritParentAttrs()
121 assertThat(theme1.obtainStyledAttributes(new int[]{R.attr.string1}).getString(0)) in setTo_shouldCopyAllAttributesToEmptyTheme()
127 assertThat(theme2.obtainStyledAttributes(new int[]{R.attr.string1}).getString(0)) in setTo_shouldCopyAllAttributesToEmptyTheme()
140 assertThat(destTheme.obtainStyledAttributes(new int[]{R.attr.string1}).getString(0)) in setTo_whenDestThemeIsModified_sourceThemeShouldNotMutate()
142 assertThat(sourceTheme.obtainStyledAttributes(new int[]{R.attr.string1}).getString(0)) in setTo_whenDestThemeIsModified_sourceThemeShouldNotMutate()
[all …]
DShadowContextTest.java69 assertThat(context.obtainStyledAttributes(new int[0])).isNotNull(); in shouldStubThemeStuff()
70 assertThat(context.obtainStyledAttributes(0, new int[0])).isNotNull(); in shouldStubThemeStuff()
71 assertThat(context.obtainStyledAttributes(null, new int[0])).isNotNull(); in shouldStubThemeStuff()
72 assertThat(context.obtainStyledAttributes(null, new int[0], 0, 0)).isNotNull(); in shouldStubThemeStuff()
258 TypedArray a = context.obtainStyledAttributes(roboAttributeSet, R.styleable.CustomView); in obtainStyledAttributes_shouldExtractAttributesFromAttributeSet()
266 …TypedArray typedArray = context.obtainStyledAttributes(roboAttributeSet, new int[]{R.attr.quitKeyC… in obtainStyledAttributes_shouldExtractAttributesFromAttributeSet()
DShadowResourcesTest.java178 .obtainStyledAttributes( in obtainStyledAttributes_shouldCheckXmlFirst_fromAttributeSetBuilder()
207 .obtainStyledAttributes( in obtainStyledAttributesShouldCheckXmlFirst_andFollowReferences()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowResources.java290 protected TypedArray obtainStyledAttributes(int[] attrs) { in obtainStyledAttributes() method in ShadowResources.ShadowLegacyTheme
291 return obtainStyledAttributes(0, attrs); in obtainStyledAttributes()
295 protected TypedArray obtainStyledAttributes(int resid, int[] attrs) in obtainStyledAttributes() method in ShadowResources.ShadowLegacyTheme
297 return obtainStyledAttributes(null, attrs, 0, resid); in obtainStyledAttributes()
301 protected TypedArray obtainStyledAttributes( in obtainStyledAttributes() method in ShadowResources.ShadowLegacyTheme
/external/setupdesign/main/src/com/google/android/setupdesign/items/
DExpandableSwitchItem.java76 final TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.SudExpandableSwitchItem); in ExpandableSwitchItem()
175 view.getContext().obtainStyledAttributes(new int[] {android.R.attr.textColorPrimary}); in tintCompoundDrawables()
DSwitchItem.java62 final TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.SudSwitchItem); in SwitchItem()
DAbstractItemHierarchy.java41 TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.SudAbstractItem); in AbstractItemHierarchy()
DButtonItem.java53 TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.SudButtonItem); in ButtonItem()
DItem.java55 TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.SudItem); in Item()
/external/setupcompat/main/java/com/google/android/setupcompat/template/
DSystemNavBarMixin.java79 .obtainStyledAttributes(attrs, R.styleable.SucSystemNavBarMixin, defStyleAttr, 0); in applyPartnerCustomizations()
204 context.obtainStyledAttributes( in showSystemBars()
DStatusBarMixin.java89 .obtainStyledAttributes(attrs, R.styleable.SucStatusBarMixin, defStyleAttr, 0); in StatusBarMixin()
/external/setupcompat/main/java/com/google/android/setupcompat/
DPartnerCustomizationLayout.java89 .obtainStyledAttributes( in init()
147 .obtainStyledAttributes( in onBeforeTemplateInflated()
/external/setupdesign/main/src/com/google/android/setupdesign/view/
DIntrinsicSizeFrameLayout.java58 context.obtainStyledAttributes( in init()
DFillContentLayout.java62 context.obtainStyledAttributes(attrs, R.styleable.SudFillContentLayout, defStyleAttr, 0); in init()
DNavigationBar.java55 context.obtainStyledAttributes( in getNavbarTheme()
DStickyHeaderListView.java78 .obtainStyledAttributes(attrs, R.styleable.SudStickyHeaderListView, defStyleAttr, 0); in init()
DIllustration.java75 getContext().obtainStyledAttributes(attrs, R.styleable.SudIllustration, defStyleAttr, 0); in init()
/external/replicaisland/src/com/replica/replicaisland/
DSliderPreference.java52 TypedArray a = context.obtainStyledAttributes(attrs, in SliderPreference()
/external/walt/android/WALT/app/src/main/java/org/chromium/latency/walt/
DNumberPickerPreference.java43 TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.NumberPickerPreference); in NumberPickerPreference()
/external/setupdesign/main/src/com/google/android/setupdesign/
DDividerItemDecoration.java86 final TypedArray a = context.obtainStyledAttributes(R.styleable.SudDividerItemDecoration); in DividerItemDecoration()
/external/setupdesign/main/src/com/google/android/setupdesign/template/
DListMixin.java60 context.obtainStyledAttributes(attrs, R.styleable.SudListMixin, defStyleAttr, 0); in ListMixin()
DRecyclerMixin.java104 context.obtainStyledAttributes(attrs, R.styleable.SudRecyclerMixin, defStyleAttr, 0); in parseAttributes()
DIconMixin.java70 context.obtainStyledAttributes(attrs, R.styleable.SudIconMixin, defStyleAttr, 0); in IconMixin()
/external/setupcompat/main/java/com/google/android/setupcompat/internal/
DTemplateLayout.java75 getContext().obtainStyledAttributes(attrs, R.styleable.SucTemplateLayout, defStyleAttr, 0); in init()

12