HomeSort by relevance Sort by last modified time
    Searched refs:getResources (Results 126 - 150 of 1555) sorted by null

1 2 3 4 56 7 8 91011>>

  /development/samples/ApiDemos/src/com/example/android/apis/graphics/
DensityActivity.java 140 final BitmapDrawable d = new BitmapDrawable(getResources(), bitmap);
141 if (!scale) d.setTargetDensity(getResources().getDisplayMetrics());
152 final Drawable d = getResources().getDrawable(resource);
174 final Drawable d = getResources().getDrawable(resource);
187 bitmap = BitmapFactory.decodeResource(getResources(), id);
191 bitmap = BitmapFactory.decodeResource(getResources(), id, opts);
207 final DisplayMetrics metrics = getResources().getDisplayMetrics();
  /frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
StatusBarIconView.java 56 final Resources res = context.getResources();
82 final Resources res = context.getResources();
133 if (icon.number > 0 && mContext.getResources().getBoolean(
136 mNumberBackground = getContext().getResources().getDrawable(
180 r = context.getResources();
237 final int tooBig = mContext.getResources().getInteger(
240 str = mContext.getResources().getString(
  /packages/apps/Browser/src/com/android/browser/
BookmarkUtils.java 71 Resources res = context.getResources();
74 faviconBackground.getPaint().setColor(context.getResources()
140 Drawable drawable = context.getResources().getDrawableForDensity(
149 Drawable drawable = context.getResources().getDrawableForDensity(
187 p.setColor(context.getResources()
194 int faviconDimension = context.getResources().getDimensionPixelSize(R.dimen.favicon_size);
199 faviconPaddedRectDimension = context.getResources().getDimensionPixelSize(
  /packages/apps/Launcher2/src/com/android/launcher2/
Cling.java 94 Resources r = getContext().getResources();
210 mBackground = getResources().getDrawable(R.drawable.bg_cling1);
214 mBackground = getResources().getDrawable(R.drawable.bg_cling2);
217 mBackground = getResources().getDrawable(R.drawable.bg_cling3);
219 mBackground = getResources().getDrawable(R.drawable.bg_cling4);
221 mBackground = getResources().getDrawable(R.drawable.bg_cling5);
254 mHandTouchGraphic = getResources().getDrawable(R.drawable.hand);
Hotseat.java 58 Resources r = context.getResources();
64 mIsLandscape = context.getResources().getConfiguration().orientation ==
117 context.getResources().getDrawable(R.drawable.all_apps_button_icon), null, null);
  /packages/apps/Phone/src/com/android/phone/
NetworkSetting.java 282 dialog.setMessage(getResources().getString(R.string.register_automatically));
289 dialog.setMessage(getResources().getString(R.string.load_networks_progress));
315 mNetworkSelectMsg = getResources().getString(R.string.register_on_network, networkStr);
323 String status = getResources().getString(R.string.network_query_error);
337 status = getResources().getString(R.string.not_allowed);
339 status = getResources().getString(R.string.connect_later);
348 String status = getResources().getString(R.string.registration_done);
DeleteFdnContactScreen.java 76 showStatus(getResources().getText(
145 showStatus(getResources().getText(R.string.fdn_contact_deleted));
148 showStatus(getResources().getText(R.string.pin2_invalid));
  /development/samples/training/network-usage/src/com/example/android/networkusage/
NetworkActivity.java 162 myWebView.loadData(getResources().getString(R.string.connection_error),
198 return getResources().getString(R.string.connection_error);
200 return getResources().getString(R.string.xml_error);
230 htmlString.append("<h3>" + getResources().getString(R.string.page_title) + "</h3>");
231 htmlString.append("<em>" + getResources().getString(R.string.updated) + " " +
  /frameworks/base/samples/training/network-usage/src/com/example/android/networkusage/
NetworkActivity.java 162 myWebView.loadData(getResources().getString(R.string.connection_error),
198 return getResources().getString(R.string.connection_error);
200 return getResources().getString(R.string.xml_error);
230 htmlString.append("<h3>" + getResources().getString(R.string.page_title) + "</h3>");
231 htmlString.append("<em>" + getResources().getString(R.string.updated) + " " +
  /packages/apps/Email/src/com/android/email/
FolderProperties.java 54 mSpecialMailbox = context.getResources().getStringArray(R.array.mailbox_display_names);
62 context.getResources().obtainTypedArray(R.array.mailbox_display_icons);
64 context.getResources().getDrawable(R.drawable.ic_menu_star_holo_light);
66 context.getResources().getDrawable(R.drawable.ic_list_combined_inbox);
219 return mContext.getResources().getDrawable(resId);
  /cts/tests/tests/text/src/android/text/style/cts/
ImageSpanTest.java 43 Drawable d = mContext.getResources().getDrawable(R.drawable.pass);
73 Drawable d = mContext.getResources().getDrawable(R.drawable.pass);
88 Drawable drawable = mContext.getResources().getDrawable(R.drawable.pass);
  /cts/tests/tests/widget/src/android/widget/cts/
ToggleButtonTest.java 47 XmlPullParser parser = mContext.getResources().getXml(R.layout.togglebutton_layout);
98 Resources resources = mContext.getResources();
152 Drawable drawable = mContext.getResources().getDrawable(R.drawable.scenery);
  /frameworks/base/core/java/android/app/
Presentation.java 202 public Resources getResources() {
203 return getContext().getResources();
284 return dm.equals(getResources().getDisplayMetrics());
  /frameworks/base/core/java/android/os/
PowerManager.java 311 return mContext.getResources().getInteger(
322 return mContext.getResources().getInteger(
331 return mContext.getResources().getInteger(
  /frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
IntruderAlertView.java 72 float densityScale = getResources().getDisplayMetrics().density;
127 float densityScale = getResources().getDisplayMetrics().density;
166 Drawable bg = getResources().getDrawable(R.drawable.intruder_row_bg);
  /frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
BitmapsActivity.java 63 mBitmap1 = BitmapFactory.decodeResource(c.getResources(), R.drawable.sunset1);
64 mBitmap2 = BitmapFactory.decodeResource(c.getResources(), R.drawable.sunset2);
71 Bitmap bitmap = BitmapFactory.decodeResource(c.getResources(), R.drawable.sunset1, opts);
  /packages/apps/Email/src/com/android/email/activity/
UiUtilities.java 35 final Resources res = context.getResources();
174 return context.getResources().getBoolean(R.bool.use_two_pane);
181 return context.getResources().getBoolean(R.bool.show_two_pane_search_result);
  /packages/apps/Gallery2/src/com/android/gallery3d/app/
Config.java 44 Resources r = context.getResources();
95 Resources r = context.getResources();
121 Resources r = context.getResources();
  /packages/apps/LegacyCamera/src/com/android/camera/ui/
FaceView.java 53 mDrawableFocusing = getResources().getDrawable(R.drawable.ic_focus_focusing);
54 mDrawableFocused = getResources().getDrawable(R.drawable.ic_focus_face_focused);
55 mDrawableFocusFailed = getResources().getDrawable(R.drawable.ic_focus_failed);
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DictionaryFactory.java 101 getMainDictionaryResourceIdIfAvailableForLocale(context.getResources(), locale);
103 afd = context.getResources().openRawResourceFd(resId);
158 final Resources res = context.getResources();
  /sdk/apps/NotificationStudio/src/com/android/notificationstudio/editor/
IconEditor.java 62 int iconSize = getIconSize(v.getResources());
63 int outerMargin = v.getResources().getDimensionPixelSize(R.dimen.editor_icon_outer_margin);
64 int innerMargin = v.getResources().getDimensionPixelSize(R.dimen.editor_icon_inner_margin);
  /frameworks/base/tests/TileBenchmark/src/com/test/tilebenchmark/
ProfileActivity.java 100 if (movementStr == getResources().getString(R.string.movement_auto_scroll)) {
104 } else if (movementStr == getResources().getString(R.string.movement_manual)) {
108 } else if (movementStr == getResources().getString(R.string.movement_timed)) {
282 getResources().getString(R.string.movement_auto_scroll),
283 getResources().getString(R.string.movement_manual),
284 getResources().getString(R.string.movement_timed)
  /packages/apps/Settings/src/com/android/settings/
DeviceInfoSettings.java 90 String status = getResources().getString(R.string.selinux_status_disabled);
93 String status = getResources().getString(R.string.selinux_status_permissive);
194 mDevHitToast = Toast.makeText(getActivity(), getResources().getString(
225 if (!getResources().getBoolean(resId)) {
238 getResources().getString(R.string.device_info_default));
246 getResources().getString(R.string.device_info_default)));
  /cts/tests/src/android/widget/cts/
WidgetTestUtils.java 103 Assert.assertEquals(expected * context.getResources().getDisplayMetrics().density,
109 float density = context.getResources().getDisplayMetrics().density;
  /cts/tests/tests/graphics/src/android/graphics/drawable/cts/
ColorDrawableTest.java 100 final XmlPullParser parser = mContext.getResources().getXml(R.drawable.colordrawable_test);
114 colorDrawable.inflate(mContext.getResources(), parser, attrs);

Completed in 1386 milliseconds

1 2 3 4 56 7 8 91011>>