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

1234

/packages/apps/Dialer/java/com/android/incallui/
H A DInCallUIMaterialColorMapUtils.java28 private final Resources resources; field in class:InCallUIMaterialColorMapUtils
30 public InCallUIMaterialColorMapUtils(Resources resources) { argument
31 super(resources);
32 primaryColors = resources.obtainTypedArray(R.array.background_colors);
33 secondaryColors = resources.obtainTypedArray(R.array.background_colors_dark);
34 this.resources = resources;
41 public static MaterialPalette getDefaultPrimaryAndSecondaryColors(Resources resources) { argument
42 final int primaryColor = resources.getColor(R.color.dialer_theme_color);
43 final int secondaryColor = resources
[all...]
/packages/apps/Dialer/java/com/android/voicemail/impl/protocol/
H A DVisualVoicemailProtocolFactory.java30 public static VisualVoicemailProtocol create(Resources resources, String type) { argument
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/
H A DStringConcatenator.java32 public StringConcatenator(Resources resources) { argument
33 mResources = resources;
/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(
/packages/apps/Dialer/java/com/android/contacts/common/util/
H A DContactListViewUtils.java56 Resources resources, final ListView listView, final View rootLayout) {
59 final int listSpaceWeight = resources.getInteger(R.integer.contact_list_space_layout_weight);
60 final int listViewWeight = resources.getInteger(R.integer.contact_list_card_layout_weight);
55 applyCardPaddingToView( Resources resources, final ListView listView, final View rootLayout) argument
H A DMaterialColorMapUtils.java30 public MaterialColorMapUtils(Resources resources) { argument
32 resources.obtainTypedArray(com.android.contacts.common.R.array.letter_tile_colors);
34 resources.obtainTypedArray(com.android.contacts.common.R.array.letter_tile_colors_dark);
/packages/apps/Dialer/java/com/android/incallui/rtt/impl/
H A DRttChatMessageViewHolder.java32 private final Resources resources; field in class:RttChatMessageViewHolder
41 resources = view.getResources();
50 ? resources.getDimensionPixelSize(R.dimen.rtt_same_group_message_margin_top)
51 : resources.getDimensionPixelSize(R.dimen.rtt_message_margin_top);
/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/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/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/common/
H A DLocaleTestUtils.java108 * Sets the locale for the given resources and returns the previous locale.
110 * @param resources the resources on which to set the locale
112 * @return the previous value of the locale for the resources
114 private Locale setResourcesLocale(Resources resources, Locale locale) { argument
115 Configuration contextConfiguration = new Configuration(resources.getConfiguration());
118 resources.updateConfiguration(contextConfiguration, null);
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/
H A DImageResource.java37 public abstract Drawable getDrawable(Resources resources); argument
H A DGifImageResource.java58 public Drawable getDrawable(Resources resources) { argument
/packages/apps/TV/tests/common/src/com/android/tv/testing/uihelper/
H A DByResource.java26 * Creates a BySelector for the {@code resId} from {@code resources}
30 public static BySelector id(Resources resources, int resId) { argument
31 String id = resources.getResourceName(resId);
36 * Creates a BySelector for the text of {@code stringRes} from {@code resources}.
40 public static BySelector text(Resources resources, int stringRes) { argument
41 String text = resources.getString(stringRes);
/packages/apps/Dialer/java/com/android/dialer/app/list/
H A DBlockedListSearchAdapter.java30 private Resources resources; field in class:BlockedListSearchAdapter
35 resources = context.getResources();
49 final int textColor = resources.getColor(R.color.blocked_number_block_color);
57 final int textColor = resources.getColor(R.color.dialer_secondary_text_color);
/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/services/Car/tests/carservice_test/src/com/android/car/
H A DVmsPublisherPermissionsTest.java65 protected synchronized void configureResourceOverrides(MockResources resources) { argument
66 resources.overrideResource(R.array.vmsPublisherClients, new String[]{
/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.java42 Resources resources,
52 Integer.parseInt(resources.getString(R.string.pref_camera_id_default));
41 CameraFacingSetting( Resources resources, SettingsManager settingsManager, String moduleSettingScope, AppController appController) argument
/packages/apps/Contacts/src/com/android/contacts/util/
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
/packages/apps/Dialer/java/com/android/dialer/app/calllog/
H A DCallLogListItemHelper.java37 private final Resources resources; field in class:CallLogListItemHelper
45 * @param resources The object from which resources can be retrieved
50 Resources resources,
53 this.resources = resources;
117 resources.getString(R.string.description_video_call_action), nameOrNumber));
121 resources.getString(R.string.description_create_new_contact_action), nameOrNumber));
125 resources.getString(R.string.description_add_to_existing_contact_action),
130 resources
48 CallLogListItemHelper( PhoneCallDetailsHelper phoneCallDetailsHelper, Resources resources, CallLogCache callLogCache) argument
[all...]
/packages/apps/Dialer/java/com/android/dialer/searchfragment/directories/
H A DDirectoryContactViewHolder.java119 private static String getLabel(Resources resources, Cursor cursor) { argument
127 return (String) Phone.getTypeLabel(resources, numberType, numberLabel);
/packages/apps/Dialer/java/com/android/dialer/speeddial/
H A DFavoritesViewHolder.java94 private static String getLabel(Resources resources, Cursor cursor) { argument
102 return (String) Phone.getTypeLabel(resources, numberType, numberLabel);
H A DSuggestionViewHolder.java89 private static String getLabel(Resources resources, Cursor cursor) { argument
97 return (String) Phone.getTypeLabel(resources, numberType, numberLabel);
/packages/apps/DocumentsUI/src/com/android/documentsui/files/
H A DQuickViewIntentBuilder.java79 Resources resources,
84 assert(resources != null);
89 mResources = resources;
77 QuickViewIntentBuilder( PackageManager packageMgr, Resources resources, DocumentInfo doc, Model model) argument
/packages/apps/DocumentsUI/src/com/android/documentsui/inspector/
H A DMediaView.java113 Resources resources,
118 addDimensionsRow(table, resources, tags);
122 showCoordiantes(table, resources, coords, geoClickListener);
134 Resources resources,
140 addDimensionsRow(table, resources, tags);
159 resources.getString(R.string.metadata_camera_format, make, model));
163 table.put(R.string.metadata_aperture, resources.getString(
176 String.format(resources.getString(R.string.metadata_focal_format), length));
182 String.format(resources.getString(R.string.metadata_iso_format), iso));
187 showCoordiantes(table, resources, coord
111 showVideoData( TableDisplay table, Resources resources, DocumentInfo doc, Bundle tags, @Nullable Runnable geoClickListener) argument
132 showExifData( TableDisplay table, Resources resources, DocumentInfo doc, Bundle tags, @Nullable Runnable geoClickListener, Consumer<float[]> geoAddressFetcher) argument
192 showCoordiantes( TableDisplay table, Resources resources, float[] coords, @Nullable Runnable geoClickListener) argument
283 addDimensionsRow(TableDisplay table, Resources resources, Bundle tags) argument
[all...]

Completed in 658 milliseconds

1234