/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/util/ |
D | Themes.java | 37 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/ |
D | Themes.java | 61 TypedArray ta = context.obtainStyledAttributes(android.R.style.TextAppearance_DeviceDefault, in getDefaultBodyFont() local 63 String value = ta.getString(0); in getDefaultBodyFont() 64 ta.recycle(); in getDefaultBodyFont() 74 TypedArray ta = context.obtainStyledAttributes(new int[]{attr}); in getDimension() local 75 float value = ta.getDimension(0, defaultValue); in getDimension() 76 ta.recycle(); in getDimension() 85 TypedArray ta = context.obtainStyledAttributes(new int[]{attr}); in getAttrColor() local 86 int colorAccent = ta.getColor(0, 0); in getAttrColor() 87 ta.recycle(); in getAttrColor() 92 TypedArray ta = context.obtainStyledAttributes(new int[]{attr}); in getAttrBoolean() local [all …]
|
/packages/apps/Email/provider_src/com/android/email/service/ |
D | EmailServiceUtils.java | 562 final TypedArray ta = in getServiceMap() local 564 info.protocol = ta.getString(R.styleable.EmailServiceInfo_protocol); in getServiceMap() 565 info.accountType = ta.getString(R.styleable.EmailServiceInfo_accountType); in getServiceMap() 566 info.name = ta.getString(R.styleable.EmailServiceInfo_name); in getServiceMap() 567 info.hide = ta.getBoolean(R.styleable.EmailServiceInfo_hide, false); in getServiceMap() 569 ta.getString(R.styleable.EmailServiceInfo_serviceClass); in getServiceMap() 570 info.intentAction = ta.getString(R.styleable.EmailServiceInfo_intent); in getServiceMap() 572 ta.getString(R.styleable.EmailServiceInfo_intentPackage); in getServiceMap() 574 ta.getBoolean(R.styleable.EmailServiceInfo_defaultSsl, false); in getServiceMap() 575 info.port = ta.getInteger(R.styleable.EmailServiceInfo_port, 0); in getServiceMap() [all …]
|
/packages/apps/Car/libs/car-media-common/src/com/android/car/media/common/source/ |
D | MediaSourceColors.java | 105 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/ |
D | KeypadButton.java | 62 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/unit/com/android/documentsui/ui/ |
D | ThemeUiTestBase.java | 95 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/ |
D | XmlParserUtils.java | 97 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/ |
D | LetterTileDrawable.java | 76 TypedArray ta = res.obtainTypedArray(R.array.letter_tile_colors); in LetterTileDrawable() local 77 if (ta.length() == 0) { in LetterTileDrawable() 85 sColors = new int[ta.length()]; in LetterTileDrawable() 86 for (int i = ta.length() - 1; i >= 0; i--) { in LetterTileDrawable() 87 sColors[i] = ta.getColor(i, sDefaultColor); in LetterTileDrawable() 89 ta.recycle(); in LetterTileDrawable()
|
D | CropAlignedImageView.java | 60 TypedArray ta = context.obtainStyledAttributes( in init() local 62 mAlignHorizontal = ta.getInt(R.styleable.CrossfadeImageView_align_horizontal, in init() 64 ta.recycle(); in init()
|
D | ControlBar.java | 121 TypedArray ta = context.obtainStyledAttributes(attrs, R.styleable.ControlBar, in init() local 123 mNumColumns = ta.getInteger(R.styleable.ControlBar_columns, DEFAULT_COLUMNS); in init() 124 mExpandEnabled = ta.getBoolean(R.styleable.ControlBar_enableOverflow, true); in init() 125 ta.recycle(); in init()
|
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
D | ButteryProgressBar.java | 88 final TypedArray ta = c.obtainStyledAttributes(attrs, R.styleable.ButteryProgressBar); in ButteryProgressBar() local 90 mBarColor = ta.getColor(R.styleable.ButteryProgressBar_barColor, in ButteryProgressBar() 92 mSolidBarHeight = ta.getDimensionPixelSize( in ButteryProgressBar() 95 mSolidBarDetentWidth = ta.getDimensionPixelSize( in ButteryProgressBar() 99 ta.recycle(); in ButteryProgressBar()
|
/packages/apps/Car/Notification/src/com/android/car/notification/ |
D | ThemesUtil.java | 32 TypedArray ta = context.obtainStyledAttributes(new int[]{attr}); in getAttrColor() local 33 int colorAccent = ta.getColor(0, 0); in getAttrColor() 34 ta.recycle(); in getAttrColor()
|
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/widget/ |
D | CarTabLayout.java | 125 TypedArray ta = context.obtainStyledAttributes( in CarTabLayout() local 127 mTabPaddingX = ta.getDimensionPixelSize(R.styleable.CarTabLayout_tabPaddingX, in CarTabLayout() 129 mTabFlexibleLayout = ta.getBoolean(R.styleable.CarTabLayout_tabFlexibleLayout, in CarTabLayout() 131 int tabItemLayout = ta.getResourceId(R.styleable.CarTabLayout_tabItemLayout, in CarTabLayout() 133 ta.recycle(); in CarTabLayout()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/ |
D | GridItemThumbnail.java | 39 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/Gallery2/src/com/android/gallery3d/filtershow/filters/ |
D | SplineMath.java | 61 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/TvSettings/Settings/src/com/android/tv/settings/connectivity/util/ |
D | GuidedActionsAlignUtil.java | 69 TypedArray ta = context.getTheme().obtainStyledAttributes( in getKeyLinePercent() local 71 float percent = ta.getFloat( in getKeyLinePercent() 74 ta.recycle(); in getKeyLinePercent()
|
/packages/apps/Launcher3/src/com/android/launcher3/folder/ |
D | PreviewBackground.java | 131 TypedArray ta = context.getTheme().obtainStyledAttributes(R.styleable.FolderIconPreview); in setup() local 132 mDotColor = ta.getColor(R.styleable.FolderIconPreview_folderDotColor, 0); in setup() 133 mStrokeColor = ta.getColor(R.styleable.FolderIconPreview_folderIconBorderColor, 0); in setup() 134 mBgColor = ta.getColor(R.styleable.FolderIconPreview_folderFillColor, 0); in setup() 135 ta.recycle(); in setup()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/setup/ |
D | GuidanceRelativeLayout.java | 49 TypedArray ta = context.getTheme().obtainStyledAttributes( in getKeyLinePercent() local 51 float percent = ta.getFloat(R.styleable.LeanbackGuidedStepTheme_guidedStepKeyline, 40); in getKeyLinePercent() 52 ta.recycle(); in getKeyLinePercent()
|
D | MessagePageFrameLayout.java | 51 TypedArray ta = context.getTheme().obtainStyledAttributes( in getKeyLinePercent() local 53 float percent = ta.getFloat( in getKeyLinePercent() 56 ta.recycle(); in getKeyLinePercent()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/inspector/ |
D | KeyValueRow.java | 101 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/Settings/tests/unit/src/com/android/settings/core/ |
D | UserRestrictionTest.java | 153 final TypedArray ta = context.obtainStyledAttributes(set, attrs); in getData() local 154 String data = ta.getString(resId); in getData() 155 ta.recycle(); in getData()
|
/packages/apps/Settings/src/com/android/settings/widget/ |
D | ChartGridView.java | 78 final TypedArray ta = context.obtainStyledAttributes(taId, in ChartGridView() local 80 mLabelSize = ta.getDimensionPixelSize( in ChartGridView() 82 ta.recycle(); in ChartGridView()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/widget/ |
D | ChartGridView.java | 78 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/ |
D | ShadowDrawable.java | 112 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/ |
D | CaptionCustomFragment.java | 70 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()
|