Home
last modified time | relevance | path

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

1234

/packages/apps/Car/libs/car-ui-lib/tests/apitest/
Dresource_utils.py81 for resource in get_resources_from_single_file(os.path.join(resDir, dir, file)):
82 add_resource_to_set(resources, resource)
93 for resource in resourceTag:
94 if resource.tag == 'declare-styleable' or resource.tag is etree.Comment:
97 if resource.tag == 'item' or resource.tag == 'public':
98 add_resource_to_set(result, Resource(resource.get('name'), resource.get('type'),
99 ResourceLocation(filename, resource.sourceline)))
101 add_resource_to_set(result, Resource(resource.get('name'), resource.tag,
102 ResourceLocation(filename, resource.sourceline)))
107 for resource in resourceSet:
[all …]
Dauto-generate-resources.py63 for resource in resources:
65 item.set('type', resource.type)
66 item.set('name', resource.name)
/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/datamodel/media/
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()
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()
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/Messaging/src/com/android/messaging/ui/
DAsyncImageView.java179 protected void setImage(final ImageResource resource) { in setImage() argument
180 setImage(resource, false /* isCached */); in setImage()
183 protected void setImage(final ImageResource resource, final boolean isCached) { in setImage() argument
192 final Drawable drawable = (resource != null) ? resource.getDrawable(getResources()) : null; in setImage()
194 mImageResource = resource; in setImage()
236 final ImageResource resource, final boolean isCached) { in onMediaResourceLoaded() argument
237 if (mImageResource != resource) { in onMediaResourceLoaded()
238 setImage(resource, isCached); in onMediaResourceLoaded()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/datausage/
DDataUsageSummary.java348 SearchIndexableResource resource = new SearchIndexableResource(context);
349 resource.xmlResId = R.xml.data_usage;
350 resources.add(resource);
352 resource = new SearchIndexableResource(context);
353 resource.xmlResId = R.xml.data_usage_cellular;
354 resources.add(resource);
356 resource = new SearchIndexableResource(context);
357 resource.xmlResId = R.xml.data_usage_wifi;
358 resources.add(resource);
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
DRedactionInterstitialTest.java163 private boolean buttonChecked(int resource) { in buttonChecked() argument
164 return getButton(resource).isChecked(); in buttonChecked()
167 private boolean buttonEnabled(int resource) { in buttonEnabled() argument
168 return !((RestrictedRadioButton) getButton(resource)).isDisabledByAdmin(); in buttonEnabled()
171 private RadioButton getButton(int resource) { in getButton() argument
172 return (RadioButton) mFragment.getView().findViewById(resource); in getButton()
/packages/apps/Car/libs/car-ui-lib/tests/tools/
Dquick_rro.py178 for resource in resources:
179 if len(resource) != 3:
186 for resource in resources:
187 f.write(' <item type="' + resource[0] + '" name="'
188 + resource[1] + '">' + resource[2] + '</item>\n')
/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/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/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/TvSettings/Settings/src/com/android/tv/settings/
DHotwordSwitchController.java218 private String getLocalizedStringResource(String resource, @Nullable String defaultValue) { in getLocalizedStringResource() argument
219 if (TextUtils.isEmpty(resource)) { in getLocalizedStringResource()
223 String[] parts = TextUtils.split(resource, ":"); in getLocalizedStringResource()
229 int resId = targetContext.getResources().getIdentifier(resource, null, null); in getLocalizedStringResource()
/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/Car/Dialer/src/com/android/car/dialer/ui/activecall/
DInCallFragment.java135 public void onResourceReady(Drawable resource, in bindUserProfileView()
139 mBackgroundImage.setBackgroundDrawable(resource, false); in bindUserProfileView()
140 mAvatarView.setImageDrawable(resource); in bindUserProfileView()
/packages/apps/Settings/tests/robotests/src/com/android/settings/display/
DNightDisplaySettingsTest.java43 for (SearchIndexableResource resource : resources) { in testNightDisplayIndexing_containsResource()
44 indexedXml.add(resource.xmlResId); in testNightDisplayIndexing_containsResource()

1234