Searched refs:resourceId (Results 1 - 23 of 23) 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.java89 protected byte[] loadPhotoFromResource(int resourceId, PhotoSize size) { argument
90 PhotoEntry entry = photoResourceCache.get(resourceId);
93 InputStream is = resources.openRawResource(resourceId);
96 photoResourceCache.put(resourceId, entry);
H A DPhotoStoreTest.java125 * @param resourceId The resource ID of the photo file to test.
127 public void runStorageTestForResource(int resourceId, int expectedWidth, argument
129 byte[] photo = loadPhotoFromResource(resourceId, PhotoSize.ORIGINAL);
137 byte[] expectedStoredVersion = loadPhotoFromResource(resourceId, PhotoSize.DISPLAY_PHOTO);
157 public void runStorageTestForResourceWithCrop(int resourceId, int expectedWidth, argument
159 byte[] photo = loadPhotoFromResource(resourceId, PhotoSize.ORIGINAL);
203 for (int resourceId : resourceIds) {
205 new PhotoProcessor(loadPhotoFromResource(resourceId, PhotoSize.ORIGINAL),
207 resourceIdToPhotoMap.put(resourceId, photoFileId);
H A DBaseContactsProvider2Test.java408 protected Uri insertPhoto(long rawContactId, int resourceId) { argument
412 values.put(Photo.PHOTO, loadPhotoFromResource(resourceId, PhotoSize.ORIGINAL));
/packages/apps/Gallery2/src/com/android/gallery3d/data/
H A DActionImage.java36 public ActionImage(Path path, GalleryApp application, int resourceId) { argument
39 mResourceId = resourceId;
/packages/apps/DeskClock/src/com/android/deskclock/widget/multiwaveview/
H A DGlowPadView.java223 mHandleDrawable = new TargetDrawable(res, handle != null ? handle.resourceId : 0, 2);
238 internalSetTargetResources(outValue.resourceId);
246 final int resourceId = outValue.resourceId;
247 if (resourceId == 0) {
250 setTargetDescriptionsResourceId(resourceId);
255 final int resourceId = outValue.resourceId;
256 if (resourceId == 0) {
259 setDirectionDescriptionsResourceId(resourceId);
561 loadDrawableArray(int resourceId) argument
575 internalSetTargetResources(int resourceId) argument
603 setTargetResources(int resourceId) argument
621 setTargetDescriptionsResourceId(int resourceId) argument
642 setDirectionDescriptionsResourceId(int resourceId) argument
1155 loadDescriptions(int resourceId) argument
1172 setEnableTarget(int resourceId, boolean enabled) argument
1187 getTargetPosition(int resourceId) argument
[all...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
H A DDictionaryFactory.java198 int resourceId = getMainDictionaryResourceIdIfAvailableForLocale(res, locale);
199 if (0 != resourceId) return 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/Gallery2/src/com/android/gallery3d/ui/
H A DScrollBarView.java44 context, outValue.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/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.java141 int resourceId = cursor.getInt(0);
142 if (resourceId != 0) {
145 String resourceName = getResourceNameById(packageName, resourceId);
162 private String getResourceNameById(String packageName, int resourceId) { argument
165 return resources.getResourceName(resourceId);
H A DContactsProvider2.java3255 private String getResourceName(Resources resources, String expectedType, Integer resourceId) { argument
3257 if (resourceId == null || resourceId == 0) return null;
3260 final String resourceEntryName = resources.getResourceEntryName(resourceId);
3261 final String resourceTypeName = resources.getResourceTypeName(resourceId);
3263 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/LegacyCamera/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 DContactEntryListAdapter.java98 protected void setDefaultFilterHeaderText(int resourceId) { argument
99 mDefaultFilterHeaderText = getContext().getResources().getText(resourceId);
H A DContactEntryListFragment.java883 protected void setEmptyText(int resourceId) { argument
885 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.java315 final int resourceId = keyboardAttr.getResourceId(
317 if (resourceId != 0) {
318 final String[] data = mResources.getStringArray(resourceId);
/packages/apps/Camera/src/com/android/camera/
H A DUtil.java342 .setIcon(out.resourceId)

Completed in 5177 milliseconds