/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/media/ |
D | MediaResourceManagerTest.java | 121 final FakeImageResource resource = mediaResourceManager.requestMediaResourceSync(request); in testLoadImageSynchronously() local 122 assertNotNull(resource); in testLoadImageSynchronously() 123 assertFalse(resource.isClosed()); in testLoadImageSynchronously() 124 assertNotSame(0, resource.getRefCount()); in testLoadImageSynchronously() 125 resource.release(); in testLoadImageSynchronously() 154 final FakeImageResource resource, final boolean isCached) { in createAssertListener() 156 assertNotNull(resource); in createAssertListener() 157 assertFalse(resource.isClosed()); in createAssertListener() 158 assertNotSame(0, resource.getRefCount()); in createAssertListener() 160 assertEquals(shouldBeCached, resource.getCached()); in createAssertListener() [all …]
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/ |
D | ScrollArrayAdapter.java | 36 public ScrollArrayAdapter(Context context, int resource, int textViewResourceId) { in ScrollArrayAdapter() argument 37 super(context, resource, textViewResourceId); in ScrollArrayAdapter() 38 mLayoutResource = resource; in ScrollArrayAdapter() 45 public ScrollArrayAdapter(Context context, int resource, int textViewResourceId, in ScrollArrayAdapter() argument 47 super(context, resource, textViewResourceId, objects); in ScrollArrayAdapter() 48 mLayoutResource = resource; in ScrollArrayAdapter() 55 public ScrollArrayAdapter(Context context, int resource, int textViewResourceId, in ScrollArrayAdapter() argument 57 super(context, resource, textViewResourceId, objects); in ScrollArrayAdapter() 58 mLayoutResource = resource; in ScrollArrayAdapter()
|
D | BitmapWorkerOptions.java | 105 public Builder resource(String packageName, String resourceName) { in resource() method in BitmapWorkerOptions.Builder 111 public Builder resource(ShortcutIconResource iconResource) { in resource() method in BitmapWorkerOptions.Builder 117 public Builder resource(Uri resourceUri) { in resource() method in BitmapWorkerOptions.Builder
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/ |
D | UriImageRequest.java | 41 final ImageResource resource = super.loadMediaInternal(chainedTasks); in loadMediaInternal() local 46 resource.getMediaEncodingRequest(this); in loadMediaInternal() 51 if (resource instanceof DecodedImageResource) { in loadMediaInternal() 52 ((DecodedImageResource) resource).setCacheable(false); in loadMediaInternal() 56 return resource; in loadMediaInternal()
|
D | MediaResourceManager.java | 94 void onMediaResourceLoaded(MediaRequest<T> request, T resource, boolean cached); in onMediaResourceLoaded() argument 205 final T resource = mediaRequest.loadMediaBlocking(chainedRequests); in loadMediaFromRequest() local 208 Assert.notNull(resource); in loadMediaFromRequest() 215 resource.addRef(); in loadMediaFromRequest() 217 if (resource.isCacheable()) { in loadMediaFromRequest() 218 addResourceToMemoryCache(mediaRequest, resource); in loadMediaFromRequest() 220 return resource; in loadMediaFromRequest()
|
D | CompositeImageRequest.java | 66 final ImageResource resource = in loadMediaInternal() local 68 if (resource != null) { in loadMediaInternal() 73 final Bitmap resourceBitmap = resource.getBitmap(); in loadMediaInternal() 82 ImageUtils.drawBitmapWithCircleOnCanvas(resource.getBitmap(), smallCircleCanvas, in loadMediaInternal() 92 resource.release(); in loadMediaInternal()
|
D | BindableMediaRequest.java | 41 public void onMediaResourceLoaded(final MediaRequest<T> request, final T resource, in onMediaResourceLoaded() argument 44 mListener.onMediaResourceLoaded(request, resource, cached); in onMediaResourceLoaded()
|
/packages/apps/Camera2/src/com/android/camera/captureintent/resource/ |
D | ResourceCaptureToolsImpl.java | 17 package com.android.camera.captureintent.resource; 153 final ResourceConstructed resource = mResourceConstructed.get(); in takePictureNow() local 160 resource.getMainThread().execute(new Runnable() { in takePictureNow() 163 resource.getModuleUI().setShutterButtonEnabled(false); in takePictureNow() 171 resource.getLocationManager().getCurrentLocation(); in takePictureNow() 177 final SettingsManager settingsManager = resource.getSettingsManager(); in takePictureNow() 195 resource.getOrientationManager().getDeviceOrientation().getDegrees(), in takePictureNow() 197 resource.getContext().getExternalCacheDir(), in takePictureNow()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ |
D | ImageFilterRS.java | 183 public Allocation loadScaledResourceAlpha(int resource, int inSampleSize) { in loadScaledResourceAlpha() argument 189 resource, options); in loadScaledResourceAlpha() 195 public Allocation loadScaledResourceAlpha(int resource, int w, int h, int inSampleSize) { in loadScaledResourceAlpha() argument 201 resource, options); in loadScaledResourceAlpha() 209 public Allocation loadResourceAlpha(int resource) { in loadResourceAlpha() argument 210 return loadScaledResourceAlpha(resource, 1); in loadResourceAlpha() 213 public Allocation loadResource(int resource) { in loadResource() argument 219 resource, options); in loadResource()
|
D | IconUtilities.java | 47 public static Bitmap loadBitmap(Resources res, int resource) { in loadBitmap() argument 53 resource, options); in loadBitmap()
|
/packages/apps/Messaging/src/com/android/messaging/ui/ |
D | AsyncImageView.java | 177 protected void setImage(final ImageResource resource) { in setImage() argument 178 setImage(resource, false /* isCached */); in setImage() 181 protected void setImage(final ImageResource resource, final boolean isCached) { in setImage() argument 190 final Drawable drawable = (resource != null) ? resource.getDrawable(getResources()) : null; in setImage() 192 mImageResource = resource; in setImage() 234 final ImageResource resource, final boolean isCached) { in onMediaResourceLoaded() argument 235 if (mImageResource != resource) { in onMediaResourceLoaded() 236 setImage(resource, isCached); in onMediaResourceLoaded()
|
/packages/apps/Settings/src/com/android/settings/datausage/ |
D | DataUsageSummary.java | 388 SearchIndexableResource resource = new SearchIndexableResource(context); 389 resource.xmlResId = R.xml.data_usage; 390 resources.add(resource); 393 resource = new SearchIndexableResource(context); 394 resource.xmlResId = R.xml.data_usage_cellular; 395 resources.add(resource); 398 resource = new SearchIndexableResource(context); 399 resource.xmlResId = R.xml.data_usage_wifi; 400 resources.add(resource);
|
/packages/apps/Camera2/src/com/android/camera/captureintent/state/ |
D | StateForeground.java | 23 import com.android.camera.captureintent.resource.ResourceConstructed; 24 import com.android.camera.captureintent.resource.ResourceSurfaceTexture; 25 import com.android.camera.captureintent.resource.ResourceSurfaceTextureImpl; 26 import com.android.camera.captureintent.resource.ResourceSurfaceTextureNexus4Impl;
|
D | StateBackground.java | 23 import com.android.camera.captureintent.resource.ResourceConstructed; 24 import com.android.camera.captureintent.resource.ResourceSurfaceTexture; 25 import com.android.camera.captureintent.resource.ResourceSurfaceTextureImpl; 26 import com.android.camera.captureintent.resource.ResourceSurfaceTextureNexus4Impl;
|
D | StateStartingPreview.java | 25 import com.android.camera.captureintent.resource.ResourceConstructed; 26 import com.android.camera.captureintent.resource.ResourceOpenedCamera; 27 import com.android.camera.captureintent.resource.ResourceOpenedCameraImpl; 28 import com.android.camera.captureintent.resource.ResourceSurfaceTexture;
|
D | StateBackgroundWithSurfaceTexture.java | 23 import com.android.camera.captureintent.resource.ResourceConstructed; 24 import com.android.camera.captureintent.resource.ResourceSurfaceTexture;
|
D | StateForegroundWithSurfaceTexture.java | 20 import com.android.camera.captureintent.resource.ResourceConstructed; 21 import com.android.camera.captureintent.resource.ResourceSurfaceTexture;
|
/packages/apps/Camera2/src/com/android/camera/data/ |
D | GlideFilmstripManager.java | 38 import com.bumptech.glide.load.resource.bitmap.BitmapEncoder; 39 import com.bumptech.glide.load.resource.drawable.GlideDrawable; 40 import com.bumptech.glide.load.resource.gif.GifResourceEncoder; 41 import com.bumptech.glide.load.resource.gifbitmap.GifBitmapWrapperResourceEncoder; 42 import com.bumptech.glide.load.resource.transcode.BitmapToGlideDrawableTranscoder;
|
/packages/apps/Messaging/src/com/android/messaging/ui/photoviewer/ |
D | BuglePhotoBitmapLoader.java | 171 private void setImageResource(final ImageResource resource) { in setImageResource() argument 172 if (mImageResource != resource) { in setImageResource() 175 mImageResource = resource; in setImageResource()
|
/packages/apps/UnifiedEmail/src/com/android/mail/drawer/ |
D | HeaderDrawerItem.java | 30 HeaderDrawerItem(ControllableActivity activity, int resource) { in HeaderDrawerItem() argument 32 mResource = resource; in HeaderDrawerItem()
|
/packages/apps/Messaging/src/com/android/messaging/widget/ |
D | BaseWidgetFactory.java | 218 private void setAvatarResource(final ImageResource resource) { 219 if (mAvatarResource != resource) { 222 mAvatarResource = resource;
|
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/ |
D | AlbumDataAdapter.java | 49 int resource, List<PhotoSource.AlbumData> objects) { in AlbumDataAdapter() argument 50 super(context, resource, objects); in AlbumDataAdapter() 52 mLayout = resource; in AlbumDataAdapter()
|
/packages/apps/Settings/src/com/android/settings/applications/ |
D | LayoutPreference.java | 51 public LayoutPreference(Context context, int resource) { in LayoutPreference() argument 52 this(context, LayoutInflater.from(context).inflate(resource, null, false)); in LayoutPreference()
|
/packages/apps/Settings/src/com/android/settings/ |
D | SettingsPreferenceFragment.java | 267 protected void setHeaderView(int resource) { in setHeaderView() argument 268 mHeader = new LayoutPreference(getPrefContext(), resource); in setHeaderView() 284 protected void setFooterView(int resource) { in setFooterView() argument 285 setFooterView(resource != 0 ? new LayoutPreference(getPrefContext(), resource) : null); in setFooterView()
|
/packages/apps/Messaging/src/com/android/messaging/ui/contact/ |
D | ContactRecipientPhotoManager.java | 74 final ImageResource resource, final boolean isCached) { in populatePhotoBytesAsync() 75 entry.setPhotoBytes(resource.getBytes()); in populatePhotoBytesAsync()
|