/frameworks/base/libs/hwui/ |
D | ResourceCache.cpp | 60 void ResourceCache::incrementRefcount(void* resource, ResourceType resourceType) { in incrementRefcount() argument 62 incrementRefcountLocked(resource, resourceType); in incrementRefcount() 69 void ResourceCache::incrementRefcountLocked(void* resource, ResourceType resourceType) { in incrementRefcountLocked() argument 70 ssize_t index = mCache->indexOfKey(resource); in incrementRefcountLocked() 74 mCache->add(resource, ref); in incrementRefcountLocked() 79 void ResourceCache::decrementRefcount(void* resource) { in decrementRefcount() argument 81 decrementRefcountLocked(resource); in decrementRefcount() 88 void ResourceCache::decrementRefcountLocked(void* resource) { in decrementRefcountLocked() argument 89 ssize_t index = mCache->indexOfKey(resource); in decrementRefcountLocked() 97 deleteResourceReferenceLocked(resource, ref); in decrementRefcountLocked() [all …]
|
D | ResourceCache.h | 69 void incrementRefcount(const Res_png_9patch* resource); 71 void decrementRefcount(const Res_png_9patch* resource); 73 void decrementRefcountLocked(const Res_png_9patch* resource); 75 void destructor(Res_png_9patch* resource); 77 void destructorLocked(Res_png_9patch* resource); 80 void deleteResourceReferenceLocked(const void* resource, ResourceReference* ref); 82 void incrementRefcount(void* resource, ResourceType resourceType); 83 void incrementRefcountLocked(void* resource, ResourceType resourceType); 85 void decrementRefcount(void* resource); 86 void decrementRefcountLocked(void* resource);
|
/frameworks/base/core/java/android/widget/ |
D | ArrayAdapter.java | 137 public ArrayAdapter(@NonNull Context context, @LayoutRes int resource) { in ArrayAdapter() argument 138 this(context, resource, 0, new ArrayList<>()); in ArrayAdapter() 149 public ArrayAdapter(@NonNull Context context, @LayoutRes int resource, in ArrayAdapter() argument 151 this(context, resource, textViewResourceId, new ArrayList<>()); in ArrayAdapter() 162 public ArrayAdapter(@NonNull Context context, @LayoutRes int resource, @NonNull T[] objects) { in ArrayAdapter() argument 163 this(context, resource, 0, Arrays.asList(objects)); in ArrayAdapter() 175 public ArrayAdapter(@NonNull Context context, @LayoutRes int resource, in ArrayAdapter() argument 177 this(context, resource, textViewResourceId, Arrays.asList(objects)); in ArrayAdapter() 188 public ArrayAdapter(@NonNull Context context, @LayoutRes int resource, in ArrayAdapter() argument 190 this(context, resource, 0, objects); in ArrayAdapter() [all …]
|
D | ViewAnimator.java | 56 … int resource = a.getResourceId(com.android.internal.R.styleable.ViewAnimator_inAnimation, 0); in ViewAnimator() local 57 if (resource > 0) { in ViewAnimator() 58 setInAnimation(context, resource); in ViewAnimator() 61 resource = a.getResourceId(com.android.internal.R.styleable.ViewAnimator_outAnimation, 0); in ViewAnimator() 62 if (resource > 0) { in ViewAnimator() 63 setOutAnimation(context, resource); in ViewAnimator()
|
D | SimpleAdapter.java | 88 @LayoutRes int resource, String[] from, @IdRes int[] to) { in SimpleAdapter() argument 90 mResource = mDropDownResource = resource; in SimpleAdapter() 125 ViewGroup parent, int resource) { in createViewFromResource() argument 128 v = inflater.inflate(resource, parent, false); in createViewFromResource() 144 public void setDropDownViewResource(int resource) { in setDropDownViewResource() argument 145 mDropDownResource = resource; in setDropDownViewResource()
|
/frameworks/base/tools/aapt2/ |
D | readme.md | 4 - Added navigation resource type. 5 - Fixed issue with resource deduplication. (bug 64397629) 32 - Fixed issue where overlays that declared `<add-resource>` did not compile. (bug 38355988) 33 - Fixed issue where `%n` in a string resource was interpreted as a format argument. (bug 37132275) 37 resource types. (bug 62260121) 41 - Fix issue where overlaid `<style>` would not be merged, and would replace the original resource 61 will automatically convert any 'id' resource references from the resource ID 0xPPTTEEEE to 64 a resource ID by assuming it is larger than 0. In Java, a resource ID with package ID greater 68 Rewriting these resource IDs to use the package ID 7F while maintaining their definitions under 102 - Added sparse resource type encoding, which encodes resource entries that are sparse with [all …]
|
D | Resources.proto | 45 // Developer friendly source file information for an entity in the resource table. 52 // Top level message representing a resource table. 54 // The string pool containing source paths referenced throughout the resource table. This does 80 // attr, etc. This maps to the second part of a resource identifier in Java (R.type.entry). 85 // The name of the type. This corresponds to the 'type' part of a full resource name of the form 96 // The visibility of the resource outside of its package. 100 // private one. An unknown visibility, in this case, would cause the resource to be omitted 104 // A resource was explicitly marked as private. This means the resource can not be accessed 106 // the private accessor). If two R.java files are generated (private + public), the resource 110 // A resource was explicitly marked as public. This means the resource can be accessed [all …]
|
D | ResourcesInternal.proto | 26 // The top level message representing an external resource file (layout XML, PNG, etc). 37 // The name of the resource (in the form package:type/name). 40 // The configuration for which the resource is defined.
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/util/ |
D | DynamicIdMap.java | 65 public Integer getId(Pair<ResourceType, String> resource) { in getId() argument 66 Integer value = mDynamicIds.get(resource); in getId() 69 mDynamicIds.put(resource, value); in getId() 70 mRevDynamicIds.put(value, resource); in getId()
|
/frameworks/base/core/java/android/view/animation/ |
D | LayoutAnimationController.java | 114 … int resource = a.getResourceId(com.android.internal.R.styleable.LayoutAnimation_animation, 0); in LayoutAnimationController() local 115 if (resource > 0) { in LayoutAnimationController() 116 setAnimation(context, resource); in LayoutAnimationController() 119 … resource = a.getResourceId(com.android.internal.R.styleable.LayoutAnimation_interpolator, 0); in LayoutAnimationController() 120 if (resource > 0) { in LayoutAnimationController() 121 setInterpolator(context, resource); in LayoutAnimationController()
|
/frameworks/base/tools/aapt2/link/ |
D | XmlNamespaceRemover.cpp | 52 bool XmlNamespaceRemover::Consume(IAaptContext* context, xml::XmlResource* resource) { in Consume() argument 53 if (!resource->root) { in Consume() 58 resource->root->Accept(&visitor); in Consume()
|
D | XmlReferenceLinker.cpp | 165 bool XmlReferenceLinker::Consume(IAaptContext* context, xml::XmlResource* resource) { in Consume() argument 166 const CallSite callsite = {resource->file.name}; in Consume() 167 XmlVisitor visitor(resource->file.source, callsite, context, context->GetExternalSymbols()); in Consume() 168 if (resource->root) { in Consume() 169 resource->root->Accept(&visitor); in Consume()
|
D | Linkers.h | 41 ResourceNameRef resource; member 141 bool Consume(IAaptContext* context, xml::XmlResource* resource) override; 158 bool Consume(IAaptContext* context, xml::XmlResource* resource) override;
|
/frameworks/base/tests/DpiTest/src/com/google/android/test/dpi/ |
D | DpiTestActivity.java | 164 private void addBitmapDrawable(LinearLayout layout, int resource, boolean scale) { in addBitmapDrawable() argument 166 bitmap = loadAndPrintDpi(resource, scale); in addBitmapDrawable() 179 private void addResourceDrawable(LinearLayout layout, int resource) { in addResourceDrawable() argument 182 final Drawable d = getResources().getDrawable(resource); in addResourceDrawable() 190 private void addCanvasBitmap(LinearLayout layout, int resource, boolean scale) { in addCanvasBitmap() argument 192 bitmap = loadAndPrintDpi(resource, scale); in addCanvasBitmap() 201 private void addNinePatchResourceDrawable(LinearLayout layout, int resource) { in addNinePatchResourceDrawable() argument 204 final Drawable d = getResources().getDrawable(resource); in addNinePatchResourceDrawable() 207 Log.i("foo", "9-patch #" + Integer.toHexString(resource) in addNinePatchResourceDrawable()
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/ |
D | CustomBar.java | 259 ResourceValue resource = renderResources.findItemInTheme(attr, true); in getColor() local 261 resource = renderResources.resolveResValue(resource); in getColor() 262 if (resource != null) { in getColor() 263 ResourceType type = resource.getResourceType(); in getColor() 268 return ResourceHelper.getColor(resource.getValue()); in getColor() 274 resource.getValue() + "'.", resource); in getColor()
|
/frameworks/layoutlib/bridge/src/android/util/ |
D | BridgeXmlPullAttributes.java | 296 ResourceValue resource = getResourceValue(value); in resolveResourceValue() local 297 if (resource != null) { in resolveResourceValue() 299 if (mPlatformFile || resource.isFramework()) { in resolveResourceValue() 300 id = Bridge.getResourceId(resource.getResourceType(), resource.getName()); in resolveResourceValue() 303 resource.getResourceType(), resource.getName()); in resolveResourceValue()
|
/frameworks/native/libs/sensor/ |
D | ISensorServer.cpp | 110 uint32_t size, int32_t type, int32_t format, const native_handle_t *resource) { in createSensorDirectConnection() argument 117 data.writeNativeHandle(resource); in createSensorDirectConnection() 198 native_handle_t *resource = data.readNativeHandle(); in onTransact() local 200 createSensorDirectConnection(opPackageName, size, type, format, resource); in onTransact() 201 native_handle_close(resource); in onTransact() 202 native_handle_delete(resource); in onTransact()
|
/frameworks/support/samples/SupportLeanbackJank/src/com/google/android/leanbackjank/ui/ |
D | MainFragment.java | 85 int resource = 0; in onActivityCreated() local 90 resource = R.raw.bbb_sunflower_2160p_60fps; in onActivityCreated() 92 resource = R.raw.testvideo_1080p_60fps; in onActivityCreated() 94 resource = R.raw.bbb_480p; in onActivityCreated() 96 resource = R.raw.bbb_360p; in onActivityCreated() 99 + resource); in onActivityCreated()
|
/frameworks/base/core/java/android/preference/ |
D | GenericInflater.java | 220 public T inflate(@XmlRes int resource, P root) { in inflate() argument 221 return inflate(resource, root, root != null); in inflate() 260 public T inflate(@XmlRes int resource, P root, boolean attachToRoot) { in inflate() argument 261 if (DEBUG) System.out.println("INFLATING from resource: " + resource); in inflate() 262 XmlResourceParser parser = getContext().getResources().getXml(resource); in inflate()
|
/frameworks/rs/tests/java_api/HelloComputeNDK/src/com/example/android/rs/hellocomputendk/ |
D | HelloComputeNDK.java | 56 private Bitmap loadBitmap(int resource) { in loadBitmap() argument 59 return BitmapFactory.decodeResource(getResources(), resource, options); in loadBitmap()
|
/frameworks/support/graphics/drawable/animated/tests/src/android/support/graphics/drawable/tests/ |
D | DrawableUtils.java | 33 public static void saveVectorDrawableIntoPNG(Resources resource, Bitmap bitmap, int resId, in saveVectorDrawableIntoPNG() argument 45 String originalFilePath = resource.getString(resId); in saveVectorDrawableIntoPNG()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
D | MountServiceTests.java | 128 private void mountObb(StorageManager sm, final int resource, final File file, in mountObb() argument 130 copyRawToFile(resource, file); in mountObb() 149 private ObbObserver mountObbWithoutWait(final StorageManager sm, final int resource, in mountObbWithoutWait() argument 151 copyRawToFile(resource, file); in mountObbWithoutWait()
|
/frameworks/support/samples/SupportEmojiDemos/src/com/example/android/support/text/emoji/ |
D | ListFragment.java | 63 MyArrayAdapter(Context context, int resource, int textViewResourceId, in MyArrayAdapter() argument 65 super(context, resource, textViewResourceId, objects); in MyArrayAdapter()
|
/frameworks/support/transition/src/android/support/transition/ |
D | TransitionInflater.java | 67 public Transition inflateTransition(int resource) { in inflateTransition() argument 68 XmlResourceParser parser = mContext.getResources().getXml(resource); in inflateTransition() 89 public TransitionManager inflateTransitionManager(int resource, ViewGroup sceneRoot) { in inflateTransitionManager() argument 90 XmlResourceParser parser = mContext.getResources().getXml(resource); in inflateTransitionManager()
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/ |
D | BridgeContext.java | 445 public Pair<View, Boolean> inflateView(ResourceReference resource, ViewGroup parent, in inflateView() argument 448 boolean isPlatformLayout = resource.isFramework(); in inflateView() 452 ILayoutPullParser parser = getParser(resource); in inflateView() 456 this, resource.isFramework()); in inflateView() 469 if (resource instanceof ResourceValue) { in inflateView() 470 resValue = (ResourceValue) resource; in inflateView() 474 resource.getName()); in inflateView() 477 resource.getName()); in inflateView() 491 mBridgeInflater.setResourceReference(resource); in inflateView() 494 this, resource.isFramework()); in inflateView() [all …]
|