Home
last modified time | relevance | path

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

/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
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 …]
/frameworks/base/core/java/android/text/style/
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 …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/
DDelayableMarqueeTextView.kt42 val typedArray = context.theme.obtainStyledAttributes( constant
48 marqueeDelay = typedArray.getInteger(
52 typedArray.recycle()
/frameworks/base/packages/SystemUI/src/com/android/systemui/common/ui/view/
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()
/frameworks/opt/car/setupwizard/library/main/src/com/android/car/setupwizardlib/util/
DCarSetupWizardUiUtils.java175 final TypedArray typedArray = in disableImmersiveMode() local
180 int statusBarColor = typedArray.getColor(0, 0); in disableImmersiveMode()
181 int navigationBarColor = typedArray.getColor(1, 0); in disableImmersiveMode()
186 typedArray.recycle(); in disableImmersiveMode()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/
DTvWindowMenuActionButton.java64 final TypedArray typedArray = context.obtainStyledAttributes(attrs, values, defStyleAttr, in TvWindowMenuActionButton() local
67 setImageResource(typedArray.getResourceId(0, 0)); in TvWindowMenuActionButton()
68 final int textResId = typedArray.getResourceId(1, 0); in TvWindowMenuActionButton()
72 typedArray.recycle(); in TvWindowMenuActionButton()
/frameworks/opt/setupwizard/library/recyclerview/src/com/android/setupwizardlib/items/
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()
/frameworks/base/core/java/android/content/res/
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()
202 typedArray.recycle(); in readFamily()
/frameworks/base/core/tests/overlaytests/device/src/com/android/overlaytest/view/
DTestTextView.java40 TypedArray typedArray = theme.obtainStyledAttributes(attrs, testResources, defStyleAttr, in TestTextView() local
42 mCustomAttributeValue = typedArray.getString(0); in TestTextView()
/frameworks/base/core/java/com/android/internal/pm/pkg/component/
DComponentParseUtils.java148 public static int flag(int flag, @AttrRes int attribute, TypedArray typedArray) { in flag() argument
149 return typedArray.getBoolean(attribute, false) ? flag : 0; in flag()
153 TypedArray typedArray) { in flag() argument
154 return typedArray.getBoolean(attribute, defaultValue) ? flag : 0; in flag()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/
DBubbleOverflow.kt116 val typedArray = in updateBtnTheme() constant
124 val colorAccent = typedArray.getColor(0, Color.WHITE) in updateBtnTheme()
125 val shapeColor = typedArray.getColor(1, Color.BLACK) in updateBtnTheme()
126 typedArray.recycle() in updateBtnTheme()
DManageEducationView.kt76 val typedArray = in setButtonColor() constant
80 val buttonColor = typedArray.getColor(0 /* index */, Color.TRANSPARENT) in setButtonColor()
81 typedArray.recycle() in setButtonColor()
DBubbleOverflowContainerView.java229 final TypedArray typedArray = getContext().obtainStyledAttributes(new int[] { in updateTheme() local
232 int bgColor = typedArray.getColor(0, isNightMode ? Color.BLACK : Color.WHITE); in updateTheme()
233 int textColor = typedArray.getColor(1, isNightMode ? Color.WHITE : Color.BLACK); in updateTheme()
235 typedArray.recycle(); in updateTheme()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/bar/
DBubbleBarMenuItemView.java66 final TypedArray typedArray = getContext().obtainStyledAttributes( in update() local
68 mTextView.setTextColor(typedArray.getColor(0, Color.BLACK)); in update()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/widget/
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()
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/util/
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()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/startingsurface/
DSplashscreenContentDrawer.java200 final TypedArray typedArray = overrideContext.obtainStyledAttributes( in createContext() local
202 final int resId = typedArray.getResourceId(R.styleable.Window_windowBackground, 0); in createContext()
218 typedArray.recycle(); in createContext()
483 final TypedArray typedArray = context.obtainStyledAttributes( in getWindowAttrs() local
485 attrs.mWindowBgResId = typedArray.getResourceId(R.styleable.Window_windowBackground, 0); in getWindowAttrs()
486 attrs.mWindowBgColor = safeReturnAttrDefault((def) -> typedArray.getColor( in getWindowAttrs()
489 attrs.mSplashScreenIcon = safeReturnAttrDefault((def) -> typedArray.getDrawable( in getWindowAttrs()
491 attrs.mBrandingImage = safeReturnAttrDefault((def) -> typedArray.getDrawable( in getWindowAttrs()
493 attrs.mIconBgColor = safeReturnAttrDefault((def) -> typedArray.getColor( in getWindowAttrs()
496 typedArray.recycle(); in getWindowAttrs()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/
DHandleMenu.java239 final TypedArray typedArray = mContext.obtainStyledAttributes(new int[]{ in getWindowingIconColor() local
242 final int inActiveColor = typedArray.getColor(0, isNightMode ? Color.WHITE : Color.BLACK); in getWindowingIconColor()
243 final int activeColor = typedArray.getColor(1, isNightMode ? Color.WHITE : Color.BLACK); in getWindowingIconColor()
244 typedArray.recycle(); in getWindowingIconColor()
/frameworks/base/packages/SettingsLib/ActionButtonsPreference/src/com/android/settingslib/widget/
DActionButtonsPreference.java111 private void fetchDrawableArray(List<Drawable> drawableList, TypedArray typedArray) { in fetchDrawableArray() argument
112 for (int i = 0; i < typedArray.length(); i++) { in fetchDrawableArray()
114 getContext().getDrawable(typedArray.getResourceId(i, 0 /* defValue */))); in fetchDrawableArray()
/frameworks/base/core/java/com/android/internal/widget/
DEmphasizedNotificationButton.java92 try (TypedArray typedArray = context.obtainStyledAttributes( in EmphasizedNotificationButton() argument
94 mInitialDrawablePadding = typedArray.getDimensionPixelSize( in EmphasizedNotificationButton()
/frameworks/base/core/java/android/widget/
DRemoteViews.java2548 TypedArray typedArray = view.getContext().obtainStyledAttributes(new int[]{mAttrId}); in getParameterValue() local
2551 if (mAttrId != 0 && typedArray.getType(0) == TypedValue.TYPE_NULL) { in getParameterValue()
2559 return typedArray.getDimensionPixelSize(0, 0); in getParameterValue()
2561 return typedArray.getDimension(0, 0); in getParameterValue()
2571 return typedArray.getColor(0, 0); in getParameterValue()
2573 return typedArray.getColorStateList(0); in getParameterValue()
2583 return typedArray.getText(0); in getParameterValue()
2585 return typedArray.getString(0); in getParameterValue()
2602 typedArray.recycle(); in getParameterValue()
3579 TypedArray typedArray = target.getContext().obtainStyledAttributes(
[all …]
/frameworks/layoutlib/bridge/src/android/content/res/
DResources_Delegate.java559 BridgeTypedArray typedArray = newTypeArray(resources, length); in obtainTypedArray() local
572 typedArray.bridgeSetValue(i, elementValue.getName(), namespace, i, elementValue); in obtainTypedArray()
575 typedArray.sealArray(); in obtainTypedArray()
576 return typedArray; in obtainTypedArray()
/frameworks/base/core/java/android/app/
DFragment.java2817 private static Transition loadTransition(Context context, TypedArray typedArray,
2822 int transitionId = typedArray.getResourceId(id, 0);
DNotification.java13277 final T[] typedArray = (T[]) Array.newInstance(itemClass, array.length); in getParcelableArrayFromBundle() local
13279 typedArray[i] = (T) array[i]; in getParcelableArrayFromBundle()
13281 bundle.putParcelableArray(key, typedArray); in getParcelableArrayFromBundle()
13282 return typedArray; in getParcelableArrayFromBundle()