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
137
) sorted by null
1
2
3
4
5
6
/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);
/external/robolectric/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
14
public float getValue(int
resourceId
) {
15
return dimenResolver.getValue(resourceExtractor.getResourceName(
resourceId
));
StringResourceLoader.java
12
public String getValue(int
resourceId
) {
13
return stringResolver.getValue(resourceExtractor.getResourceName(
resourceId
));
RawResourceLoader.java
18
public InputStream getValue(int
resourceId
) {
19
String resourceFileName = resourceExtractor.getResourceName(
resourceId
);
StringArrayResourceLoader.java
24
public String[] getArrayValue(int
resourceId
) {
25
String resourceName = resourceExtractor.getResourceName(
resourceId
);
DrawableResourceLoader.java
58
* @param
resourceId
Resource id
61
public boolean isXml(int
resourceId
) {
62
return documents.containsKey(resourceExtractor.getResourceName(
resourceId
));
130
* @param
resourceId
Resource id
133
protected int[] getDrawableIds(int
resourceId
) {
134
String resourceName = resourceExtractor.getResourceName(
resourceId
);
155
public boolean isAnimationDrawable(int
resourceId
) {
156
Document document = documents.get(resourceExtractor.getResourceName(
resourceId
));
/external/robolectric/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
= com.android.cts.stub.R.string.notify;
43
resourceId
);
45
resourceId
);
53
resourceId
);
55
resourceId
);
/external/robolectric/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/ex/chips/src/com/android/ex/chips/
SingleRecipientArrayAdapter.java
33
public SingleRecipientArrayAdapter(Context context, int
resourceId
, RecipientEntry entry) {
34
super(context,
resourceId
, new RecipientEntry[] {
38
mLayoutId =
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);
/frameworks/base/core/java/android/gesture/
GestureLibraries.java
47
public static GestureLibrary fromRawResource(Context context, int
resourceId
) {
48
return new ResourceGestureLibrary(context,
resourceId
);
112
public ResourceGestureLibrary(Context context, int
resourceId
) {
114
mResourceId =
resourceId
;
/frameworks/base/core/java/android/text/style/
ImageSpan.java
113
public ImageSpan(Context context, int
resourceId
) {
114
this(context,
resourceId
, ALIGN_BOTTOM);
121
public ImageSpan(Context context, int
resourceId
, int verticalAlignment) {
124
mResourceId =
resourceId
;
/packages/apps/Contacts/src/com/android/contacts/util/
ThemeUtils.java
32
return outValue.
resourceId
;
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
PhotoLoadingTestCase.java
89
protected byte[] loadPhotoFromResource(int
resourceId
, PhotoSize size) {
90
PhotoEntry entry = photoResourceCache.get(
resourceId
);
93
InputStream is = resources.openRawResource(
resourceId
);
96
photoResourceCache.put(
resourceId
, entry);
PhotoStoreTest.java
125
* @param
resourceId
The resource ID of the photo file to test.
127
public void runStorageTestForResource(int
resourceId
, int expectedWidth,
129
byte[] photo = loadPhotoFromResource(
resourceId
, PhotoSize.ORIGINAL);
137
byte[] expectedStoredVersion = loadPhotoFromResource(
resourceId
, PhotoSize.DISPLAY_PHOTO);
157
public void runStorageTestForResourceWithCrop(int
resourceId
, int expectedWidth,
159
byte[] photo = loadPhotoFromResource(
resourceId
, PhotoSize.ORIGINAL);
203
for (int
resourceId
: resourceIds) {
205
new PhotoProcessor(loadPhotoFromResource(
resourceId
, PhotoSize.ORIGINAL),
207
resourceIdToPhotoMap.put(
resourceId
, photoFileId);
/frameworks/base/core/java/android/view/
PointerIcon.java
131
int
resourceId
= a.getResourceId(styleIndex, -1);
134
if (
resourceId
== -1) {
140
if ((
resourceId
& 0xff000000) == 0x01000000) {
141
icon.mSystemIconResourceId =
resourceId
;
143
icon.loadResource(context.getResources(),
resourceId
);
188
* @param
resourceId
The resource id.
195
public static PointerIcon loadCustomIcon(Resources resources, int
resourceId
) {
201
icon.loadResource(resources,
resourceId
);
376
private void loadResource(Resources resources, int
resourceId
) {
377
XmlResourceParser parser = resources.getXml(
resourceId
);
[
all
...]
/developers/samples/android/ui/actionbarcompat/ActionBarCompat-ShareActionProvider/ActionBarCompat-ShareActionProviderSample/src/main/java/com/example/android/actionbarcompat/shareactionprovider/content/
ContentItem.java
42
* @param
resourceId
- Resource ID to use for this item's content
44
public ContentItem(int type, int
resourceId
) {
46
contentResourceId =
resourceId
;
/development/samples/browseable/ShareActionProvider/src/com.example.android.actionbarcompat.shareactionprovider/content/
ContentItem.java
42
* @param
resourceId
- Resource ID to use for this item's content
44
public ContentItem(int type, int
resourceId
) {
46
contentResourceId =
resourceId
;
/frameworks/base/media/mca/filterfw/java/android/filterfw/io/
GraphReader.java
41
public FilterGraph readGraphResource(Context context, int
resourceId
) throws GraphIOException {
42
InputStream inputStream = context.getResources().openRawResource(
resourceId
);
/external/robolectric/src/main/java/com/xtremelabs/robolectric/tester/android/util/
TestAttributeSet.java
127
public boolean getAttributeBooleanValue(int
resourceId
, boolean defaultValue) {
134
Integer
resourceId
= defaultValue;
136
resourceId
= resourceExtractor.getResourceId(value);
138
return
resourceId
== null ? defaultValue :
resourceId
;
142
public int getAttributeResourceValue(int
resourceId
, int defaultValue) {
143
String attrName = resourceExtractor.getResourceName(
resourceId
);
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
TypedValueTest.java
66
expectedValue.
resourceId
= 5;
76
assertThat(expectedValue.
resourceId
, equalTo(actualValue.
resourceId
));
/packages/apps/Gallery2/src/com/android/gallery3d/data/
ActionImage.java
36
public ActionImage(Path path, GalleryApp application, int
resourceId
) {
39
mResourceId =
resourceId
;
Completed in 618 milliseconds
1
2
3
4
5
6