Home
last modified time | relevance | path

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

12345678910>>...13

/frameworks/base/libs/hwui/
DResourceCache.h71 void incrementRefcount(const SkPath* resource);
72 void incrementRefcount(const SkBitmap* resource);
73 void incrementRefcount(const Res_png_9patch* resource);
75 void incrementRefcountLocked(const SkPath* resource);
76 void incrementRefcountLocked(const SkBitmap* resource);
77 void incrementRefcountLocked(const Res_png_9patch* resource);
79 void decrementRefcount(const SkBitmap* resource);
80 void decrementRefcount(const SkPath* resource);
81 void decrementRefcount(const Res_png_9patch* resource);
83 void decrementRefcountLocked(const SkBitmap* resource);
[all …]
DResourceCache.cpp65 void ResourceCache::incrementRefcount(void* resource, ResourceType resourceType) { in incrementRefcount() argument
67 incrementRefcountLocked(resource, resourceType); in incrementRefcount()
82 void ResourceCache::incrementRefcountLocked(void* resource, ResourceType resourceType) { in incrementRefcountLocked() argument
83 ssize_t index = mCache->indexOfKey(resource); in incrementRefcountLocked()
87 mCache->add(resource, ref); in incrementRefcountLocked()
104 void ResourceCache::decrementRefcount(void* resource) { in decrementRefcount() argument
106 decrementRefcountLocked(resource); in decrementRefcount()
121 void ResourceCache::decrementRefcountLocked(void* resource) { in decrementRefcountLocked() argument
122 ssize_t index = mCache->indexOfKey(resource); in decrementRefcountLocked()
130 deleteResourceReferenceLocked(resource, ref); in decrementRefcountLocked()
[all …]
/frameworks/base/docs/html/distribute/tools/
Dindex.jd15 <div class="resource-widget resource-flow-layout landing col-16"
22 <div class="resource-widget resource-flow-layout landing col-16"
29 <div class="resource-widget resource-flow-layout landing col-16"
36 <div class="resource-widget resource-flow-layout landing col-16"
43 <div class="resource-widget resource-flow-layout landing col-16"
50 <div class="resource-widget resource-stack-layout col-16"
/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.jd69 <div class="resource-widget resource-flow-layout col-13" data-query="collection:distribute/toolsref…
86 <div class="resource-widget resource-flow-layout col-13" data-query="collection:distribute/toolsref…
111 <div class="resource-widget resource-flow-layout col-13" data-query="collection:distribute/toolsref…
150 <div class="resource-widget resource-flow-layout col-13" data-query="collection:distribute/toolsref…
201 <div class="resource-widget resource-flow-layout col-13" data-query="collection:distribute/toolsref…
238 <div class="resource-widget resource-flow-layout col-13" data-query="collection:distribute/toolsref…
266 <div class="resource-widget resource-flow-layout col-13" data-query="collection:distribute/toolsref…
307 <div class="resource-widget resource-flow-layout col-13" data-query="collection:distribute/toolsref…
328 <div class="resource-widget resource-flow-layout col-13" data-query="collection:distribute/toolsref…
349 <div class="resource-widget resource-flow-layout col-13" data-query="collection:distribute/toolsref…
[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>
32 <dt><a href="{@docRoot}guide/topics/resources/layout-resource.html">Layout Resource</a></dt>
35 <dt><a href="{@docRoot}guide/topics/resources/menu-resource.html">Menu Resource</a></dt>
38 <dt><a href="{@docRoot}guide/topics/resources/string-resource.html">String Resources</a></dt>
42 <dt><a href="{@docRoot}guide/topics/resources/style-resource.html">Style Resource</a></dt>
Dmore-resources.jd10 <dd>XML resource that carries a boolean value.</dd>
12 <dd>XML resource that carries a color value (a hexadecimal color).</dd>
14 <dd>XML resource that carries a dimension value (with a unit of measure).</dd>
16 <dd>XML resource that provides a unique identifier for application resources and
19 <dd>XML resource that carries an integer value.</dd>
21 <dd>XML resource that provides an array of integers.</dd>
23 <dd>XML resource that provides a {@link android.content.res.TypedArray} (which you can use
34 <p class="note"><strong>Note:</strong> A bool is a simple resource that is referenced
43 The filename is arbitrary. The {@code &lt;bool>} element's {@code name} will be used as the resource
46 <dt>resource reference:</dt>
[all …]
/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/core/java/android/widget/
DArrayAdapter.java103 public ArrayAdapter(Context context, int resource) { in ArrayAdapter() argument
104 init(context, resource, 0, new ArrayList<T>()); in ArrayAdapter()
115 public ArrayAdapter(Context context, int resource, int textViewResourceId) { in ArrayAdapter() argument
116 init(context, resource, textViewResourceId, new ArrayList<T>()); in ArrayAdapter()
127 public ArrayAdapter(Context context, int resource, T[] objects) { in ArrayAdapter() argument
128 init(context, resource, 0, Arrays.asList(objects)); in ArrayAdapter()
140 public ArrayAdapter(Context context, int resource, int textViewResourceId, T[] objects) { in ArrayAdapter() argument
141 init(context, resource, textViewResourceId, Arrays.asList(objects)); in ArrayAdapter()
152 public ArrayAdapter(Context context, int resource, List<T> objects) { in ArrayAdapter() argument
153 init(context, resource, 0, objects); in ArrayAdapter()
[all …]
/frameworks/base/docs/html/distribute/googleplay/
Dindex.jd17 <div class="resource-widget resource-flow-layout landing col-16"
26 <div class="resource-widget resource-flow-layout landing col-16"
34 <div class="resource-widget resource-flow-layout col-16"
39 <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/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/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.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/engage/
Dindex.jd16 <div class="resource-widget resource-flow-layout landing col-16"
23 <div class="resource-widget resource-flow-layout col-16"
29 <div class="resource-widget resource-flow-layout col-16"
/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/distribute/users/
Dindex.jd15 <div class="resource-widget resource-flow-layout landing col-16"
23 <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()
/frameworks/base/docs/html/distribute/
Dindex.jd10 <div class="resource-widget resource-carousel-layout col-16"
16 <div class="resource-widget resource-flow-layout col-16"
/frameworks/base/core/java/android/view/animation/
DLayoutAnimationController.java112 … int resource = a.getResourceId(com.android.internal.R.styleable.LayoutAnimation_animation, 0); in LayoutAnimationController() local
113 if (resource > 0) { in LayoutAnimationController()
114 setAnimation(context, resource); in LayoutAnimationController()
117resource = a.getResourceId(com.android.internal.R.styleable.LayoutAnimation_interpolator, 0); in LayoutAnimationController()
118 if (resource > 0) { in LayoutAnimationController()
119 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/base/docs/html/distribute/monetize/
Dindex.jd22 <div class="resource-widget resource-flow-layout landing col-16"
30 <div class="resource-widget resource-flow-layout col-16"
/frameworks/base/docs/html/training/basics/supporting-devices/
Dlanguages.jd33 the project. Within this <code>res/</code> directory are subdirectories for various resource
47 <p>Once you’ve decided on the languages you will support, create the resource subdirectories and
48 string resource files. For example:</p>
66 <p>For example, the following are some different string resource files for different languages.</p>
102 configuration qualifer) on any resource type, such as if you want to provide
109 resource name defined by the {@code &lt;string>} element's {@code name} attribute.</p>
111 <p>In your source code, you can refer to a string resource with the syntax {@code
112 R.string.&lt;string_name>}. There are a variety of methods that accept a string resource this
118 // Get a string resource from your app's {@link android.content.res.Resources}
121 // Or supply a string resource to a method that requires a string
[all …]

12345678910>>...13