Home
last modified time | relevance | path

Searched refs:resource (Results 1 – 25 of 85) sorted by relevance

1234

/packages/apps/Settings/tests/robotests/src/com/android/settings/search/
DDatabaseIndexingManagerTest.java283 SearchIndexableResource resource = getFakeResource(R.xml.display_settings); in testAddResource_RowsInserted() local
284 mManager.indexOneSearchIndexableData(mDb, localeStr, resource, new HashMap<>()); in testAddResource_RowsInserted()
291 SearchIndexableResource resource = getFakeResource(R.xml.display_settings); in testAddResource_withNIKs_rowsInsertedDisabled() local
296 mManager.indexOneSearchIndexableData(mDb, localeStr, resource, niks); in testAddResource_withNIKs_rowsInsertedDisabled()
306 SearchIndexableResource resource = getFakeResource(R.xml.application_settings); in testAddResourceHeader_rowsMatch() local
307 mManager.indexOneSearchIndexableData(mDb, localeStr, resource, new HashMap<>()); in testAddResourceHeader_rowsMatch()
386 SearchIndexableResource resource = getFakeResource(R.xml.swipe_to_notification_settings); in testAddResource_customSetting_rowsMatch() local
387 mManager.indexOneSearchIndexableData(mDb, localeStr, resource, new HashMap<>()); in testAddResource_customSetting_rowsMatch()
447 SearchIndexableResource resource = getFakeResource(R.xml.application_settings); in testAddResource_checkboxPreference_rowsMatch() local
448 mManager.indexOneSearchIndexableData(mDb, localeStr, resource, new HashMap<>()); in testAddResource_checkboxPreference_rowsMatch()
[all …]
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/media/
DMediaResourceManagerTest.java121 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/
DScrollArrayAdapter.java36 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()
/packages/apps/Camera2/src/com/android/camera/captureintent/resource/
DResourceCaptureToolsImpl.java17 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/Messaging/src/com/android/messaging/ui/
DAsyncImageView.java177 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/Gallery2/src/com/android/gallery3d/filtershow/filters/
DImageFilterRS.java183 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()
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/
DMediaResourceManager.java94 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()
DUriImageRequest.java41 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()
DCompositeImageRequest.java66 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()
DBindableMediaRequest.java41 public void onMediaResourceLoaded(final MediaRequest<T> request, final T resource, in onMediaResourceLoaded() argument
44 mListener.onMediaResourceLoaded(request, resource, cached); in onMediaResourceLoaded()
/packages/apps/Settings/src/com/android/settings/datausage/
DDataUsageSummary.java389 SearchIndexableResource resource = new SearchIndexableResource(context);
390 resource.xmlResId = R.xml.data_usage;
391 resources.add(resource);
393 resource = new SearchIndexableResource(context);
394 resource.xmlResId = R.xml.data_usage_cellular;
395 resources.add(resource);
397 resource = new SearchIndexableResource(context);
398 resource.xmlResId = R.xml.data_usage_wifi;
399 resources.add(resource);
/packages/apps/Camera2/src/com/android/camera/captureintent/state/
DStateForeground.java23 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;
DStateBackground.java23 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;
DStateStartingPreview.java25 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;
DStateReadyForCapture.java47 import com.android.camera.captureintent.resource.ResourceCaptureTools;
48 import com.android.camera.captureintent.resource.ResourceCaptureToolsImpl;
49 import com.android.camera.captureintent.resource.ResourceConstructed;
50 import com.android.camera.captureintent.resource.ResourceOpenedCamera;
51 import com.android.camera.captureintent.resource.ResourceSurfaceTexture;
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/archives/
DTestUtils.java60 public ParcelFileDescriptor getSeekableDescriptor(int resource) { in getSeekableDescriptor() argument
72 mTestContext.getResources().openRawResource(resource); in getSeekableDescriptor()
96 public ParcelFileDescriptor getNonSeekableDescriptor(int resource) { in getNonSeekableDescriptor() argument
110 mTestContext.getResources().openRawResource(resource); in getNonSeekableDescriptor()
/packages/apps/Camera2/src/com/android/camera/data/
DGlideFilmstripManager.java38 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/PackageInstaller/src/com/android/packageinstaller/wear/
DInstallTask.java164 public static void safeClose(Closeable resource) { in safeClose() argument
165 if (resource != null) { in safeClose()
167 resource.close(); in safeClose()
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/
DBitmapWorkerOptions.java100 public Builder resource(String packageName, String resourceName) { in resource() method in BitmapWorkerOptions.Builder
106 public Builder resource(ShortcutIconResource iconResource) { in resource() method in BitmapWorkerOptions.Builder
112 public Builder resource(Uri resourceUri) { in resource() method in BitmapWorkerOptions.Builder
/packages/apps/Messaging/src/com/android/messaging/ui/photoviewer/
DBuglePhotoBitmapLoader.java171 private void setImageResource(final ImageResource resource) { in setImageResource() argument
172 if (mImageResource != resource) { in setImageResource()
175 mImageResource = resource; in setImageResource()
/packages/apps/Messaging/src/com/android/messaging/widget/
DBaseWidgetFactory.java218 private void setAvatarResource(final ImageResource resource) {
219 if (mAvatarResource != resource) {
222 mAvatarResource = resource;
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
DAlbumDataAdapter.java49 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/search/
DSearchIndexableResources.java118 SearchIndexableResource resource = in addIndex() local
122 resource.intentAction = targetAction; in addIndex()
123 resource.intentTargetPackage = SUBSETTING_TARGET_PACKAGE; in addIndex()
126 sResMap.put(className, resource); in addIndex()
/packages/apps/Contacts/src/com/android/contacts/widget/
DSelectPhoneAccountDialogFragment.java219 Context context, int resource, List<PhoneAccountHandle> accountHandles) { in SelectAccountListAdapter() argument
220 super(context, resource, accountHandles); in SelectAccountListAdapter()
221 mResId = resource; in SelectAccountListAdapter()
/packages/apps/Dialer/java/com/android/contacts/common/widget/
DSelectPhoneAccountDialogFragment.java241 Context context, int resource, List<PhoneAccountHandle> accountHandles) { in SelectAccountListAdapter() argument
242 super(context, resource, accountHandles); in SelectAccountListAdapter()
243 mResId = resource; in SelectAccountListAdapter()

1234