OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:resourceId
(Results
1 - 25
of
380
) sorted by null
1
2
3
4
5
6
7
8
9
10
11
>>
/development/samples/devbytes/animation/ActivityAnimations/src/com/example/android/activityanim/
PictureData.java
22
int
resourceId
;
26
public PictureData(int
resourceId
, String description, Bitmap thumbnail) {
27
this.
resourceId
=
resourceId
;
BitmapUtils.java
62
int
resourceId
= mPhotos[(int) (Math.random() * mPhotos.length)];
63
Bitmap bitmap = getBitmap(resources,
resourceId
);
66
pictures.add(new PictureData(
resourceId
, description, thumbnail));
75
static Bitmap getBitmap(Resources resources, int
resourceId
) {
76
Bitmap bitmap = sBitmapResourceMap.get(
resourceId
);
78
bitmap = BitmapFactory.decodeResource(resources,
resourceId
);
79
sBitmapResourceMap.put(
resourceId
, bitmap);
/packages/services/Telephony/src/com/android/services/telephony/
DisconnectCauseUtil.java
167
Integer
resourceId
= null;
170
resourceId
= R.string.callFailed_userBusy;
174
resourceId
= R.string.callFailed_congestion;
178
resourceId
= R.string.callFailed_timedOut;
182
resourceId
= R.string.callFailed_server_unreachable;
186
resourceId
= R.string.callFailed_number_unreachable;
190
resourceId
= R.string.callFailed_invalid_credentials;
194
resourceId
= R.string.callFailed_server_error;
198
resourceId
= R.string.callFailed_out_of_network;
203
resourceId
= R.string.callFailed_noSignal
[
all
...]
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/res/
IntegerResourceLoader.java
13
public int getValue( int
resourceId
) {
14
final String resourceIdDebugString = String.valueOf(
resourceId
) + " (" + "0x" + Integer.toHexString(
resourceId
) + ")";
15
String resourceName = resourceExtractor.getResourceName(
resourceId
);
17
throw new IllegalArgumentException("No such resource: " +
resourceId
);
28
Integer
resourceId
= resourceExtractor.getResourceId(resourceName, isSystem);
32
return getValue(
resourceId
);
DimenResourceLoader.java
15
public float getValue(int
resourceId
) {
16
return dimenResolver.getValue(resourceExtractor.getResourceName(
resourceId
));
StringResourceLoader.java
12
public String getValue(int
resourceId
) {
13
return stringResolver.getValue(resourceExtractor.getResourceName(
resourceId
));
/packages/apps/Camera2/src/com/android/camera/
SoundPlayer.java
49
public void loadSound(int
resourceId
) {
50
int soundId = mSoundPool.load(mAppContext,
resourceId
, 1/* priority */);
51
mResourceToSoundId.put(
resourceId
, soundId);
58
public void play(int
resourceId
, float volume) {
59
Integer soundId = mResourceToSoundId.get(
resourceId
);
69
public void unloadSound(int
resourceId
) {
70
Integer soundId = mResourceToSoundId.get(
resourceId
);
/developers/samples/android/ui/transition/AdapterTransition/Application/src/main/java/com/example/android/adaptertransition/
Meat.java
24
public int
resourceId
;
27
public Meat(int
resourceId
, String title) {
28
this.
resourceId
=
resourceId
;
MeatAdapter.java
43
* @param
resourceId
The resource ID for the layout to be used. The layout should contain an
46
public MeatAdapter(LayoutInflater inflater, int
resourceId
) {
48
mResourceId =
resourceId
;
63
return Meat.MEATS[position].
resourceId
;
82
holder.image.setImageResource(meat.
resourceId
);
/developers/samples/android/ui/transition/FragmentTransition/Application/src/main/java/com/example/android/fragmenttransition/
Meat.java
24
public int
resourceId
;
27
public Meat(int
resourceId
, String title) {
28
this.
resourceId
=
resourceId
;
MeatAdapter.java
31
public MeatAdapter(LayoutInflater inflater, int
resourceId
) {
33
mResourceId =
resourceId
;
48
return Meat.MEATS[position].
resourceId
;
72
holder.image.setImageResource(meat.
resourceId
);
/packages/apps/Dialer/src/com/android/dialer/widget/
EmptyContentView.java
72
public void setDescription(int
resourceId
) {
73
if (
resourceId
== NO_LABEL) {
77
mDescriptionView.setText(
resourceId
);
82
public void setImage(int
resourceId
) {
83
if (
resourceId
== NO_LABEL) {
87
mImageView.setImageResource(
resourceId
);
92
public void setActionLabel(int
resourceId
) {
93
if (
resourceId
== NO_LABEL) {
97
mActionView.setText(
resourceId
);
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/bots/
BaseBot.java
59
protected UiObject findObject(String
resourceId
) {
60
final UiSelector object = new UiSelector().
resourceId
(
resourceId
);
66
.
resourceId
(parentResourceId)
67
.childSelector(new UiSelector().
resourceId
(childResourceId));
/external/sl4a/ScriptingLayerForAndroid/src/com/googlecode/android_scripting/
ScriptListAdapter.java
68
int
resourceId
;
70
resourceId
= R.drawable.folder;
72
resourceId
= FeaturedInterpreters.getInterpreterIcon(mContext, script.getName());
73
if (
resourceId
== 0) {
74
resourceId
= R.drawable.sl4a_logo_32;
77
icon.setImageResource(
resourceId
);
/frameworks/support/compat/api24/android/support/v4/view/
PointerIconCompatApi24.java
33
public static Object load(Resources resources, int
resourceId
) {
34
return PointerIcon.load(resources,
resourceId
);
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowImageView.java
23
private int
resourceId
;
53
this.
resourceId
= resId;
60
* @param
resourceId
Resource id
63
protected Drawable buildDrawable(int
resourceId
) {
64
if (isDrawableXml(
resourceId
)) {
66
int[] resourceIds = resourceLoader.getDrawableIds(
resourceId
);
72
if (resourceLoader.isAnimatableXml(
resourceId
)) {
80
shadowOf(layerDrawable).setLoadedFromResourceId(
resourceId
);
85
getResources(),
resourceId
));
92
* @param
resourceId
Resource i
[
all
...]
/cts/tests/tests/content/src/android/content/cts/
Intent_ShortcutIconResourceTest.java
32
final int
resourceId
= android.content.cts.R.string.notify;
43
resourceId
);
45
resourceId
);
53
resourceId
);
55
resourceId
);
/external/opencv3/modules/java/generator/src/java/
android+Utils.java
19
public static String exportResource(Context context, int
resourceId
) {
20
return exportResource(context,
resourceId
, "OpenCV_data");
23
public static String exportResource(Context context, int
resourceId
, String dirname) {
24
String fullname = context.getResources().getString(
resourceId
);
27
InputStream is = context.getResources().openRawResource(
resourceId
);
49
public static Mat loadResource(Context context, int
resourceId
) throws IOException
51
return loadResource(context,
resourceId
, -1);
54
public static Mat loadResource(Context context, int
resourceId
, int flags) throws IOException
56
InputStream is = context.getResources().openRawResource(
resourceId
);
/frameworks/data-binding/extensions/baseAdapters/src/main/java/android/databinding/adapters/
ObservableListAdapter.java
38
public ObservableListAdapter(Context context, List<T> list, int
resourceId
,
41
mResourceId =
resourceId
;
44
mLayoutInflater = (
resourceId
== 0) ? null :
120
public View getViewForResource(int
resourceId
, int position, View convertView,
123
if (
resourceId
== 0) {
126
convertView = mLayoutInflater.inflate(
resourceId
, parent, false);
/frameworks/support/compat/java/android/support/v4/view/
PointerIconCompat.java
119
Object load(Resources resources, int
resourceId
);
134
public Object load(Resources resources, int
resourceId
) {
151
public Object load(Resources resources, int
resourceId
) {
152
return PointerIconCompatApi24.load(resources,
resourceId
);
210
* @param
resourceId
The resource id.
217
public static PointerIconCompat load(Resources resources, int
resourceId
) {
218
return new PointerIconCompat(IMPL.load(resources,
resourceId
));
/frameworks/base/libs/androidfw/tests/
TestHelpers.cpp
25
::testing::AssertionResult IsStringEqual(const ResTable& table, uint32_t
resourceId
, const char* expectedStr) {
27
ssize_t block = table.getResource(
resourceId
, &val, MAY_NOT_BE_BAG);
/frameworks/ex/framesequence/samples/FrameSequenceSamples/src/com/android/framesequence/samples/
SamplesList.java
36
static Map<String,?> makeSample(String name, Class<?> activity, int
resourceId
) {
40
ret.put(KEY_RESOURCE,
resourceId
);
61
int
resourceId
= ((Integer) SAMPLES.get(position).get(KEY_RESOURCE)).intValue();
64
intent.putExtra("
resourceId
",
resourceId
);
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/matchers/
ImageViewHasDrawableMatcher.java
35
private String nameOrUnset(ResourceLoader resourceLoader, int
resourceId
) {
36
return
resourceId
== 0 ? "unset" : resourceLoader.getNameForId(
resourceId
);
/frameworks/base/core/tests/coretests/src/android/view/
InflateTest.java
58
public void inflateTest(int
resourceId
) {
59
mView = mInflater.inflate(
resourceId
, null);
63
public void inflateCachedTest(int
resourceId
) {
65
mInflater.inflate(
resourceId
, null);
67
mInflater.inflate(
resourceId
, null);
/external/droiddriver/src/io/appium/droiddriver/finders/
By.java
51
public static MatchFinder
resourceId
(int
resourceId
) {
53
return
resourceId
(targetContext.getResources().getResourceName(
resourceId
));
60
public static MatchFinder
resourceId
(String
resourceId
) {
61
return new MatchFinder(Predicates.attributeEquals(Attribute.RESOURCE_ID,
resourceId
));
Completed in 612 milliseconds
1
2
3
4
5
6
7
8
9
10
11
>>