/frameworks/base/core/tests/overlaytests/OverlayTest/src/com/android/overlaytest/ |
H A D | OverlayBaseTest.java | 25 private int calculateRawResourceChecksum(int resId) throws Throwable { argument 28 input = mResources.openRawResource(resId); 102 private void assertResource(int resId, boolean no, boolean so, boolean mo) throws Throwable { argument 104 boolean actual = mResources.getBoolean(resId); 108 private void assertResource(int resId, int no, int so, int mo) throws Throwable { argument 110 int actual = mResources.getInteger(resId); 114 private void assertResource(int resId, String no, String so, String mo) throws Throwable { argument 116 String actual = mResources.getString(resId); 120 private void assertResource(int resId, int[] no, int[] so, int[] mo) throws Throwable { argument 122 int[] actual = mResources.getIntArray(resId); [all...] |
/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
H A D | SecurityMessageDisplay.java | 25 void setMessage(int resId); argument 27 void formatMessage(int resId, Object... formatArgs); argument
|
/frameworks/opt/inputmethodcommon/java/com/android/inputmethodcommon/ |
H A D | InputMethodSettingsInterface.java | 28 * @param resId The resource ID of the title. 30 public void setInputMethodSettingsCategoryTitle(int resId); argument 41 * @param resId The resource ID of the title. 43 public void setSubtypeEnablerTitle(int resId); argument 54 * @param resId The resource id of an optional icon for the preference. 56 public void setSubtypeEnablerIcon(int resId); argument
|
H A D | InputMethodSettingsActivity.java | 42 public void setInputMethodSettingsCategoryTitle(int resId) { argument 43 mSettings.setInputMethodSettingsCategoryTitle(resId); 58 public void setSubtypeEnablerTitle(int resId) { argument 59 mSettings.setSubtypeEnablerTitle(resId); 74 public void setSubtypeEnablerIcon(int resId) { argument 75 mSettings.setSubtypeEnablerIcon(resId);
|
H A D | InputMethodSettingsFragment.java | 43 public void setInputMethodSettingsCategoryTitle(int resId) { argument 44 mSettings.setInputMethodSettingsCategoryTitle(resId); 59 public void setSubtypeEnablerTitle(int resId) { argument 60 mSettings.setSubtypeEnablerTitle(resId); 75 public void setSubtypeEnablerIcon(int resId) { argument 76 mSettings.setSubtypeEnablerIcon(resId);
|
/frameworks/base/tests/testables/src/android/testing/ |
H A D | TestableImageView.java | 32 public void setImageResource(@DrawableRes int resId) { argument 33 mLastResId = resId; 34 super.setImageResource(resId);
|
/frameworks/base/services/core/java/com/android/server/notification/ |
H A D | PropConfig.java | 25 public static int getInt(Context context, String propName, int resId) { argument 26 return SystemProperties.getInt(propName, context.getResources().getInteger(resId)); 29 public static String[] getStringArray(Context context, String propName, int resId) { argument 31 return !UNSET.equals(prop) ? prop.split(",") : context.getResources().getStringArray(resId);
|
/frameworks/support/frameworks/support/samples/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/utils/ |
H A D | ResourceCache.java | 28 public <ViewType extends View> ViewType getViewById(View view, int resId) { argument 29 View child = mCachedViews.get(resId, null); 31 child = view.findViewById(resId); 32 mCachedViews.put(resId, child);
|
/frameworks/support/samples/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/utils/ |
H A D | ResourceCache.java | 28 public <ViewType extends View> ViewType getViewById(View view, int resId) { argument 29 View child = mCachedViews.get(resId, null); 31 child = view.findViewById(resId); 32 mCachedViews.put(resId, child);
|
/frameworks/opt/bitmap/src/com/android/bitmap/ |
H A D | ResourceRequestKey.java | 33 * Create a new request key with the given resource id. A resId of 0 will 36 public static ResourceRequestKey from(Resources res, int resId) { argument 37 if (resId != 0) { 38 return new ResourceRequestKey(res, resId); 43 private ResourceRequestKey(Resources res, int resId) { argument 45 mResId = resId;
|
/frameworks/support/v7/appcompat/src/android/support/v7/content/res/ |
H A D | AppCompatResources.java | 60 * @param resId the resource identifier of the ColorStateList to retrieve 62 public static ColorStateList getColorStateList(@NonNull Context context, @ColorRes int resId) { argument 65 return context.getColorStateList(resId); 69 ColorStateList csl = getCachedColorStateList(context, resId); 74 csl = inflateColorStateList(context, resId); 77 addColorStateListToCache(context, resId, csl); 82 return ContextCompat.getColorStateList(context, resId); 92 * @param resId The desired resource identifier, as generated by the aapt 99 public static Drawable getDrawable(@NonNull Context context, @DrawableRes int resId) { argument 100 return AppCompatDrawableManager.get().getDrawable(context, resId); 107 inflateColorStateList(Context context, int resId) argument 124 getCachedColorStateList(@onNull Context context, @ColorRes int resId) argument 144 addColorStateListToCache(@onNull Context context, @ColorRes int resId, @NonNull ColorStateList value) argument 157 isColorInt(@onNull Context context, @ColorRes int resId) argument [all...] |
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/util/ |
H A D | FallbackThemeWrapper.java | 50 protected void onApplyThemeResource(Theme theme, int resId, boolean first) { argument 51 theme.applyStyle(resId, false /* force */);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
H A D | SystemUIDialog.java | 50 public void setMessage(int resId) { argument 51 setMessage(mContext.getString(resId)); 54 public void setPositiveButton(int resId, OnClickListener onClick) { argument 55 setButton(BUTTON_POSITIVE, mContext.getString(resId), onClick); 58 public void setNegativeButton(int resId, OnClickListener onClick) { argument 59 setButton(BUTTON_NEGATIVE, mContext.getString(resId), onClick);
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
H A D | AppCompatCheckedTextView.java | 61 public void setCheckMarkDrawable(@DrawableRes int resId) { argument 62 setCheckMarkDrawable(AppCompatResources.getDrawable(getContext(), resId)); 66 public void setTextAppearance(Context context, int resId) { argument 67 super.setTextAppearance(context, resId); 69 mTextHelper.onSetTextAppearance(context, resId);
|
H A D | AppCompatDrawableManager.java | 187 public Drawable getDrawable(@NonNull Context context, @DrawableRes int resId) { argument 188 return getDrawable(context, resId, false); 191 Drawable getDrawable(@NonNull Context context, @DrawableRes int resId, argument 195 Drawable drawable = loadDrawableFromDelegates(context, resId); 197 drawable = createDrawableIfNeeded(context, resId); 200 drawable = ContextCompat.getDrawable(context, resId); 205 drawable = tintDrawable(context, resId, failIfNotKnown, drawable); 229 @DrawableRes final int resId) { 234 context.getResources().getValue(resId, tv, true); 244 if (resId 228 createDrawableIfNeeded(@onNull Context context, @DrawableRes final int resId) argument 260 tintDrawable(@onNull Context context, @DrawableRes int resId, boolean failIfNotKnown, @NonNull Drawable drawable) argument 306 loadDrawableFromDelegates(@onNull Context context, @DrawableRes int resId) argument 431 onDrawableLoadedFromResources(@onNull Context context, @NonNull VectorEnabledTintResources resources, @DrawableRes final int resId) argument 443 tintDrawableUsingColorFilter(@onNull Context context, @DrawableRes final int resId, @NonNull Drawable drawable) argument 513 getTintMode(final int resId) argument 523 getTintList(@onNull Context context, @DrawableRes int resId) argument 561 getTintListFromCache(@onNull Context context, @DrawableRes int resId) argument 569 addTintListToCache(@onNull Context context, @DrawableRes int resId, @NonNull ColorStateList tintList) argument [all...] |
H A D | AppCompatEditText.java | 73 public void setBackgroundResource(@DrawableRes int resId) { argument 74 super.setBackgroundResource(resId); 76 mBackgroundTintHelper.onSetBackgroundResource(resId); 156 public void setTextAppearance(Context context, int resId) { argument 157 super.setTextAppearance(context, resId); 159 mTextHelper.onSetTextAppearance(context, resId);
|
H A D | AppCompatAutoCompleteTextView.java | 86 public void setDropDownBackgroundResource(@DrawableRes int resId) { argument 87 setDropDownBackgroundDrawable(AppCompatResources.getDrawable(getContext(), resId)); 91 public void setBackgroundResource(@DrawableRes int resId) { argument 92 super.setBackgroundResource(resId); 94 mBackgroundTintHelper.onSetBackgroundResource(resId); 174 public void setTextAppearance(Context context, int resId) { argument 175 super.setTextAppearance(context, resId); 177 mTextHelper.onSetTextAppearance(context, resId);
|
H A D | AppCompatMultiAutoCompleteTextView.java | 86 public void setDropDownBackgroundResource(@DrawableRes int resId) { argument 87 setDropDownBackgroundDrawable(AppCompatResources.getDrawable(getContext(), resId)); 91 public void setBackgroundResource(@DrawableRes int resId) { argument 92 super.setBackgroundResource(resId); 94 mBackgroundTintHelper.onSetBackgroundResource(resId); 174 public void setTextAppearance(Context context, int resId) { argument 175 super.setTextAppearance(context, resId); 177 mTextHelper.onSetTextAppearance(context, resId);
|
/frameworks/support/wear/src/android/support/wear/internal/widget/ |
H A D | ResourcesUtil.java | 47 * Returns the number of pixels equivalent to the percentage of {@code resId} to the current 50 public static int getFractionOfScreenPx(Context context, int screenPx, @FractionRes int resId) { argument 51 float marginPercent = context.getResources().getFraction(resId, 1, 1);
|
/frameworks/base/tools/aapt/ |
H A D | ResourceIdCache.h | 24 uint32_t resId);
|
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | CachingIconView.java | 70 public void setImageResource(@DrawableRes int resId) { argument 71 if (!testAndSetCache(resId)) { 74 super.setImageResource(resId); 80 public Runnable setImageResourceAsync(@DrawableRes int resId) { argument 82 return super.setImageResourceAsync(resId); 142 * @return true if the currently set image is the same as {@param resId} 144 private synchronized boolean testAndSetCache(int resId) { argument 146 if (resId == 0 || mLastResId == 0) { 149 isCached = resId == mLastResId && null == mLastPackage; 152 mLastResId = resId; [all...] |
H A D | DecorContentParent.java | 39 void setIcon(int resId); argument 41 void setLogo(int resId); argument
|
/frameworks/support/compat/java/android/support/v4/content/res/ |
H A D | TypedArrayUtils.java | 62 * @return a float value in the {@link TypedArray} with the specified {@code resId}, or 66 @NonNull String attrName, @StyleableRes int resId, float defaultValue) { 71 return a.getFloat(resId, defaultValue); 79 * @return a boolean value in the {@link TypedArray} with the specified {@code resId}, or 83 String attrName, @StyleableRes int resId, boolean defaultValue) { 88 return a.getBoolean(resId, defaultValue); 96 * @return an int value in the {@link TypedArray} with the specified {@code resId}, or 100 String attrName, @StyleableRes int resId, int defaultValue) { 105 return a.getInt(resId, defaultValue); 113 * @return a color value in the {@link TypedArray} with the specified {@code resId}, o 65 getNamedFloat(@onNull TypedArray a, @NonNull XmlPullParser parser, @NonNull String attrName, @StyleableRes int resId, float defaultValue) argument 82 getNamedBoolean(@onNull TypedArray a, @NonNull XmlPullParser parser, String attrName, @StyleableRes int resId, boolean defaultValue) argument 99 getNamedInt(@onNull TypedArray a, @NonNull XmlPullParser parser, String attrName, @StyleableRes int resId, int defaultValue) argument 117 getNamedColor(@onNull TypedArray a, @NonNull XmlPullParser parser, String attrName, @StyleableRes int resId, @ColorInt int defaultValue) argument 135 getNamedResourceId(@onNull TypedArray a, @NonNull XmlPullParser parser, String attrName, @StyleableRes int resId, @AnyRes int defaultValue) argument 152 getNamedString(@onNull TypedArray a, @NonNull XmlPullParser parser, String attrName, @StyleableRes int resId) argument 167 peekNamedValue(TypedArray a, XmlPullParser parser, String attrName, int resId) argument [all...] |
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/testutils/ |
H A D | PropertyNodesVerifier.java | 46 public void verify(int resId, int vcardType) throws IOException, VCardException { argument 47 verify(mAndroidTestCase.getContext().getResources().openRawResource(resId), vcardType); 50 public void verify(int resId, int vcardType, final VCardParser parser) argument 52 verify(mAndroidTestCase.getContext().getResources().openRawResource(resId),
|
/frameworks/support/tv-provider/tests/src/android/support/media/tv/ |
H A D | ChannelLogoUtilsTest.java | 69 int resId = R.drawable.test_icon; 73 .authority(res.getResourcePackageName(resId)) 74 .appendPath(res.getResourceTypeName(resId)) 75 .appendPath(res.getResourceEntryName(resId))
|