Home
last modified time | relevance | path

Searched refs:ta (Results 1 – 25 of 59) sorted by relevance

123

/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/util/
DThemes.java37 TypedArray ta = context.obtainStyledAttributes(styleResId, new int[]{attr}); in getAttrColor() local
38 int colorAccent = ta.getColor(0, 0); in getAttrColor()
39 ta.recycle(); in getAttrColor()
59 TypedArray ta = context.obtainStyledAttributes(styleResId, new int[]{attr}); in getAttrColorStateList() local
60 ColorStateList colorStateList = ta.getColorStateList(0); in getAttrColorStateList()
61 ta.recycle(); in getAttrColorStateList()
74 TypedArray ta = context.obtainStyledAttributes(styleResId, new int[]{attr}); in getAttrBoolean() local
75 boolean value = ta.getBoolean(0, false); in getAttrBoolean()
76 ta.recycle(); in getAttrBoolean()
87 TypedArray ta = context.obtainStyledAttributes(styleResId, new int[]{attr}); in getAttrDrawable() local
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/util/
DThemes.java82 TypedArray ta = context.obtainStyledAttributes(android.R.style.TextAppearance_DeviceDefault, in getDefaultBodyFont() local
84 String value = ta.getString(0); in getDefaultBodyFont()
85 ta.recycle(); in getDefaultBodyFont()
95 TypedArray ta = context.obtainStyledAttributes(new int[]{attr}); in getDimension() local
96 float value = ta.getDimension(0, defaultValue); in getDimension()
97 ta.recycle(); in getDimension()
120 TypedArray ta = context.obtainStyledAttributes(new int[]{attr}); in getAttrBoolean() local
121 boolean value = ta.getBoolean(0, false); in getAttrBoolean()
122 ta.recycle(); in getAttrBoolean()
127 TypedArray ta = context.obtainStyledAttributes(new int[]{attr}); in getAttrDrawable() local
[all …]
/packages/apps/Car/libs/car-media-common/src/com/android/car/media/common/source/
DMediaSourceColors.java105 TypedArray ta = null; in extractColors() local
121 ta = theme.obtainStyledAttributes(new int[]{ in extractColors()
127 ta.getColor(0, FLAG_USE_DEFAULT_COLOR), in extractColors()
128 ta.getColor(1, FLAG_USE_DEFAULT_COLOR), in extractColors()
129 ta.getColor(2, FLAG_USE_DEFAULT_COLOR)); in extractColors()
134 if (ta != null) { in extractColors()
135 ta.recycle(); in extractColors()
/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/dialpad/
DKeypadButton.java62 TypedArray ta = context.obtainStyledAttributes(attrs, R.styleable.KeypadButton); in init() local
65 mNumberText = ta.getString(R.styleable.KeypadButton_numberText); in init()
66 mLetterText = ta.getString(R.styleable.KeypadButton_letterText); in init()
67 mImageRes = ta.getResourceId(R.styleable.KeypadButton_image, INVALID_IMAGE_RES); in init()
69 if (ta != null) { in init()
70 ta.recycle(); in init()
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/ui/
DThemeUiTestBase.java95 final TypedArray ta = mTheme.obtainStyledAttributes(styleable); in assertTheme() local
96 final int targetColor = ta.getColor(attr, ~expected); in assertTheme()
97 ta.recycle(); in assertTheme()
109 final TypedArray ta = mTheme.obtainStyledAttributes(styleable); in assertTheme() local
110 final boolean targetBoolean = ta.getBoolean(attr, !expected); in assertTheme()
111 ta.recycle(); in assertTheme()
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/search/indexing/
DXmlParserUtils.java97 final TypedArray ta = context.obtainStyledAttributes(attrs, R.styleable.Preference); in getDataIcon() local
98 final int dataIcon = ta.getResourceId(R.styleable.Preference_android_icon, 0); in getDataIcon()
99 ta.recycle(); in getDataIcon()
113 final TypedArray ta = context.obtainStyledAttributes(set, attrs); in getData() local
114 String data = ta.getString(resId); in getData()
115 ta.recycle(); in getData()
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/
DLetterTileDrawable.java88 TypedArray ta = res.obtainTypedArray(R.array.letter_tile_colors); in LetterTileDrawable() local
89 if (ta.length() == 0) { in LetterTileDrawable()
97 sColors = new int[ta.length()]; in LetterTileDrawable()
98 for (int i = ta.length() - 1; i >= 0; i--) { in LetterTileDrawable()
99 sColors[i] = ta.getColor(i, sDefaultColor); in LetterTileDrawable()
101 ta.recycle(); in LetterTileDrawable()
DCropAlignedImageView.java64 TypedArray ta = context.obtainStyledAttributes( in init() local
66 mAlignHorizontal = ta.getInt(R.styleable.CrossfadeImageView_align_horizontal, in init()
68 ta.recycle(); in init()
DControlBar.java141 TypedArray ta = context.obtainStyledAttributes(attrs, R.styleable.ControlBar, in init() local
143 mNumColumns = ta.getInteger(R.styleable.ControlBar_columns, DEFAULT_COLUMNS); in init()
144 mExpandEnabled = ta.getBoolean(R.styleable.ControlBar_enableOverflow, true); in init()
145 ta.recycle(); in init()
/packages/apps/Car/Messenger/src/com/android/car/messenger/core/ui/shared/
DLetterTileDrawable.java93 TypedArray ta = res.obtainTypedArray(R.array.letter_tile_colors); in LetterTileDrawable() local
94 if (ta.length() == 0) { in LetterTileDrawable()
102 sColors = new int[ta.length()]; in LetterTileDrawable()
103 for (int i = ta.length() - 1; i >= 0; i--) { in LetterTileDrawable()
104 sColors[i] = ta.getColor(i, sDefaultColor); in LetterTileDrawable()
106 ta.recycle(); in LetterTileDrawable()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/util/
DResourceUtils.java30 TypedArray ta = context.obtainStyledAttributes(new int[]{attr}); in getColorAttr() local
33 stateList = ta.getColorStateList(0); in getColorAttr()
35 ta.recycle(); in getColorAttr()
/packages/apps/DocumentsUI/src/com/android/documentsui/
DGridItemThumbnail.java39 TypedArray ta = context.obtainStyledAttributes(R.styleable.GridItem); in GridItemThumbnail() local
40 ColorStateList color = ta.getColorStateList(R.styleable.GridItem_gridItemTint); in GridItemThumbnail()
41 ta.recycle(); in GridItemThumbnail()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/util/
DGuidedActionsAlignUtil.java70 TypedArray ta = context.getTheme().obtainStyledAttributes( in getKeyLinePercent() local
72 float percent = ta.getFloat( in getKeyLinePercent()
75 ta.recycle(); in getKeyLinePercent()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/setup/
DMessagePageFrameLayout.java51 TypedArray ta = context.getTheme().obtainStyledAttributes( in getKeyLinePercent() local
53 float percent = ta.getFloat( in getKeyLinePercent()
56 ta.recycle(); in getKeyLinePercent()
DGuidanceRelativeLayout.java50 TypedArray ta = context.getTheme().obtainStyledAttributes( in getKeyLinePercent() local
52 float percent = ta.getFloat(R.styleable.LeanbackGuidedStepTheme_guidedStepKeyline, 40); in getKeyLinePercent()
53 ta.recycle(); in getKeyLinePercent()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
DSplineMath.java61 double ta = a * y1; in calculatetCurve() local
65 double y = ta + tb + (delta2 / 6) * (tc + td); in calculatetCurve()
102 double ta = a * y1; in getValue() local
106 double y = ta + tb + (delta2 / 6) * (tc + td); in getValue()
/packages/apps/DocumentsUI/src/com/android/documentsui/inspector/
DKeyValueRow.java101 TypedArray ta = getContext().obtainStyledAttributes(R.styleable.TextAppearance); in setOnClickListener() local
102 int linkColor = ta.getColor(R.styleable.TextAppearance_android_textColorLink, in setOnClickListener()
104 ta.recycle(); in setOnClickListener()
/packages/apps/Launcher3/src/com/android/launcher3/folder/
DPreviewBackground.java154 TypedArray ta = context.getTheme().obtainStyledAttributes(R.styleable.FolderIconPreview); in setup() local
155 mDotColor = ta.getColor(R.styleable.FolderIconPreview_folderDotColor, 0); in setup()
156 mStrokeColor = ta.getColor(R.styleable.FolderIconPreview_folderIconBorderColor, 0); in setup()
157 mBgColor = ta.getColor(R.styleable.FolderIconPreview_folderFillColor, 0); in setup()
158 ta.recycle(); in setup()
/packages/apps/Settings/src/com/android/settings/notification/history/
DNotificationHistoryActivity.java94 final TypedArray ta = NotificationHistoryActivity.this.obtainStyledAttributes(
96 final float dialogCornerRadius = ta.getDimension(0, 0);
97 ta.recycle();
317 try (TypedArray ta = theme.obtainStyledAttributes(new int[]{attrRes})) { in obtainThemeColor() argument
318 return ta == null ? 0 : ta.getColor(0, 0); in obtainThemeColor()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/
DPermissionUsageV2ControlPreference.java116 TypedArray ta = mContext.obtainStyledAttributes( in onBindViewHolder() local
118 int resId = ta.getResourceId(0, 0); in onBindViewHolder()
119 ta.recycle(); in onBindViewHolder()
/packages/apps/Car/Notification/src/com/android/car/notification/
DNotificationUtils.java49 TypedArray ta = context.obtainStyledAttributes(new int[]{attr}); in getAttrColor() local
50 int colorAccent = ta.getColor(0, 0); in getAttrColor()
51 ta.recycle(); in getAttrColor()
/packages/apps/Settings/src/com/android/settings/widget/
DChartGridView.java78 final TypedArray ta = context.obtainStyledAttributes(taId, in ChartGridView() local
80 mLabelSize = ta.getDimensionPixelSize( in ChartGridView()
82 ta.recycle(); in ChartGridView()
/packages/apps/Launcher3/src/com/android/launcher3/graphics/
DShadowDrawable.java112 TypedArray ta = t.obtainStyledAttributes(new int[] {R.attr.isWorkspaceDarkText}); in applyTheme() local
113 boolean isDark = ta.getBoolean(0, false); in applyTheme()
114 ta.recycle(); in applyTheme()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/development/
DCaptionCustomFragment.java70 final TypedArray ta = in onCreatePreferences() local
72 final int colorLen = ta.length(); in onCreatePreferences()
78 final int color = ta.getColor(i, 0); in onCreatePreferences()
86 ta.recycle(); in onCreatePreferences()
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/main/java/com/android/car/ui/utils/
DCarUiUtils.java90 TypedArray ta = context.obtainStyledAttributes(styleResId, new int[]{attr}); in getAttrResourceId() local
91 int resId = ta.getResourceId(0, 0); in getAttrResourceId()
92 ta.recycle(); in getAttrResourceId()

123