Home
last modified time | relevance | path

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

12345

/frameworks/base/libs/hwui/
DResourceCache.cpp60 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 …]
DResourceCache.h69 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/
DArrayAdapter.java137 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()
163 public ArrayAdapter(@NonNull Context context, @LayoutRes int resource, @NonNull T[] objects) { in ArrayAdapter() argument
164 this(context, resource, 0, Arrays.asList(objects)); in ArrayAdapter()
177 public ArrayAdapter(@NonNull Context context, @LayoutRes int resource, in ArrayAdapter() argument
179 this(context, resource, textViewResourceId, Arrays.asList(objects)); in ArrayAdapter()
190 public ArrayAdapter(@NonNull Context context, @LayoutRes int resource, in ArrayAdapter() argument
192 this(context, resource, 0, objects); in ArrayAdapter()
[all …]
DViewAnimator.java56 … 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()
DSimpleAdapter.java88 @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/
Dreadme.md4 - 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 …]
DResources.proto37 // Developer friendly source file information for an entity in the resource table.
44 // Top level message representing a resource table.
46 // The string pool containing source paths referenced throughout the resource table. This does
83 // attr, etc. This maps to the second part of a resource identifier in Java (R.type.entry).
88 // The name of the type. This corresponds to the 'type' part of a full resource name of the form
98 // The visibility of the resource outside of its package.
102 // private one. An unknown visibility, in this case, would cause the resource to be omitted
106 // A resource was explicitly marked as private. This means the resource can not be accessed
108 // the private accessor). If two R.java files are generated (private + public), the resource
112 // A resource was explicitly marked as public. This means the resource can be accessed
[all …]
DResourcesInternal.proto27 // The top level message representing an external resource file (layout XML, PNG, etc).
38 // The name of the resource (in the form package:type/name).
41 // The configuration for which the resource is defined.
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/util/
DDynamicIdMap.java65 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/tools/aapt2/link/
DXmlReferenceLinker.cpp153 bool XmlReferenceLinker::Consume(IAaptContext* context, xml::XmlResource* resource) { in Consume() argument
154 CallSite callsite{resource->file.name.package}; in Consume()
156 std::string out_name = resource->file.name.entry; in Consume()
165 XmlVisitor visitor(resource->file.source, callsite, context, context->GetExternalSymbols()); in Consume()
166 if (resource->root) { in Consume()
167 resource->root->Accept(&visitor); in Consume()
DXmlNamespaceRemover.cpp52 bool XmlNamespaceRemover::Consume(IAaptContext* context, xml::XmlResource* resource) { in Consume() argument
53 if (!resource->root) { in Consume()
58 resource->root->Accept(&visitor); in Consume()
DLinkers.h122 bool Consume(IAaptContext* context, xml::XmlResource* resource) override;
136 bool Consume(IAaptContext* context, xml::XmlResource* resource) override;
/frameworks/base/core/java/android/view/animation/
DLayoutAnimationController.java114 … 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()
119resource = 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/tests/DpiTest/src/com/google/android/test/dpi/
DDpiTestActivity.java164 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/
DCustomBar.java259 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/base/tests/net/java/com/android/server/
DIpSecServiceRefcountedResourceTest.java66 RefcountedResource<IResource> resource, in assertResourceState() argument
74 assertEquals(refCount, resource.mRefCount); in assertResourceState()
77 verify(resource, times(userReleaseCallCount)).userRelease(); in assertResourceState()
78 verify(resource, times(releaseReferenceCallCount)).releaseReference(); in assertResourceState()
81 verify(resource.getResource(), times(invalidateCallCount)).invalidate(); in assertResourceState()
82 verify(resource.getResource(), times(freeUnderlyingResourcesCallCount)) in assertResourceState()
103 RefcountedResource<IResource> resource = getTestRefcountedResource(binderMock); in testConstructor() local
106 assertResourceState(resource, 1, 0, 0, 0, 0); in testConstructor()
/frameworks/layoutlib/bridge/src/android/util/
DBridgeXmlPullAttributes.java296 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/support/samples/SupportLeanbackJank/src/main/java/com/google/android/leanbackjank/ui/
DMainFragment.java86 int resource = 0; in onActivityCreated() local
91 resource = R.raw.bbb_sunflower_2160p_60fps; in onActivityCreated()
93 resource = R.raw.testvideo_1080p_60fps; in onActivityCreated()
95 resource = R.raw.bbb_480p; in onActivityCreated()
97 resource = R.raw.bbb_360p; in onActivityCreated()
100 + resource); in onActivityCreated()
/frameworks/native/libs/sensor/
DISensorServer.cpp113 uint32_t size, int32_t type, int32_t format, const native_handle_t *resource) { in createSensorDirectConnection() argument
120 data.writeNativeHandle(resource); in createSensorDirectConnection()
201 native_handle_t *resource = data.readNativeHandle(); in onTransact() local
203 createSensorDirectConnection(opPackageName, size, type, format, resource); in onTransact()
204 native_handle_close(resource); in onTransact()
205 native_handle_delete(resource); in onTransact()
/frameworks/base/core/java/android/preference/
DGenericInflater.java220 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/base/services/robotests/src/com/android/server/testing/
DFrameworkRobolectricTestRunner.java139 public InputStream getResourceAsStream(String resource) { in getResourceAsStream() argument
141 Enumeration<URL> urls = getResources(resource); in getResourceAsStream()
151 return super.getResourceAsStream(resource); in getResourceAsStream()
/frameworks/rs/tests/java_api/HelloComputeNDK/src/com/example/android/rs/hellocomputendk/
DHelloComputeNDK.java56 private Bitmap loadBitmap(int resource) { in loadBitmap() argument
59 return BitmapFactory.decodeResource(getResources(), resource, options); in loadBitmap()
/frameworks/support/graphics/drawable/animated/src/androidTest/java/androidx/vectordrawable/graphics/drawable/tests/
DDrawableUtils.java33 public static void saveVectorDrawableIntoPNG(Resources resource, Bitmap bitmap, int resId, in saveVectorDrawableIntoPNG() argument
45 String originalFilePath = resource.getString(resId); in saveVectorDrawableIntoPNG()
/frameworks/base/libs/hwui/pipeline/skia/
DSkiaMemoryTracer.cpp36 for (auto& resource : mResourceMap) { in mapName() local
37 if (SkStrContains(resourceName, resource.first)) { in mapName()
38 return resource.second; in mapName()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DMountServiceTests.java128 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()

12345