/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...] |
/cts/tests/tests/content/src/android/content/res/cts/ |
ArrayTest.java | 34 private void checkEntry(final int resid, final int index, final Object res, 36 assertEquals("in resource 0x" + Integer.toHexString(resid) 40 private void checkStringArray(final int resid, final String[] expected) { 41 final String[] res = mResources.getStringArray(resid); 44 checkEntry(resid, i, res[i], expected[i]); 48 private void checkTextArray(final int resid, final String[] expected) { 49 final CharSequence[] res = mResources.getTextArray(resid); 52 checkEntry(resid, i, res[i], expected[i]); 56 private void checkIntArray(final int resid, final int[] expected) { 57 final int[] res = mResources.getIntArray(resid); [all...] |
ResourceNameTest.java | 47 int resid = res.getIdentifier( local 50 assertEquals(R.configVarying.simple, resid); 52 resid = res.getIdentifier("configVarying/simple", null, 54 assertEquals(R.configVarying.simple, resid); 56 resid = res.getIdentifier("simple", "configVarying", 58 assertEquals(R.configVarying.simple, resid);
|
PrimitiveTest.java | 35 private void tryEnum(final int resid, final int expected) { 36 final TypedArray sa = mContext.obtainStyledAttributes(resid, R.styleable.EnumStyle); 41 + ": in resource 0x" + Integer.toHexString(resid), expected, value); 52 private void tryFlag(final int resid, final int expected) { 53 final TypedArray sa = mContext.obtainStyledAttributes(resid, R.styleable.FlagStyle); 58 + ": in resource 0x" + Integer.toHexString(resid), expected, value); 70 private void tryBoolean(final int resid, final boolean expected) { 72 mContext.getResources().getValue(resid, v, true); 75 + " from TypedValue: in resource 0x" + Integer.toHexString(resid), 78 + " from getBoolean(): in resource 0x" + Integer.toHexString(resid), [all...] |
/development/samples/HoneycombGallery/src/com/example/android/hcgallery/ |
DirectoryEntry.java | 26 private int resID; 28 public DirectoryEntry(String name, int resID) { 30 this.resID = resID; 38 return res.getDrawable(resID); 42 return BitmapFactory.decodeResource(res, resID);
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
Partner.java | 102 int resId = getResources().getIdentifier(RES_DEFAULT_WALLPAPER_HIDDEN, "bool", 104 return resId != 0 && getResources().getBoolean(resId); 108 int resId = getResources().getIdentifier(RES_SYSTEM_WALLPAPER_DIR, "string", 110 return (resId != 0) ? new File(getResources().getString(resId)) : null; 114 int resId = getResources().getIdentifier(RES_REQUIRE_FIRST_RUN_FLOW, "bool", 116 return resId != 0 && getResources().getBoolean(resId); 131 int resId = getResources().getIdentifier(RES_GRID_NUM_ROWS [all...] |
/bionic/libc/stdio/ |
fread.c | 45 size_t resid; local 63 if ((resid = count * size) == 0) 69 total = resid; 78 while (resid > 0 && (r = (*fp->_read)(fp->_cookie, p, resid)) > 0) { 80 resid -= r; 83 return ((total - resid) / size); 87 while (resid > (size_t)(r = fp->_r)) { 92 resid -= r; 96 return ((total - resid) / size) [all...] |
/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...] |
/development/samples/SoftKeyboard/src/com/android/inputmethodcommon/ |
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);
|
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);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
SystemUIDialog.java | 54 public void setMessage(int resId) { 55 setMessage(mContext.getString(resId)); 58 public void setPositiveButton(int resId, OnClickListener onClick) { 59 setButton(BUTTON_POSITIVE, mContext.getString(resId), onClick); 62 public void setNegativeButton(int resId, OnClickListener onClick) { 63 setButton(BUTTON_NEGATIVE, mContext.getString(resId), onClick);
|
/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;
|
/frameworks/opt/inputmethodcommon/java/com/android/inputmethodcommon/ |
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);
|
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);
|
/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);
|
/external/chromium_org/android_webview/java/src/org/chromium/android_webview/ |
AwResource.java | 77 private static String getResource(int resid, int type) { 78 assert resid != 0; local 82 SoftReference<String> stringRef = sResourceCache.get(resid); 87 result = sResources.getString(resid); 90 result = getRawFileResourceContent(resid); 96 sResourceCache.put(resid, new SoftReference<String>(result)); 101 private static String getRawFileResourceContent(int resid) { 102 assert resid != 0; local 110 sResources.openRawResource(resid));
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/accessibility/ |
KeyCodeDescriptionMapper.java | 148 final int resId; 156 resId = R.string.spoken_description_to_symbol; 160 resId = R.string.spoken_description_to_alpha; 163 resId = R.string.spoken_description_to_symbol; 166 resId = R.string.spoken_description_to_numeric; 172 return context.getString(resId); 186 final int resId; 191 resId = R.string.spoken_description_caps_lock; 195 resId = R.string.spoken_description_shift_shifted; 198 resId = R.string.spoken_description_symbols_shift [all...] |
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowContext.java | 45 public String getString(int resId) { 46 return realContext.getResources().getString(resId); 50 public CharSequence getText(int resId) { 51 return realContext.getResources().getText(resId); 55 public String getString(int resId, Object... formatArgs) { 56 return realContext.getResources().getString(resId, formatArgs); 70 int resid, int[] attrs) throws Resources.NotFoundException { 71 return getTheme().obtainStyledAttributes(resid, attrs);
|
/frameworks/base/packages/Keyguard/src/com/android/keyguard/ |
SecurityMessageDisplay.java | 22 public void setMessage(int resId, boolean important); 24 public void setMessage(int resId, boolean important, Object... formatArgs);
|
/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);
|
/development/samples/training/TabCompat/src/com/example/android/tabcompat/lib/ |
CompatTabEclair.java | 37 public CompatTab setText(int resId) { 38 mText = mActivity.getResources().getText(resId); 43 public CompatTab setIcon(int resId) { 44 mIcon = mActivity.getResources().getDrawable(resId);
|
/frameworks/base/tools/aapt/ |
ResourceIdCache.h | 24 uint32_t resId);
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/util/ |
AccountSelectionUtil.java | 63 int resId, int subscriptionId) { 69 mResId = resId; 74 int resId) { 77 this(context, accountList, resId, SubscriptionManager.INVALID_SUBSCRIPTION_ID); 86 public static Dialog getSelectAccountDialog(Context context, int resId) { 87 return getSelectAccountDialog(context, resId, null, null); 90 public static Dialog getSelectAccountDialog(Context context, int resId, 92 return getSelectAccountDialog(context, resId, onClickListener, null); 99 public static Dialog getSelectAccountDialog(Context context, int resId, 146 new AccountSelectedListener(context, writableAccountList, resId); [all...] |