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

/packages/apps/Contacts/tests/src/com/android/contacts/calllog/
H A DTestPhoneNumberHelper.java28 public TestPhoneNumberHelper(Resources resources, CharSequence voicemailNumber) { argument
29 super(resources);
/packages/apps/Contacts/src/com/android/contacts/calllog/
H A DCallTypeHelper.java41 public CallTypeHelper(Resources resources) { argument
43 mIncomingName = resources.getString(R.string.type_incoming);
44 mOutgoingName = resources.getString(R.string.type_outgoing);
45 mMissedName = resources.getString(R.string.type_missed);
46 mVoicemailName = resources.getString(R.string.type_voicemail);
47 mNewMissedColor = resources.getColor(R.color.call_log_missed_call_highlight_color);
48 mNewVoicemailColor = resources.getColor(R.color.call_log_voicemail_highlight_color);
H A DPhoneNumberHelper.java33 public PhoneNumberHelper(Resources resources) { argument
34 mResources = resources;
H A DCallLogListItemHelper.java46 PhoneNumberHelper phoneNumberHelper, Resources resources) {
49 mResources = resources;
45 CallLogListItemHelper(PhoneCallDetailsHelper phoneCallDetailsHelper, PhoneNumberHelper phoneNumberHelper, Resources resources) argument
/packages/apps/Contacts/tests/src/com/android/contacts/util/
H A DLocaleTestUtils.java106 * Sets the locale for the given resources and returns the previous locale.
108 * @param resources the resources on which to set the locale
110 * @return the previous value of the locale for the resources
112 private Locale setResourcesLocale(Resources resources, Locale locale) { argument
113 Configuration contextConfiguration = new Configuration(resources.getConfiguration());
116 resources.updateConfiguration(contextConfiguration, null);
/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.java47 //on the last set if the resources get set to null.
49 //A list of all drawable resources used by this button in the order it uses them.
62 //Currently using the standard buttonStyle, will update when new resources are added.
86 * This sets the maximum states allowed to the length of the resources array. It will also
89 public void setButtonResources(int[] resources) throws IllegalArgumentException { argument
90 if(resources == null) {
91 throw new IllegalArgumentException("Button resources cannot be null");
93 mMaxStates = resources.length;
97 mButtonResources = resources;
H A DTimezoneAdapter.java174 * class and is based off the resources available to the calling context.
349 private void loadFromResources(Resources resources) { argument
351 String[] ids = resources.getStringArray(R.array.timezone_values);
352 String[] labels = resources.getStringArray(R.array.timezone_labels);
/packages/apps/Contacts/src/com/android/contacts/
H A DPhoneCallDetailsHelper.java55 * @param resources used to look up strings
57 public PhoneCallDetailsHelper(Resources resources, CallTypeHelper callTypeHelper, argument
59 mResources = resources;
/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 DIconCache.java78 public Drawable getFullResIcon(Resources resources, int iconId) { argument
81 d = resources.getDrawableForDensity(iconId, mIconDpi);
90 Resources resources;
92 resources = mPackageManager.getResourcesForApplication(packageName);
94 resources = null;
96 if (resources != null) {
98 return getFullResIcon(resources, iconId);
105 Resources resources;
107 resources = mPackageManager.getResourcesForApplication(
110 resources
[all...]
H A DWallpaperChooserDialogFragment.java204 final Resources resources = getResources();
209 final String packageName = resources.getResourcePackageName(R.array.wallpapers);
211 addWallpapers(resources, packageName, R.array.wallpapers);
212 addWallpapers(resources, packageName, R.array.extra_wallpapers);
215 private void addWallpapers(Resources resources, String packageName, int list) { argument
216 final String[] extras = resources.getStringArray(list);
218 int res = resources.getIdentifier(extra, "drawable", packageName);
220 final int thumbRes = resources.getIdentifier(extra + "_small",
H A DCellLayout.java1468 public static int[] rectToCell(Resources resources, int width, int height, int[] result) { argument
1471 int actualWidth = resources.getDimensionPixelSize(R.dimen.workspace_cell_width);
1472 int actualHeight = resources.getDimensionPixelSize(R.dimen.workspace_cell_height);
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
H A DCellBroadcastAlertAudio.java306 private static void setDataSourceFromResource(Resources resources, argument
308 AssetFileDescriptor afd = resources.openRawResourceFd(res);
/packages/apps/Contacts/src/com/android/contacts/detail/
H A DContactDetailDisplayUtils.java424 /** Fetcher for images from resources to be included in HTML text. */
426 /** The scheme used to load resources. */
452 Resources resources = getResourcesForResourceName(packageName);
453 if (resources == null) {
465 final int resId = resources.getIdentifier(name, "drawable", packageName);
474 return getResourceDrawable(resources, resId);
482 private Drawable getResourceDrawable(Resources resources, int resId) argument
484 Drawable drawable = resources.getDrawable(resId);
H A DContactDetailFragment.java1596 final Resources resources = mContext.getResources();
1642 secondaryActionIcon = resources.getDrawable(entry.secondaryActionIcon);
1643 secondaryActionDescription = resources.getString(entry.secondaryActionDescription);
1646 resources.getDrawable(R.drawable.sym_action_videochat_holo_light);
1647 secondaryActionDescription = resources.getString(R.string.video_chat);
1650 resources.getDrawable(R.drawable.sym_action_audiochat_holo_light);
1651 secondaryActionDescription = resources.getString(R.string.audio_chat);
2084 public ViewEntryDimensions(Resources resources) { argument
2085 mPaddingLeft = resources.getDimensionPixelSize(
2087 mPaddingTop = resources
[all...]
/packages/wallpapers/HoloSpiral/src/com/android/wallpaper/holospiral/
H A DHoloSpiralRS.java68 public HoloSpiralRS(RenderScriptGL renderer, Resources resources) { argument
69 init(renderer, resources);
72 public void init(RenderScriptGL renderer, Resources resources) { argument
74 mResources = resources;
/packages/apps/Settings/src/com/android/settings/deviceinfo/
H A DStorageVolumePreferenceCategory.java159 public StorageVolumePreferenceCategory(Context context, Resources resources, argument
162 mResources = resources;
166 : resources.getText(R.string.internal_storage));
/packages/providers/ApplicationsProvider/src/com/android/providers/applications/
H A DApplicationsProvider.java625 Resources resources = getPackageManager().getResourcesForApplication(appInfo);
626 return getResourceUri(resources, appInfo.packageName, res);
634 private static Uri getResourceUri(Resources resources, String appPkg, int res) argument
636 String resPkg = resources.getResourcePackageName(res);
637 String type = resources.getResourceTypeName(res);
638 String name = resources.getResourceEntryName(res);
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
H A DSettings.java104 // From resources:
143 // Get the resources
214 private static boolean isAutoCorrectEnabled(SharedPreferences sp, Resources resources) { argument
217 resources.getString(R.string.auto_correction_threshold_mode_index_modest));
218 final String autoCorrectionOff = resources.getString(
225 public static boolean isKeyPreviewPopupEnabled(SharedPreferences sp, Resources resources) { argument
226 final boolean showPopupOption = resources.getBoolean(
228 if (!showPopupOption) return resources.getBoolean(R.bool.config_default_popup_preview);
230 resources.getBoolean(R.bool.config_default_popup_preview));
235 Resources resources) {
234 getKeyPreviewPopupDismissDelay(SharedPreferences sp, Resources resources) argument
240 isBigramSuggestionEnabled(SharedPreferences sp, Resources resources, boolean autoCorrectEnabled) argument
251 isBigramPredictionEnabled(SharedPreferences sp, Resources resources) argument
257 getAutoCorrectionThreshold(SharedPreferences sp, Resources resources) argument
293 isShowSettingsKeyOption(final Resources resources) argument
[all...]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
H A DContactsProvider2.java1402 Resources resources = getContext().getResources();
1403 mMaxDisplayPhotoDim = resources.getInteger(
1405 mMaxThumbnailPhotoDim = resources.getInteger(
3342 Resources resources = getContext().getResources();
3346 resources = pm.getResourcesForApplication(resPackage);
3357 String labelResource = getResourceName(resources, "string", labelResourceId);
3362 String iconResource = getResourceName(resources, "drawable", iconResourceId);
3436 private String getResourceName(Resources resources, String expectedType, Integer resourceId) { argument
3441 final String resourceEntryName = resources.getResourceEntryName(resourceId);
3442 final String resourceTypeName = resources
[all...]

Completed in 404 milliseconds