OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:getResources
(Results
176 - 200
of
2117
) sorted by null
1
2
3
4
5
6
7
8
9
10
11
>>
/external/robolectric/src/test/java/com/xtremelabs/robolectric/
RobolectricTest.java
145
assertThat(new Activity().
getResources
().getDisplayMetrics().density, equalTo(1.0f));
147
assertThat(new Activity().
getResources
().getDisplayMetrics().density, equalTo(1.5f));
152
assertThat(new Activity().
getResources
().getDisplayMetrics().widthPixels, equalTo(480));
153
assertThat(new Activity().
getResources
().getDisplayMetrics().heightPixels, equalTo(800));
161
assertThat(new Activity().
getResources
().getDisplayMetrics().widthPixels, equalTo(100));
162
assertThat(new Activity().
getResources
().getDisplayMetrics().heightPixels, equalTo(200));
/packages/apps/Launcher3/src/com/android/launcher3/
LauncherAppState.java
79
if (sContext.
getResources
().getBoolean(R.bool.debug_memory_enabled)) {
84
mIsScreenLarge = isScreenLarge(sContext.
getResources
());
85
mScreenDensity = sContext.
getResources
().getDisplayMetrics().density;
190
context.
getResources
(),
198
grid.updateFromConfiguration(context, context.
getResources
(), width, height,
216
return context.
getResources
().getConfiguration().orientation ==
/cts/tests/tests/widget/src/android/widget/cts/
LinearLayoutTest.java
59
XmlPullParser parser = mContext.
getResources
().getXml(R.layout.linearlayout_layout);
158
assertEquals(mContext.
getResources
().getString(R.string.horizontal_text_1),
160
assertEquals(mContext.
getResources
().getString(R.string.horizontal_text_2),
162
assertEquals(mContext.
getResources
().getString(R.string.horizontal_text_3),
182
// XmlPullParser parser = mContext.
getResources
().getXml(R.layout.linearlayout_layout);
243
assertEquals(mContext.
getResources
().getString(R.string.horizontal_text_1),
245
assertEquals(mContext.
getResources
().getString(R.string.horizontal_text_2),
247
assertEquals(mContext.
getResources
().getString(R.string.horizontal_text_3),
300
assertEquals(mContext.
getResources
().getString(R.string.vertical_text_1),
302
assertEquals(mContext.
getResources
().getString(R.string.vertical_text_2)
[
all
...]
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);
/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
54
final Resources res = context.
getResources
();
78
final Resources res = context.
getResources
();
122
if (icon.number > 0 && mContext.
getResources
().getBoolean(
125
mNumberBackground = getContext().
getResources
().getDrawable(
186
r = context.
getResources
();
243
final int tooBig = mContext.
getResources
().getInteger(
246
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/services/Telephony/src/com/android/phone/
NetworkSetting.java
289
dialog.setMessage(
getResources
().getString(R.string.register_automatically));
296
dialog.setMessage(
getResources
().getString(R.string.load_networks_progress));
322
mNetworkSelectMsg =
getResources
().getString(R.string.register_on_network, networkStr);
330
String status =
getResources
().getString(R.string.network_query_error);
344
status =
getResources
().getString(R.string.not_allowed);
346
status =
getResources
().getString(R.string.connect_later);
355
String status =
getResources
().getString(R.string.registration_done);
/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) + " " +
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
BitmapFactoryTest.java
22
Bitmap bitmap = BitmapFactory.decodeResource(Robolectric.application.
getResources
(), R.drawable.an_image);
31
Bitmap bitmap = BitmapFactory.decodeResource(Robolectric.application.
getResources
(), R.drawable.an_image, opts);
60
Bitmap bitmap = BitmapFactory.decodeResource(Robolectric.application.
getResources
(), R.drawable.an_image);
71
Bitmap bitmap = BitmapFactory.decodeResource(Robolectric.application.
getResources
(), R.drawable.an_image, opts);
83
Bitmap bitmap = BitmapFactory.decodeResource(Robolectric.application.
getResources
(), R.drawable.an_image, options);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
HeadsUpNotificationView.java
63
mTouchSensitivityDelay =
getResources
().getInteger(R.integer.heads_up_sensitivity_delay);
125
float densityScale =
getResources
().getDisplayMetrics().density;
129
int minHeight =
getResources
().getDimensionPixelSize(R.dimen.notification_row_min_height);
130
int maxHeight =
getResources
().getDimensionPixelSize(R.dimen.notification_row_max_height);
169
float densityScale =
getResources
().getDisplayMetrics().density;
/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) + " " +
/libcore/libdvm/src/main/java/java/lang/
ClassLoader.java
155
return SystemClassLoader.loader.
getResources
(resName);
410
public Enumeration<URL>
getResources
(String resName) throws IOException {
412
Enumeration first = parent.
getResources
(resName);
709
* It is required for the
getResources
() methods. Items are fetched from the
772
return Collections.enumeration(VMClassLoader.
getResources
(resName));
828
public Enumeration<URL>
getResources
(String resName) throws IOException {
/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);
/development/samples/devbytes/animation/SlidingFragments/src/com/example/android/slidingfragments/
SlidingFragments.java
151
movingFragmentRotator.setStartDelay(
getResources
().
183
getResources
().getInteger(R.integer.half_slide_up_down_duration));
187
s.setStartDelay(
getResources
().getInteger(R.integer.slide_up_down_duration));
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowContext.java
46
return realContext.
getResources
().getString(resId);
51
return realContext.
getResources
().getText(resId);
56
return realContext.
getResources
().getString(resId, formatArgs);
/frameworks/base/core/java/android/app/
Presentation.java
202
public Resources
getResources
() {
203
return getContext().
getResources
();
284
return dm.equalsPhysical(
getResources
().getDisplayMetrics());
/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/DeskClock/src/com/android/deskclock/stopwatch/
Stopwatches.java
64
String [] mLabels = context.
getResources
().getStringArray(R.array.sw_share_strings);
117
formats = context.
getResources
().getStringArray(R.array.shared_laps_format_set);
119
formats = context.
getResources
().getStringArray(R.array.stopwatch_format_set);
/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/apps/UnifiedEmail/src/com/android/mail/browse/
ConversationPagerController.java
120
mPagerAdapter = new ConversationPagerAdapter(mPager.
getResources
(), mFragmentManager,
219
final int padding = c.
getResources
().getDimensionPixelOffset(
222
c.
getResources
().getColor(R.color.conversation_view_border_color));
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DictionaryFactory.java
102
context.
getResources
(), locale);
104
afd = context.
getResources
().openRawResourceFd(resId);
159
final Resources res = context.
getResources
();
Completed in 2453 milliseconds
1
2
3
4
5
6
7
8
9
10
11
>>