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

1 2 3 4 5 6 7

  /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...]
ResourcesTest.java 187 private static void checkGetText1(final Resources res, final int resId,
189 final String actual = res.getText(resId).toString();
191 + "got '" + actual + "' from resource 0x" + Integer.toHexString(resId),
194 + ", got '" + actual + "' from resource 0x" + Integer.toHexString(resId),
198 private static void checkGetText2(final Resources res, final int resId,
200 final String actual = res.getText(resId, null).toString();
202 + "got '" + actual + "' from resource 0x" + Integer.toHexString(resId),
205 + ", got '" + actual + "' from resource 0x" + Integer.toHexString(resId),
596 int resid = mResources.getIdentifier(COM_ANDROID_CTS_STUB_IDENTIFIER, null, null); local
597 assertEquals(R.configVarying.simple, resid);
    [all...]
  /bionic/libc/stdio/
fread.c 51 size_t resid; local
61 if ((resid = count * size) == 0)
65 total = resid;
122 while (resid > 0) {
123 int len = (*fp->_read)(fp->_cookie, p, resid );
131 return ((total - resid) / size);
134 resid -= len;
141 while (resid > (size_t)(r = fp->_r)) {
146 resid -= r;
149 return ((total - resid) / size)
    [all...]
  /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);
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/
TestResultsReport.java 88 int resId = 0;
91 resId = R.string.pass_result;
95 resId = R.string.fail_result;
99 resId = R.string.not_executed_result;
105 return mContext.getString(resId);
  /frameworks/base/core/java/android/view/
ContextThemeWrapper.java 48 @Override public void setTheme(int resid) {
49 mThemeResource = resid;
83 * @param resid The theme style resource being applied to <var>theme</var>.
87 protected void onApplyThemeResource(Resources.Theme theme, int resid, boolean first) {
88 theme.applyStyle(resid, true);
  /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/Contacts/src/com/android/contacts/util/
AccountSelectionUtil.java 61 public AccountSelectedListener(Context context, List<Account> accountList, 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,
135 new AccountSelectedListener(context, writableAccountList, resId);
152 public static void doImport(Context context, int resId, Account account) {
153 switch (resId) {
    [all...]
  /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/core/tests/coretests/src/android/pim/vcard/test_utils/
PropertyNodesVerifier.java 45 public void verify(int resId, int vcardType) throws IOException, VCardException {
46 verify(mAndroidTestCase.getContext().getResources().openRawResource(resId), vcardType);
49 public void verify(int resId, int vcardType, final VCardParser parser)
51 verify(mAndroidTestCase.getContext().getResources().openRawResource(resId),
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
BinaryDictionary.java 73 * @param resId the resource containing the raw binary dictionary
75 public BinaryDictionary(Context context, int[] resId, int dicTypeId) {
76 if (resId != null && resId.length > 0 && resId[0] != 0) {
77 loadDictionary(context, resId);
114 private final void loadDictionary(Context context, int[] resId) {
119 is = new InputStream[resId.length];
120 for (int i = 0; i < resId.length; i++) {
121 is[i] = context.getResources().openRawResource(resId[i])
    [all...]
  /frameworks/base/core/java/android/widget/
ImageSwitcher.java 38 public void setImageResource(int resid)
41 image.setImageResource(resid);
CheckedTextView.java 100 * @param resid The Drawable to use for the checkmark.
102 public void setCheckMarkDrawable(int resid) {
103 if (resid != 0 && resid == mCheckMarkResource) {
107 mCheckMarkResource = resid;
  /packages/apps/Camera/src/com/android/camera/ui/
ResourceTexture.java 31 public ResourceTexture(Context context, int resId) {
33 mResId = resId;
NinePatchTexture.java 27 public NinePatchTexture(Context context, int resId) {
28 super(context, resId);
  /packages/apps/Settings/src/com/android/settings/
DockSettings.java 106 int resId = R.string.dock_audio_summary_unknown;
109 resId = R.string.dock_audio_summary_car;
112 resId = R.string.dock_audio_summary_desk;
115 resId = R.string.dock_audio_summary_none;
117 mAudioSettings.setSummary(resId);
  /cts/tests/src/android/provider/cts/
FileCopyHelper.java 54 * @param resId the res id
59 public String copy(int resId, String fileName) {
64 source = mContext.getResources().openRawResource(resId);
  /packages/apps/Phone/src/com/android/phone/
DTMFTwelveKeyDialerView.java 87 * @param resid Is a resource id to be used for each button's background.
89 public void setKeysBackgroundResource(int resid) {
90 mButtonGrid.setChildrenBackgroundResource(resid);
  /frameworks/base/services/java/com/android/server/
AttributeCache.java 97 public Entry get(String packageName, int resId, int[] styleable) {
103 map = pkg.mMap.get(resId);
126 pkg.mMap.put(resId, map);
131 pkg.context.obtainStyledAttributes(resId, styleable));
  /packages/apps/Stk/src/com/android/stk/
StkDialogActivity.java 154 private void sendResponse(int resId, boolean confirmed) {
157 args.putInt(StkAppService.RES_ID, resId);
162 private void sendResponse(int resId) {
163 sendResponse(resId, true);
  /frameworks/base/core/java/android/speech/tts/
ITts.aidl 40 void addSpeech(in String callingApp, in String text, in String packageName, in int resId);
54 void addEarcon(in String callingApp, in String earcon, in String packageName, in int resId);
  /frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
AnimatedImageView.java 64 public void setImageResource(int resid) {
65 super.setImageResource(resid);
  /packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
SuggestHelper.java 41 public SuggestHelper(String tag, Context context, int[] resId) {
47 is = new InputStream[resId.length];
48 for (int i = 0; i < resId.length; i++) {
49 is[i] = context.getResources().openRawResource(resId[i]);
56 for (int i = 0; i < resId.length; i++) {
83 public SuggestHelper(String tag, Context context, int[] resId, int userBigramMax,
85 this(tag, context, resId);

Completed in 371 milliseconds

1 2 3 4 5 6 7