/packages/apps/Gallery3D/src/com/cooliris/media/ |
H A D | DetailMode.java | 74 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 D | PopupMenu.java | 299 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 D | HighlightView.java | 53 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 D | MediaClustering.java | 292 Resources resources = context.getResources(); 344 mName = resources.getString(Res.string.date_unknown);
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/util/ |
H A D | Util.java | 49 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 D | IconIndicator.java | 56 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 D | ThumbnailController.java | 61 public ThumbnailController(Resources resources, argument 63 mResources = resources;
|
/packages/apps/Calendar/src/com/android/calendar/ |
H A D | MultiStateButton.java | 48 //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 D | WallpaperChooser.java | 80 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 D | LiveFolderIcon.java | 43 final Resources resources = launcher.getResources(); 46 b = Utilities.createIconBitmap(resources.getDrawable(R.drawable.ic_launcher_folder),
|
H A D | FolderIcon.java | 51 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 D | Utilities.java | 237 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 D | LiveFolderAdapter.java | 160 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 D | CombinedBookmarkHistoryActivity.java | 148 Resources resources = getResources(); 151 resources.getText(labelResId), resources.getDrawable(iconResId))
|
H A D | TitleBar.java | 102 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 D | WalkAroundWallpaper.java | 162 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 D | ContactListItemView.java | 101 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 D | ExportVCardActivity.java | 228 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 D | ContactsActor.java | 134 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 D | ApplicationsProvider.java | 496 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 D | HighlightView.java | 53 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 D | AlarmKlaxon.java | 243 private void setDataSourceFromResource(Resources resources, argument 245 AssetFileDescriptor afd = resources.openRawResourceFd(res);
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
H A D | AlarmKlaxon.java | 243 private void setDataSourceFromResource(Resources resources, argument 245 AssetFileDescriptor afd = resources.openRawResourceFd(res);
|
/packages/apps/Email/tests/src/com/android/exchange/utility/ |
H A D | CalendarUtilitiesTests.java | 255 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 D | ActivityPicker.java | 209 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());
|