Home
last modified time | relevance | path

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

/packages/apps/Car/SystemUI/src/com/android/systemui/car/systembar/
DCarSystemBarButton.java92 TypedArray typedArray = context.obtainStyledAttributes(attrs, in CarSystemBarButton() local
95 setUpIntents(typedArray); in CarSystemBarButton()
96 setUpIcons(typedArray); in CarSystemBarButton()
97 typedArray.recycle(); in CarSystemBarButton()
222 protected void setUpIntents(TypedArray typedArray) { in setUpIntents() argument
223 mIntent = typedArray.getString(R.styleable.CarSystemBarButton_intent); in setUpIntents()
224 mLongIntent = typedArray.getString(R.styleable.CarSystemBarButton_longIntent); in setUpIntents()
225 mBroadcastIntent = typedArray.getBoolean(R.styleable.CarSystemBarButton_broadcast, false); in setUpIntents()
227 mClearBackStack = typedArray.getBoolean(R.styleable.CarSystemBarButton_clearBackStack, in setUpIntents()
230 String categoryString = typedArray.getString(R.styleable.CarSystemBarButton_categories); in setUpIntents()
[all …]
DAssitantButton.java63 protected void setUpIntents(TypedArray typedArray) { in setUpIntents() argument
/packages/apps/Dialer/java/com/android/dialer/common/preference/
DSwitchPreferenceWithClickableSummary.java53 TypedArray typedArray = in SwitchPreferenceWithClickableSummary() local
57 typedArray.getText(R.styleable.SwitchPreferenceWithClickableSummary_urlToOpen)); in SwitchPreferenceWithClickableSummary()
63 TypedArray typedArray = in SwitchPreferenceWithClickableSummary() local
67 typedArray.getText(R.styleable.SwitchPreferenceWithClickableSummary_urlToOpen)); in SwitchPreferenceWithClickableSummary()
72 TypedArray typedArray = in SwitchPreferenceWithClickableSummary() local
76 typedArray.getText(R.styleable.SwitchPreferenceWithClickableSummary_urlToOpen)); in SwitchPreferenceWithClickableSummary()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/hvac/
DAnimatedTemperatureView.java106 TypedArray typedArray = context.obtainStyledAttributes(attrs, in AnimatedTemperatureView() local
108 mAreaId = typedArray.getInt(R.styleable.AnimatedTemperatureView_hvacAreaId, -1); in AnimatedTemperatureView()
110 typedArray.getDimensionPixelOffset( in AnimatedTemperatureView()
112 mGravity = typedArray.getInt(R.styleable.AnimatedTemperatureView_android_gravity, in AnimatedTemperatureView()
115 typedArray.getResourceId(R.styleable.AnimatedTemperatureView_android_textAppearance, in AnimatedTemperatureView()
117 mMinEms = typedArray.getInteger(R.styleable.AnimatedTemperatureView_android_minEms, 0); in AnimatedTemperatureView()
148 typedArray.recycle(); in AnimatedTemperatureView()
DTemperatureTextView.java43 TypedArray typedArray = context.obtainStyledAttributes(attrs, R.styleable.TemperatureView); in TemperatureTextView() local
44 mAreaId = typedArray.getInt(R.styleable.TemperatureView_hvacAreaId, -1); in TemperatureTextView()
DAdjustableTemperatureView.java53 TypedArray typedArray = context.obtainStyledAttributes(attrs, R.styleable.TemperatureView); in AdjustableTemperatureView() local
54 mAreaId = typedArray.getInt(R.styleable.TemperatureView_hvacAreaId, -1); in AdjustableTemperatureView()
/packages/apps/Dialer/java/com/android/incallui/autoresizetext/
DAutoResizeTextView.java77 TypedArray typedArray = context.getTheme().obtainStyledAttributes( in initialize() local
79 readAttrs(typedArray); in initialize()
80 typedArray.recycle(); in initialize()
141 private void readAttrs(TypedArray typedArray) { in readAttrs() argument
142 resizeStepUnit = typedArray.getInt( in readAttrs()
144 minTextSize = (int) typedArray.getDimension( in readAttrs()
/packages/services/Telephony/src/com/android/phone/
DCallBarringEditPreference.java77 TypedArray typedArray = context.obtainStyledAttributes(attrs, in CallBarringEditPreference() local
79 mSummaryOn = typedArray.getString(android.R.styleable.CheckBoxPreference_summaryOn); in CallBarringEditPreference()
80 mSummaryOff = typedArray.getString(android.R.styleable.CheckBoxPreference_summaryOff); in CallBarringEditPreference()
83 typedArray.recycle(); in CallBarringEditPreference()
88 typedArray = context.obtainStyledAttributes(attrs, in CallBarringEditPreference()
90 mFacility = typedArray.getString(R.styleable.CallBarringEditPreference_facility); in CallBarringEditPreference()
91 typedArray.recycle(); in CallBarringEditPreference()
/packages/apps/Dialer/java/com/android/incallui/video/impl/
DCheckableImageButton.java59 TypedArray typedArray = context.obtainStyledAttributes(attrs, R.styleable.CheckableImageButton); in init() local
60 setChecked(typedArray.getBoolean(R.styleable.CheckableImageButton_android_checked, false)); in init()
62 typedArray.getText(R.styleable.CheckableImageButton_contentDescriptionChecked); in init()
64 typedArray.getText(R.styleable.CheckableImageButton_contentDescriptionUnchecked); in init()
65 typedArray.recycle(); in init()
/packages/apps/Dialer/java/com/android/incallui/rtt/impl/
DRttCheckableButton.java64 TypedArray typedArray = context.obtainStyledAttributes(attrs, R.styleable.RttCheckableButton); in init() local
65 setChecked(typedArray.getBoolean(R.styleable.RttCheckableButton_android_checked, false)); in init()
67 typedArray.getText(R.styleable.RttCheckableButton_contentDescriptionChecked); in init()
69 typedArray.getText(R.styleable.RttCheckableButton_contentDescriptionUnchecked); in init()
70 typedArray.recycle(); in init()
/packages/apps/Contacts/src/com/android/contacts/util/
DLocalizedNameResolver.java104 final TypedArray typedArray = context.obtainStyledAttributes(attrs, in loadAllContactsNameFromXml() local
108 final String nonResourceString = typedArray.getNonResourceString( in loadAllContactsNameFromXml()
116 int id = typedArray.getResourceId( in loadAllContactsNameFromXml()
134 typedArray.recycle(); in loadAllContactsNameFromXml()
/packages/apps/Dialer/java/com/android/incallui/incall/impl/
DCheckableLabeledButton.java75 TypedArray typedArray = in init() local
77 icon = typedArray.getDrawable(R.styleable.CheckableLabeledButton_incall_icon); in init()
78 labelText = typedArray.getString(R.styleable.CheckableLabeledButton_incall_labelText); in init()
79 enabled = typedArray.getBoolean(R.styleable.CheckableLabeledButton_android_enabled, true); in init()
80 typedArray.recycle(); in init()
/packages/apps/Settings/src/com/android/settings/widget/
DDotsPageIndicator.java132 final TypedArray typedArray = getContext().obtainStyledAttributes( in DotsPageIndicator() local
134 dotDiameter = typedArray.getDimensionPixelSize(R.styleable.DotsPageIndicator_dotDiameter, in DotsPageIndicator()
138 gap = typedArray.getDimensionPixelSize(R.styleable.DotsPageIndicator_dotGap, in DotsPageIndicator()
140 animDuration = (long) typedArray.getInteger(R.styleable.DotsPageIndicator_animationDuration, in DotsPageIndicator()
143 unselectedColour = typedArray.getColor(R.styleable.DotsPageIndicator_pageIndicatorColor, in DotsPageIndicator()
145 … selectedColour = typedArray.getColor(R.styleable.DotsPageIndicator_currentPageIndicatorColor, in DotsPageIndicator()
147 typedArray.recycle(); in DotsPageIndicator()
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/androidTest/java/com/android/car/ui/recyclerview/
DCarUiRecyclerViewTest.java198 TypedArray typedArray = spy(mActivity.getBaseContext().obtainStyledAttributes( in testGridLayout() local
201 doReturn(typedArray).when(mTestableContext).obtainStyledAttributes( in testGridLayout()
206 when(typedArray.getInt(eq(R.styleable.CarUiRecyclerView_layoutStyle), anyInt())) in testGridLayout()
208 when(typedArray.getInt(eq(R.styleable.CarUiRecyclerView_numOfColumns), anyInt())) in testGridLayout()
247 TypedArray typedArray = spy(mActivity.getBaseContext().obtainStyledAttributes( in testLinearLayout() local
250 doReturn(typedArray).when(mTestableContext).obtainStyledAttributes( in testLinearLayout()
255 when(typedArray.getInt(eq(R.styleable.CarUiRecyclerView_layoutStyle), anyInt())) in testLinearLayout()
308 TypedArray typedArray = spy(mActivity.getBaseContext().obtainStyledAttributes( in testSetLayoutManager_shouldUpdateItemDecorations() local
311 doReturn(typedArray).when(mTestableContext).obtainStyledAttributes( in testSetLayoutManager_shouldUpdateItemDecorations()
316 when(typedArray.getBoolean(eq(R.styleable.CarUiRecyclerView_enableDivider), anyBoolean())) in testSetLayoutManager_shouldUpdateItemDecorations()
[all …]
/packages/apps/Car/Settings/src/com/android/car/settings/security/
DPinPadView.java135 TypedArray typedArray = getContext().obtainStyledAttributes( in init() local
138 typedArray.getResourceId(R.styleable.PinPadView_layout, R.layout.pin_pad_view), in init()
140 typedArray.recycle(); in init()
/packages/apps/Dialer/java/com/android/incallui/answer/impl/
DSmsBottomSheetFragment.java96 TypedArray typedArray = context.obtainStyledAttributes(attrs); in newTextViewItem() local
97 Drawable background = typedArray.getDrawable(0); in newTextViewItem()
99 typedArray.recycle(); in newTextViewItem()
/packages/apps/Dialer/java/com/android/dialer/calllogutils/
DCallTypeIconsView.java64 TypedArray typedArray = in CallTypeIconsView() local
66 useLargeIcons = typedArray.getBoolean(R.styleable.CallTypeIconsView_useLargeIcons, false); in CallTypeIconsView()
67 typedArray.recycle(); in CallTypeIconsView()
/packages/apps/Settings/src/com/android/settings/accessibility/
DAccessibilityDialogUtils.java462 final TypedArray typedArray = context.obtainStyledAttributes(attrs); in getAttrResourceId() local
463 final int colorResId = typedArray.getResourceId(0, 0); in getAttrResourceId()
464 typedArray.recycle(); in getAttrResourceId()
DAccessibilityGestureNavigationTutorial.java226 final TypedArray typedArray = context.obtainStyledAttributes(attrs); in getAttrResourceId() local
227 final int colorResId = typedArray.getResourceId(0, 0); in getAttrResourceId()
228 typedArray.recycle(); in getAttrResourceId()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/dashboard/
DPermissionDetailsFragment.java182 TypedArray typedArray = activity.obtainStyledAttributes(new int[] { textColorAttr }); in onCreateView() local
183 ColorStateList textColor = typedArray.getColorStateList(0); in onCreateView()
184 typedArray.recycle(); in onCreateView()