Searched defs:resId (Results 1 - 25 of 211) sorted by relevance

123456789

/frameworks/base/apct-tests/perftests/utils/src/android/perftests/utils/
H A DBitmapUtils.java30 public static void saveBitmapIntoPNG(Context context, Bitmap bitmap, int resId) { argument
34 String originalFilePath = context.getResources().getString(resId);
/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/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/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/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/core/java/com/android/internal/util/
H A DMimeIconUtils.java31 private static void add(String mimeType, int resId) { argument
32 if (sMimeIcons.put(mimeType, resId) != null) {
206 Integer resId = sMimeIcons.get(mimeType);
207 if (resId != null) {
208 return context.getDrawable(resId);
/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/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/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/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/graphics/drawable/animated/src/androidTest/java/androidx/vectordrawable/graphics/drawable/tests/
H A DDrawableUtils.java33 public static void saveVectorDrawableIntoPNG(Resources resource, Bitmap bitmap, int resId, argument
44 if (resId >= 0) {
45 String originalFilePath = resource.getString(resId);
H A DPathInterpolatorExceptionParameterizedTest.java58 public PathInterpolatorExceptionParameterizedTest(final int resId) throws Throwable { argument
59 mResId = resId;
H A DPathInterpolatorParameterizedTest.java64 public PathInterpolatorParameterizedTest(final int resId) throws Throwable { argument
65 mResId = resId;
H A DPathInterpolatorValueParameterizedTest.java59 public PathInterpolatorValueParameterizedTest(final int resId, float expected) argument
61 mResId = resId;
/frameworks/support/navigation/runtime/src/main/java/androidx/navigation/
H A DNavigation.java93 * @param resId an {@link NavDestination#getAction(int) action} id or a destination id to
98 public static View.OnClickListener createNavigateOnClickListener(@IdRes final int resId) { argument
99 return createNavigateOnClickListener(resId, null);
107 * @param resId an {@link NavDestination#getAction(int) action} id or a destination id to
113 public static View.OnClickListener createNavigateOnClickListener(@IdRes final int resId, argument
118 findNavController(view).navigate(resId, args);
/frameworks/support/v7/appcompat/src/androidTest/java/androidx/appcompat/testutils/
H A DAppCompatTintableViewActions.java175 public static ViewAction setBackgroundResource(final @DrawableRes int resId) { argument
191 view.setBackgroundResource(resId);
203 public static ViewAction setImageResource(final @DrawableRes int resId) { argument
220 ((ImageView) view).setImageResource(resId);
H A DTestUtilsActions.java66 public static ViewAction setTextAppearance(final int resId) { argument
83 textView.setTextAppearance(textView.getContext(), resId);
/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 DAppCompatCheckBox.java77 public void setButtonDrawable(@DrawableRes int resId) { argument
78 setButtonDrawable(AppCompatResources.getDrawable(getContext(), resId));
/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/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DScreenPinningNotify.java70 private Toast makeAllUserToastAndShow(int resId) { argument
71 Toast toast = SysUIToast.makeText(mContext, resId, Toast.LENGTH_LONG);
/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/opt/vcard/tests/src/com/android/vcard/tests/testutils/
H A DPropertyNodesVerifier.java46 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),

Completed in 801 milliseconds

123456789