/packages/apps/Car/libs/car-ui-lib/tests/apitest/ |
D | resource_utils.py | 81 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 …]
|
D | auto-generate-resources.py | 63 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/ |
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()
|
/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/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/Messaging/src/com/android/messaging/ui/ |
D | AsyncImageView.java | 179 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/ |
D | DataUsageSummary.java | 348 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/ |
D | RedactionInterstitialTest.java | 163 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/ |
D | quick_rro.py | 178 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/ |
D | TestUtils.java | 60 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/ |
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 | StateReadyForCapture.java | 47 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/ |
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/TvSettings/Settings/src/com/android/tv/settings/ |
D | HotwordSwitchController.java | 218 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/ |
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/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/Car/Dialer/src/com/android/car/dialer/ui/activecall/ |
D | InCallFragment.java | 135 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/ |
D | NightDisplaySettingsTest.java | 43 for (SearchIndexableResource resource : resources) { in testNightDisplayIndexing_containsResource() 44 indexedXml.add(resource.xmlResId); in testNightDisplayIndexing_containsResource()
|