Home
last modified time | relevance | path

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

12

/packages/apps/Car/SystemUI/src/com/android/systemui/car/systembar/
DCarSystemBarButton.java102 TypedArray typedArray = context.obtainStyledAttributes(attrs, in CarSystemBarButton() local
105 setUpIntents(typedArray); in CarSystemBarButton()
106 setUpIcons(typedArray); in CarSystemBarButton()
107 typedArray.recycle(); in CarSystemBarButton()
269 protected void setUpIntents(TypedArray typedArray) { in setUpIntents() argument
270 mIntent = typedArray.getString(R.styleable.CarSystemBarButton_intent); in setUpIntents()
271 mLongIntent = typedArray.getString(R.styleable.CarSystemBarButton_longIntent); in setUpIntents()
272 mBroadcastIntent = typedArray.getBoolean(R.styleable.CarSystemBarButton_broadcast, false); in setUpIntents()
274 mClearBackStack = typedArray.getBoolean(R.styleable.CarSystemBarButton_clearBackStack, in setUpIntents()
277 String categoryString = typedArray.getString(R.styleable.CarSystemBarButton_categories); in setUpIntents()
[all …]
DAssitantButton.java86 protected void setUpIntents(TypedArray typedArray) { in setUpIntents() argument
/packages/apps/Car/SystemUI/src/com/android/systemui/car/hvac/toggle/
DHvacToggleButton.java96 TypedArray typedArray = mContext.obtainStyledAttributes(attrs, R.styleable.HvacView); in parseAttributes() local
97 mPropertyId = typedArray.getInt(R.styleable.HvacView_hvacPropertyId, INVALID_ID); in parseAttributes()
98 mAreaId = typedArray.getInt(R.styleable.HvacView_hvacAreaId, INVALID_ID); in parseAttributes()
99 mOnDrawable = typedArray.getDrawable(R.styleable.HvacView_hvacToggleOnButtonDrawable); in parseAttributes()
100 mOffDrawable = typedArray.getDrawable(R.styleable.HvacView_hvacToggleOffButtonDrawable); in parseAttributes()
102 typedArray.getBoolean(R.styleable.HvacView_hvacTurnOffIfPowerOff, true); in parseAttributes()
103 mTurnOffIfAutoOn = typedArray.getBoolean(R.styleable.HvacView_hvacTurnOffIfAutoOn, false); in parseAttributes()
106 typedArray.recycle(); in parseAttributes()
DHvacIntegerToggleButton.java57 TypedArray typedArray = mContext.obtainStyledAttributes(attrs, in parseAttributes() local
59 int invalidValue = typedArray.getInt(R.styleable.HvacIntegerToggleButton_invalidValue, in parseAttributes()
61 mOnValue = typedArray.getInt(R.styleable.HvacIntegerToggleButton_onValue, invalidValue); in parseAttributes()
62 mOffValue = typedArray.getInt(R.styleable.HvacIntegerToggleButton_offValue, invalidValue); in parseAttributes()
63 mPreventToggleOff = typedArray.getBoolean( in parseAttributes()
65 typedArray.recycle(); in parseAttributes()
/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/
DSeatTemperatureLevelButton.java157 TypedArray typedArray = mContext.obtainStyledAttributes(attrs, R.styleable.HvacView); in parseAttributes() local
158 mAreaId = typedArray.getInt(R.styleable.HvacView_hvacAreaId, INVALID_ID); in parseAttributes()
159 typedArray.recycle(); in parseAttributes()
161 typedArray = mContext.obtainStyledAttributes(attrs, R.styleable.SeatTemperatureLevelButton); in parseAttributes()
162 mTemperatureLevelType = typedArray.getInt( in parseAttributes()
165 @ArrayRes int drawableListRes = typedArray.getResourceId( in parseAttributes()
180 typedArray.recycle(); in parseAttributes()
DTemperatureControlView.java69 TypedArray typedArray = context.obtainStyledAttributes(attrs, R.styleable.HvacView); in TemperatureControlView() local
70 mAreaId = typedArray.getInt(R.styleable.HvacView_hvacAreaId, INVALID_ID); in TemperatureControlView()
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/search/indexing/
DDevicePolicyResourcesUtils.java376 Context context, TypedArray typedArray, int resId) { in isDevicePolicyResource() argument
379 typedArray.getResourceId(resId, -1)); in isDevicePolicyResource()
400 Context context, TypedArray typedArray, int resId) { in getDevicePolicyResource() argument
403 typedArray.getResourceId(resId, -1)); in getDevicePolicyResource()
405 return typedArray.getString(resId); in getDevicePolicyResource()
409 typedArray.getString(resId)); in getDevicePolicyResource()
411 return typedArray.getString(resId); in getDevicePolicyResource()
/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/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/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/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/Launcher3/src/com/android/launcher3/workprofile/
DPersonalWorkSlidingTabStrip.java42 TypedArray typedArray = context.obtainStyledAttributes(attrs, in PersonalWorkSlidingTabStrip() local
44 mIsAlignOnIcon = typedArray.getBoolean( in PersonalWorkSlidingTabStrip()
46 typedArray.recycle(); in PersonalWorkSlidingTabStrip()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/qc/
DQCFooterButton.java65 TypedArray typedArray = context.obtainStyledAttributes(attrs, in QCFooterButton() local
67 String intentString = typedArray.getString(R.styleable.QCFooterButton_intent); in QCFooterButton()
90 mDisableWhileDriving = typedArray.getBoolean( in QCFooterButton()
/packages/apps/Car/Settings/src/com/android/car/settings/security/
DPinPadView.java136 TypedArray typedArray = getContext().obtainStyledAttributes( in init() local
139 typedArray.getResourceId(R.styleable.PinPadView_layout, R.layout.pin_pad_view), in init()
141 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/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/services/Car/car_product/car_ui_portrait/apps/CarUiPortraitSystemUI/src/com/android/systemui/car/hvac/custom/
DFanSpeedSeekBar.java129 TypedArray typedArray = mContext.obtainStyledAttributes(attrs, R.styleable.FanSpeedSeekBar); in init() local
130 @ArrayRes int drawableListRes = typedArray.getResourceId( in init()
145 typedArray.recycle(); in init()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/
DCategorySelectorFragment.java393 TypedArray typedArray = getContext().obtainStyledAttributes( in showPermissionSnackbar() local
396 textView.setTextColor(typedArray.getColor(0, Color.TRANSPARENT)); in showPermissionSnackbar()
397 snackbar.setActionTextColor(typedArray.getColor(1, Color.TRANSPARENT)); in showPermissionSnackbar()
398 typedArray.recycle(); in showPermissionSnackbar()
/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/services/Car/car_product/car_ui_portrait/apps/CarUiPortraitSystemUI/src/com/android/systemui/car/hvac/
DCarUiPortraitTemperatureControlView.java71 TypedArray typedArray = context.obtainStyledAttributes(attrs, R.styleable.HvacView); in CarUiPortraitTemperatureControlView() local
72 mAreaId = typedArray.getInt(R.styleable.HvacView_hvacAreaId, INVALID_ID); in CarUiPortraitTemperatureControlView()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/v31/
DPermissionDetailsFragment.java173 TypedArray typedArray = activity.obtainStyledAttributes(new int[] { textColorAttr }); in onCreateView() local
174 ColorStateList textColor = typedArray.getColorStateList(0); in onCreateView()
175 typedArray.recycle(); in onCreateView()
/packages/apps/Settings/src/com/android/settings/accessibility/
DAccessibilityDialogUtils.java468 final TypedArray typedArray = context.obtainStyledAttributes(attrs); in getAttrResourceId() local
469 final int colorResId = typedArray.getResourceId(0, 0); in getAttrResourceId()
470 typedArray.recycle(); in getAttrResourceId()

12