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

12

/packages/apps/UnifiedEmail/src/com/android/mail/utils/
H A DConversationViewUtils.java26 public static void setTextZoom(Resources resources, WebSettings settings) { argument
27 final float fontScale = resources.getConfiguration().fontScale;
28 final int desiredFontSizePx = resources.getInteger(
30 final int unstyledFontSizePx = resources.getInteger(
H A DVeiledAddressMatcher.java117 public static final VeiledAddressMatcher newInstance(Resources resources) { argument
119 instance.mVeiledMatchingEnabled = resources.getBoolean(VEILED_MATCHING_ENABLED);
121 instance.loadPattern(resources.getString(VEILED_RESOURCE));
128 * values of the veiled address pattern and the value is read once from resources.
/packages/apps/ContactsCommon/src/com/android/contacts/common/util/
H A DContactListViewUtils.java41 * @param resources
45 public static void applyCardPaddingToView(Resources resources, argument
49 final int listSpaceWeight = resources.getInteger(
51 final int listViewWeight = resources.getInteger(
H A DBitmapUtil.java95 * @param resources The current resources.
101 android.content.res.Resources resources, int resourceId, float angle) {
104 Bitmap original = BitmapFactory.decodeResource(resources, resourceId);
113 return new BitmapDrawable(resources,rotated);
100 getRotatedDrawable( android.content.res.Resources resources, int resourceId, float angle) argument
H A DMaterialColorMapUtils.java31 public MaterialColorMapUtils(Resources resources) { argument
32 sPrimaryColors = resources.obtainTypedArray(
34 sSecondaryColors = resources.obtainTypedArray(
133 public static MaterialPalette getDefaultPrimaryAndSecondaryColors(Resources resources) { argument
134 final int primaryColor = resources.getColor(
136 final int secondaryColor = resources.getColor(
/packages/apps/Dialer/tests/src/com/android/dialer/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/Gallery2/src_pd/com/android/gallery3d/filtershow/filters/
H A DFiltersManager.java65 public static void setResources(Resources resources) { argument
66 FiltersManager.getManager().setFilterResources(resources);
67 FiltersManager.getPreviewManager().setFilterResources(resources);
68 FiltersManager.getHighresManager().setFilterResources(resources);
/packages/apps/InCallUI/src/com/android/incallui/
H A DInCallUIMaterialColorMapUtils.java15 public InCallUIMaterialColorMapUtils(Resources resources) { argument
16 super(resources);
17 sPrimaryColors = resources.obtainTypedArray(
19 sSecondaryColors = resources.obtainTypedArray(
21 mResources = resources;
47 public static MaterialPalette getDefaultPrimaryAndSecondaryColors(Resources resources) { argument
48 final int primaryColor = resources.getColor(R.color.dialer_theme_color);
49 final int secondaryColor = resources.getColor(R.color.dialer_theme_color_dark);
/packages/apps/Launcher2/src/com/android/launcher2/
H A DUserInitializeReceiver.java37 final Resources resources = context.getResources();
42 final String packageName = resources.getResourcePackageName(R.array.wallpapers);
44 addWallpapers(resources, packageName, R.array.wallpapers, list);
45 addWallpapers(resources, packageName, R.array.extra_wallpapers, list);
60 private void addWallpapers(Resources resources, String packageName, int resid, argument
62 final String[] extras = resources.getStringArray(resid);
64 int res = resources.getIdentifier(extra, "drawable", packageName);
/packages/apps/Dialer/src/com/android/dialer/calllog/
H A DCallTypeHelper.java47 public CallTypeHelper(Resources resources) { argument
49 mIncomingName = resources.getString(R.string.type_incoming);
50 mOutgoingName = resources.getString(R.string.type_outgoing);
51 mMissedName = resources.getString(R.string.type_missed);
52 mIncomingVideoName = resources.getString(R.string.type_incoming_video);
53 mOutgoingVideoName = resources.getString(R.string.type_outgoing_video);
54 mMissedVideoName = resources.getString(R.string.type_missed_video);
55 mVoicemailName = resources.getString(R.string.type_voicemail);
56 mNewMissedColor = resources.getColor(R.color.call_log_missed_call_highlight_color);
57 mNewVoicemailColor = resources
[all...]
H A DPhoneNumberDisplayHelper.java36 public PhoneNumberDisplayHelper(Context context, Resources resources) { argument
38 mResources = resources;
42 public PhoneNumberDisplayHelper(Context context, Resources resources, argument
45 mResources = resources;
H A DCallLogListItemHelper.java51 PhoneNumberDisplayHelper phoneNumberHelper, Resources resources) {
54 mResources = resources;
50 CallLogListItemHelper(PhoneCallDetailsHelper phoneCallDetailsHelper, PhoneNumberDisplayHelper phoneNumberHelper, Resources resources) argument
/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/TvSettings/Settings/src/com/android/tv/settings/
H A DActionBehavior.java44 public Action toAction(String key, Resources resources) { argument
45 return new Action.Builder().key(key).title(resources.getString(mTitleResource)).build();
48 public Action toAction(String key, Resources resources, boolean selected) { argument
50 .key(key).title(resources.getString(mTitleResource)).checked(selected).build();
53 public Action.Builder toActionBuilder(String key, Resources resources) { argument
56 .title(resources.getString(mTitleResource));
/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;
/packages/apps/DeskClock/src/com/android/deskclock/
H A DTimerRingService.java171 private void setDataSourceFromResource(Resources resources, argument
173 AssetFileDescriptor afd = resources.openRawResourceFd(res);
/packages/apps/Dialer/src/com/android/dialer/
H A DPhoneCallDetailsHelper.java69 * @param resources used to look up strings
71 public PhoneCallDetailsHelper(Context context, Resources resources, argument
74 mResources = resources;
76 mPhoneNumberHelper = new PhoneNumberDisplayHelper(context, resources, phoneUtils);
/packages/apps/Dialer/src/com/android/dialer/util/
H A DDialerUtils.java120 * @param res The resources to obtain the image and string from.
156 * @param resources Resources used to get list delimiter.
160 public static CharSequence join(Resources resources, Iterable<CharSequence> list) { argument
161 final CharSequence separator = resources.getString(R.string.list_delimeter);
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
H A DImageFilterBorder.java76 public void setResources(Resources resources) { argument
77 if (mResources != resources) {
78 mResources = resources;
H A DImageFilterFx.java107 public void setResources(Resources resources) { argument
108 mResources = resources;
/packages/apps/Launcher3/src/com/android/launcher3/
H A DDynamicGrid.java52 public DynamicGrid(Context context, Resources resources, argument
56 DisplayMetrics dm = resources.getDisplayMetrics();
93 resources);
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/
H A DActionType.java54 String getTitle(Resources resources) { argument
55 return resources.getString(mTitleResource);
58 String getDesc(Resources resources) { argument
60 return resources.getString(mDescResource);
65 Action toAction(Resources resources) { argument
66 return toAction(resources, getDesc(resources));
69 Action toAction(Resources resources, String description) { argument
72 .title(getTitle(resources))
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/privacy/
H A DActionType.java40 String getTitle(Resources resources) { argument
41 return resources.getString(mTitleResource);
44 Action toAction(Resources resources) { argument
45 return toAction(resources, null);
48 Action toAction(Resources resources, String description) { argument
51 .title(getTitle(resources))
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/storage/
H A DStorageItem.java53 public int getColor(Resources resources) { argument
54 return resources.getColor(mColorResource);
57 Action toAction(Resources resources, String description) { argument
60 .title(resources.getString(mTitleResource))
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/picker/
H A DPickerConstant.java44 private PickerConstant(Resources resources) { argument
54 ampm = resources.getStringArray(R.array.ampm);
55 dateSeparator = resources.getString(R.string.date_separator);
56 timeSeparator = resources.getString(R.string.time_separator);
74 static public PickerConstant getInstance(Resources resources) { argument
77 sInst = new PickerConstant(resources);

Completed in 444 milliseconds

12