Home
last modified time | relevance | path

Searched refs:resources (Results 1 – 25 of 105) sorted by relevance

12345

/packages/apps/Launcher2/src/com/android/launcher2/
DIconCache.java71 public Drawable getFullResIcon(Resources resources, int iconId) { in getFullResIcon() argument
74 d = resources.getDrawableForDensity(iconId, mIconDpi); in getFullResIcon()
83 Resources resources; in getFullResIcon() local
85 resources = mPackageManager.getResourcesForApplication(packageName); in getFullResIcon()
87 resources = null; in getFullResIcon()
89 if (resources != null) { in getFullResIcon()
91 return getFullResIcon(resources, iconId); in getFullResIcon()
103 Resources resources; in getFullResIcon() local
105 resources = mPackageManager.getResourcesForApplication( in getFullResIcon()
108 resources = null; in getFullResIcon()
[all …]
DUserInitializeReceiver.java37 final Resources resources = context.getResources(); in onReceive() local
42 final String packageName = resources.getResourcePackageName(R.array.wallpapers); in onReceive()
44 addWallpapers(resources, packageName, R.array.wallpapers, list); in onReceive()
45 addWallpapers(resources, packageName, R.array.extra_wallpapers, list); in onReceive()
60 private void addWallpapers(Resources resources, String packageName, int resid, in addWallpapers() argument
62 final String[] extras = resources.getStringArray(resid); in addWallpapers()
64 int res = resources.getIdentifier(extra, "drawable", packageName); in addWallpapers()
DWallpaperChooserDialogFragment.java195 final Resources resources = getResources(); in findWallpapers() local
200 final String packageName = resources.getResourcePackageName(R.array.wallpapers); in findWallpapers()
202 addWallpapers(resources, packageName, R.array.wallpapers); in findWallpapers()
203 addWallpapers(resources, packageName, R.array.extra_wallpapers); in findWallpapers()
206 private void addWallpapers(Resources resources, String packageName, int list) { in addWallpapers() argument
207 final String[] extras = resources.getStringArray(list); in addWallpapers()
209 int res = resources.getIdentifier(extra, "drawable", packageName); in addWallpapers()
211 final int thumbRes = resources.getIdentifier(extra + "_small", in addWallpapers()
DUtilities.java86 final Resources resources = context.getResources(); in createIconBitmap() local
87 return createIconBitmap(new BitmapDrawable(resources, icon), context); in createIconBitmap()
211 final Resources resources = context.getResources(); in resampleIconBitmap() local
212 return createIconBitmap(new BitmapDrawable(resources, bitmap), context); in resampleIconBitmap()
236 final Resources resources = context.getResources(); in initStatics() local
237 final DisplayMetrics metrics = resources.getDisplayMetrics(); in initStatics()
240 sIconWidth = sIconHeight = (int) resources.getDimension(R.dimen.app_icon_size); in initStatics()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/util/
DUtil.java49 Resources resources = packageContext.getResources(); in getResourceUri() local
50 return getResourceUri(resources, packageContext.getPackageName(), res); in getResourceUri()
59 Resources resources = context.getPackageManager().getResourcesForApplication(appInfo); in getResourceUri() local
60 return getResourceUri(resources, appInfo.packageName, res); in getResourceUri()
70 private static Uri getResourceUri(Resources resources, String appPkg, int res) in getResourceUri() argument
72 String resPkg = resources.getResourcePackageName(res); in getResourceUri()
73 String type = resources.getResourceTypeName(res); in getResourceUri()
74 String name = resources.getResourceEntryName(res); in getResourceUri()
/packages/apps/VideoEditor/src/com/android/videoeditor/widgets/
DTimelineHorizontalScrollView.java93 final Resources resources = context.getResources(); in TimelineHorizontalScrollView() local
96 mPlayheadMarginTop = (int)resources.getDimension(R.dimen.playhead_margin_top); in TimelineHorizontalScrollView()
97 mPlayheadMarginBottom = (int)resources.getDimension(R.dimen.playhead_margin_bottom); in TimelineHorizontalScrollView()
98 mPlayheadMarginTopOk = (int)resources.getDimension(R.dimen.playhead_margin_top_ok); in TimelineHorizontalScrollView()
99 mPlayheadMarginTopNotOk = (int)resources.getDimension(R.dimen.playhead_margin_top_not_ok); in TimelineHorizontalScrollView()
102 mNormalPlayheadDrawable = resources.getDrawable(R.drawable.ic_playhead); in TimelineHorizontalScrollView()
103 mMoveOkPlayheadDrawable = resources.getDrawable(R.drawable.playhead_move_ok); in TimelineHorizontalScrollView()
104 mMoveNotOkPlayheadDrawable = resources.getDrawable(R.drawable.playhead_move_not_ok); in TimelineHorizontalScrollView()
DPlayheadView.java51 final Resources resources = context.getResources(); in PlayheadView() local
55 mLinePaint.setColor(resources.getColor(R.color.playhead_tick_color)); in PlayheadView()
62 mTextPaint.setColor(resources.getColor(R.color.playhead_tick_color)); in PlayheadView()
63 mTimeTextSize = resources.getDimension(R.dimen.playhead_layout_text_size); in PlayheadView()
67 mTicksHeight = (int)resources.getDimension(R.dimen.playhead_tick_height); in PlayheadView()
/packages/apps/Dialer/src/com/android/dialer/calllog/
DCallTypeHelper.java41 public CallTypeHelper(Resources resources) { in CallTypeHelper() argument
43 mIncomingName = resources.getString(R.string.type_incoming); in CallTypeHelper()
44 mOutgoingName = resources.getString(R.string.type_outgoing); in CallTypeHelper()
45 mMissedName = resources.getString(R.string.type_missed); in CallTypeHelper()
46 mVoicemailName = resources.getString(R.string.type_voicemail); in CallTypeHelper()
47 mNewMissedColor = resources.getColor(R.color.call_log_missed_call_highlight_color); in CallTypeHelper()
48 mNewVoicemailColor = resources.getColor(R.color.call_log_voicemail_highlight_color); in CallTypeHelper()
DDefaultVoicemailNotifier.java104 Resources resources = mContext.getResources(); in updateNotification() local
135 callers = resources.getString( in updateNotification()
150 final String title = resources.getQuantityString( in updateNotification()
178 resources.getString(R.string.notification_action_voicemail_play), in updateNotification()
189 notificationBuilder.setTicker(resources.getString( in updateNotification()
/packages/apps/Contacts/src/com/android/contacts/util/
DContactBadgeUtil.java65 Resources resources; in getSocialDate() local
67 resources = context.getResources(); in getSocialDate()
73 resources = pm.getResourcesForApplication(statusResPackage); in getSocialDate()
77 resources = null; in getSocialDate()
81 if (resources != null) { in getSocialDate()
82 final int resId = resources.getIdentifier(statusLabelRes, "string", in getSocialDate()
88 labelDisplayValue = resources.getString(resId); in getSocialDate()
/packages/apps/Calendar/tests/src/com/android/calendar/
DDbTestUtils.java51 private Resources resources; field in DbTestUtils.FakeContext
54 FakeContext(ContentResolver contentResolver, Resources resources) { in FakeContext() argument
56 this.resources = resources; in FakeContext()
66 return resources; in getResources()
173 public DbTestUtils(Resources resources) { in DbTestUtils() argument
175 this.context = new FakeContext(contentResolver, resources); in DbTestUtils()
/packages/apps/Browser/src/com/android/browser/
DNavigationBarTablet.java76 Resources resources = context.getResources(); in init() local
77 mStopDrawable = resources.getDrawable(R.drawable.ic_stop_holo_dark); in init()
78 mReloadDrawable = resources.getDrawable(R.drawable.ic_refresh_holo_dark); in init()
79 mStopDescription = resources.getString(R.string.accessibility_button_stop); in init()
80 mRefreshDescription = resources.getString(R.string.accessibility_button_refresh); in init()
81 mFocusDrawable = resources.getDrawable( in init()
83 mUnfocusDrawable = resources.getDrawable( in init()
85 mHideNavButtons = resources.getBoolean(R.bool.hide_nav_buttons); in init()
/packages/apps/Dialer/tests/src/com/android/dialer/calllog/
DCallLogListItemHelperTest.java59 Resources resources = context.getResources(); in setUp() local
60 CallTypeHelper callTypeHelper = new CallTypeHelper(resources); in setUp()
61 mPhoneNumberHelper = new TestPhoneNumberHelper(resources, TEST_VOICEMAIL_NUMBER); in setUp()
63 resources, callTypeHelper, mPhoneNumberHelper); in setUp()
64 mHelper = new CallLogListItemHelper(phoneCallDetailsHelper, mPhoneNumberHelper, resources); in setUp()
/packages/apps/Settings/src/com/android/settings/
DKeyguardAppWidgetPickActivity.java385 public Drawable getFullResIcon(Resources resources, int iconId) { in getFullResIcon() argument
388 d = resources.getDrawableForDensity(iconId, mIconDpi); in getFullResIcon()
397 Resources resources; in getFullResIcon() local
399 resources = mPackageManager.getResourcesForApplication(packageName); in getFullResIcon()
401 resources = null; in getFullResIcon()
403 if (resources != null) { in getFullResIcon()
405 return getFullResIcon(resources, iconId); in getFullResIcon()
DRegulatoryInfoDisplayActivity.java45 Resources resources = getResources(); in onCreate() local
47 if (!resources.getBoolean(R.bool.config_show_regulatory_info)) { in onCreate()
57 Drawable d = resources.getDrawable(R.drawable.regulatory_info); in onCreate()
66 CharSequence regulatoryText = resources.getText(R.string.regulatory_info_text); in onCreate()
/packages/experimental/LoaderApp/src/com/android/loaderapp/
DContactHeaderWidget.java483 Resources resources; in setStatus() local
485 resources = getResources(); in setStatus()
489 resources = pm.getResourcesForApplication(statusResPackage); in setStatus()
493 resources = null; in setStatus()
497 if (resources != null) { in setStatus()
499 labelDisplayValue = resources.getString(statusLabel.intValue()); in setStatus()
/packages/apps/ContactsCommon/src/com/android/contacts/common/
DContactStatusUtil.java31 Resources resources = context.getResources(); in getStatusString() local
34 return resources.getString(R.string.status_available); in getStatusString()
37 return resources.getString(R.string.status_away); in getStatusString()
39 return resources.getString(R.string.status_busy); in getStatusString()
/packages/apps/Contacts/src/com/android/contacts/detail/
DContactDetailDisplayUtils.java467 Resources resources = getResourcesForResourceName(packageName); in getDrawable() local
468 if (resources == null) { in getDrawable()
480 final int resId = resources.getIdentifier(name, "drawable", packageName); in getDrawable()
489 return getResourceDrawable(resources, resId); in getDrawable()
497 private Drawable getResourceDrawable(Resources resources, int resId) in getResourceDrawable() argument
499 Drawable drawable = resources.getDrawable(resId); in getResourceDrawable()
DContactDetailFragment.java1689 final Resources resources = mContext.getResources(); in bindDetailView() local
1734 secondaryActionIcon = resources.getDrawable(entry.secondaryActionIcon); in bindDetailView()
1735 secondaryActionDescription = resources.getString(entry.secondaryActionDescription); in bindDetailView()
1738 resources.getDrawable(R.drawable.sym_action_videochat_holo_light); in bindDetailView()
1739 secondaryActionDescription = resources.getString(R.string.video_chat); in bindDetailView()
1742 resources.getDrawable(R.drawable.sym_action_audiochat_holo_light); in bindDetailView()
1743 secondaryActionDescription = resources.getString(R.string.audio_chat); in bindDetailView()
2162 public ViewEntryDimensions(Resources resources) { in ViewEntryDimensions() argument
2163 mPaddingLeft = resources.getDimensionPixelSize( in ViewEntryDimensions()
2165 mPaddingTop = resources.getDimensionPixelSize( in ViewEntryDimensions()
[all …]
DContactDetailTabCarousel.java108 Resources resources = mContext.getResources(); in ContactDetailTabCarousel() local
109 mTabDisplayLabelHeight = resources.getDimensionPixelSize( in ContactDetailTabCarousel()
111 mTabShadowHeight = resources.getDimensionPixelSize( in ContactDetailTabCarousel()
113 mTabWidthScreenWidthFraction = resources.getFraction( in ContactDetailTabCarousel()
115 mTabHeightScreenWidthFraction = resources.getFraction( in ContactDetailTabCarousel()
/packages/apps/Gallery2/src_pd/com/android/gallery3d/filtershow/filters/
DFiltersManager.java87 public static void setResources(Resources resources) { in setResources() argument
88 FiltersManager.getManager().setFilterResources(resources); in setResources()
89 FiltersManager.getPreviewManager().setFilterResources(resources); in setResources()
90 FiltersManager.getHighresManager().setFilterResources(resources); in setResources()
/packages/apps/Calendar/src/com/android/calendar/
DMultiStateButton.java89 public void setButtonResources(int[] resources) throws IllegalArgumentException { in setButtonResources() argument
90 if(resources == null) { in setButtonResources()
93 mMaxStates = resources.length; in setButtonResources()
97 mButtonResources = resources; in setButtonResources()
/packages/providers/ApplicationsProvider/src/com/android/providers/applications/
DApplicationsProvider.java636 Resources resources = getPackageManager().getResourcesForApplication(appInfo); in getResourceUri() local
637 return getResourceUri(resources, appInfo.packageName, res); in getResourceUri()
645 private static Uri getResourceUri(Resources resources, String appPkg, int res) in getResourceUri() argument
647 String resPkg = resources.getResourcePackageName(res); in getResourceUri()
648 String type = resources.getResourceTypeName(res); in getResourceUri()
649 String name = resources.getResourceEntryName(res); in getResourceUri()
/packages/apps/Calendar/src/com/android/calendar/event/
DAttendeesView.java108 final Resources resources = context.getResources(); in AttendeesView() local
109 mDefaultBadge = resources.getDrawable(R.drawable.ic_contact_picture); in AttendeesView()
111 resources.getInteger(R.integer.noresponse_attendee_photo_alpha_level); in AttendeesView()
112 mDefaultPhotoAlpha = resources.getInteger(R.integer.default_attendee_photo_alpha_level); in AttendeesView()
115 mEntries = resources.getTextArray(R.array.response_labels1); in AttendeesView()
/packages/apps/Exchange/tests/src/com/android/exchange/utility/
DCalendarUtilitiesTests.java311 Resources resources = getContext().getResources(); in testCreateMessageForEntity_Reply() local
312 String accept = resources.getString(R.string.meeting_accepted, title); in testCreateMessageForEntity_Reply()
315 assertTrue(msg.mText.contains(resources.getString(R.string.meeting_where, ""))); in testCreateMessageForEntity_Reply()
834 Resources resources = mContext.getResources(); in testBuildMessageTextFromEntityValues() local
843 assertTrue(text.contains(resources.getString(R.string.meeting_when, dateTimeString))); in testBuildMessageTextFromEntityValues()
845 assertTrue(text.contains(resources.getString(R.string.meeting_where, location))); in testBuildMessageTextFromEntityValues()
852 assertTrue(text.contains(resources.getString(R.string.meeting_recurring, dateTimeString))); in testBuildMessageTextFromEntityValues()

12345