Searched defs:resources (Results 1 - 8 of 8) sorted by relevance

/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/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/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/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/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",
/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);

Completed in 72 milliseconds