/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);
|
/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/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/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;
|
/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/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/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);
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
ActionImage.java | 36 public ActionImage(Path path, GalleryApp application, int resourceId) { 39 mResourceId = resourceId;
|
/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...] |
GlowPadView.java | 228 mHandleDrawable = new TargetDrawable(res, handle != null ? handle.resourceId : 0); 244 internalSetTargetResources(outValue.resourceId); 252 final int resourceId = outValue.resourceId; 253 if (resourceId == 0) { 256 setTargetDescriptionsResourceId(resourceId); 261 final int resourceId = outValue.resourceId; 262 if (resourceId == 0) { 265 setDirectionDescriptionsResourceId(resourceId); [all...] |
/packages/apps/DeskClock/src/com/android/deskclock/widget/multiwaveview/ |
GlowPadView.java | 223 mHandleDrawable = new TargetDrawable(res, handle != null ? handle.resourceId : 0, 2); 238 internalSetTargetResources(outValue.resourceId); 246 final int resourceId = outValue.resourceId; 247 if (resourceId == 0) { 250 setTargetDescriptionsResourceId(resourceId); 255 final int resourceId = outValue.resourceId; 256 if (resourceId == 0) { 259 setDirectionDescriptionsResourceId(resourceId); [all...] |
/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/ |
DictionaryFactory.java | 198 int resourceId = getMainDictionaryResourceIdIfAvailableForLocale(res, locale); 199 if (0 != resourceId) return 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();
|
/cts/tests/tests/widget/src/android/widget/cts/ |
DigitalClockTest.java | 113 private AttributeSet getAttributeSet(int resourceId) { 114 XmlResourceParser parser = mActivity.getResources().getXml(resourceId);
|
/frameworks/base/media/mca/filterfw/java/android/filterfw/ |
GraphEnvironment.java | 128 * @param resourceId The ID of the graph resource to load. 131 public int loadGraph(Context context, int resourceId) { 135 graph = getGraphReader().readGraphResource(context, resourceId);
|
/packages/apps/Email/src/com/android/email/mail/ |
Sender.java | 71 private static Sender findSender(Context context, int resourceId, Account account) 75 XmlResourceParser xml = context.getResources().getXml(resourceId);
|
/cts/tests/tests/util/src/android/util/cts/ |
TypedValueTest.java | 57 tv1.resourceId = 4; 66 assertEquals(4, tv2.resourceId); 119 tv.resourceId = 4; 155 tv.resourceId = 4;
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
ScrollBarView.java | 44 context, outValue.resourceId);
|
/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/policy/src/com/android/internal/policy/impl/keyguard_obsolete/ |
LockScreen.java | 123 // Enable or disable a target. ResourceId is the id of the *drawable* associated with the 125 public void setEnabled(int resourceId, boolean enabled); 128 public int getTargetPosition(int resourceId); 193 public void setEnabled(int resourceId, boolean enabled) { 197 public int getTargetPosition(int resourceId) { 241 public void setEnabled(int resourceId, boolean enabled) { 244 public int getTargetPosition(int resourceId) { 384 public void setEnabled(int resourceId, boolean enabled) { 385 mGlowPadView.setEnableTarget(resourceId, enabled); 388 public int getTargetPosition(int resourceId) { [all...] |