Searched refs:resources (Results 1 - 25 of 211) sorted by relevance

123456789

/packages/apps/Contacts/src/com/android/contacts/
H A DContactStatusUtil.java31 Resources resources = context.getResources();
34 return resources.getString(R.string.status_available);
37 return resources.getString(R.string.status_away);
39 return resources.getString(R.string.status_busy);
/packages/apps/Dialer/java/com/android/contacts/common/
H A DContactStatusUtil.java27 Resources resources = context.getResources();
30 return resources.getString(R.string.status_available);
33 return resources.getString(R.string.status_away);
35 return resources.getString(R.string.status_busy);
/packages/apps/TV/tests/common/src/com/android/tv/testing/uihelper/
H A DByResource.java28 * Creates a BySelector for the {@code resId} from {@code resources}
32 public static BySelector id(Resources resources, int resId) { argument
33 String id = resources.getResourceName(resId);
38 * Creates a BySelector for the text of {@code stringRes} from {@code resources}.
42 public static BySelector text(Resources resources, int stringRes) { argument
43 String text = resources.getString(stringRes);
/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/Dialer/java/com/android/dialer/calllogutils/
H A DCallTypeHelper.java54 public CallTypeHelper(Resources resources) { argument
56 mIncomingName = resources.getString(R.string.type_incoming);
57 mIncomingPulledName = resources.getString(R.string.type_incoming_pulled);
58 mOutgoingName = resources.getString(R.string.type_outgoing);
59 mOutgoingPulledName = resources.getString(R.string.type_outgoing_pulled);
60 mMissedName = resources.getString(R.string.type_missed);
61 mIncomingVideoName = resources.getString(R.string.type_incoming_video);
62 mIncomingVideoPulledName = resources.getString(R.string.type_incoming_video_pulled);
63 mOutgoingVideoName = resources.getString(R.string.type_outgoing_video);
64 mOutgoingVideoPulledName = resources
[all...]
H A DCallTypeIconsView.java138 Resources resources = useLargeIcons ? sLargeResouces : sResources;
142 return resources.incoming;
144 return resources.outgoing;
146 return resources.missed;
148 return resources.voicemail;
150 return resources.blocked;
156 return resources.missed;
167 Resources resources = useLargeIcons ? sLargeResouces : sResources;
177 left = right + resources.iconMargin;
183 left = addDrawable(canvas, resources
[all...]
/packages/apps/Dialer/java/com/android/incallui/
H A DInCallUIMaterialColorMapUtils.java30 public InCallUIMaterialColorMapUtils(Resources resources) { argument
31 super(resources);
32 mPrimaryColors = resources.obtainTypedArray(R.array.background_colors);
33 mSecondaryColors = resources.obtainTypedArray(R.array.background_colors_dark);
34 mResources = 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.getColor(R.color.dialer_theme_color_dark);
/packages/apps/Messaging/src/com/android/messaging/ui/
H A DConversationDrawables.java27 * A singleton cache that holds tinted drawable resources for displaying messages, such as
74 final Resources resources = mContext.getResources();
76 mIncomingBubbleDrawable = resources.getDrawable(R.drawable.msg_bubble_incoming);
78 resources.getDrawable(R.drawable.message_bubble_incoming_no_arrow);
79 mIncomingErrorBubbleDrawable = resources.getDrawable(R.drawable.msg_bubble_error);
80 mOutgoingBubbleDrawable = resources.getDrawable(R.drawable.msg_bubble_outgoing);
82 resources.getDrawable(R.drawable.message_bubble_outgoing_no_arrow);
83 mAudioPlayButtonDrawable = resources.getDrawable(R.drawable.ic_audio_play);
84 mAudioPauseButtonDrawable = resources.getDrawable(R.drawable.ic_audio_pause);
86 resources
[all...]
/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);
H A DIconCache.java95 public Drawable getFullResIcon(Resources resources, int iconId, UserHandle user) { argument
98 d = resources.getDrawableForDensity(iconId, mIconDpi);
110 Resources resources;
115 resources = mPackageManager.getResourcesForApplication(packageName);
117 resources = null;
119 if (resources != null) {
121 return getFullResIcon(resources, iconId, user);
132 Resources resources;
134 resources = mPackageManager.getResourcesForApplication(
137 resources
[all...]
/packages/apps/Settings/tests/unit/src/com/android/settings/dashboard/
H A DFirstIdViewMatcher.java33 Resources resources = null;
38 if (resources != null) {
40 idDescription = resources.getResourceName(id);
50 this.resources = view.getResources();
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
H A DPhotoTableDream.java33 Resources resources = getResources();
35 resources.getInteger(R.integer.table_drop_period),
36 resources.getInteger(R.integer.fast_drop));
H A DEdgeSwipeDetector.java36 final Resources resources = context.getResources();
37 mEdgeSwipeGutter = resources.getInteger(R.integer.table_edge_swipe_gutter) / 1000000f;
38 mEdgeSwipeThreshold = resources.getInteger(R.integer.table_edge_swipe_threshold) / 1000000f;
/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/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/Launcher3/src/com/android/launcher3/shortcuts/
H A DDeepShortcutTextView.java49 Resources resources = getResources();
50 mDragHandleWidth = resources.getDimensionPixelSize(R.dimen.popup_padding_end)
51 + resources.getDimensionPixelSize(R.dimen.deep_shortcut_drag_handle_size)
52 + resources.getDimensionPixelSize(R.dimen.deep_shortcut_drawable_padding) / 2;
/packages/apps/Messaging/src/com/android/messaging/util/
H A DBugleSubscriptionPrefs.java75 final Resources resources = Factory.get().getApplicationContext().getResources();
76 final boolean defaultValue = resources.getBoolean(defaultValueResId);
81 putBoolean(resources.getString(newKeyResId), oldValue);
87 final Resources resources = Factory.get().getApplicationContext().getResources();
92 putString(resources.getString(newKeyResId), oldValue);
/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/Messaging/src/com/android/messaging/datamodel/media/
H A DImageResource.java37 public abstract Drawable getDrawable(Resources resources); argument
/packages/apps/Messaging/src/com/android/messaging/sms/
H A DSmsStorageStatusManager.java64 final Resources resources = context.getResources();
69 builder.setContentTitle(resources.getString(R.string.sms_storage_low_title))
70 .setTicker(resources.getString(R.string.sms_storage_low_notification_ticker))
79 bigTextStyle.bigText(resources.getString(R.string.sms_storage_low_text));
/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
/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/Settings/tests/robotests/src/com/android/settings/core/codeinspection/
H A DClassScanner.java43 final Enumeration<URL> resources = Thread.currentThread().getContextClassLoader()
45 if (!resources.hasMoreElements()) {
48 URL url = resources.nextElement();
59 if (resources.hasMoreElements()) {
60 url = resources.nextElement();
/packages/apps/Calendar/tests/src/com/android/calendar/
H A DDbTestUtils.java51 private Resources resources; field in class:DbTestUtils.FakeContext
54 FakeContext(ContentResolver contentResolver, Resources resources) { argument
56 this.resources = resources;
66 return resources;
173 public DbTestUtils(Resources resources) { argument
175 this.context = new FakeContext(contentResolver, resources);

Completed in 972 milliseconds

123456789