Home
last modified time | relevance | path

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

12345678910>>...22

/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/docs/html-intl/intl/zh-cn/distribute/tools/
Dindex.jd14 <div class="resource-widget resource-flow-layout landing col-16"
21 <div class="resource-widget resource-flow-layout landing col-16"
28 <div class="resource-widget resource-flow-layout landing col-16"
35 <div class="resource-widget resource-flow-layout landing col-16"
42 <div class="resource-widget resource-flow-layout landing col-16"
49 <div class="resource-widget resource-stack-layout col-16"
Dlaunch-checklist.jd89 <div class="resource-widget resource-flow-layout col-13" data-query=
112 <div class="resource-widget resource-flow-layout col-13" data-query=
151 <div class="resource-widget resource-flow-layout col-13" data-query=
207 <div class="resource-widget resource-flow-layout col-13" data-query=
272 <div class="resource-widget resource-flow-layout col-13" data-query=
323 <div class="resource-widget resource-flow-layout col-13" data-query=
369 <div class="resource-widget resource-flow-layout col-13" data-query=
426 <div class="resource-widget resource-flow-layout col-13" data-query=
459 <div class="resource-widget resource-flow-layout col-13" data-query=
489 <div class="resource-widget resource-flow-layout col-13" data-query=
[all …]
/frameworks/base/docs/html/guide/topics/resources/
Daccessing-resources.jd45 <p>Once you provide a resource in your application (discussed in <a
47 referencing its resource ID. All resource IDs are defined in your project's {@code R} class, which
51 resource IDs for all the resources in your {@code
52 res/} directory. For each type of resource, there is an {@code R} subclass (for example,
53 {@code R.drawable} for all drawable resources), and for each resource of that type, there is a stat…
54 integer (for example, {@code R.drawable.icon}). This integer is the resource ID that you can use
55 to retrieve your resource.</p>
57 <p>Although the {@code R} class is where resource IDs are specified, you should never need to
58 look there to discover a resource ID. A resource ID is always composed of:</p>
60 <li>The <em>resource type</em>: Each resource is grouped into a "type," such as {@code
[all …]
Davailable-resources.jd17 of application resource that you can provide in your resources directory ({@code res/}).</p>
19 <p>Here's a brief summary of each resource type:</p>
22 …<dt><a href="{@docRoot}guide/topics/resources/animation-resource.html">Animation Resources</a></dt>
26 …<dt><a href="{@docRoot}guide/topics/resources/color-list-resource.html">Color State List Resource<…
29 <dt><a href="{@docRoot}guide/topics/resources/drawable-resource.html">Drawable Resources</a></dt>
33 <dt><a href="{@docRoot}guide/topics/resources/layout-resource.html">Layout Resource</a></dt>
36 <dt><a href="{@docRoot}guide/topics/resources/menu-resource.html">Menu Resource</a></dt>
39 <dt><a href="{@docRoot}guide/topics/resources/string-resource.html">String Resources</a></dt>
43 <dt><a href="{@docRoot}guide/topics/resources/style-resource.html">Style Resource</a></dt>
/frameworks/base/docs/html/distribute/tools/
Dindex.jd13 <div class="resource-widget resource-flow-layout landing col-16"
20 <div class="resource-widget resource-flow-layout landing col-16"
27 <div class="resource-widget resource-flow-layout landing col-16"
34 <div class="resource-widget resource-flow-layout landing col-16"
41 <div class="resource-widget resource-flow-layout landing col-16"
/frameworks/base/docs/html-intl/intl/zh-cn/distribute/
Dresources.jd11 <div class="resource-widget resource-carousel-layout col-16"
24 <div class="resource-widget resource-flow-layout col-16"
32 <div class="resource-widget resource-flow-layout col-16"
40 <div class="resource-widget resource-flow-layout col-16"
48 <div class="resource-widget resource-flow-layout col-16"
/frameworks/base/docs/html-intl/intl/zh-cn/
Dresources.jd19 <div class="resource-widget resource-flow-layout col-16"
27 <div class="resource-widget resource-flow-layout col-16"
35 <div class="resource-widget resource-flow-layout col-16"
43 <div class="resource-widget resource-flow-layout col-16"
/frameworks/base/core/java/android/widget/
DArrayAdapter.java113 public ArrayAdapter(@NonNull Context context, @LayoutRes int resource) { in ArrayAdapter() argument
114 this(context, resource, 0, new ArrayList<>()); in ArrayAdapter()
125 public ArrayAdapter(@NonNull Context context, @LayoutRes int resource, in ArrayAdapter() argument
127 this(context, resource, textViewResourceId, new ArrayList<>()); in ArrayAdapter()
138 public ArrayAdapter(@NonNull Context context, @LayoutRes int resource, @NonNull T[] objects) { in ArrayAdapter() argument
139 this(context, resource, 0, Arrays.asList(objects)); in ArrayAdapter()
151 public ArrayAdapter(@NonNull Context context, @LayoutRes int resource, in ArrayAdapter() argument
153 this(context, resource, textViewResourceId, Arrays.asList(objects)); in ArrayAdapter()
164 public ArrayAdapter(@NonNull Context context, @LayoutRes int resource, in ArrayAdapter() argument
166 this(context, resource, 0, objects); in ArrayAdapter()
[all …]
/frameworks/base/docs/html/
Dresources.jd20 <div class="resource-widget resource-flow-layout col-16"
28 <div class="resource-widget resource-flow-layout col-16"
36 <div class="resource-widget resource-flow-layout col-16"
44 <div class="resource-widget resource-flow-layout col-16"
/frameworks/base/docs/html-intl/intl/ru/distribute/tools/
Dlaunch-checklist.jd89 <div class="resource-widget resource-flow-layout col-13" data-query=
112 <div class="resource-widget resource-flow-layout col-13" data-query=
151 <div class="resource-widget resource-flow-layout col-13" data-query=
207 <div class="resource-widget resource-flow-layout col-13" data-query=
272 <div class="resource-widget resource-flow-layout col-13" data-query=
323 <div class="resource-widget resource-flow-layout col-13" data-query=
369 <div class="resource-widget resource-flow-layout col-13" data-query=
426 <div class="resource-widget resource-flow-layout col-13" data-query=
459 <div class="resource-widget resource-flow-layout col-13" data-query=
489 <div class="resource-widget resource-flow-layout col-13" data-query=
[all …]
/frameworks/base/docs/html-intl/intl/ja/distribute/tools/
Dlaunch-checklist.jd71 <div class="resource-widget resource-flow-layout col-13" data-query=
91 <div class="resource-widget resource-flow-layout col-13" data-query=
118 <div class="resource-widget resource-flow-layout col-13" data-query=
167 <div class="resource-widget resource-flow-layout col-13" data-query=
224 <div class="resource-widget resource-flow-layout col-13" data-query=
265 <div class="resource-widget resource-flow-layout col-13" data-query=
296 <div class="resource-widget resource-flow-layout col-13" data-query=
341 <div class="resource-widget resource-flow-layout col-13" data-query=
364 <div class="resource-widget resource-flow-layout col-13" data-query=
388 <div class="resource-widget resource-flow-layout col-13" data-query=
[all …]
/frameworks/base/docs/html-intl/intl/ko/distribute/tools/
Dlaunch-checklist.jd89 <div class="resource-widget resource-flow-layout col-13" data-query=
112 <div class="resource-widget resource-flow-layout col-13" data-query=
151 <div class="resource-widget resource-flow-layout col-13" data-query=
207 <div class="resource-widget resource-flow-layout col-13" data-query=
272 <div class="resource-widget resource-flow-layout col-13" data-query=
323 <div class="resource-widget resource-flow-layout col-13" data-query=
369 <div class="resource-widget resource-flow-layout col-13" data-query=
426 <div class="resource-widget resource-flow-layout col-13" data-query=
459 <div class="resource-widget resource-flow-layout col-13" data-query=
489 <div class="resource-widget resource-flow-layout col-13" data-query=
[all …]
/frameworks/base/docs/html/distribute/users/
Dindex.jd13 <div class="resource-widget resource-flow-layout landing col-16"
18 <!--<div class="resource-widget resource-flow-layout landing col-16"
26 <div class="resource-widget resource-flow-layout col-16"
/frameworks/base/docs/html/distribute/stories/
Dindex.jd24 <div class="resource-widget resource-flow-layout col-16"
33 <div class="resource-widget resource-flow-layout col-16"
46 <div class="resource-widget resource-flow-layout col-16"
55 <div class="resource-widget resource-flow-layout col-16"
/frameworks/base/docs/html-intl/intl/zh-tw/distribute/tools/
Dlaunch-checklist.jd71 <div class="resource-widget resource-flow-layout col-13" data-query=
91 <div class="resource-widget resource-flow-layout col-13" data-query=
118 <div class="resource-widget resource-flow-layout col-13" data-query=
167 <div class="resource-widget resource-flow-layout col-13" data-query=
224 <div class="resource-widget resource-flow-layout col-13" data-query=
265 <div class="resource-widget resource-flow-layout col-13" data-query=
296 <div class="resource-widget resource-flow-layout col-13" data-query=
341 <div class="resource-widget resource-flow-layout col-13" data-query=
364 <div class="resource-widget resource-flow-layout col-13" data-query=
388 <div class="resource-widget resource-flow-layout col-13" data-query=
[all …]
/frameworks/base/docs/html-intl/intl/zh-cn/distribute/essentials/
Dindex.jd16 <div class="resource-widget resource-flow-layout landing col-16"
24 <div class="resource-widget resource-flow-layout col-16"
29 <div class="resource-widget resource-flow-layout col-16"
/frameworks/base/docs/html/training/testing/
Dindex.jd29 <div class="resource-widget resource-flow-layout col-12"
43 <div class="resource-widget resource-flow-layout landing col-12"
56 <div class="resource-widget resource-flow-layout landing col-12"
68 <div class="resource-widget resource-flow-layout landing col-12"
/frameworks/base/docs/html/guide/topics/manifest/
Dmeta-data-element.jd9 android:<a href="#rsrc">resource</a>="<i>resource specification</i>"
31 attribute. However, to assign a resource ID as the value, use the
32 <code><a href="{@docRoot}guide/topics/manifest/meta-data-element.html#resource">resource</a></code>…
34 resource to the "{@code zoo}" name:
40 On the other hand, using the {@code resource} attribute would assign "{@code zoo}"
41 the numeric ID of the resource, not the value stored in the resource:
44 <pre>&lt;meta-data android:name="zoo" android:resource="@string/kangaroo" /&gt;</pre>
49 have complex data to associate with a component, store it as a resource and
50 use the {@code resource} attribute to inform the component of its ID.
60 <dt><a name="rsrc"></a>{@code android:resource}</dt>
[all …]
/frameworks/base/docs/html/distribute/googleplay/
Dindex.jd17 <div class="resource-widget resource-flow-layout landing col-16"
27 <div class="resource-widget resource-flow-layout landing col-16"
35 <div class="resource-widget resource-flow-layout col-16"
/frameworks/base/docs/html/distribute/essentials/
Dindex.jd18 <div class="resource-widget resource-flow-layout landing col-16"
27 <div class="resource-widget resource-flow-layout landing col-16"
35 <div class="resource-widget resource-flow-layout col-16"
/frameworks/base/docs/html/distribute/googleplay/edu/
Dvideos.jd18 <div style="margin-top:20px" class="resource-widget resource-flow-layout wrap col-13
23 <div style="margin-top:20px" class="resource-widget resource-flow-layout wrap col-13
28 <div style="margin-top:20px" class="resource-widget resource-flow-layout wrap col-13
/frameworks/base/docs/html/about/versions/marshmallow/
Dindex.jd34 <div class="resource-widget resource-flow-layout col-16"
55 <div class="resource-widget resource-flow-layout col-16"
69 <div class="resource-widget resource-flow-layout col-16"
79 <div class="resource-widget resource-flow-layout col-16"
/frameworks/base/tools/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()

12345678910>>...22