/packages/apps/EmergencyInfo/src/com/android/emergency/preferences/ |
EmergencyEditTextPreference.java | 42 attrs, R.styleable.EmergencyEditTextPreference, 0, 0); 43 if (a.hasValue(R.styleable.EmergencyEditTextPreference_summary)) { 44 setSummary(a.getString(R.styleable.EmergencyEditTextPreference_summary));
|
/development/samples/ApiDemos/src/com/example/android/apis/view/ |
LabelView.java | 64 R.styleable.LabelView); 66 CharSequence s = a.getString(R.styleable.LabelView_text); 74 setTextColor(a.getColor(R.styleable.LabelView_textColor, 0xFF000000)); 76 int textSize = a.getDimensionPixelOffset(R.styleable.LabelView_textSize, 0);
|
/development/samples/Snake/src/com/example/android/snake/ |
TileView.java | 65 TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.TileView); 66 mTileSize = a.getDimensionPixelSize(R.styleable.TileView_tileSize, 12); 74 TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.TileView); 75 mTileSize = a.getDimensionPixelSize(R.styleable.TileView_tileSize, 12);
|
/frameworks/base/core/java/android/widget/ |
ToggleButton.java | 32 * @attr ref android.R.styleable#ToggleButton_textOn 33 * @attr ref android.R.styleable#ToggleButton_textOff 34 * @attr ref android.R.styleable#ToggleButton_disabledAlpha 49 attrs, com.android.internal.R.styleable.ToggleButton, defStyleAttr, defStyleRes); 50 mTextOn = a.getText(com.android.internal.R.styleable.ToggleButton_textOn); 51 mTextOff = a.getText(com.android.internal.R.styleable.ToggleButton_textOff); 52 mDisabledAlpha = a.getFloat(com.android.internal.R.styleable.ToggleButton_disabledAlpha, 0.5f);
|
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/items/ |
ButtonItem.java | 54 TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.SuwButtonItem); 55 mEnabled = a.getBoolean(R.styleable.SuwButtonItem_android_enabled, true); 56 mText = a.getText(R.styleable.SuwButtonItem_android_text); 57 mTheme = a.getResourceId(R.styleable.SuwButtonItem_android_theme, R.style.SuwButtonItem);
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/graphics/ |
ColorFilterDimmer.java | 46 TypedArray a = context.obtainStyledAttributes(R.styleable.LeanbackTheme); 48 int dimColor = a.getColor(R.styleable.LeanbackTheme_overlayDimMaskColor, 50 float activeLevel = a.getFraction(R.styleable.LeanbackTheme_overlayDimActiveLevel, 1, 1, 52 float dimmedLevel = a.getFraction(R.styleable.LeanbackTheme_overlayDimDimmedLevel, 1, 1,
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
AppCompatPopupWindow.java | 51 R.styleable.PopupWindow, defStyleAttr, defStyleRes); 52 if (a.hasValue(R.styleable.PopupWindow_overlapAnchor)) { 53 setSupportOverlapAnchor(a.getBoolean(R.styleable.PopupWindow_overlapAnchor, false)); 56 setBackgroundDrawable(a.getDrawable(R.styleable.PopupWindow_android_popupBackground));
|
/sdk/testapps/customViewTest/libWithCustomView/src/com/android/tests/libwithcustom/ |
LabelView.java | 63 R.styleable.LabelView); 65 CharSequence s = a.getString(R.styleable.LabelView_text); 73 setTextColor(a.getColor(R.styleable.LabelView_textColor, 0xFF000000)); 75 int textSize = a.getDimensionPixelOffset(R.styleable.LabelView_textSize, 0);
|
/frameworks/base/core/java/android/content/res/ |
FontResourcesParser.java | 146 TypedArray array = resources.obtainAttributes(attrs, R.styleable.FontFamily); 147 String authority = array.getString(R.styleable.FontFamily_fontProviderAuthority); 148 String providerPackage = array.getString(R.styleable.FontFamily_fontProviderPackage); 149 String query = array.getString(R.styleable.FontFamily_fontProviderQuery); 150 int certsId = array.getResourceId(R.styleable.FontFamily_fontProviderCerts, 0); 201 TypedArray array = resources.obtainAttributes(attrs, R.styleable.FontFamilyFont); 202 int weight = array.getInt(R.styleable.FontFamilyFont_fontWeight, 204 int italic = array.getInt(R.styleable.FontFamilyFont_fontStyle, 206 String filename = array.getString(R.styleable.FontFamilyFont_font);
|
/frameworks/base/core/java/android/text/style/ |
TextAppearanceSpan.java | 56 * <code>android.R.styleable.Theme_textColorPrimary</code>. 63 com.android.internal.R.styleable.TextAppearance); 65 textColor = a.getColorStateList(com.android.internal.R.styleable. 67 mTextColorLink = a.getColorStateList(com.android.internal.R.styleable. 69 mTextSize = a.getDimensionPixelSize(com.android.internal.R.styleable. 72 mStyle = a.getInt(com.android.internal.R.styleable.TextAppearance_textStyle, 0); 74 mTypeface = a.getFont(com.android.internal.R.styleable.TextAppearance_fontFamily); 81 String family = a.getString(com.android.internal.R.styleable.TextAppearance_fontFamily); 85 int tf = a.getInt(com.android.internal.R.styleable.TextAppearance_typeface, 0); 111 com.android.internal.R.styleable.Theme) [all...] |
/frameworks/base/core/java/android/view/textservice/ |
SpellCheckerInfo.java | 98 com.android.internal.R.styleable.SpellChecker); 99 label = sa.getResourceId(com.android.internal.R.styleable.SpellChecker_label, 0); 101 com.android.internal.R.styleable.SpellChecker_settingsActivity); 115 attrs, com.android.internal.R.styleable.SpellChecker_Subtype); 117 a.getResourceId(com.android.internal.R.styleable 119 a.getString(com.android.internal.R.styleable 121 a.getString(com.android.internal.R.styleable 123 a.getString(com.android.internal.R.styleable 125 a.getInt(com.android.internal.R.styleable
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
AnimatedRotateDrawable.java | 128 final TypedArray a = obtainAttributes(r, theme, attrs, R.styleable.AnimatedRotateDrawable); 151 state.mThemeAttrs, R.styleable.AnimatedRotateDrawable); 168 || mState.mThemeAttrs[R.styleable.AnimatedRotateDrawable_drawable] == 0)) { 187 if (a.hasValue(R.styleable.AnimatedRotateDrawable_pivotX)) { 188 final TypedValue tv = a.peekValue(R.styleable.AnimatedRotateDrawable_pivotX); 193 if (a.hasValue(R.styleable.AnimatedRotateDrawable_pivotY)) { 194 final TypedValue tv = a.peekValue(R.styleable.AnimatedRotateDrawable_pivotY); 200 R.styleable.AnimatedRotateDrawable_framesCount, state.mFramesCount)); 202 R.styleable.AnimatedRotateDrawable_frameDuration, state.mFrameDuration));
|
RotateDrawable.java | 47 * @attr ref android.R.styleable#RotateDrawable_visible 48 * @attr ref android.R.styleable#RotateDrawable_fromDegrees 49 * @attr ref android.R.styleable#RotateDrawable_toDegrees 50 * @attr ref android.R.styleable#RotateDrawable_pivotX 51 * @attr ref android.R.styleable#RotateDrawable_pivotY 52 * @attr ref android.R.styleable#RotateDrawable_drawable 70 final TypedArray a = obtainAttributes(r, theme, attrs, R.styleable.RotateDrawable); 90 final TypedArray a = t.resolveAttributes(state.mThemeAttrs, R.styleable.RotateDrawable); 105 || mState.mThemeAttrs[R.styleable.RotateDrawable_drawable] == 0)) { 124 if (a.hasValue(R.styleable.RotateDrawable_pivotX)) [all...] |
/frameworks/support/v7/appcompat/src/android/support/v7/graphics/drawable/ |
DrawerArrowDrawable.java | 134 R.styleable.DrawerArrowToggle, R.attr.drawerArrowStyle, 137 setColor(a.getColor(R.styleable.DrawerArrowToggle_color, 0)); 138 setBarThickness(a.getDimension(R.styleable.DrawerArrowToggle_thickness, 0)); 139 setSpinEnabled(a.getBoolean(R.styleable.DrawerArrowToggle_spinBars, true)); 141 setGapSize(Math.round(a.getDimension(R.styleable.DrawerArrowToggle_gapBetweenBars, 0))); 143 mSize = a.getDimensionPixelSize(R.styleable.DrawerArrowToggle_drawableSize, 0); 145 mBarLength = Math.round(a.getDimension(R.styleable.DrawerArrowToggle_barLength, 0)); 148 R.styleable.DrawerArrowToggle_arrowHeadLength, 0)); 149 mArrowShaftLength = a.getDimension(R.styleable.DrawerArrowToggle_arrowShaftLength, 0);
|
/frameworks/base/core/java/android/view/inputmethod/ |
InputMethodInfo.java | 57 * @attr ref android.R.styleable#InputMethod_settingsActivity 58 * @attr ref android.R.styleable#InputMethod_isDefault 59 * @attr ref android.R.styleable#InputMethod_supportsSwitchingToNextInputMethod 179 com.android.internal.R.styleable.InputMethod); 181 com.android.internal.R.styleable.InputMethod_settingsActivity); 183 com.android.internal.R.styleable.InputMethod_isDefault, 0); 185 com.android.internal.R.styleable.InputMethod_supportsSwitchingToNextInputMethod, 200 attrs, com.android.internal.R.styleable.InputMethod_Subtype); 202 .setSubtypeNameResId(a.getResourceId(com.android.internal.R.styleable 204 .setSubtypeIconResId(a.getResourceId(com.android.internal.R.styleable [all...] |
/packages/apps/Launcher3/src/com/android/launcher3/ |
InvariantDeviceProfile.java | 198 Xml.asAttributeSet(parser), R.styleable.InvariantDeviceProfile); 199 int numRows = a.getInt(R.styleable.InvariantDeviceProfile_numRows, 0); 200 int numColumns = a.getInt(R.styleable.InvariantDeviceProfile_numColumns, 0); 201 float iconSize = a.getFloat(R.styleable.InvariantDeviceProfile_iconSize, 0); 203 a.getString(R.styleable.InvariantDeviceProfile_name), 204 a.getFloat(R.styleable.InvariantDeviceProfile_minWidthDps, 0), 205 a.getFloat(R.styleable.InvariantDeviceProfile_minHeightDps, 0), 208 a.getInt(R.styleable.InvariantDeviceProfile_numFolderRows, numRows), 209 a.getInt(R.styleable.InvariantDeviceProfile_numFolderColumns, numColumns), 210 a.getInt(R.styleable.InvariantDeviceProfile_minAllAppsPredictionColumns, numColumns) [all...] |
/packages/apps/PackageInstaller/src/android/support/wearable/view/ |
CircledImageView.java | 132 TypedArray a = getContext().obtainStyledAttributes(attrs, R.styleable.CircledImageView); 133 mDrawable = a.getDrawable(R.styleable.CircledImageView_android_src); 135 mCircleColor = a.getColorStateList(R.styleable.CircledImageView_circle_color); 141 R.styleable.CircledImageView_circle_radius, 0); 144 R.styleable.CircledImageView_circle_radius_pressed, mCircleRadius); 146 R.styleable.CircledImageView_circle_border_color, Color.BLACK); 147 mCircleBorderWidth = a.getDimension(R.styleable.CircledImageView_circle_border_width, 0); 153 float circlePadding = a.getDimension(R.styleable.CircledImageView_circle_padding, 0); 157 mShadowWidth = a.getDimension(R.styleable.CircledImageView_shadow_width, 0); 160 R.styleable.CircledImageView_image_circle_percentage, 0f) [all...] |
/frameworks/base/core/java/android/transition/ |
TransitionInflater.java | 43 * {@link android.R.styleable#Transition}, {@link android.R.styleable#TransitionSet}, 44 * {@link android.R.styleable#TransitionTarget}, {@link android.R.styleable#Fade}, 45 * and {@link android.R.styleable#TransitionManager}. 254 TypedArray a = mContext.obtainStyledAttributes(attrs, R.styleable.TransitionTarget); 255 int id = a.getResourceId(R.styleable.TransitionTarget_targetId, 0); 259 } else if ((id = a.getResourceId(R.styleable.TransitionTarget_excludeId, 0)) != 0) { 261 } else if ((transitionName = a.getString(R.styleable.TransitionTarget_targetName)) 264 } else if ((transitionName = a.getString(R.styleable.TransitionTarget_excludeName) [all...] |
/frameworks/base/services/core/java/com/android/server/pm/ |
ShortcutParser.java | 274 R.styleable.ShortcutCategories); 276 if (sa.getType(R.styleable.ShortcutCategories_name) == TypedValue.TYPE_STRING) { 277 return sa.getNonResourceString(R.styleable.ShortcutCategories_name); 291 R.styleable.Shortcut); 293 if (sa.getType(R.styleable.Shortcut_shortcutId) != TypedValue.TYPE_STRING) { 297 final String id = sa.getNonResourceString(R.styleable.Shortcut_shortcutId); 298 final boolean enabled = sa.getBoolean(R.styleable.Shortcut_enabled, true); 299 final int iconResId = sa.getResourceId(R.styleable.Shortcut_icon, 0); 300 final int titleResId = sa.getResourceId(R.styleable.Shortcut_shortcutShortLabel, 0); 301 final int textResId = sa.getResourceId(R.styleable.Shortcut_shortcutLongLabel, 0) [all...] |
/packages/apps/Email/provider_src/com/android/email/service/ |
EmailServiceUtils.java | 563 res.obtainAttributes(xml, R.styleable.EmailServiceInfo); 564 info.protocol = ta.getString(R.styleable.EmailServiceInfo_protocol); 565 info.accountType = ta.getString(R.styleable.EmailServiceInfo_accountType); 566 info.name = ta.getString(R.styleable.EmailServiceInfo_name); 567 info.hide = ta.getBoolean(R.styleable.EmailServiceInfo_hide, false); 569 ta.getString(R.styleable.EmailServiceInfo_serviceClass); 570 info.intentAction = ta.getString(R.styleable.EmailServiceInfo_intent); 572 ta.getString(R.styleable.EmailServiceInfo_intentPackage); 574 ta.getBoolean(R.styleable.EmailServiceInfo_defaultSsl, false); 575 info.port = ta.getInteger(R.styleable.EmailServiceInfo_port, 0) [all...] |
/frameworks/base/core/java/android/animation/ |
AnimatorInflater.java | 412 long duration = arrayAnimator.getInt(R.styleable.Animator_duration, 300); 414 long startDelay = arrayAnimator.getInt(R.styleable.Animator_startOffset, 0); 416 int valueType = arrayAnimator.getInt(R.styleable.Animator_valueType, VALUE_TYPE_UNDEFINED); 419 valueType = inferValueTypeFromValues(arrayAnimator, R.styleable.Animator_valueFrom, 420 R.styleable.Animator_valueTo); 423 R.styleable.Animator_valueFrom, R.styleable.Animator_valueTo, ""); 431 if (arrayAnimator.hasValue(R.styleable.Animator_repeatCount)) { 433 arrayAnimator.getInt(R.styleable.Animator_repeatCount, 0)); 435 if (arrayAnimator.hasValue(R.styleable.Animator_repeatMode)) [all...] |
/frameworks/base/core/java/android/content/pm/ |
PackageParser.java | [all...] |
/developers/build/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/app/ |
InfoButton.java | 38 TypedArray typedArray = context.obtainStyledAttributes(attrs, R.styleable.InfoButton, 40 String infoText = typedArray.getString(R.styleable.InfoButton_dialogText);
|
/developers/samples/android/input/autofill/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/app/ |
InfoButton.java | 38 TypedArray typedArray = context.obtainStyledAttributes(attrs, R.styleable.InfoButton, 40 String infoText = typedArray.getString(R.styleable.InfoButton_dialogText);
|
/frameworks/base/core/java/com/android/internal/view/menu/ |
ExpandedMenuView.java | 47 TypedArray a = context.obtainStyledAttributes(attrs, com.android.internal.R.styleable.MenuView, 0, 0); 48 mAnimations = a.getResourceId(com.android.internal.R.styleable.MenuView_windowAnimationStyle, 0);
|