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

1 2 3 4

  /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...]
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...]
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);
ResourcesTest.java 137 private static void checkGetText1(final Resources res, final int resId,
139 final String actual = res.getText(resId).toString();
141 + "got '" + actual + "' from resource 0x" + Integer.toHexString(resId),
144 + ", got '" + actual + "' from resource 0x" + Integer.toHexString(resId),
148 private static void checkGetText2(final Resources res, final int resId,
150 final String actual = res.getText(resId, null).toString();
152 + "got '" + actual + "' from resource 0x" + Integer.toHexString(resId),
155 + ", got '" + actual + "' from resource 0x" + Integer.toHexString(resId),
395 int resid = mResources.getIdentifier(COM_ANDROID_CTS_STUB_IDENTIFIER, null, null); local
396 assertEquals(R.configVarying.simple, resid);
    [all...]
FractionTest.java 76 private void tryFraction(final int resid, final float base, final float pbase,
78 mResources.getValue(resid, mValue, true);
87 + Integer.toHexString(resid) + " " + mValue, diff > prec);
  /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...]
  /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/apps/LegacyCamera/src/com/android/camera/ui/
FocusIndicatorView.java 31 private void setDrawable(int resid) {
32 setBackgroundDrawable(getResources().getDrawable(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/base/core/java/android/view/
ContextThemeWrapper.java 87 @Override public void setTheme(int resid) {
88 mThemeResource = resid;
127 * @param resid The theme style resource being applied to <var>theme</var>.
131 protected void onApplyThemeResource(Resources.Theme theme, int resid, boolean first) {
132 theme.applyStyle(resid, true);
  /frameworks/base/core/java/com/google/android/util/
SmileyParser.java 71 int resid = mRes.getSmileyRes(token.getRawText()); local
72 if (resid != -1) {
73 builder.setSpan(new ImageSpan(context, resid),
  /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/Calendar/src/com/android/calendar/
MultiStateButton.java 121 * @param resid the resource id of the drawable to use as the background
123 public void setButtonDrawable(int resid) {
124 if (resid != 0 && resid == mButtonResource) {
128 mButtonResource = resid;
  /packages/apps/Contacts/tests/src/com/android/contacts/tests/mocks/
ContactsMockPackageManager.java 41 public Drawable getDrawable(String packageName, int resid, ApplicationInfo appInfo) {
  /frameworks/base/core/java/android/widget/
ImageSwitcher.java 38 public void setImageResource(int resid)
41 image.setImageResource(resid);
CheckedTextView.java 105 * @param resid The Drawable to use for the checkmark.
112 public void setCheckMarkDrawable(int resid) {
113 if (resid != 0 && resid == mCheckMarkResource) {
117 mCheckMarkResource = resid;
CompoundButton.java 174 * @param resid the resource id of the drawable to use as the background
176 public void setButtonDrawable(int resid) {
177 if (resid != 0 && resid == mButtonResource) {
181 mButtonResource = resid;
  /frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
AnimatedImageView.java 64 public void setImageResource(int resid) {
65 super.setImageResource(resid);
  /packages/apps/Settings/src/com/android/settings/widget/
AnimatedImageView.java 73 public void setImageResource(int resid) {
74 super.setImageResource(resid);
  /frameworks/base/test-runner/src/android/test/mock/
MockResources.java 204 public String getResourceName(int resid) throws NotFoundException {
209 public String getResourcePackageName(int resid) throws NotFoundException {
214 public String getResourceTypeName(int resid) throws NotFoundException {
219 public String getResourceEntryName(int resid) throws NotFoundException {
  /cts/tests/tests/media/src/android/media/cts/
MediaPlayerTestBase.java 145 protected void loadResource(int resid) throws Exception {
146 AssetFileDescriptor afd = mResources.openRawResourceFd(resid);
164 protected void loadSubtitleSource(int resid) throws Exception {
165 AssetFileDescriptor afd = mResources.openRawResourceFd(resid);
199 protected void playVideoTest(int resid, int width, int height) throws Exception {
200 loadResource(resid);
  /frameworks/base/core/java/android/content/pm/
PackageItemInfo.java 214 int resid = metaData.getInt(name); local
215 if (resid != 0) {
216 return pm.getXml(packageName, resid, getApplicationInfo());
  /cts/tests/src/android/app/cts/
AppStubActivity.java 138 int resid,
140 super.onApplyThemeResource(theme,resid,first);
  /frameworks/base/core/java/android/app/
AlertDialog.java 128 static int resolveDialogTheme(Context context, int resid) {
129 if (resid == THEME_TRADITIONAL) {
131 } else if (resid == THEME_HOLO_DARK) {
133 } else if (resid == THEME_HOLO_LIGHT) {
135 } else if (resid == THEME_DEVICE_DEFAULT_DARK) {
137 } else if (resid == THEME_DEVICE_DEFAULT_LIGHT) {
139 } else if (resid >= 0x01000000) { // start of real resource IDs.
140 return resid;
307 * Set resId to 0 if you don't want an icon.
308 * @param resId the resourceId of the drawable to use as the icon or
    [all...]
  /packages/apps/Camera/src/com/android/camera/
PieController.java 76 protected PieItem makeItem(int resId) {
78 Drawable d = mActivity.getResources().getDrawable(resId).mutate();
92 int resid = -1; local
96 resid = iconIds[index];
99 resid = pref.getSingleIcon();
101 PieItem item = makeItem(resid);

Completed in 500 milliseconds

1 2 3 4