Searched refs:resourceId (Results 1 - 20 of 20) sorted by relevance

/packages/apps/Contacts/src/com/android/contacts/util/
H A DThemeUtils.java32 return outValue.resourceId;
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
H A DPhotoLoadingTestCase.java80 protected byte[] loadPhotoFromResource(int resourceId, PhotoSize size) { argument
81 PhotoEntry entry = photoResourceCache.get(resourceId);
84 InputStream is = resources.openRawResource(resourceId);
87 photoResourceCache.put(resourceId, entry);
H A DPhotoStoreTest.java101 * @param resourceId The resource ID of the photo file to test.
103 public void runStorageTestForResource(int resourceId) throws IOException { argument
104 byte[] photo = loadPhotoFromResource(resourceId, PhotoSize.ORIGINAL);
108 byte[] expectedStoredVersion = loadPhotoFromResource(resourceId, PhotoSize.DISPLAY_PHOTO);
159 for (int resourceId : resourceIds) {
161 new PhotoProcessor(loadPhotoFromResource(resourceId, PhotoSize.ORIGINAL),
163 resourceIdToPhotoMap.put(resourceId, photoFileId);
H A DBaseContactsProvider2Test.java376 protected Uri insertPhoto(long rawContactId, int resourceId) { argument
380 values.put(Photo.PHOTO, loadPhotoFromResource(resourceId, PhotoSize.ORIGINAL));
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
H A DFlag.java32 public Flag(int resourceId, int mask) { argument
34 mResource = resourceId;
H A DDictionaryFactory.java167 final int resourceId = Utils.getMainDictionaryResourceId(res);
168 final AssetFileDescriptor afd = res.openRawResourceFd(resourceId);
185 final int resourceId = Utils.getMainDictionaryResourceId(res);
186 final AssetFileDescriptor afd = res.openRawResourceFd(resourceId);
/packages/apps/Email/src/com/android/email/mail/
H A DSender.java71 private static Sender findSender(Context context, int resourceId, Account account) argument
75 XmlResourceParser xml = context.getResources().getXml(resourceId);
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
H A DPackageIconLoader.java103 int resourceId = Integer.parseInt(drawableId);
105 Drawable icon = mPackageContext.getResources().getDrawable(resourceId);
130 int resourceId = Integer.parseInt(drawableId);
131 return Util.getResourceUri(mPackageContext, resourceId);
H A DSearchableSource.java227 int resourceId = getSourceIconResource();
228 if (resourceId == 0) {
231 return Util.getResourceUri(getContext(), mActivityInfo.applicationInfo, resourceId);
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
H A DScrollBarView.java51 context, outValue.resourceId);
/packages/inputmethods/PinyinIME/src/com/android/inputmethod/pinyin/
H A DXmlKeyboardLoader.java327 public SkbTemplate loadSkbTemplate(int resourceId) { argument
328 if (null == mContext || 0 == resourceId) {
332 XmlResourceParser xrp = r.getXml(resourceId);
337 mSkbTemplate = new SkbTemplate(resourceId);
429 public SoftKeyboard loadKeyboard(int resourceId, int skbWidth, int skbHeight) { argument
433 XmlResourceParser xrp = mContext.getResources().getXml(resourceId);
486 softKeyboard = new SoftKeyboard(resourceId,
/packages/apps/Email/src/com/android/email/activity/setup/
H A DAccountSettingsEditQuickResponsesFragment.java102 private static final int resourceId = R.layout.quick_response_item; field in class:AccountSettingsEditQuickResponsesFragment.ArrayAdapterWithButtons
116 super(context, resourceId, textViewId, quickResponses);
H A DAccountSettingsUtils.java106 * @param resourceId Id of the provider resource to scan
110 Context context, String domain, int resourceId) {
112 XmlResourceParser xml = context.getResources().getXml(resourceId);
109 findProviderForDomain( Context context, String domain, int resourceId) argument
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
H A DContactDirectoryManager.java142 int resourceId = cursor.getInt(0);
143 if (resourceId != 0) {
146 String resourceName = getResourceNameById(packageName, resourceId);
163 private String getResourceNameById(String packageName, int resourceId) { argument
166 return resources.getResourceName(resourceId);
H A DContactsProvider2.java3436 private String getResourceName(Resources resources, String expectedType, Integer resourceId) { argument
3438 if (resourceId == null || resourceId == 0) return null;
3441 final String resourceEntryName = resources.getResourceEntryName(resourceId);
3442 final String resourceTypeName = resources.getResourceTypeName(resourceId);
3444 Log.w(TAG, "Resource " + resourceId + " (" + resourceEntryName + ") is of type " +
/packages/apps/Contacts/tests/src/com/android/contacts/tests/streamitems/
H A DStreamItemPopulatorActivity.java196 protected byte[] loadPhotoFromResource(int resourceId) { argument
197 InputStream is = getResources().openRawResource(resourceId);
/packages/apps/Camera/src/com/android/camera/ui/
H A DIndicatorControlWheel.java189 private ImageView addImageButton(Context context, int resourceId, boolean rotatable) { argument
196 view.setImageResource(resourceId);
/packages/apps/Contacts/src/com/android/contacts/list/
H A DContactEntryListFragment.java890 protected void setEmptyText(int resourceId) { argument
892 empty.setText(mContext.getText(resourceId));
/packages/apps/Browser/src/com/android/browser/
H A DBreadCrumbView.java176 int resid = outValue.resourceId;
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
H A DKeyboardBuilder.java258 final int resourceId = a.getResourceId(R.styleable.Keyboard_touchPositionCorrectionData, 0);
260 if (resourceId == 0) {
266 final String[] data = context.getResources().getStringArray(resourceId);

Completed in 319 milliseconds