Searched refs:resId (Results 1 - 25 of 242) sorted by relevance

12345678910

/frameworks/base/core/tests/overlaytests/device/src/com/android/overlaytest/
H A DOverlayBaseTest.java63 private int calculateRawResourceChecksum(int resId) throws Throwable { argument
64 try (InputStream input = mResources.openRawResource(resId)) {
137 private void assertResource(int resId, boolean no, boolean so, boolean mo) throws Throwable { argument
139 boolean actual = mResources.getBoolean(resId);
143 private void assertResource(int resId, int no, int so, int mo) throws Throwable { argument
145 int actual = mResources.getInteger(resId);
149 private void assertResource(int resId, String no, String so, String mo) throws Throwable { argument
151 String actual = mResources.getString(resId);
155 private void assertResource(int resId, int[] no, int[] so, int[] mo) throws Throwable { argument
157 int[] actual = mResources.getIntArray(resId);
[all...]
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
H A DSecurityMessageDisplay.java25 void setMessage(int resId); argument
27 void formatMessage(int resId, Object... formatArgs); argument
/frameworks/opt/inputmethodcommon/java/com/android/inputmethodcommon/
H A DInputMethodSettingsInterface.java28 * @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 DInputMethodSettingsActivity.java42 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 DInputMethodSettingsFragment.java43 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 DTestableImageView.java32 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 DPropConfig.java25 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/opt/bitmap/src/com/android/bitmap/
H A DResourceRequestKey.java33 * 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/main/java/androidx/appcompat/content/res/
H A DAppCompatResources.java61 * @param resId the resource identifier of the ColorStateList to retrieve
63 public static ColorStateList getColorStateList(@NonNull Context context, @ColorRes int resId) { argument
66 return context.getColorStateList(resId);
70 ColorStateList csl = getCachedColorStateList(context, resId);
75 csl = inflateColorStateList(context, resId);
78 addColorStateListToCache(context, resId, csl);
83 return ContextCompat.getColorStateList(context, resId);
93 * @param resId The desired resource identifier, as generated by the aapt
100 public static Drawable getDrawable(@NonNull Context context, @DrawableRes int resId) { argument
101 return AppCompatDrawableManager.get().getDrawable(context, resId);
108 inflateColorStateList(Context context, int resId) argument
125 getCachedColorStateList(@onNull Context context, @ColorRes int resId) argument
145 addColorStateListToCache(@onNull Context context, @ColorRes int resId, @NonNull ColorStateList value) argument
158 isColorInt(@onNull Context context, @ColorRes int resId) argument
[all...]
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/util/
H A DFallbackThemeWrapper.java50 protected void onApplyThemeResource(Theme theme, int resId, boolean first) { argument
51 theme.applyStyle(resId, false /* force */);
/frameworks/support/wear/src/main/java/androidx/wear/widget/
H A DResourcesUtil.java43 * Returns the number of pixels equivalent to the percentage of {@code resId} to the current
46 static int getFractionOfScreenPx(Context context, int screenPx, @FractionRes int resId) { argument
47 float marginPercent = context.getResources().getFraction(resId, 1, 1);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DNeutralGoodDrawable.java38 public static NeutralGoodDrawable create(Context context, int resId) { argument
44 return create(light, dark, resId);
51 * @param resId - the resId for our drawable
53 public static NeutralGoodDrawable create(Context light, Context dark, int resId) { argument
56 light.getDrawable(resId).mutate(),
57 dark.getDrawable(resId).mutate() });
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
H A DOverlayPackagesProvider.java158 final int resId;
161 resId = R.array.required_apps_managed_user;
164 resId = R.array.required_apps_managed_profile;
167 resId = R.array.required_apps_managed_device;
173 return new ArraySet<>(Arrays.asList(mContext.getResources().getStringArray(resId)));
177 final int resId;
180 resId = R.array.disallowed_apps_managed_user;
183 resId = R.array.disallowed_apps_managed_profile;
186 resId = R.array.disallowed_apps_managed_device;
192 return new ArraySet<>(Arrays.asList(mContext.getResources().getStringArray(resId)));
[all...]
/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/widget/
H A DAppCompatCheckedTextView.java66 public void setCheckMarkDrawable(@DrawableRes int resId) { argument
67 setCheckMarkDrawable(AppCompatResources.getDrawable(getContext(), resId));
71 public void setTextAppearance(Context context, int resId) { argument
72 super.setTextAppearance(context, resId);
74 mTextHelper.onSetTextAppearance(context, resId);
H A DAppCompatDrawableManager.java185 public Drawable getDrawable(@NonNull Context context, @DrawableRes int resId) { argument
186 return getDrawable(context, resId, false);
189 Drawable getDrawable(@NonNull Context context, @DrawableRes int resId, argument
193 Drawable drawable = loadDrawableFromDelegates(context, resId);
195 drawable = createDrawableIfNeeded(context, resId);
198 drawable = ContextCompat.getDrawable(context, resId);
203 drawable = tintDrawable(context, resId, failIfNotKnown, drawable);
227 @DrawableRes final int resId) {
232 context.getResources().getValue(resId, tv, true);
242 if (resId
226 createDrawableIfNeeded(@onNull Context context, @DrawableRes final int resId) argument
258 tintDrawable(@onNull Context context, @DrawableRes int resId, boolean failIfNotKnown, @NonNull Drawable drawable) argument
304 loadDrawableFromDelegates(@onNull Context context, @DrawableRes int resId) argument
429 onDrawableLoadedFromResources(@onNull Context context, @NonNull VectorEnabledTintResources resources, @DrawableRes final int resId) argument
441 tintDrawableUsingColorFilter(@onNull Context context, @DrawableRes final int resId, @NonNull Drawable drawable) argument
511 getTintMode(final int resId) argument
521 getTintList(@onNull Context context, @DrawableRes int resId) argument
559 getTintListFromCache(@onNull Context context, @DrawableRes int resId) argument
567 addTintListToCache(@onNull Context context, @DrawableRes int resId, @NonNull ColorStateList tintList) argument
[all...]
H A DAppCompatEditText.java92 public void setBackgroundResource(@DrawableRes int resId) { argument
93 super.setBackgroundResource(resId);
95 mBackgroundTintHelper.onSetBackgroundResource(resId);
175 public void setTextAppearance(Context context, int resId) { argument
176 super.setTextAppearance(context, resId);
178 mTextHelper.onSetTextAppearance(context, resId);
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/graph/
H A DBluetoothDeviceLayerDrawable.java54 * @param resId represents the bluetooth device drawable
57 public static BluetoothDeviceLayerDrawable createLayerDrawable(Context context, int resId, argument
59 return createLayerDrawable(context, resId, batteryLevel, 1 /*iconScale*/);
67 * @param resId represents the bluetooth device drawable
71 public static BluetoothDeviceLayerDrawable createLayerDrawable(Context context, int resId, argument
73 final Drawable deviceDrawable = context.getDrawable(resId);
90 drawable.setConstantState(context, resId, batteryLevel, iconScale);
95 public void setConstantState(Context context, int resId, int batteryLevel, float iconScale) { argument
96 mState = new BluetoothDeviceLayerDrawableState(context, resId, batteryLevel, iconScale);
143 int resId; field in class:BluetoothDeviceLayerDrawable.BluetoothDeviceLayerDrawableState
147 BluetoothDeviceLayerDrawableState(Context context, int resId, int batteryLevel, float iconScale) argument
[all...]
/frameworks/base/core/java/android/service/autofill/
H A DImageTransformation.java90 parentTemplate.setImageViewResource(childViewId, option.resId);
100 + option.resId + ": " + e.getClass());
122 * @param resId resource id of the image (in the autofill service's package). The
129 public Builder(@NonNull AutofillId id, @NonNull Pattern regex, @DrawableRes int resId) { argument
131 addOption(regex, resId);
140 * @param resId resource id of the image (in the autofill service's package). The
144 public Builder(@NonNull AutofillId id, @NonNull Pattern regex, @DrawableRes int resId, argument
147 addOption(regex, resId, contentDescription);
154 * @param resId resource id of the image (in the autofill service's package). The
162 public Builder addOption(@NonNull Pattern regex, @DrawableRes int resId) { argument
178 addOption(@onNull Pattern regex, @DrawableRes int resId, @NonNull CharSequence contentDescription) argument
184 addOptionInternal(@onNull Pattern regex, @DrawableRes int resId, @Nullable CharSequence contentDescription) argument
282 public final int resId; field in class:ImageTransformation.Option
285 Option(Pattern pattern, int resId, CharSequence contentDescription) argument
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/
H A DSysUIToast.java26 public static Toast makeText(Context context, @StringRes int resId, @Duration int duration) { argument
27 return makeText(context, context.getString(resId), duration);
/frameworks/support/wear/src/main/java/androidx/wear/internal/widget/
H A DResourcesUtil.java48 * Returns the number of pixels equivalent to the percentage of {@code resId} to the current
51 public static int getFractionOfScreenPx(Context context, int screenPx, @FractionRes int resId) { argument
52 float marginPercent = context.getResources().getFraction(resId, 1, 1);
/frameworks/base/tools/aapt/
H A DResourceIdCache.h24 uint32_t resId);
/frameworks/support/core/ktx/src/main/java/androidx/core/widget/
H A DToast.kt37 * @param resId Resource id of the string resource to use
40 inline fun Context.toast(@StringRes resId: Int, duration: Int = Toast.LENGTH_SHORT): Toast {
41 return Toast.makeText(this, resId, duration).apply { show() }
/frameworks/base/core/java/com/android/internal/widget/
H A DCachingIconView.java70 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 DDecorContentParent.java39 void setIcon(int resId); argument
41 void setLogo(int resId); argument
/frameworks/support/compat/src/main/java/androidx/core/content/res/
H A DTypedArrayUtils.java64 * @return a float value in the {@link TypedArray} with the specified {@code resId}, or
68 @NonNull String attrName, @StyleableRes int resId, float defaultValue) {
73 return a.getFloat(resId, defaultValue);
81 * @return a boolean value in the {@link TypedArray} with the specified {@code resId}, or
85 @NonNull String attrName, @StyleableRes int resId, boolean defaultValue) {
90 return a.getBoolean(resId, defaultValue);
98 * @return an int value in the {@link TypedArray} with the specified {@code resId}, or
102 @NonNull String attrName, @StyleableRes int resId, int defaultValue) {
107 return a.getInt(resId, defaultValue);
115 * @return a color value in the {@link TypedArray} with the specified {@code resId}, o
67 getNamedFloat(@onNull TypedArray a, @NonNull XmlPullParser parser, @NonNull String attrName, @StyleableRes int resId, float defaultValue) argument
84 getNamedBoolean(@onNull TypedArray a, @NonNull XmlPullParser parser, @NonNull String attrName, @StyleableRes int resId, boolean defaultValue) argument
101 getNamedInt(@onNull TypedArray a, @NonNull XmlPullParser parser, @NonNull String attrName, @StyleableRes int resId, int defaultValue) argument
119 getNamedColor(@onNull TypedArray a, @NonNull XmlPullParser parser, @NonNull String attrName, @StyleableRes int resId, @ColorInt int defaultValue) argument
137 getNamedResourceId(@onNull TypedArray a, @NonNull XmlPullParser parser, @NonNull String attrName, @StyleableRes int resId, @AnyRes int defaultValue) argument
155 getNamedString(@onNull TypedArray a, @NonNull XmlPullParser parser, @NonNull String attrName, @StyleableRes int resId) argument
171 peekNamedValue(@onNull TypedArray a, @NonNull XmlPullParser parser, @NonNull String attrName, int resId) argument
[all...]

Completed in 458 milliseconds

12345678910