Home
last modified time | relevance | path

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

12

/packages/apps/Car/SystemUI/src/com/android/systemui/car/systembar/
DCarSystemBarPanelButtonView.java94 TypedArray typedArray = context.obtainStyledAttributes(attrs, in init() local
96 mPanelLayoutRes = typedArray.getResourceId( in init()
99 mPanelWidthRes = typedArray.getResourceId( in init()
102 mXOffset = typedArray.hasValue(R.styleable.CarSystemBarPanelButtonView_xOffset) in init()
103 ? typedArray.getInteger(R.styleable.CarSystemBarPanelButtonView_xOffset, 0) : null; in init()
104 mYOffset = typedArray.hasValue(R.styleable.CarSystemBarPanelButtonView_yOffset) in init()
105 ? typedArray.getInteger(R.styleable.CarSystemBarPanelButtonView_yOffset, 0) : null; in init()
106 mGravity = typedArray.hasValue(R.styleable.CarSystemBarPanelButtonView_gravity) in init()
107 ? typedArray.getInteger(R.styleable.CarSystemBarPanelButtonView_gravity, 0) : null; in init()
109 typedArray.hasValue(R.styleable.CarSystemBarPanelButtonView_disabledWhileDriving) in init()
[all …]
DCarSystemBarButton.java133 TypedArray typedArray = context.obtainStyledAttributes(attrs, in CarSystemBarButton() local
148 setUpCategories(typedArray); in CarSystemBarButton()
149 setUpIntents(typedArray); in CarSystemBarButton()
150 setUpIcons(typedArray); in CarSystemBarButton()
151 typedArray.recycle(); in CarSystemBarButton()
350 protected void setUpCategories(TypedArray typedArray) { in setUpCategories() argument
351 String categoryString = typedArray.getString(R.styleable.CarSystemBarButton_categories); in setUpCategories()
352 String packageString = typedArray.getString(R.styleable.CarSystemBarButton_packages); in setUpCategories()
354 typedArray.getString(R.styleable.CarSystemBarButton_componentNames); in setUpCategories()
356 typedArray.getString(R.styleable.CarSystemBarButton_panelNames); in setUpCategories()
[all …]
DAppGridButton.java41 protected void setUpIntents(TypedArray typedArray) { in setUpIntents() argument
42 mRecentsButtonStateProvider.setUpIntents(typedArray, super::setUpIntents); in setUpIntents()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/systembar/element/
DCarSystemBarElementFlags.java89 TypedArray typedArray = context.obtainStyledAttributes(attrs, in getStatusBarManagerDisableFlagsFromAttributes() local
91 int flags = typedArray.getInt(R.styleable.CarSystemBarElement_systemBarDisableFlags, in getStatusBarManagerDisableFlagsFromAttributes()
93 typedArray.recycle(); in getStatusBarManagerDisableFlagsFromAttributes()
132 TypedArray typedArray = context.obtainStyledAttributes(attrs, in getStatusBarManagerDisable2FlagsFromAttributes() local
134 int flags = typedArray.getInt(R.styleable.CarSystemBarElement_systemBarDisable2Flags, in getStatusBarManagerDisable2FlagsFromAttributes()
136 typedArray.recycle(); in getStatusBarManagerDisable2FlagsFromAttributes()
171 TypedArray typedArray = context.obtainStyledAttributes(attrs, in getDisableForLockTaskModeLockedFromAttributes() local
173 boolean disable = typedArray.getBoolean( in getDisableForLockTaskModeLockedFromAttributes()
175 typedArray.recycle(); in getDisableForLockTaskModeLockedFromAttributes()
DCarSystemBarElementResolver.java55 TypedArray typedArray = context.obtainStyledAttributes(attrs, in getElementControllerClassFromAttributes() local
57 String str = typedArray.getString(R.styleable.CarSystemBarElement_controller); in getElementControllerClassFromAttributes()
58 typedArray.recycle(); in getElementControllerClassFromAttributes()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/hvac/toggle/
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()
DHvacToggleButton.java97 TypedArray typedArray = mContext.obtainStyledAttributes(attrs, R.styleable.HvacView); in parseAttributes() local
98 mPropertyId = typedArray.getInt(R.styleable.HvacView_hvacPropertyId, INVALID_ID); in parseAttributes()
99 mAreaId = typedArray.getInt(R.styleable.HvacView_hvacAreaId, INVALID_ID); in parseAttributes()
100 mOnDrawable = typedArray.getDrawable(R.styleable.HvacView_hvacToggleOnButtonDrawable); in parseAttributes()
101 mOffDrawable = typedArray.getDrawable(R.styleable.HvacView_hvacToggleOffButtonDrawable); in parseAttributes()
103 typedArray.getBoolean(R.styleable.HvacView_hvacDisableViewIfAutoOn, false); in parseAttributes()
106 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.java169 TypedArray typedArray = mContext.obtainStyledAttributes(attrs, R.styleable.HvacView); in parseAttributes() local
170 mAreaId = typedArray.getInt(R.styleable.HvacView_hvacAreaId, INVALID_ID); in parseAttributes()
171 typedArray.recycle(); in parseAttributes()
173 typedArray = mContext.obtainStyledAttributes(attrs, R.styleable.SeatTemperatureLevelButton); in parseAttributes()
174 mTemperatureLevelType = typedArray.getInt( in parseAttributes()
177 @ArrayRes int drawableListRes = typedArray.getResourceId( in parseAttributes()
193 typedArray.recycle(); in parseAttributes()
/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/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/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/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/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/Car/SystemUI/src/com/android/systemui/car/qc/
DQCFooterView.java85 TypedArray typedArray = context.obtainStyledAttributes(attrs, in QCFooterView() local
87 String intentString = typedArray.getString(R.styleable.QCFooterView_intent); in QCFooterView()
97 mDisableWhileDriving = typedArray.getBoolean( in QCFooterView()
99 typedArray.recycle(); in QCFooterView()
DQCFooterButton.java80 TypedArray typedArray = context.obtainStyledAttributes(attrs, in QCFooterButton() local
82 String intentString = typedArray.getString(R.styleable.QCFooterButton_intent); in QCFooterButton()
93 mDisableWhileDriving = typedArray.getBoolean( in QCFooterButton()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/
DThemedAlertDialog.kt41 …val typedArray = context.theme.obtainStyledAttributes(intArrayOf(com.google.android.material.R.att… in isMaterial3Theme() constant
43 return typedArray.getBoolean(0, false) in isMaterial3Theme()
45 typedArray.recycle() in isMaterial3Theme()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessibility/
DAccessibilityColorCorrectionPreviewFragment.java81 TypedArray typedArray = in getPaletteItemIds() local
83 int[] ids = new int[typedArray.length()]; in getPaletteItemIds()
85 ids[i] = typedArray.getResourceId(i, 0); in getPaletteItemIds()
87 typedArray.recycle(); in getPaletteItemIds()
/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/Car/SystemUI/src/com/android/systemui/car/wm/displayarea/
DDaView.kt107 val typedArray = context.obtainStyledAttributes(attrs, R.styleable.DisplayAreaView) constant
108 cornerRadius = typedArray.getInteger(R.styleable.DisplayAreaView_cornerRadius, 0)
110 typedArray.getInteger(R.styleable.DisplayAreaView_displayAreaFeatureId, -1)
112 typedArray.getInteger(R.styleable.DisplayAreaView_launchTaskDisplayAreaFeatureId, -1)
115 typedArray.recycle()
/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.java45 TypedArray typedArray = context.obtainStyledAttributes(attrs, in PersonalWorkSlidingTabStrip() local
47 mIsAlignOnIcon = typedArray.getBoolean( in PersonalWorkSlidingTabStrip()
49 typedArray.recycle(); in PersonalWorkSlidingTabStrip()
/packages/services/Car/car_product/car_ui_portrait/apps/CarUiPortraitSystemUI/src/com/android/systemui/car/hvac/custom/
DFanDirectionButton.java76 TypedArray typedArray = mContext.obtainStyledAttributes(attrs, in parseAttributes() local
78 mSingleHvacDirectionBit = typedArray.getInt( in parseAttributes()
80 typedArray.recycle(); in parseAttributes()
/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/services/Car/car_product/car_ui_portrait/apps/CarUiPortraitSystemUI/src/com/android/systemui/car/systembar/
DCarUiPortraitAppGridButton.java60 protected void setUpIntents(TypedArray typedArray) { in setUpIntents() argument
61 mRecentsButtonStateProvider.setUpIntents(typedArray, super::setUpIntents); in setUpIntents()

12