/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);
|
/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/droiddriver/src/com/google/android/droiddriver/finders/ |
By.java | 99 * @param resourceId The resource id to match against 102 public static ByAttribute<String> resourceId(String resourceId) { 103 return attribute(Attribute.RESOURCE_ID, OBJECT_EQUALS, resourceId);
|
/cts/tests/tests/holo/src/android/holo/cts/ |
BitmapAssets.java | 98 int resourceId = resources.getIdentifier(bitmapName, "drawable", context.getPackageName()); 99 return ((BitmapDrawable) resources.getDrawable(resourceId)).getBitmap();
|
/external/chromium_org/third_party/WebKit/Source/devtools/front_end/ |
CanvasReplayStateView.js | 60 /** @type {?CanvasAgent.ResourceId} */ 88 * @param {string} resourceId 90 selectResource: function(resourceId) 92 if (resourceId === this._resourceSelector.selectedOption().value) 96 if (resourceId === option.value) { 221 var resourceId = argument.resourceId; 222 if (!resourceId || this._resourceIdToDescription[resourceId]) 224 this._resourceIdToDescription[resourceId] = argument.description [all...] |
/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/chromium_org/content/public/android/java/src/org/chromium/content/browser/input/ |
SelectPopupDialog.java | 109 int resourceId; 112 resourceId = styledAttributes.getResourceId(isMultiChoice ? 0 : 1, 0); 114 return 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...] |
/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...] |
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
PackageIconLoader.java | 103 int resourceId = Integer.parseInt(drawableId); 105 Drawable icon = mPackageContext.getResources().getDrawable(resourceId); 130 int resourceId = Integer.parseInt(drawableId); 131 return Util.getResourceUri(mPackageContext, resourceId);
|
/development/samples/ApiDemos/src/com/example/android/apis/accessibility/ |
ClockBackService.java | 248 int resourceId = message.arg1; 249 playEarcon(resourceId); 380 int resourceId = (feedbackIndex == INDEX_SCREEN_ON) ? R.string.template_screen_on 382 String template = mContext.getString(resourceId); 565 Integer resourceId = sSoundsResourceIds.get(earconId); 566 if (resourceId != null) { 568 mTts.addEarcon(earconName, getPackageName(), resourceId);
|
/frameworks/base/core/java/android/util/ |
TypedValue.java | 170 public int resourceId; 472 resourceId = other.resourceId; 487 if (resourceId != 0) { 488 sb.append(" r=0x").append(Integer.toHexString(resourceId));
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
DictionaryInfoUtils.java | 260 int resourceId = getMainDictionaryResourceIdIfAvailableForLocale(res, locale); 261 if (0 != resourceId) return resourceId; 342 final int resourceId = 345 if (0 == resourceId) continue; 347 BinaryDictionaryGetter.loadFallbackResource(context, resourceId);
|
/external/chromium_org/third_party/WebKit/Source/core/svg/ |
SVGElement.cpp | 149 String resourceId = getIdAttribute(); 150 if (!extensions->hasPendingResource(resourceId)) 154 extensions->markPendingResourcesForRemoval(resourceId); 157 while (Element* clientElement = extensions->removeElementFromPendingResourcesForRemoval(resourceId)) { [all...] |
/frameworks/base/services/java/com/android/server/power/ |
ShutdownThread.java | 119 final int resourceId = mRebootSafeMode 136 .setMessage(resourceId)
|
/frameworks/testing/uiautomator/library/core-src/com/android/uiautomator/core/ |
UiSelector.java | 287 public UiSelector resourceId(String id) { [all...] |
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
ContactDirectoryManager.java | 141 int resourceId = cursor.getInt(0); 142 if (resourceId != 0) { 145 String resourceName = getResourceNameById(packageName, resourceId); 162 private String getResourceNameById(String packageName, int resourceId) { 165 return resources.getResourceName(resourceId);
|
/cts/tests/tests/content/src/android/content/pm/cts/ |
PackageManagerTest.java | 452 int resourceId = R.xml.pm_test; 455 assertNotNull(mPackageManager.getXml(PACKAGE_NAME, resourceId, appInfo)); 457 .getResourceName(resourceId)); 459 resourceId)); 461 .getResourceName(resourceId));
|
/frameworks/base/core/java/android/widget/ |
SuggestionsAdapter.java | 373 mUrlColor = mContext.getResources().getColorStateList(colorValue.resourceId); 522 int resourceId = Integer.parseInt(drawableId); 525 + "://" + mProviderContext.getPackageName() + "/" + resourceId; 532 drawable = mProviderContext.getResources().getDrawable(resourceId);
|
/frameworks/ex/common/java/com/android/common/contacts/ |
BaseEmailAddressAdapter.java | 387 int resourceId = directoryCursor.getInt(DirectoryListQuery.TYPE_RESOURCE_ID); 388 if (packageName != null && resourceId != 0) { 392 partition.directoryType = resources.getString(resourceId); 395 + resourceId + "@" + packageName); 399 + resourceId + "@" + packageName, e);
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
SuggestionsAdapter.java | 333 mUrlColor = mContext.getResources().getColorStateList(colorValue.resourceId); 482 int resourceId = Integer.parseInt(drawableId); 485 + "://" + mProviderContext.getPackageName() + "/" + resourceId; 492 drawable = mProviderContext.getResources().getDrawable(resourceId);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
KeyboardBuilder.java | 294 final int resourceId = keyboardAttr.getResourceId( 296 if (resourceId != 0) { 297 final String[] data = mResources.getStringArray(resourceId); [all...] |
/frameworks/base/core/java/com/android/internal/widget/multiwaveview/ |
MultiWaveView.java | 222 a.peekValue(R.styleable.MultiWaveView_handleDrawable).resourceId); 225 a.peekValue(R.styleable.MultiWaveView_waveDrawable).resourceId); 231 ArrayList<TargetDrawable> chevrons = loadDrawableArray(outValue.resourceId); 242 internalSetTargetResources(outValue.resourceId); 250 final int resourceId = outValue.resourceId; 251 if (resourceId == 0) { 254 setTargetDescriptionsResourceId(resourceId); 259 final int resourceId = outValue.resourceId; [all...] |