Home
last modified time | relevance | path

Searched refs:styledAttrs (Results 1 – 9 of 9) sorted by relevance

/packages/apps/Launcher3/src/com/android/launcher3/views/
DShadowInfo.kt40 val styledAttrs = in fromContext() constant
45 styledAttrs in fromContext()
49 styledAttrs.getColor(R.styleable.ShadowInfo_ambientShadowColor, 0), in fromContext()
51 styledAttrs in fromContext()
55 styledAttrs in fromContext()
59 styledAttrs in fromContext()
62 keyShadowColor = styledAttrs.getColor(R.styleable.ShadowInfo_keyShadowColor, 0) in fromContext()
64 styledAttrs.recycle() in fromContext()
/packages/apps/Launcher3/tests/src/com/android/launcher3/ui/
DShadowInfoTest.kt42 val styledAttrs: TypedArray = mock() in ShadowInfo is created correctly from context() constant
52 doReturn(styledAttrs) in ShadowInfo is created correctly from context()
56 .whenever(styledAttrs) in ShadowInfo is created correctly from context()
58 doReturn(2).whenever(styledAttrs).getColor(R.styleable.ShadowInfo_ambientShadowColor, 0) in ShadowInfo is created correctly from context()
60 .whenever(styledAttrs) in ShadowInfo is created correctly from context()
63 .whenever(styledAttrs) in ShadowInfo is created correctly from context()
66 .whenever(styledAttrs) in ShadowInfo is created correctly from context()
68 doReturn(6).whenever(styledAttrs).getColor(R.styleable.ShadowInfo_keyShadowColor, 0) in ShadowInfo is created correctly from context()
/packages/apps/Launcher3/src/com/android/launcher3/responsive/
DSizeSpec.kt147 val styledAttrs = resourceHelper.obtainStyledAttributes(attrs, R.styleable.SizeSpec) in create() constant
149 val fixedSize = getValue(styledAttrs, R.styleable.SizeSpec_fixedSize) in create()
150 val ofAvailableSpace = getValue(styledAttrs, R.styleable.SizeSpec_ofAvailableSpace) in create()
151 val ofRemainderSpace = getValue(styledAttrs, R.styleable.SizeSpec_ofRemainderSpace) in create()
152 val matchWorkspace = styledAttrs.getBoolean(R.styleable.SizeSpec_matchWorkspace, false) in create()
154 styledAttrs.getDimensionPixelSize(R.styleable.SizeSpec_maxSize, Int.MAX_VALUE) in create()
156 styledAttrs.recycle() in create()
/packages/apps/Settings/src/com/android/settings/widget/
DLabeledSeekBarPreference.java74 final TypedArray styledAttrs = context.obtainStyledAttributes(attrs, in LabeledSeekBarPreference() local
76 mTextStartId = styledAttrs.getResourceId( in LabeledSeekBarPreference()
78 mTextEndId = styledAttrs.getResourceId( in LabeledSeekBarPreference()
80 mTickMarkId = styledAttrs.getResourceId( in LabeledSeekBarPreference()
82 mIconStartId = styledAttrs.getResourceId( in LabeledSeekBarPreference()
84 mIconEndId = styledAttrs.getResourceId( in LabeledSeekBarPreference()
87 mIconStartContentDescriptionId = styledAttrs.getResourceId( in LabeledSeekBarPreference()
94 mIconEndContentDescriptionId = styledAttrs.getResourceId( in LabeledSeekBarPreference()
100 styledAttrs.recycle(); in LabeledSeekBarPreference()
DTwoStateButtonPreference.java49 final TypedArray styledAttrs = context.obtainStyledAttributes(attrs, in TwoStateButtonPreference() local
51 final int textOnId = styledAttrs.getResourceId( in TwoStateButtonPreference()
54 final int textOffId = styledAttrs.getResourceId( in TwoStateButtonPreference()
57 styledAttrs.recycle(); in TwoStateButtonPreference()
/packages/apps/Settings/src/com/android/settings/accessibility/
DBackgroundPreference.java48 final TypedArray styledAttrs = context.obtainStyledAttributes(attrs, in BackgroundPreference() local
50 mBackgroundId = styledAttrs.getResourceId(R.styleable.BackgroundPreference_background, 0); in BackgroundPreference()
51 styledAttrs.recycle(); in BackgroundPreference()
/packages/apps/Settings/src/com/android/settings/display/
DAppGridView.java85 final TypedArray styledAttrs = in applyAttributeSet() local
88 styledAttrs.getInteger(R.styleable.AppGridView_appCount, APP_COUNT_DEF_VALUE); in applyAttributeSet()
92 styledAttrs.recycle(); in applyAttributeSet()
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/
DDocumentsSwipeRefreshLayout.java56 final int[] styledAttrs = {android.R.attr.colorAccent}; in DocumentsSwipeRefreshLayout() local
58 TypedArray a = context.obtainStyledAttributes(styledAttrs); in DocumentsSwipeRefreshLayout()
/packages/apps/DocumentsUI/src/com/android/documentsui/
DNavigationViewManager.java182 final int[] styledAttrs = {android.R.attr.statusBarColor}; in NavigationViewManager() local
183 TypedArray a = mActivity.obtainStyledAttributes(styledAttrs); in NavigationViewManager()