/frameworks/base/core/tests/overlaytests/OverlayTest/src/com/android/overlaytest/ |
D | OverlayBaseTest.java | 25 private int calculateRawResourceChecksum(int resId) throws Throwable { in calculateRawResourceChecksum() argument 28 input = mResources.openRawResource(resId); in calculateRawResourceChecksum() 102 private void assertResource(int resId, boolean no, boolean so, boolean mo) throws Throwable { in assertResource() argument 104 boolean actual = mResources.getBoolean(resId); in assertResource() 108 private void assertResource(int resId, int no, int so, int mo) throws Throwable { in assertResource() argument 110 int actual = mResources.getInteger(resId); in assertResource() 114 private void assertResource(int resId, String no, String so, String mo) throws Throwable { in assertResource() argument 116 String actual = mResources.getString(resId); in assertResource() 120 private void assertResource(int resId, int[] no, int[] so, int[] mo) throws Throwable { in assertResource() argument 122 int[] actual = mResources.getIntArray(resId); in assertResource() [all …]
|
/frameworks/support/v7/appcompat/src/android/support/v7/content/res/ |
D | AppCompatResources.java | 62 public static ColorStateList getColorStateList(@NonNull Context context, @ColorRes int resId) { in getColorStateList() argument 65 return context.getColorStateList(resId); in getColorStateList() 69 ColorStateList csl = getCachedColorStateList(context, resId); in getColorStateList() 74 csl = inflateColorStateList(context, resId); in getColorStateList() 77 addColorStateListToCache(context, resId, csl); in getColorStateList() 82 return ContextCompat.getColorStateList(context, resId); in getColorStateList() 99 public static Drawable getDrawable(@NonNull Context context, @DrawableRes int resId) { in getDrawable() argument 100 return AppCompatDrawableManager.get().getDrawable(context, resId); in getDrawable() 107 private static ColorStateList inflateColorStateList(Context context, int resId) { in inflateColorStateList() argument 108 if (isColorInt(context, resId)) { in inflateColorStateList() [all …]
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
D | AppCompatDrawableManager.java | 185 public Drawable getDrawable(@NonNull Context context, @DrawableRes int resId) { in getDrawable() argument 186 return getDrawable(context, resId, false); in getDrawable() 189 Drawable getDrawable(@NonNull Context context, @DrawableRes int resId, in getDrawable() argument 193 Drawable drawable = loadDrawableFromDelegates(context, resId); in getDrawable() 195 drawable = createDrawableIfNeeded(context, resId); in getDrawable() 198 drawable = ContextCompat.getDrawable(context, resId); in getDrawable() 203 drawable = tintDrawable(context, resId, failIfNotKnown, drawable); in getDrawable() 227 @DrawableRes final int resId) { in createDrawableIfNeeded() argument 232 context.getResources().getValue(resId, tv, true); in createDrawableIfNeeded() 242 if (resId == R.drawable.abc_cab_background_top_material) { in createDrawableIfNeeded() [all …]
|
D | AppCompatMultiAutoCompleteTextView.java | 86 public void setDropDownBackgroundResource(@DrawableRes int resId) { in setDropDownBackgroundResource() argument 87 setDropDownBackgroundDrawable(AppCompatResources.getDrawable(getContext(), resId)); in setDropDownBackgroundResource() local 91 public void setBackgroundResource(@DrawableRes int resId) { in setBackgroundResource() argument 92 super.setBackgroundResource(resId); in setBackgroundResource() 94 mBackgroundTintHelper.onSetBackgroundResource(resId); in setBackgroundResource() 174 public void setTextAppearance(Context context, int resId) { in setTextAppearance() argument 175 super.setTextAppearance(context, resId); in setTextAppearance() 177 mTextHelper.onSetTextAppearance(context, resId); in setTextAppearance()
|
D | AppCompatAutoCompleteTextView.java | 86 public void setDropDownBackgroundResource(@DrawableRes int resId) { in setDropDownBackgroundResource() argument 87 setDropDownBackgroundDrawable(AppCompatResources.getDrawable(getContext(), resId)); in setDropDownBackgroundResource() local 91 public void setBackgroundResource(@DrawableRes int resId) { in setBackgroundResource() argument 92 super.setBackgroundResource(resId); in setBackgroundResource() 94 mBackgroundTintHelper.onSetBackgroundResource(resId); in setBackgroundResource() 174 public void setTextAppearance(Context context, int resId) { in setTextAppearance() argument 175 super.setTextAppearance(context, resId); in setTextAppearance() 177 mTextHelper.onSetTextAppearance(context, resId); in setTextAppearance()
|
D | AppCompatCheckedTextView.java | 63 public void setCheckMarkDrawable(@DrawableRes int resId) { in setCheckMarkDrawable() argument 64 setCheckMarkDrawable(AppCompatResources.getDrawable(getContext(), resId)); in setCheckMarkDrawable() local 68 public void setTextAppearance(Context context, int resId) { in setTextAppearance() argument 69 super.setTextAppearance(context, resId); in setTextAppearance() 71 mTextHelper.onSetTextAppearance(context, resId); in setTextAppearance()
|
D | AppCompatEditText.java | 73 public void setBackgroundResource(@DrawableRes int resId) { in setBackgroundResource() argument 74 super.setBackgroundResource(resId); in setBackgroundResource() 76 mBackgroundTintHelper.onSetBackgroundResource(resId); in setBackgroundResource() 156 public void setTextAppearance(Context context, int resId) { in setTextAppearance() argument 157 super.setTextAppearance(context, resId); in setTextAppearance() 159 mTextHelper.onSetTextAppearance(context, resId); in setTextAppearance()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/graph/ |
D | BluetoothDeviceLayerDrawable.java | 57 public static BluetoothDeviceLayerDrawable createLayerDrawable(Context context, int resId, in createLayerDrawable() argument 59 return createLayerDrawable(context, resId, batteryLevel, 1 /*iconScale*/); in createLayerDrawable() 71 public static BluetoothDeviceLayerDrawable createLayerDrawable(Context context, int resId, in createLayerDrawable() argument 73 final Drawable deviceDrawable = context.getDrawable(resId); in createLayerDrawable() 90 drawable.setConstantState(context, resId, batteryLevel, iconScale); in createLayerDrawable() 95 public void setConstantState(Context context, int resId, int batteryLevel, float iconScale) { in setConstantState() argument 96 mState = new BluetoothDeviceLayerDrawableState(context, resId, batteryLevel, iconScale); in setConstantState() 143 int resId; field in BluetoothDeviceLayerDrawable.BluetoothDeviceLayerDrawableState 147 public BluetoothDeviceLayerDrawableState(Context context, int resId, in BluetoothDeviceLayerDrawableState() argument 150 this.resId = resId; in BluetoothDeviceLayerDrawableState() [all …]
|
/frameworks/support/compat/java/android/support/v4/content/res/ |
D | TypedArrayUtils.java | 66 @NonNull String attrName, @StyleableRes int resId, float defaultValue) { in getNamedFloat() argument 71 return a.getFloat(resId, defaultValue); in getNamedFloat() 83 String attrName, @StyleableRes int resId, boolean defaultValue) { in getNamedBoolean() argument 88 return a.getBoolean(resId, defaultValue); in getNamedBoolean() 100 String attrName, @StyleableRes int resId, int defaultValue) { in getNamedInt() argument 105 return a.getInt(resId, defaultValue); in getNamedInt() 118 String attrName, @StyleableRes int resId, @ColorInt int defaultValue) { in getNamedColor() argument 123 return a.getColor(resId, defaultValue); in getNamedColor() 136 String attrName, @StyleableRes int resId, @AnyRes int defaultValue) { in getNamedResourceId() argument 141 return a.getResourceId(resId, defaultValue); in getNamedResourceId() [all …]
|
/frameworks/opt/inputmethodcommon/java/com/android/inputmethodcommon/ |
D | InputMethodSettingsActivity.java | 42 public void setInputMethodSettingsCategoryTitle(int resId) { in setInputMethodSettingsCategoryTitle() argument 43 mSettings.setInputMethodSettingsCategoryTitle(resId); in setInputMethodSettingsCategoryTitle() 58 public void setSubtypeEnablerTitle(int resId) { in setSubtypeEnablerTitle() argument 59 mSettings.setSubtypeEnablerTitle(resId); in setSubtypeEnablerTitle() 74 public void setSubtypeEnablerIcon(int resId) { in setSubtypeEnablerIcon() argument 75 mSettings.setSubtypeEnablerIcon(resId); in setSubtypeEnablerIcon()
|
D | InputMethodSettingsFragment.java | 43 public void setInputMethodSettingsCategoryTitle(int resId) { in setInputMethodSettingsCategoryTitle() argument 44 mSettings.setInputMethodSettingsCategoryTitle(resId); in setInputMethodSettingsCategoryTitle() 59 public void setSubtypeEnablerTitle(int resId) { in setSubtypeEnablerTitle() argument 60 mSettings.setSubtypeEnablerTitle(resId); in setSubtypeEnablerTitle() 75 public void setSubtypeEnablerIcon(int resId) { in setSubtypeEnablerIcon() argument 76 mSettings.setSubtypeEnablerIcon(resId); in setSubtypeEnablerIcon()
|
D | InputMethodSettingsInterface.java | 30 public void setInputMethodSettingsCategoryTitle(int resId); in setInputMethodSettingsCategoryTitle() argument 43 public void setSubtypeEnablerTitle(int resId); in setSubtypeEnablerTitle() argument 56 public void setSubtypeEnablerIcon(int resId); in setSubtypeEnablerIcon() argument
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | CachingIconView.java | 70 public void setImageResource(@DrawableRes int resId) { in setImageResource() argument 71 if (!testAndSetCache(resId)) { in setImageResource() 74 super.setImageResource(resId); in setImageResource() 80 public Runnable setImageResourceAsync(@DrawableRes int resId) { in setImageResourceAsync() argument 82 return super.setImageResourceAsync(resId); in setImageResourceAsync() 144 private synchronized boolean testAndSetCache(int resId) { in testAndSetCache() argument 146 if (resId == 0 || mLastResId == 0) { in testAndSetCache() 149 isCached = resId == mLastResId && null == mLastPackage; in testAndSetCache() 152 mLastResId = resId; in testAndSetCache()
|
/frameworks/opt/bitmap/src/com/android/bitmap/ |
D | ResourceRequestKey.java | 36 public static ResourceRequestKey from(Resources res, int resId) { in from() argument 37 if (resId != 0) { in from() 38 return new ResourceRequestKey(res, resId); in from() 43 private ResourceRequestKey(Resources res, int resId) { in ResourceRequestKey() argument 45 mResId = resId; in ResourceRequestKey()
|
/frameworks/base/core/java/com/android/internal/app/ |
D | ToolbarActionBar.java | 95 public void setCustomView(int resId) { in setCustomView() argument 97 setCustomView(inflater.inflate(resId, mDecorToolbar.getViewGroup(), false)); in setCustomView() 101 public void setIcon(int resId) { in setIcon() argument 102 mDecorToolbar.setIcon(resId); in setIcon() 111 public void setLogo(int resId) { in setLogo() argument 112 mDecorToolbar.setLogo(resId); in setLogo() 161 public void setHomeAsUpIndicator(int resId) { in setHomeAsUpIndicator() argument 162 mDecorToolbar.setNavigationIcon(resId); in setHomeAsUpIndicator() 176 public void setHomeActionContentDescription(int resId) { in setHomeActionContentDescription() argument 177 mDecorToolbar.setNavigationContentDescription(resId); in setHomeActionContentDescription() [all …]
|
/frameworks/support/samples/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/utils/ |
D | ResourceCache.java | 28 public <ViewType extends View> ViewType getViewById(View view, int resId) { in getViewById() argument 29 View child = mCachedViews.get(resId, null); in getViewById() 31 child = view.findViewById(resId); in getViewById() 32 mCachedViews.put(resId, child); in getViewById()
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | PropConfig.java | 25 public static int getInt(Context context, String propName, int resId) { in getInt() argument 26 return SystemProperties.getInt(propName, context.getResources().getInteger(resId)); in getInt() 29 public static String[] getStringArray(Context context, String propName, int resId) { in getStringArray() argument 31 return !UNSET.equals(prop) ? prop.split(",") : context.getResources().getStringArray(resId); in getStringArray()
|
/frameworks/support/v7/appcompat/src/android/support/v7/app/ |
D | ToolbarActionBar.java | 93 public void setCustomView(int resId) { in setCustomView() argument 95 setCustomView(inflater.inflate(resId, mDecorToolbar.getViewGroup(), false)); in setCustomView() 99 public void setIcon(int resId) { in setIcon() argument 100 mDecorToolbar.setIcon(resId); in setIcon() 109 public void setLogo(int resId) { in setLogo() argument 110 mDecorToolbar.setLogo(resId); in setLogo() 159 public void setHomeAsUpIndicator(int resId) { in setHomeAsUpIndicator() argument 160 mDecorToolbar.setNavigationIcon(resId); in setHomeAsUpIndicator() 174 public void setHomeActionContentDescription(int resId) { in setHomeActionContentDescription() argument 175 mDecorToolbar.setNavigationContentDescription(resId); in setHomeActionContentDescription() [all …]
|
D | ActionBar.java | 255 public abstract void setCustomView(int resId); in setCustomView() argument 270 public abstract void setIcon(@DrawableRes int resId); in setIcon() argument 300 public abstract void setLogo(@DrawableRes int resId); in setLogo() argument 400 public abstract void setTitle(@StringRes int resId); in setTitle() argument 423 public abstract void setSubtitle(int resId); in setSubtitle() argument 910 public void setHomeAsUpIndicator(@DrawableRes int resId) {} in setHomeAsUpIndicator() argument 949 public void setHomeActionContentDescription(@StringRes int resId) {} in setHomeActionContentDescription() argument 1215 public abstract Tab setIcon(@DrawableRes int resId); in setIcon() argument 1233 public abstract Tab setText(int resId); in setText() argument 1296 public abstract Tab setContentDescription(@StringRes int resId); in setContentDescription() argument
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | SystemUIDialog.java | 60 public void setMessage(int resId) { in setMessage() argument 61 setMessage(mContext.getString(resId)); in setMessage() 64 public void setPositiveButton(int resId, OnClickListener onClick) { in setPositiveButton() argument 65 setButton(BUTTON_POSITIVE, mContext.getString(resId), onClick); in setPositiveButton() 68 public void setNegativeButton(int resId, OnClickListener onClick) { in setNegativeButton() argument 69 setButton(BUTTON_NEGATIVE, mContext.getString(resId), onClick); in setNegativeButton()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/tv/ |
D | PipControlButtonView.java | 136 public void setImageResource(int resId) { in setImageResource() argument 137 if (resId != 0) { in setImageResource() 138 mIconImageView.setImageResource(resId); in setImageResource() 153 public void setText(int resId) { in setText() argument 154 if (resId != 0) { in setText() 155 mButtonImageView.setContentDescription(getContext().getString(resId)); in setText() 156 mDescriptionTextView.setText(resId); in setText()
|
/frameworks/base/core/java/com/android/internal/view/ |
D | StandaloneActionMode.java | 66 public void setTitle(int resId) { in setTitle() argument 67 setTitle(resId != 0 ? mContext.getString(resId) : null); in setTitle() 71 public void setSubtitle(int resId) { in setSubtitle() argument 72 setSubtitle(resId != 0 ? mContext.getString(resId) : null); in setSubtitle()
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
D | KeyguardMessageArea.java | 93 public void setMessage(int resId) { in setMessage() argument 95 if (resId != 0) { in setMessage() 96 message = getContext().getResources().getText(resId); in setMessage() 102 public void formatMessage(int resId, Object... formatArgs) { in formatMessage() argument 104 if (resId != 0) { in formatMessage() 105 message = getContext().getString(resId, formatArgs); in formatMessage()
|
/frameworks/base/core/java/android/app/ |
D | ActionBar.java | 263 public abstract void setCustomView(@LayoutRes int resId); in setCustomView() argument 278 public abstract void setIcon(@DrawableRes int resId); in setIcon() argument 308 public abstract void setLogo(@DrawableRes int resId); in setLogo() argument 408 public abstract void setTitle(@StringRes int resId); in setTitle() argument 431 public abstract void setSubtitle(@StringRes int resId); in setSubtitle() argument 917 public void setHomeAsUpIndicator(@DrawableRes int resId) { } in setHomeAsUpIndicator() argument 956 public void setHomeActionContentDescription(@StringRes int resId) { } in setHomeActionContentDescription() argument 1195 public abstract Tab setIcon(@DrawableRes int resId); in setIcon() argument 1213 public abstract Tab setText(@StringRes int resId); in setText() argument 1276 public abstract Tab setContentDescription(@StringRes int resId); in setContentDescription() argument
|
/frameworks/base/tools/aapt/ |
D | ResourceIdCache.cpp | 27 CacheEntry(const android::String16& name, uint32_t resId) : hashedName(name), id(resId) { } in CacheEntry() 88 uint32_t resId) { in store() argument 92 mIdMap[hashcode] = CacheEntry(hashedName, resId); in store() 94 return resId; in store()
|