Searched defs:resId (Results 1 - 25 of 204) 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/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/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/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/frameworks/support/samples/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/utils/
H A DResourceCache.java28 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/graphics/drawable/animated/tests/src/android/support/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.java57 public PathInterpolatorExceptionParameterizedTest(final int resId) throws Throwable { argument
58 mResId = resId;
H A DPathInterpolatorParameterizedTest.java62 public PathInterpolatorParameterizedTest(final int resId) throws Throwable { argument
63 mResId = resId;
H A DPathInterpolatorValueParameterizedTest.java58 public PathInterpolatorValueParameterizedTest(final int resId, float expected) argument
60 mResId = resId;
/frameworks/support/samples/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/utils/
H A DResourceCache.java28 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/v7/appcompat/src/android/support/v7/widget/
H A DAppCompatCheckedTextView.java61 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 DAppCompatCheckBox.java74 public void setButtonDrawable(@DrawableRes int resId) { argument
75 setButtonDrawable(AppCompatResources.getDrawable(getContext(), resId));
/frameworks/support/v7/appcompat/tests/src/android/support/v7/testutils/
H A DAppCompatTintableViewActions.java174 public static ViewAction setBackgroundResource(final @DrawableRes int resId) { argument
190 view.setBackgroundResource(resId);
202 public static ViewAction setImageResource(final @DrawableRes int resId) { argument
219 ((ImageView) view).setImageResource(resId);
/frameworks/support/wear/src/android/support/wear/internal/widget/
H A DResourcesUtil.java47 * 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/packages/SettingsLib/src/com/android/settingslib/accessibility/
H A DAccessibilityUtils.java82 * @return a localized version of the text resource specified by resId
84 public static CharSequence getTextForLocale(Context context, Locale locale, int resId) { argument
89 return langContext.getText(resId);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DSystemUIDialog.java50 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/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),
/frameworks/support/design/tests/src/android/support/design/testutils/
H A DFloatingActionButtonActions.java62 public static ViewAction setImageResource(@DrawableRes final int resId) { argument
79 fab.setImageResource(resId);
H A DTextInputLayoutActions.java79 public static ViewAction setErrorTextAppearance(final int resId) { argument
96 layout.setErrorTextAppearance(resId);

Completed in 7245 milliseconds

123456789