HomeSort by relevance Sort by last modified time
    Searched full:resid (Results 1 - 25 of 357) 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 17 private int calculateRawResourceChecksum(int resId) throws Throwable {
20 input = mResources.openRawResource(resId);
39 private void assertResource(int resId, boolean ewo, boolean ew) throws Throwable {
41 boolean actual = mResources.getBoolean(resId);
45 private void assertResource(int resId, String ewo, String ew) throws Throwable {
47 String actual = mResources.getString(resId);
51 private void assertResource(int resId, int[] ewo, int[] ew) throws Throwable {
53 int[] actual = mResources.getIntArray(resId);
62 final int resId = com.android.internal.R.bool.config_automatic_brightness_available;
63 assertResource(resId, false, true)
    [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);
  /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/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);
  /bionic/libc/stdio/
fread.c 50 size_t resid; local
60 if ((resid = count * size) == 0)
65 total = resid;
135 while (resid > 0) {
136 int len = (*fp->_read)(fp->_cookie, p, resid );
145 return ((total - resid) / size);
148 resid -= len;
156 while (resid > (size_t)(r = fp->_r)) {
161 resid -= r;
165 return ((total - resid) / size)
    [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/policy/src/com/android/internal/policy/impl/keyguard/
SecurityMessageDisplay.java 22 public void setMessage(int resId, boolean important);
24 public void setMessage(int resId, boolean important, Object... formatArgs);
  /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/packages/SystemUI/src/com/android/systemui/statusbar/phone/
QuickSettingsBasicTile.java 71 public void setImageResource(int resId) {
72 mImageView.setImageResource(resId);
79 public void setTextResource(int resId) {
80 mTextView.setText(resId);
  /frameworks/base/tools/layoutlib/bridge/src/android/content/res/
Resources_Theme_Delegate.java 46 int resid, int[] attrs)
48 return RenderSessionImpl.getCurrentContext().obtainStyledAttributes(resid, attrs);
62 int resid, TypedValue outValue,
65 resid, outValue, resolveRefs);
  /frameworks/support/v7/appcompat/src/android/support/v7/app/
ActionBarImplICS.java 74 public void setCustomView(int resId) {
75 mActionBar.setCustomView(resId);
79 public void setIcon(int resId) {
80 mActionBar.setIcon(resId);
89 public void setLogo(int resId) {
90 mActionBar.setLogo(resId);
125 public void setTitle(int resId) {
126 mActionBar.setTitle(resId);
135 public void setSubtitle(int resId) {
136 mActionBar.setSubtitle(resId);
    [all...]
  /cts/libs/util/src/android/provider/cts/
FileCopyHelper.java 56 * @param resId the res id
62 public String copy(int resId, String fileName) throws IOException {
63 InputStream source = mContext.getResources().openRawResource(resId);
70 public void copyToExternalStorage(int resId, File path) throws IOException {
71 InputStream source = mContext.getResources().openRawResource(resId);
  /frameworks/base/tools/aapt/
ResourceIdCache.cpp 29 CacheEntry(const android::String16& name, uint32_t resId) : hashedName(name), id(resId) { }
90 uint32_t resId) {
94 mIdMap[hashcode] = CacheEntry(hashedName, resId);
96 return resId;
  /packages/apps/Launcher2/src/com/android/launcher2/
UserInitializeReceiver.java 49 int resid = list.get(i); local
50 if (!wpm.hasResourceWallpaper(resid)) {
52 wpm.setResource(resid);
60 private void addWallpapers(Resources resources, String packageName, int resid,
62 final String[] extras = resources.getStringArray(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);
185 final int resId;
190 resId = R.string.spoken_description_caps_lock;
195 resId = R.string.spoken_description_shift_shifted;
198 resId = R.string.spoken_description_shift
    [all...]
  /frameworks/base/services/java/com/android/server/am/
AppNotRespondingDialog.java 52 int resid; local
60 resid = com.android.internal.R.string.anr_activity_application;
64 resid = com.android.internal.R.string.anr_application_process;
69 resid = com.android.internal.R.string.anr_activity_process;
72 resid = com.android.internal.R.string.anr_process;
77 ? res.getString(resid, name1.toString(), name2.toString())
78 : res.getString(resid, name1.toString()));
  /packages/apps/ContactsCommon/src/com/android/contacts/common/vcard/
SelectAccountActivity.java 59 final int resId = R.string.import_from_sdcard;
82 this, accountList, resId) {
95 showDialog(resId);
100 protected Dialog onCreateDialog(int resId, Bundle bundle) {
101 switch (resId) {
107 return AccountSelectionUtil.getSelectAccountDialog(this, resId,
112 return super.onCreateDialog(resId, bundle);
  /packages/apps/ContactsCommon/src/com/android/contacts/common/util/
AccountSelectionUtil.java 61 int resId) {
67 mResId = resId;
76 public static Dialog getSelectAccountDialog(Context context, int resId) {
77 return getSelectAccountDialog(context, resId, null, null);
80 public static Dialog getSelectAccountDialog(Context context, int resId,
82 return getSelectAccountDialog(context, resId, onClickListener, null);
89 public static Dialog getSelectAccountDialog(Context context, int resId,
136 new AccountSelectedListener(context, writableAccountList, resId);
153 public static void doImport(Context context, int resId, AccountWithDataSet account) {
154 switch (resId) {
    [all...]

Completed in 1010 milliseconds

1 2 3 4 5 6 7 8 91011>>