Home
last modified time | relevance | path

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

12345678910>>...18

/frameworks/base/libs/hwui/
DResourceCache.cpp62 void ResourceCache::incrementRefcount(void* resource, ResourceType resourceType) { in incrementRefcount() argument
64 incrementRefcountLocked(resource, resourceType); in incrementRefcount()
71 void ResourceCache::incrementRefcountLocked(void* resource, ResourceType resourceType) { in incrementRefcountLocked() argument
72 ssize_t index = mCache->indexOfKey(resource); in incrementRefcountLocked()
76 mCache->add(resource, ref); in incrementRefcountLocked()
81 void ResourceCache::decrementRefcount(void* resource) { in decrementRefcount() argument
83 decrementRefcountLocked(resource); in decrementRefcount()
90 void ResourceCache::decrementRefcountLocked(void* resource) { in decrementRefcountLocked() argument
91 ssize_t index = mCache->indexOfKey(resource); in decrementRefcountLocked()
99 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/tools/aapt2/
Dtodo.txt13 X Assign resource IDs.
14 X Assign public resource IDs.
15 X Merge resource tables
17 - Align resource tables
21 - Generate resource table from base resources.
22 - Generate resource table from individual resources of the required type.
23 - Align resource tables (same type/name = same ID).
27 X Generate resource tables for all configurations.
28 - Align individual resource tables.
29 - Merge resource tables.
/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.java112 public ArrayAdapter(Context context, @LayoutRes int resource) { in ArrayAdapter() argument
113 this(context, resource, 0, new ArrayList<T>()); in ArrayAdapter()
124 public ArrayAdapter(Context context, @LayoutRes int resource, @IdRes int textViewResourceId) { in ArrayAdapter() argument
125 this(context, resource, textViewResourceId, new ArrayList<T>()); in ArrayAdapter()
136 public ArrayAdapter(Context context, @LayoutRes int resource, @NonNull T[] objects) { in ArrayAdapter() argument
137 this(context, resource, 0, Arrays.asList(objects)); in ArrayAdapter()
149 public ArrayAdapter(Context context, @LayoutRes int resource, @IdRes int textViewResourceId, in ArrayAdapter() argument
151 this(context, resource, textViewResourceId, Arrays.asList(objects)); in ArrayAdapter()
162 public ArrayAdapter(Context context, @LayoutRes int resource, @NonNull List<T> objects) { in ArrayAdapter() argument
163 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/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-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/googleplay/
Dindex.jd16 <div class="resource-widget resource-flow-layout landing col-16"
25 <div class="resource-widget resource-flow-layout landing col-16"
33 <div class="resource-widget resource-flow-layout col-16"
/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/distribute/essentials/
Dindex.jd17 <div class="resource-widget resource-flow-layout landing col-16"
25 <div class="resource-widget resource-flow-layout landing col-16"
33 <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/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/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/tools/performance/
Dindex.jd30 <div class="resource-widget resource-flow-layout landing col-12"
42 <div class="resource-widget resource-flow-layout landing col-12"
54 <div class="resource-widget resource-flow-layout landing col-12"
66 <div class="resource-widget resource-flow-layout landing col-12"
/frameworks/base/docs/html/training/auto/
Dindex.jd39 <div class="resource-widget resource-flow-layout col-12"
53 <div class="resource-widget resource-flow-layout landing col-12"
67 <div class="resource-widget resource-flow-layout landing col-12"
80 <div class="resource-widget resource-flow-layout landing col-12"
/frameworks/data-binding/compilerCommon/src/main/java/android/databinding/tool/
DLayoutXmlProcessor.java69 for (File resource : resources) { in getLayoutFiles()
70 if (!resource.exists() || !resource.canRead()) { in getLayoutFiles()
73 if (resource.isDirectory()) { in getLayoutFiles()
74 for (File layoutFolder : resource.listFiles(layoutFolderFilter)) { in getLayoutFiles()
80 } else if (xmlFileFilter.accept(resource.getParentFile(), resource.getName())) { in getLayoutFiles()
81 result.add(resource); in getLayoutFiles()

12345678910>>...18