Home
last modified time | relevance | path

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

12

/aosp12/packages/apps/Car/SystemUI/src/com/android/systemui/car/systembar/
H A DCarSystemBarButton.java101 setUpIntents(typedArray); in CarSystemBarButton()
102 setUpIcons(typedArray); in CarSystemBarButton()
103 typedArray.recycle(); in CarSystemBarButton()
267 protected void setUpIntents(TypedArray typedArray) { in setUpIntents() argument
371 private void setUpIcons(TypedArray typedArray) {
372 mSelectedAlpha = typedArray.getFloat(
374 mUnselectedAlpha = typedArray.getFloat(
376 mHighlightWhenSelected = typedArray.getBoolean(
379 mShowMoreWhenSelected = typedArray.getBoolean(
383 mIconResourceId = typedArray.getResourceId(
[all …]
/aosp12/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
H A DExifInterfaceTest.java136 latitude = typedArray.getFloat(4, 0f); in ExpectedValue()
137 longitude = typedArray.getFloat(5, 0f); in ExpectedValue()
138 altitude = typedArray.getFloat(6, 0f); in ExpectedValue()
141 make = getString(typedArray, 7); in ExpectedValue()
142 model = getString(typedArray, 8); in ExpectedValue()
143 fNumber = typedArray.getFloat(9, 0f); in ExpectedValue()
144 datetime = getString(typedArray, 10); in ExpectedValue()
146 flash = typedArray.getFloat(12, 0f); in ExpectedValue()
158 imageWidth = typedArray.getInt(24, 0); in ExpectedValue()
159 iso = getString(typedArray, 25); in ExpectedValue()
[all …]
/aosp12/packages/apps/Car/SystemUI/src/com/android/systemui/car/hvac/toggle/
H A 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()
H A 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()
/aosp12/frameworks/base/core/java/android/text/style/
H A DSuggestionSpan.java214 TypedArray typedArray = context.obtainStyledAttributes( in initStyle() local
216 mMisspelledUnderlineThickness = typedArray.getDimension( in initStyle()
218 mMisspelledUnderlineColor = typedArray.getColor( in initStyle()
222 typedArray = context.obtainStyledAttributes( in initStyle()
224 mGrammarErrorUnderlineThickness = typedArray.getDimension( in initStyle()
226 mGrammarErrorUnderlineColor = typedArray.getColor( in initStyle()
230 typedArray = context.obtainStyledAttributes( in initStyle()
232 mEasyCorrectUnderlineThickness = typedArray.getDimension( in initStyle()
234 mEasyCorrectUnderlineColor = typedArray.getColor( in initStyle()
238 typedArray = context.obtainStyledAttributes( in initStyle()
[all …]
/aosp12/packages/apps/Dialer/java/com/android/dialer/common/preference/
H A 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()
/aosp12/packages/apps/Car/SystemUI/src/com/android/systemui/car/hvac/
H A 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()
/aosp12/packages/apps/Dialer/java/com/android/incallui/video/impl/
H A 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()
/aosp12/packages/apps/Dialer/java/com/android/incallui/rtt/impl/
H A 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()
/aosp12/packages/apps/Dialer/java/com/android/incallui/autoresizetext/
H A 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()
/aosp12/packages/services/Telephony/src/com/android/phone/
H A 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()
/aosp12/frameworks/opt/setupwizard/library/recyclerview/src/com/android/setupwizardlib/items/
H A DRecyclerItemAdapter.java100 final TypedArray typedArray = in onCreateViewHolder() local
103 typedArray.getDrawable( in onCreateViewHolder()
107 typedArray.getDrawable(R.styleable.SuwRecyclerItemAdapter_selectableItemBackground); in onCreateViewHolder()
113 typedArray.getDrawable(R.styleable.SuwRecyclerItemAdapter_android_colorBackground); in onCreateViewHolder()
129 typedArray.recycle(); in onCreateViewHolder()
/aosp12/frameworks/opt/car/setupwizard/library/main/src/com/android/car/setupwizardlib/util/
H A DCarSetupWizardUiUtils.java172 final TypedArray typedArray = in disableImmersiveMode() local
177 int statusBarColor = typedArray.getColor(0, 0); in disableImmersiveMode()
178 int navigationBarColor = typedArray.getColor(1, 0); in disableImmersiveMode()
183 typedArray.recycle(); in disableImmersiveMode()
/aosp12/packages/apps/Contacts/src/com/android/contacts/util/
H A 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()
/aosp12/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/tv/
H A DTvPipMenuActionButton.java71 final TypedArray typedArray = context.obtainStyledAttributes(attrs, values, defStyleAttr, in TvPipMenuActionButton() local
74 setImageResource(typedArray.getResourceId(0, 0)); in TvPipMenuActionButton()
75 final int textResId = typedArray.getResourceId(1, 0); in TvPipMenuActionButton()
80 typedArray.recycle(); in TvPipMenuActionButton()
/aosp12/packages/apps/Car/SystemUI/src/com/android/systemui/car/qc/
H A 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()
/aosp12/frameworks/base/core/java/android/content/res/
H A DFontResourcesParser.java185 TypedArray typedArray = resources.obtainTypedArray(certsId); in readFamily() local
186 if (typedArray.length() > 0) { in readFamily()
188 boolean isArrayOfArrays = typedArray.getResourceId(0, 0) != 0; in readFamily()
190 for (int i = 0; i < typedArray.length(); i++) { in readFamily()
191 int certId = typedArray.getResourceId(i, 0); in readFamily()
/aosp12/packages/apps/Dialer/java/com/android/incallui/incall/impl/
H A 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()
/aosp12/frameworks/base/core/java/android/content/pm/parsing/component/
H A DComponentParseUtils.java140 public static int flag(int flag, @AttrRes int attribute, TypedArray typedArray) { in flag() argument
141 return typedArray.getBoolean(attribute, false) ? flag : 0; in flag()
145 TypedArray typedArray) { in flag() argument
146 return typedArray.getBoolean(attribute, defaultValue) ? flag : 0; in flag()
/aosp12/frameworks/base/core/tests/overlaytests/device/src/com/android/overlaytest/view/
H A DTestTextView.java40 TypedArray typedArray = theme.obtainStyledAttributes(attrs, testResources, defStyleAttr, in TestTextView() local
42 mCustomAttributeValue = typedArray.getString(0); in TestTextView()
/aosp12/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/util/
H A DSystemBarHelper.java130 final TypedArray typedArray = in showSystemBars() local
133 final int statusBarColor = typedArray.getColor(0, 0); in showSystemBars()
134 final int navigationBarColor = typedArray.getColor(1, 0); in showSystemBars()
137 typedArray.recycle(); in showSystemBars()
/aosp12/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/androidTest/java/com/android/car/ui/recyclerview/
H A DCarUiRecyclerViewTest.java208 doReturn(typedArray).when(mTestableContext).obtainStyledAttributes( in testSmallRecyclerView_scrollbarDisabled()
213 when(typedArray.getInt(eq(R.styleable.CarUiRecyclerView_carUiSize), in testSmallRecyclerView_scrollbarDisabled()
232 doReturn(typedArray).when(mTestableContext).obtainStyledAttributes( in testMediumRecyclerView_scrollbarDisabled()
237 when(typedArray.getInt(eq(R.styleable.CarUiRecyclerView_carUiSize), in testMediumRecyclerView_scrollbarDisabled()
256 doReturn(typedArray).when(mTestableContext).obtainStyledAttributes( in testLargeRecyclerView_scrollbarDisabled()
261 when(typedArray.getInt(eq(R.styleable.CarUiRecyclerView_carUiSize), in testLargeRecyclerView_scrollbarDisabled()
299 doReturn(typedArray).when(mTestableContext).obtainStyledAttributes( in testGridLayout()
348 doReturn(typedArray).when(mTestableContext).obtainStyledAttributes( in testLinearLayout()
474 doReturn(typedArray).when(mTestableContext).obtainStyledAttributes( in testSetLayoutManager_shouldUpdateItemDecorations()
1421 doReturn(typedArray).when(mTestableContext).obtainStyledAttributes( in testLargeSize_withScrollbar()
[all …]
/aosp12/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/
H A DManageEducationView.kt74 val typedArray = mContext.obtainStyledAttributes(intArrayOf( regex
76 val buttonColor = typedArray.getColor(0 /* index */, Color.TRANSPARENT)
77 typedArray.recycle()
/aosp12/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/widget/
H A DPrintOptionsLayout.java40 TypedArray typedArray = context.obtainStyledAttributes(attrs, in PrintOptionsLayout() local
42 mColumnCount = typedArray.getInteger(R.styleable.PrintOptionsLayout_columnCount, 0); in PrintOptionsLayout()
43 typedArray.recycle(); in PrintOptionsLayout()
/aosp12/packages/apps/Car/Settings/src/com/android/car/settings/security/
H A 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()

12