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

1 2 3 4 5

  /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);
  /external/chromium_org/android_webview/java/src/org/chromium/android_webview/
AwResource.java 65 private static String getResource(int resid, int type) {
66 assert resid != 0; local
70 String result = sResourceCache.get(resid) == null ?
71 null : sResourceCache.get(resid).get();
75 result = sResources.getString(resid);
78 result = getRawFileResourceContent(resid);
84 sResourceCache.put(resid, new SoftReference<String>(result));
89 private static String getRawFileResourceContent(int resid) {
90 assert resid != 0; local
98 sResources.openRawResource(resid));
    [all...]
  /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/Settings/src/com/android/settings/wifi/
WifiSetupActivity.java 33 protected void onApplyThemeResource(Resources.Theme theme, int resid, boolean first) {
36 resid = getResources().getIdentifier(RESOURCE_THEME_LIGHT, "style",
39 super.onApplyThemeResource(theme, resid, first);
  /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 50 int resid; local
58 resid = com.android.internal.R.string.anr_activity_application;
62 resid = com.android.internal.R.string.anr_application_process;
67 resid = com.android.internal.R.string.anr_activity_process;
70 resid = com.android.internal.R.string.anr_process;
75 ? res.getString(resid, name1.toString(), name2.toString())
76 : res.getString(resid, name1.toString()));
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/plat-mac/
macresource.py 15 def need(restype, resid, filename=None, modname=None):
16 """Open a resource file, if needed. restype and resid
27 if type(resid) is type(1):
29 h = Res.GetResource(restype, resid)
36 h = Res.GetNamedResource(restype, resid)
71 if type(resid) is type(1):
72 h = Res.GetResource(restype, resid)
74 h = Res.GetNamedResource(restype, resid)
  /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/ContactsCommon/TestCommon/src/com/android/contacts/common/test/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);
  /frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
AnimatedImageView.java 63 public void setImageResource(int resid) {
64 super.setImageResource(resid);
  /packages/apps/Settings/src/com/android/settings/widget/
AnimatedImageView.java 73 public void setImageResource(int resid) {
74 super.setImageResource(resid);
  /packages/apps/Camera2/src/com/android/camera/
PieController.java 81 protected PieItem makeItem(int resId) {
83 Drawable d = mActivity.getResources().getDrawable(resId).mutate();
97 int resid = -1; local
101 resid = iconIds[index];
104 resid = pref.getSingleIcon();
106 PieItem item = makeItem(resid);
140 int resid = -1; local
144 resid = iconIds[index];
147 resid = pref.getSingleIcon();
149 PieItem item = makeItem(resid);
    [all...]
  /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 {
  /packages/services/Telephony/src/com/android/phone/
ErrorDialogActivity.java 54 private void showGenericErrorDialog(int resid) {
55 final CharSequence msg = getResources().getText(resid);
  /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());

Completed in 268 milliseconds

1 2 3 4 5