Home
last modified time | relevance | path

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

12345678910>>...22

/aosp_15_r20/external/robolectric/robolectric/src/test/java/org/robolectric/shadows/
H A DShadowTypedArrayTest.java48 TypedArray typedArray = in getInt_withFlags_shouldReturnValue() local
54 assertThat(typedArray.getInt(0, -1)).isEqualTo(0x33); in getInt_withFlags_shouldReturnValue()
67 TypedArray typedArray = in getResourceId_shouldReturnActualValue() local
73 assertThat(typedArray.getResourceId(0, -1)).isEqualTo(R.id.snippet_text); in getResourceId_shouldReturnActualValue()
86 TypedArray typedArray = in getFraction_shouldReturnGivenValue() local
90 assertThat(typedArray.getFraction(0, 100, 1, -1)).isEqualTo(50f); in getFraction_shouldReturnGivenValue()
103 TypedArray typedArray = in getDimension_shouldReturnGivenValue() local
107 assertThat(typedArray.getDimension(0, -1)).isEqualTo(50f); in getDimension_shouldReturnGivenValue()
113 TypedArray typedArray = in getDrawable_withExplicitColorValue_shouldReturnColorDrawable() local
119 ColorDrawable drawable = (ColorDrawable) typedArray.getDrawable(0); in getDrawable_withExplicitColorValue_shouldReturnColorDrawable()
[all …]
H A DShadowResourcesTest.java161 TypedArray typedArray = in obtainStyledAttributes_shouldCheckXmlFirst_fromAttributeSetBuilder() local
169 assertThat(typedArray.getFloat(0, 0)).isEqualTo(12.0f); in obtainStyledAttributes_shouldCheckXmlFirst_fromAttributeSetBuilder()
170 assertThat(typedArray.getFloat(1, 0)).isEqualTo(24.0f); in obtainStyledAttributes_shouldCheckXmlFirst_fromAttributeSetBuilder()
171 typedArray.recycle(); in obtainStyledAttributes_shouldCheckXmlFirst_fromAttributeSetBuilder()
177 TypedArray typedArray = in obtainAttributes() local
183 assertThat(typedArray).isNotNull(); in obtainAttributes()
184 assertThat(typedArray.peekValue(0).resourceId).isEqualTo(R.xml.shortcuts); in obtainAttributes()
194 TypedArray typedArray = resources.obtainAttributes(attributeSet, new int[] {android.R.attr.id}); in obtainAttributes_shouldUseReferencedIdFromAttributeSet() local
195 assertThat(typedArray.getResourceId(0, -9)).isEqualTo(android.R.id.mask); in obtainAttributes_shouldUseReferencedIdFromAttributeSet()
206 TypedArray typedArray = in obtainAttributes_shouldReturnValuesFromAttributeSet() local
[all …]
H A DShadowAssetManagerTest.java73 TypedArray typedArray = in multiFormatAttributes_integerDecimalValue() local
76 typedArray.getValue(0, outValue); in multiFormatAttributes_integerDecimalValue()
85 TypedArray typedArray = in multiFormatAttributes_integerHexValue() local
88 typedArray.getValue(0, outValue); in multiFormatAttributes_integerHexValue()
97 TypedArray typedArray = in multiFormatAttributes_stringValue() local
100 typedArray.getValue(0, outValue); in multiFormatAttributes_stringValue()
109 TypedArray typedArray = in multiFormatAttributes_booleanValue() local
112 typedArray.getValue(0, outValue); in multiFormatAttributes_booleanValue()
/aosp_15_r20/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
H A DExifInterfaceTest.java123 private static String getString(TypedArray typedArray, int index) { in getString() argument
124 String stringValue = typedArray.getString(index); in getString()
131 public ExpectedValue(TypedArray typedArray) { in ExpectedValue() argument
133 hasThumbnail = typedArray.getBoolean(0, false); in ExpectedValue()
134 thumbnailWidth = typedArray.getInt(1, 0); in ExpectedValue()
135 thumbnailHeight = typedArray.getInt(2, 0); in ExpectedValue()
138 hasLatLong = typedArray.getBoolean(3, false); in ExpectedValue()
139 latitude = typedArray.getFloat(4, 0f); in ExpectedValue()
140 longitude = typedArray.getFloat(5, 0f); in ExpectedValue()
141 altitude = typedArray.getFloat(6, 0f); in ExpectedValue()
[all …]
/aosp_15_r20/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.java122 TypedArray typedArray = context.obtainStyledAttributes(attrs, in CarSystemBarButton() local
137 setUpIntents(typedArray); in CarSystemBarButton()
138 setUpIcons(typedArray); in CarSystemBarButton()
139 typedArray.recycle(); in CarSystemBarButton()
311 protected void setUpIntents(TypedArray typedArray) { in setUpIntents() argument
312 mIntent = typedArray.getString(R.styleable.CarSystemBarButton_intent); in setUpIntents()
313 mLongIntent = typedArray.getString(R.styleable.CarSystemBarButton_longIntent); in setUpIntents()
314 mBroadcastIntent = typedArray.getBoolean(R.styleable.CarSystemBarButton_broadcast, false); in setUpIntents()
316 mClearBackStack = typedArray.getBoolean(R.styleable.CarSystemBarButton_clearBackStack, in setUpIntents()
319 String categoryString = typedArray.getString(R.styleable.CarSystemBarButton_categories); in setUpIntents()
[all …]
/aosp_15_r20/cts/tests/tests/media/misc/src/android/media/misc/cts/
H A DExifInterfaceTest.java176 private static String getString(TypedArray typedArray, int index) { in getString() argument
177 String stringValue = typedArray.getString(index); in getString()
184 public ExpectedValue(TypedArray typedArray) { in ExpectedValue() argument
188 hasThumbnail = typedArray.getBoolean(index++, false); in ExpectedValue()
189 thumbnailOffset = typedArray.getInt(index++, -1); in ExpectedValue()
190 thumbnailLength = typedArray.getInt(index++, -1); in ExpectedValue()
191 thumbnailWidth = typedArray.getInt(index++, 0); in ExpectedValue()
192 thumbnailHeight = typedArray.getInt(index++, 0); in ExpectedValue()
193 isThumbnailCompressed = typedArray.getBoolean(index++, false); in ExpectedValue()
196 hasLatLong = typedArray.getBoolean(index++, false); in ExpectedValue()
[all …]
/aosp_15_r20/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()
220 typedArray.recycle(); in initStyle()
223 typedArray = context.obtainStyledAttributes( in initStyle()
225 mGrammarErrorUnderlineThickness = typedArray.getDimension( in initStyle()
227 mGrammarErrorUnderlineColor = typedArray.getColor( in initStyle()
229 typedArray.recycle(); in initStyle()
232 typedArray = context.obtainStyledAttributes( in initStyle()
234 mEasyCorrectUnderlineThickness = typedArray.getDimension( in initStyle()
[all …]
/aosp_15_r20/developers/samples/android/ui/text/RoundedBackground-Kotlin/lib/src/main/java/com/android/example/text/styling/roundedbg/
DTextRoundedBgAttributeReader.kt44 val typedArray = context.obtainStyledAttributes( constant
50 horizontalPadding = typedArray.getDimensionPixelSize(
54 verticalPadding = typedArray.getDimensionPixelSize(
58 drawable = typedArray.getDrawableOrThrow(
61 drawableLeft = typedArray.getDrawableOrThrow(
64 drawableMid = typedArray.getDrawableOrThrow(
67 drawableRight = typedArray.getDrawableOrThrow(
70 typedArray.recycle()
/aosp_15_r20/external/skia/modules/canvaskit/
H A Dmemory.js26 CanvasKit.Malloc = function(typedArray, len) { argument
27 var byteLen = len * typedArray.BYTES_PER_ELEMENT;
33 typedArray: null,
43 if (this.typedArray && this.typedArray.length) {
44 return this.typedArray;
46 this.typedArray = new typedArray(CanvasKit.HEAPU8.buffer, ptr, len);
48 this.typedArray['_ck'] = true;
49 return this.typedArray;
63 mallocObj.typedArray = null;
/aosp_15_r20/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()
/aosp_15_r20/developers/build/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofill/app/view/widget/
H A DNavigationItem.java57 TypedArray typedArray = context.obtainStyledAttributes(attrs, R.styleable.NavigationItem, in NavigationItem() local
59 int activityMinSdk = typedArray.getInteger(R.styleable.NavigationItem_minSdk, 26); in NavigationItem()
68 String labelText = typedArray.getString(R.styleable.NavigationItem_labelText); in NavigationItem()
69 String infoText = typedArray.getString(R.styleable.NavigationItem_infoText); in NavigationItem()
70 Drawable logoDrawable = typedArray.getDrawable(R.styleable.NavigationItem_itemLogo); in NavigationItem()
71 @ColorRes int colorRes = typedArray.getResourceId(R.styleable.NavigationItem_imageColor, 0); in NavigationItem()
72 …String launchingActivityName = typedArray.getString(R.styleable.NavigationItem_destinationActivity… in NavigationItem()
74 typedArray.recycle(); in NavigationItem()
/aosp_15_r20/developers/samples/android/input/autofill/AutofillFramework/Application/src/main/java/com/example/android/autofill/app/view/widget/
DNavigationItem.java57 TypedArray typedArray = context.obtainStyledAttributes(attrs, R.styleable.NavigationItem, in NavigationItem() local
59 int activityMinSdk = typedArray.getInteger(R.styleable.NavigationItem_minSdk, 26); in NavigationItem()
68 String labelText = typedArray.getString(R.styleable.NavigationItem_labelText); in NavigationItem()
69 String infoText = typedArray.getString(R.styleable.NavigationItem_infoText); in NavigationItem()
70 Drawable logoDrawable = typedArray.getDrawable(R.styleable.NavigationItem_itemLogo); in NavigationItem()
71 @ColorRes int colorRes = typedArray.getResourceId(R.styleable.NavigationItem_imageColor, 0); in NavigationItem()
72 …String launchingActivityName = typedArray.getString(R.styleable.NavigationItem_destinationActivity… in NavigationItem()
74 typedArray.recycle(); in NavigationItem()
/aosp_15_r20/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()
/aosp_15_r20/developers/build/prebuilts/gradle/AutofillFramework/kotlinApp/Application/src/main/java/com/example/android/autofillframework/app/
H A DNavigationItem.kt39 val typedArray = context.obtainStyledAttributes(attrs, R.styleable.NavigationItem, constant
41 val labelText = typedArray.getString(R.styleable.NavigationItem_labelText)
42 val infoText = typedArray.getString(R.styleable.NavigationItem_infoText)
43 val logoDrawable = typedArray.getDrawable(R.styleable.NavigationItem_itemLogo)
44 @ColorRes val colorRes = typedArray.getResourceId(R.styleable.NavigationItem_imageColor, 0)
46 typedArray.recycle()
/aosp_15_r20/developers/samples/android/input/autofill/AutofillFramework/kotlinApp/Application/src/main/java/com/example/android/autofillframework/app/
DNavigationItem.kt39 val typedArray = context.obtainStyledAttributes(attrs, R.styleable.NavigationItem, constant
41 val labelText = typedArray.getString(R.styleable.NavigationItem_labelText)
42 val infoText = typedArray.getString(R.styleable.NavigationItem_infoText)
43 val logoDrawable = typedArray.getDrawable(R.styleable.NavigationItem_itemLogo)
44 @ColorRes val colorRes = typedArray.getResourceId(R.styleable.NavigationItem_imageColor, 0)
46 typedArray.recycle()
/aosp_15_r20/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()
/aosp_15_r20/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()
192 typedArray.recycle(); in parseAttributes()
/aosp_15_r20/external/setupdesign/main/src/com/google/android/setupdesign/transition/
H A DTransitionHelper.java259 TypedArray typedArray = in applyForwardTransition() local
266 typedArray.getResourceId(/* index= */ 0, /* defValue= */ 0), in applyForwardTransition()
267 typedArray.getResourceId(/* index= */ 1, /* defValue= */ 0)); in applyForwardTransition()
268 typedArray.recycle(); in applyForwardTransition()
380 TypedArray typedArray = in applyBackwardTransition() local
388 typedArray.getResourceId(/* index= */ 0, /* defValue= */ 0), in applyBackwardTransition()
389 typedArray.getResourceId(/* index= */ 1, /* defValue= */ 0)); in applyBackwardTransition()
390 typedArray.recycle(); in applyBackwardTransition()
/aosp_15_r20/external/perfetto/ui/src/base/
H A Darray_buffer_builder.ts43 typedArray: Uint8Array,
49 const written = utf8Write(token, typedArray, byteOffset);
53 typedArray.set(token, byteOffset);
83 const typedArray = new Uint8Array(buffer); constant
87 insertToken(dataView, typedArray, byteOffset, token);
/aosp_15_r20/external/setupcompat/main/java/com/google/android/setupcompat/template/
H A DSystemNavBarMixin.java96 TypedArray typedArray = in applyPartnerCustomizations() local
98 int defaultColor = typedArray.getColor(/* index= */ 0, /* defValue= */ 0); in applyPartnerCustomizations()
102 typedArray.recycle(); in applyPartnerCustomizations()
248 TypedArray typedArray = in showSystemBars() local
251 int statusBarColor = typedArray.getColor(0, 0); in showSystemBars()
252 int navigationBarColor = typedArray.getColor(1, 0); in showSystemBars()
263 typedArray.recycle(); in showSystemBars()
/aosp_15_r20/frameworks/base/packages/SystemUI/src/com/android/systemui/common/ui/view/
H A DSeekBarWithIconButtonsView.java85 TypedArray typedArray = context.obtainStyledAttributes( in SeekBarWithIconButtonsView() local
90 int max = typedArray.getInt( in SeekBarWithIconButtonsView()
92 int progress = typedArray.getInt( in SeekBarWithIconButtonsView()
98 int iconStartFrameContentDescriptionId = typedArray.getResourceId( in SeekBarWithIconButtonsView()
101 int iconEndFrameContentDescriptionId = typedArray.getResourceId( in SeekBarWithIconButtonsView()
114 int tickMarkId = typedArray.getResourceId( in SeekBarWithIconButtonsView()
120 mSeekBarChangeMagnitude = typedArray.getInt( in SeekBarWithIconButtonsView()
/aosp_15_r20/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()
/aosp_15_r20/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()

12345678910>>...22