HomeSort by relevance Sort by last modified time
    Searched refs:resId (Results 1 - 25 of 523) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
ContactsMockResources.java 30 public void addResource(int resId, String packageName, String typeName, String entryName) {
31 mPackages.put(resId, packageName);
32 mTypes.put(resId, typeName);
33 mEntries.put(resId, entryName);
37 public String getResourceName(int resId) throws NotFoundException {
38 if (!mPackages.containsKey(resId)) {
39 throw new NotFoundException("Resource " + resId + " not found");
41 return mPackages.get(resId) + ":" + mTypes.get(resId) + "/" + mEntries.get(resId);
    [all...]
  /frameworks/base/core/tests/overlaytests/OverlayTest/src/com/android/overlaytest/
OverlayBaseTest.java 25 private int calculateRawResourceChecksum(int resId) throws Throwable {
28 input = mResources.openRawResource(resId);
102 private void assertResource(int resId, boolean no, boolean so, boolean mo) throws Throwable {
104 boolean actual = mResources.getBoolean(resId);
108 private void assertResource(int resId, int no, int so, int mo) throws Throwable {
110 int actual = mResources.getInteger(resId);
114 private void assertResource(int resId, String no, String so, String mo) throws Throwable {
116 String actual = mResources.getString(resId);
120 private void assertResource(int resId, int[] no, int[] so, int[] mo) throws Throwable {
122 int[] actual = mResources.getIntArray(resId);
    [all...]
  /frameworks/base/packages/Keyguard/src/com/android/keyguard/
SecurityMessageDisplay.java 25 void setMessage(int resId, boolean important);
27 void setMessage(int resId, boolean important, Object... formatArgs);
  /development/samples/SoftKeyboard/src/com/android/inputmethodcommon/
InputMethodSettingsInterface.java 34 * @param resId The resource ID of the title.
36 public void setInputMethodSettingsCategoryTitle(int resId);
47 * @param resId The resource ID of the title.
49 public void setSubtypeEnablerTitle(int resId);
60 * @param resId The resource id of an optional icon for the preference.
62 public void setSubtypeEnablerIcon(int resId);
InputMethodSettingsFragment.java 49 public void setInputMethodSettingsCategoryTitle(int resId) {
50 mSettings.setInputMethodSettingsCategoryTitle(resId);
65 public void setSubtypeEnablerTitle(int resId) {
66 mSettings.setSubtypeEnablerTitle(resId);
81 public void setSubtypeEnablerIcon(int resId) {
82 mSettings.setSubtypeEnablerIcon(resId);
  /frameworks/opt/inputmethodcommon/java/com/android/inputmethodcommon/
InputMethodSettingsInterface.java 28 * @param resId The resource ID of the title.
30 public void setInputMethodSettingsCategoryTitle(int resId);
41 * @param resId The resource ID of the title.
43 public void setSubtypeEnablerTitle(int resId);
54 * @param resId The resource id of an optional icon for the preference.
56 public void setSubtypeEnablerIcon(int resId);
InputMethodSettingsActivity.java 42 public void setInputMethodSettingsCategoryTitle(int resId) {
43 mSettings.setInputMethodSettingsCategoryTitle(resId);
58 public void setSubtypeEnablerTitle(int resId) {
59 mSettings.setSubtypeEnablerTitle(resId);
74 public void setSubtypeEnablerIcon(int resId) {
75 mSettings.setSubtypeEnablerIcon(resId);
InputMethodSettingsFragment.java 43 public void setInputMethodSettingsCategoryTitle(int resId) {
44 mSettings.setInputMethodSettingsCategoryTitle(resId);
59 public void setSubtypeEnablerTitle(int resId) {
60 mSettings.setSubtypeEnablerTitle(resId);
75 public void setSubtypeEnablerIcon(int resId) {
76 mSettings.setSubtypeEnablerIcon(resId);
  /packages/apps/Launcher3/src/com/android/launcher3/
Partner.java 100 int resId = getResources().getIdentifier(RES_DEFAULT_WALLPAPER_HIDDEN, "bool",
102 return resId != 0 && getResources().getBoolean(resId);
106 int resId = getResources().getIdentifier(RES_SYSTEM_WALLPAPER_DIR, "string",
108 return (resId != 0) ? new File(getResources().getString(resId)) : null;
112 int resId = getResources().getIdentifier(RES_REQUIRE_FIRST_RUN_FLOW, "bool",
114 return resId != 0 && getResources().getBoolean(resId);
123 int resId = getResources().getIdentifier(RES_GRID_NUM_ROWS
    [all...]
  /frameworks/base/services/core/java/com/android/server/notification/
PropConfig.java 25 public static int getInt(Context context, String propName, int resId) {
26 return SystemProperties.getInt(propName, context.getResources().getInteger(resId));
29 public static String[] getStringArray(Context context, String propName, int resId) {
31 return !UNSET.equals(prop) ? prop.split(",") : context.getResources().getStringArray(resId);
  /frameworks/support/samples/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/utils/
ResourceCache.java 28 public <ViewType extends View> ViewType getViewById(View view, int resId) {
29 View child = mCachedViews.get(resId, null);
31 child = view.findViewById(resId);
32 mCachedViews.put(resId, child);
  /frameworks/support/compat/api23/android/support/v4/widget/
TextViewCompatApi23.java 25 public static void setTextAppearance(@NonNull TextView textView, @StyleRes int resId) {
26 textView.setTextAppearance(resId);
  /frameworks/support/graphics/drawable/static/src/android/support/graphics/drawable/
TypedArrayUtils.java 28 int resId, float defaultValue) {
33 return a.getFloat(resId, defaultValue);
38 int resId, boolean defaultValue) {
43 return a.getBoolean(resId, defaultValue);
48 int resId, int defaultValue) {
53 return a.getInt(resId, defaultValue);
58 int resId, int defaultValue) {
63 return a.getColor(resId, defaultValue);
  /frameworks/opt/bitmap/src/com/android/bitmap/
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) {
37 if (resId != 0) {
38 return new ResourceRequestKey(res, resId);
43 private ResourceRequestKey(Resources res, int resId) {
45 mResId = resId;
  /packages/apps/UnifiedEmail/src/com/android/mail/ui/
ToastBarOperation.java 124 final int resId;
126 resId = R.plurals.conversation_deleted;
130 resId = R.plurals.conversation_folder_changed;
134 resId = R.plurals.conversation_archived;
136 resId = R.plurals.conversation_spammed;
138 resId = R.plurals.conversation_not_spam;
140 resId = R.plurals.conversation_not_important;
142 resId = R.plurals.conversation_muted;
144 resId = R.plurals.conversation_unstarred;
146 resId = R.plurals.conversation_phished
    [all...]
  /frameworks/support/v7/appcompat/src/android/support/v7/content/res/
AppCompatResources.java 60 * @param resId the resource identifier of the ColorStateList to retrieve
62 public static ColorStateList getColorStateList(@NonNull Context context, @ColorRes int resId) {
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) {
100 return AppCompatDrawableManager.get().getDrawable(context, resId);
    [all...]
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/location/base/
IGnssTestStateContainer.java 34 * @param resId The resource Id to extract.
37 String getString(int resId);
40 * @param resId The resource Id to extract.
44 String getString(int resId, Object... params);
  /frameworks/support/compat/honeycomb/android/support/v4/view/
MenuItemCompatHoneycomb.java 34 public static MenuItem setActionView(MenuItem item, int resId) {
35 return item.setActionView(resId);
  /frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
SystemUIDialog.java 50 public void setMessage(int resId) {
51 setMessage(mContext.getString(resId));
54 public void setPositiveButton(int resId, OnClickListener onClick) {
55 setButton(BUTTON_POSITIVE, mContext.getString(resId), onClick);
58 public void setNegativeButton(int resId, OnClickListener onClick) {
59 setButton(BUTTON_NEGATIVE, mContext.getString(resId), onClick);
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/accessibility/
KeyCodeDescriptionMapper.java 152 final int resId;
160 resId = R.string.spoken_description_to_symbol;
164 resId = R.string.spoken_description_to_alpha;
167 resId = R.string.spoken_description_to_symbol;
170 resId = R.string.spoken_description_to_numeric;
176 return context.getString(resId);
190 final int resId;
195 resId = R.string.spoken_description_caps_lock;
199 resId = R.string.spoken_description_shift_shifted;
202 resId = R.string.spoken_description_symbols_shift
    [all...]
  /frameworks/base/core/java/com/android/internal/widget/
CachingIconView.java 68 public void setImageResource(@DrawableRes int resId) {
69 if (!testAndSetCache(resId)) {
72 super.setImageResource(resId);
78 public Runnable setImageResourceAsync(@DrawableRes int resId) {
80 return super.setImageResourceAsync(resId);
140 * @return true if the currently set image is the same as {@param resId}
142 private synchronized boolean testAndSetCache(int resId) {
144 if (resId == 0 || mLastResId == 0) {
147 isCached = resId == mLastResId && null == mLastPackage;
150 mLastResId = resId;
    [all...]
  /frameworks/support/v7/appcompat/src/android/support/v7/widget/
AppCompatCheckedTextView.java 61 public void setCheckMarkDrawable(@DrawableRes int resId) {
62 setCheckMarkDrawable(AppCompatResources.getDrawable(getContext(), resId));
66 public void setTextAppearance(Context context, int resId) {
67 super.setTextAppearance(context, resId);
69 mTextHelper.onSetTextAppearance(context, resId);
  /packages/apps/DeskClock/src/com/android/deskclock/events/
LogEventTracker.java 53 * @return Resource string represented by a given resource id, null if resId is invalid (0).
55 private String safeGetString(@StringRes int resId) {
56 return resId == 0 ? null : mContext.getString(resId);
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/base/
ISensorTestStateContainer.java 39 * @param resId The resource Id to extract.
42 String getString(int resId);
45 * @param resId The resource Id to extract.
49 String getString(int resId, Object ... params);
  /cts/tests/tests/security/src/android/security/cts/
SkiaICORecursiveDecodingTest.java 40 public void doSkiaIcoRecursiveDecodingTest(int resId) {
41 InputStream exploitImage = mContext.getResources().openRawResource(resId);

Completed in 543 milliseconds

1 2 3 4 5 6 7 8 91011>>