Searched refs:resources (Results 1 - 25 of 37) sorted by relevance

12

/packages/apps/Gallery3D/src/com/cooliris/media/
H A DDetailMode.java74 Resources resources = context.getResources();
79 strings.add("1 " + resources.getString(Res.string.album_selected));
81 strings.add(Integer.toString(numOriginalSets) + " " + resources.getString(Res.string.albums_selected));
87 strings.add("1 " + resources.getString(Res.string.item_selected));
89 strings.add(Integer.toString(numItems) + " " + resources.getString(Res.string.items_selected));
102 strings.add(resources.getString(Res.string.start) + ": " + dateTimeFormat.format(new Date(minTimestamp)));
103 strings.add(resources.getString(Res.string.end) + ": " + dateTimeFormat.format(new Date(maxTimestamp)));
111 strings.add(resources.getString(Res.string.start) + ": " + dateTimeFormat.format(new Date(minTimestamp)));
112 strings.add(resources.getString(Res.string.end) + ": " + dateTimeFormat.format(new Date(maxTimestamp)));
114 strings.add(resources
[all...]
H A DPopupMenu.java299 Resources resources = context.getResources();
300 Bitmap background = BitmapFactory.decodeResource(resources, Res.drawable.popup);
302 Bitmap highlightSelected = BitmapFactory.decodeResource(resources, Res.drawable.popup_option_selected);
304 mTriangleBottom = BitmapFactory.decodeResource(resources, Res.drawable.popup_triangle_bottom);
H A DHighlightView.java53 android.content.res.Resources resources = mContext.getResources();
54 mResizeDrawableWidth = resources.getDrawable(Res.drawable.camera_crop_width);
55 mResizeDrawableHeight = resources.getDrawable(Res.drawable.camera_crop_height);
56 mResizeDrawableDiagonal = resources.getDrawable(Res.drawable.indicator_autocrop);
H A DMediaClustering.java292 Resources resources = context.getResources();
344 mName = resources.getString(Res.string.date_unknown);
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/util/
H A DUtil.java49 Resources resources = packageContext.getResources();
50 return getResourceUri(resources, packageContext.getPackageName(), res);
59 Resources resources = context.getPackageManager().getResourcesForApplication(appInfo);
60 return getResourceUri(resources, appInfo.packageName, res);
70 private static Uri getResourceUri(Resources resources, String appPkg, int res) argument
72 String resPkg = resources.getResourcePackageName(res);
73 String type = resources.getResourceTypeName(res);
74 String name = resources.getResourceEntryName(res);
/packages/apps/Camera/src/com/android/camera/
H A DIconIndicator.java56 private Drawable[] loadIcons(Resources resources, int iconsId) { argument
57 TypedArray array = resources.obtainTypedArray(iconsId);
62 drawable[i] = id == 0 ? null : resources.getDrawable(id);
H A DThumbnailController.java61 public ThumbnailController(Resources resources, argument
63 mResources = resources;
/packages/apps/Calendar/src/com/android/calendar/
H A DMultiStateButton.java48 //on the last set if the resources get set to null.
50 //A list of all drawable resources used by this button in the order it uses them.
64 //Currently using the standard buttonStyle, will update when new resources are added.
88 * This sets the maximum states allowed to the length of the resources array. It will also
91 public void setButtonResources(int[] resources) throws IllegalArgumentException { argument
92 if(resources == null) {
93 throw new IllegalArgumentException("Button resources cannot be null");
95 mMaxStates = resources.length;
99 mButtonResources = resources;
/packages/apps/Launcher2/src/com/android/launcher2/
H A DWallpaperChooser.java80 final Resources resources = getResources();
85 final String packageName = resources.getResourcePackageName(R.array.wallpapers);
87 addWallpapers(resources, packageName, R.array.wallpapers);
88 addWallpapers(resources, packageName, R.array.extra_wallpapers);
91 private void addWallpapers(Resources resources, String packageName, int list) { argument
92 final String[] extras = resources.getStringArray(list);
94 int res = resources.getIdentifier(extra, "drawable", packageName);
96 final int thumbRes = resources.getIdentifier(extra + "_small",
H A DLiveFolderIcon.java43 final Resources resources = launcher.getResources();
46 b = Utilities.createIconBitmap(resources.getDrawable(R.drawable.ic_launcher_folder),
H A DFolderIcon.java51 final Resources resources = launcher.getResources();
52 Drawable d = resources.getDrawable(R.drawable.ic_launcher_folder);
54 icon.mOpenIcon = resources.getDrawable(R.drawable.ic_launcher_folder_open);
H A DUtilities.java237 final Resources resources = context.getResources();
238 final DisplayMetrics metrics = resources.getDisplayMetrics();
241 sIconWidth = sIconHeight = (int) resources.getDimension(android.R.dimen.app_icon_size);
273 final Resources resources = context.getResources();
275 final DisplayMetrics metrics = resources.getDisplayMetrics();
281 final float cellWidth = resources.getDimension(R.dimen.title_texture_width);
H A DLiveFolderAdapter.java160 Resources resources = packageManager.getResourcesForApplication(
162 final int id = resources.getIdentifier(resource,
165 Utilities.createIconBitmap(resources.getDrawable(id), mContext));
/packages/apps/Browser/src/com/android/browser/
H A DCombinedBookmarkHistoryActivity.java148 Resources resources = getResources();
151 resources.getText(labelResId), resources.getDrawable(iconResId))
H A DTitleBar.java102 Resources resources = context.getResources();
103 mCircularProgress = (Drawable) resources.getDrawable(
105 DisplayMetrics metrics = resources.getDisplayMetrics();
131 mVoiceDrawable = resources.getDrawable(
135 mVoiceModeBackground = resources.getDrawable(
138 mLoadingBackground = resources.getDrawable(R.drawable.title_loading);
/packages/wallpapers/Basic/src/com/android/wallpaper/walkaround/
H A DWalkAroundWallpaper.java162 final Resources resources = getResources();
163 final boolean portrait = resources.getConfiguration().orientation ==
168 final DisplayMetrics metrics = resources.getDisplayMetrics();
/packages/apps/Contacts/src/com/android/contacts/
H A DContactListItemView.java101 Resources resources = context.getResources();
103 resources.getDimensionPixelOffset(R.dimen.list_item_vertical_divider_margin);
105 resources.getDimensionPixelOffset(R.dimen.list_item_padding_top);
107 resources.getDimensionPixelOffset(R.dimen.list_item_padding_bottom);
109 resources.getDimensionPixelOffset(R.dimen.list_item_padding_left);
111 resources.getDimensionPixelOffset(R.dimen.list_item_padding_right);
113 resources.getDimensionPixelOffset(R.dimen.list_item_gap_between_image_and_text);
115 resources.getDimensionPixelOffset(R.dimen.list_item_gap_between_label_and_data);
117 resources.getDimensionPixelOffset(R.dimen.list_item_call_button_padding);
119 resources
[all...]
H A DExportVCardActivity.java228 Resources resources = getResources();
230 return resources.getString(R.string.composer_failed_to_get_database_infomation);
232 return resources.getString(R.string.composer_has_no_exportable_contact);
234 return resources.getString(R.string.composer_not_initialized);
264 final Resources resources = getResources();
265 mFileIndexMinimum = resources.getInteger(R.integer.config_export_file_min_index);
266 mFileIndexMaximum = resources.getInteger(R.integer.config_export_file_max_index);
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
H A DContactsActor.java134 Resources resources = overallContext.getResources();
135 Configuration configuration = new Configuration(resources.getConfiguration());
137 resources.updateConfiguration(configuration, resources.getDisplayMetrics());
138 mRes = new RestrictionMockResources(resources);
/packages/providers/ApplicationsProvider/src/com/android/providers/applications/
H A DApplicationsProvider.java496 Resources resources = context.getPackageManager().getResourcesForApplication(appInfo);
497 return getResourceUri(resources, appInfo.packageName, res);
505 private static Uri getResourceUri(Resources resources, String appPkg, int res) argument
507 String resPkg = resources.getResourcePackageName(res);
508 String type = resources.getResourceTypeName(res);
509 String name = resources.getResourceEntryName(res);
/packages/apps/Gallery/src/com/android/camera/
H A DHighlightView.java53 android.content.res.Resources resources = mContext.getResources();
55 resources.getDrawable(R.drawable.camera_crop_width);
57 resources.getDrawable(R.drawable.camera_crop_height);
59 resources.getDrawable(R.drawable.indicator_autocrop);
/packages/apps/AlarmClock/src/com/android/alarmclock/
H A DAlarmKlaxon.java243 private void setDataSourceFromResource(Resources resources, argument
245 AssetFileDescriptor afd = resources.openRawResourceFd(res);
/packages/apps/DeskClock/src/com/android/deskclock/
H A DAlarmKlaxon.java243 private void setDataSourceFromResource(Resources resources, argument
245 AssetFileDescriptor afd = resources.openRawResourceFd(res);
/packages/apps/Email/tests/src/com/android/exchange/utility/
H A DCalendarUtilitiesTests.java255 Resources resources = getContext().getResources();
256 String accept = resources.getString(R.string.meeting_accepted, title);
259 assertTrue(msg.mText.contains(resources.getString(R.string.meeting_where, "")));
730 Resources resources = mContext.getResources();
739 assertTrue(text.contains(resources.getString(R.string.meeting_when, dateTimeString)));
741 assertTrue(text.contains(resources.getString(R.string.meeting_where, location)));
748 assertTrue(text.contains(resources.getString(R.string.meeting_recurring, dateTimeString)));
/packages/apps/Settings/src/com/android/settings/
H A DActivityPicker.java209 final Resources resources = context.getResources();
210 int size = (int) resources.getDimension(android.R.dimen.app_icon_size);
211 sResizer = new IconResizer(size, size, resources.getDisplayMetrics());

Completed in 249 milliseconds

12