/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/ |
H A D | DrawableLoader.java | 263 Log.w(TAG, "couldn't load bitmap, releasing resources"); 326 Resources resources = context.getPackageManager() 328 if (resources == null) { 331 final int id = resources.getIdentifier(r.resourceName, null, null); 333 Log.e(TAG, "Couldn't get resource " + r.resourceName + " in resources of " 338 resources.getValue(id, value, true); 342 return resources.getDrawable(id); 344 return resources.openRawResource(id, value); 349 Resources resources = 351 int id = resources [all...] |
/packages/apps/Launcher3/src/com/android/launcher3/ |
H A D | DeviceProfile.java | 308 Resources resources = context.getResources(); 309 DisplayMetrics dm = resources.getDisplayMetrics(); 310 Configuration config = resources.getConfiguration(); 328 Resources resources = context.getResources(); 329 DisplayMetrics dm = resources.getDisplayMetrics(); 330 Configuration config = resources.getConfiguration(); 354 updateIconSize(1f, drawablePadding, resources, dm); 363 updateIconSize(scale, drawablePadding, resources, dm); 371 private void updateIconSize(float scale, int drawablePadding, Resources resources, argument 379 searchBarSpaceMaxWidthPx = resources 433 updateFromConfiguration(Context context, Resources resources, int wPx, int hPx, int awPx, int ahPx) argument [all...] |
H A D | DynamicGrid.java | 52 public DynamicGrid(Context context, Resources resources, argument 56 DisplayMetrics dm = resources.getDisplayMetrics(); 104 resources);
|
H A D | IconCache.java | 125 public Drawable getFullResIcon(Resources resources, int iconId) { argument 128 d = resources.getDrawableForDensity(iconId, mIconDpi); 137 Resources resources; 139 resources = mPackageManager.getResourcesForApplication(packageName); 141 resources = null; 143 if (resources != null) { 145 return getFullResIcon(resources, iconId); 161 Resources resources; 163 resources = mPackageManager.getResourcesForApplication( 166 resources [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
H A D | ConversationPhotoTeaserView.java | 59 final Resources resources = context.getResources(); 63 sScrollSlop = resources.getInteger(R.integer.swipeScrollSlop); 64 sShrinkAnimationDuration = resources.getInteger( 73 mTabletDevice = Utils.useTabletUI(resources); 74 mListCollapsible = resources.getBoolean(R.bool.list_collapsible);
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/util/ |
H A D | LocalizedNameResolver.java | 140 final Resources resources; 142 resources = packageManager.getResourcesForApplication(packageName); 147 return resources.getString(id);
|
/packages/apps/DeskClock/src/com/android/deskclock/timer/ |
H A D | TimerView.java | 51 Resources resources = context.getResources(); 52 mWhiteColor = resources.getColor(R.color.clock_white); 53 mGrayColor = resources.getColor(R.color.clock_gray);
|
/packages/wallpapers/Basic/src/com/android/wallpaper/walkaround/ |
H A D | WalkAroundWallpaper.java | 162 final Resources resources = getResources(); 163 final boolean portrait = resources.getConfiguration().orientation == 168 final DisplayMetrics metrics = resources.getDisplayMetrics();
|
/packages/apps/Contacts/src/com/android/contacts/detail/ |
H A D | ContactDisplayUtils.java | 262 /** Fetcher for images from resources to be included in HTML text. */ 264 /** The scheme used to load resources. */ 290 Resources resources = getResourcesForResourceName(packageName); 291 if (resources == null) { 303 final int resId = resources.getIdentifier(name, "drawable", packageName); 312 return getResourceDrawable(resources, resId); 320 private Drawable getResourceDrawable(Resources resources, int resId) argument 322 Drawable drawable = resources.getDrawable(resId);
|
/packages/apps/Dialer/src/com/android/dialer/calllog/ |
H A D | DefaultVoicemailNotifier.java | 104 Resources resources = mContext.getResources(); 136 callers = resources.getString( 151 final String title = resources.getQuantityString( 160 .setColor(resources.getColor(R.color.dialer_theme_color)) 180 resources.getString(R.string.notification_action_voicemail_play), 192 notificationBuilder.setTicker(resources.getString(
|
H A D | CallLogListItemHelper.java | 47 PhoneNumberDisplayHelper phoneNumberHelper, Resources resources) { 50 mResources = resources; 46 CallLogListItemHelper(PhoneCallDetailsHelper phoneCallDetailsHelper, PhoneNumberDisplayHelper phoneNumberHelper, Resources resources) argument
|
/packages/apps/UnifiedEmail/src/com/android/mail/compose/ |
H A D | QuotedTextView.java | 247 Resources resources = getContext().getResources(); 252 resources.getString(R.string.reply_attribution), 264 .append(String.format(resources.getString(R.string.forward_attribution), Utils 271 quotedText.append(String.format(resources.getString(R.string.cc_attribution), 299 final Resources resources = getContext().getResources(); 302 String.format(resources.getString(R.string.forward_attribution_no_headers)));
|
/packages/apps/Browser/src/com/android/browser/ |
H A D | NavigationBarTablet.java | 76 Resources resources = context.getResources(); 77 mStopDrawable = resources.getDrawable(R.drawable.ic_stop_holo_dark); 78 mReloadDrawable = resources.getDrawable(R.drawable.ic_refresh_holo_dark); 79 mStopDescription = resources.getString(R.string.accessibility_button_stop); 80 mRefreshDescription = resources.getString(R.string.accessibility_button_refresh); 81 mFocusDrawable = resources.getDrawable( 83 mUnfocusDrawable = resources.getDrawable( 85 mHideNavButtons = resources.getBoolean(R.bool.hide_nav_buttons);
|
H A D | PermissionsPrompt.java | 84 String[] resources = mRequest.getResources(); 86 for (String resource : resources) {
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
H A D | PhotoLoadingTestCase.java | 31 * Adds support for loading photo files easily from test resources. 92 final Resources resources = getTestContext().getResources(); 93 InputStream is = resources.openRawResource(resourceId);
|
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/ |
H A D | PhotoTouchListener.java | 60 final Resources resources = context.getResources(); 61 mBeta = resources.getInteger(R.integer.table_damping) / 1000000f; 62 mEnableFling = resources.getBoolean(R.bool.enable_fling); 63 mManualImageRotation = resources.getBoolean(R.bool.enable_manual_image_rotation);
|
H A D | PhotoCarousel.java | 98 final Resources resources = getResources(); 99 mDropPeriod = resources.getInteger(R.integer.carousel_drop_period); 100 mBitmapQueueLimit = resources.getInteger(R.integer.num_images_to_preload); 101 mFlipDuration = resources.getInteger(R.integer.flip_duration);
|
/packages/apps/UnifiedEmail/src/com/android/mail/print/ |
H A D | PrintUtils.java | 224 private static String renderEmailList(Resources resources, String[] emails, argument 238 formattedEmails[i] = resources.getString(R.string.address_print_display_format, 243 return TextUtils.join(resources.getString(R.string.enumeration_comma), formattedEmails); 250 Context context, Resources resources, Message message) { 269 .append(resources.getQuantityString( 249 renderAttachments( Context context, Resources resources, Message message) argument
|
/packages/apps/Contacts/src/com/android/contacts/util/ |
H A D | ImageViewDrawableSetter.java | 143 Resources resources = mTarget.getResources(); 158 return ContactPhotoManager.getDefaultAvatarDrawableForContact(resources, true, request);
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
H A D | TimerRingService.java | 171 private void setDataSourceFromResource(Resources resources, argument 173 AssetFileDescriptor afd = resources.openRawResourceFd(res);
|
/packages/apps/Dialer/src/com/android/dialer/list/ |
H A D | TileInteractionTeaserView.java | 42 final Resources resources = context.getResources(); 45 sShrinkAnimationDuration = resources.getInteger(R.integer.escape_animation_duration);
|
/packages/apps/Dialer/src/com/android/dialer/util/ |
H A D | DialerUtils.java | 118 * @param res The resources to obtain the image and string from. 154 * @param resources Resources used to get list delimiter. 158 public static CharSequence join(Resources resources, Iterable<CharSequence> list) { argument 159 final CharSequence separator = resources.getString(R.string.list_delimeter);
|
/packages/inputmethods/LatinIME/java/ |
H A D | Android.mk | 33 # Include all the resources regardless of system supported locales
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/vcard/ |
H A D | ExportProcessor.java | 220 final Resources resources = mService.getResources(); 222 return resources.getString(R.string.composer_failed_to_get_database_infomation); 224 return resources.getString(R.string.composer_has_no_exportable_contact); 226 return resources.getString(R.string.composer_not_initialized);
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
H A D | CommonControllerOverlay.java | 310 Resources resources = getContext().getResources(); 312 String contentDescription = resources.getString(R.string.accessibility_reload_video); 315 contentDescription = resources.getString(R.string.accessibility_play_video); 318 contentDescription = resources.getString(R.string.accessibility_pause_video);
|