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

123

/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, null);
49 final int secondaryColor = resources.getColor(R.color.dialer_theme_color_dark, null);
/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/Messaging/src/com/android/messaging/datamodel/media/
H A DImageResource.java37 public abstract Drawable getDrawable(Resources resources); argument
H A DGifImageResource.java57 public Drawable getDrawable(Resources resources) { argument
/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 DCallLogListItemHelper.java49 Resources resources,
52 mResources = resources;
47 CallLogListItemHelper( PhoneCallDetailsHelper phoneCallDetailsHelper, Resources resources, TelecomCallLogCache telecomCallLogCache) argument
H A DPhoneCallDetailsHelper.java66 * @param resources used to look up strings
70 Resources resources,
73 mResources = resources;
68 PhoneCallDetailsHelper( Context context, Resources resources, TelecomCallLogCache telecomCallLogCache) argument
/packages/apps/Dialer/src/com/android/dialer/util/
H A DDialerUtils.java140 * @param resources Resources used to get list delimiter.
144 public static CharSequence join(Resources resources, Iterable<CharSequence> list) { argument
147 final CharSequence separator = resources.getString(R.string.list_delimeter);
/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/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
H A DEmojiAltPhysicalKeyDetector.java46 public EmojiAltPhysicalKeyDetector(@Nonnull final Resources resources) { argument
47 mEmojiSwitcherMap = parseSwitchDefinition(resources, R.array.keyboard_switcher_emoji);
49 resources, R.array.keyboard_switcher_symbols_shifted);
57 @Nonnull final Resources resources,
60 final String name = resources.getResourceEntryName(resourceId);
61 final String[] values = resources.getStringArray(resourceId);
56 parseSwitchDefinition( @onnull final Resources resources, final int resourceId) argument
/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/Camera2/src/com/android/camera/settings/
H A DCameraFacingSetting.java41 Resources resources,
50 Integer.parseInt(resources.getString(R.string.pref_camera_id_entry_back_value));
52 Integer.parseInt(resources.getString(R.string.pref_camera_id_entry_front_value));
54 Integer.parseInt(resources.getString(R.string.pref_camera_id_default));
40 CameraFacingSetting( Resources resources, SettingsManager settingsManager, String moduleSettingScope) argument
/packages/apps/DeskClock/src/com/android/deskclock/
H A DTimerRingService.java170 private void setDataSourceFromResource(Resources resources, argument
172 AssetFileDescriptor afd = resources.openRawResourceFd(res);
/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/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/widget/picker/
H A DPickerConstants.java35 private Date(Resources resources) { argument
38 dateSeparator = resources.getString(R.string.date_separator);
49 private Time(Resources resources) { argument
53 ampm = resources.getStringArray(R.array.ampm);
54 timeSeparator = resources.getString(R.string.time_separator);
74 public static PickerConstants.Date getDateInstance(Resources resources) { argument
75 return new Date(resources);
78 public static PickerConstants.Time getTimeInstance(Resources resources) { argument
79 return new Time(resources);

Completed in 830 milliseconds

123