/frameworks/base/libs/hwui/ |
D | ResourceCache.h | 68 void incrementRefcount(SkPath* resource); 69 void incrementRefcount(SkBitmap* resource); 70 void incrementRefcount(SkiaShader* resource); 71 void incrementRefcount(SkiaColorFilter* resource); 72 void incrementRefcount(Layer* resource); 74 void incrementRefcountLocked(SkPath* resource); 75 void incrementRefcountLocked(SkBitmap* resource); 76 void incrementRefcountLocked(SkiaShader* resource); 77 void incrementRefcountLocked(SkiaColorFilter* resource); 78 void incrementRefcountLocked(Layer* resource); [all …]
|
D | ResourceCache.cpp | 57 void ResourceCache::incrementRefcount(void* resource, ResourceType resourceType) { in incrementRefcount() argument 59 incrementRefcountLocked(resource, resourceType); in incrementRefcount() 86 void ResourceCache::incrementRefcountLocked(void* resource, ResourceType resourceType) { in incrementRefcountLocked() argument 87 ssize_t index = mCache->indexOfKey(resource); in incrementRefcountLocked() 91 mCache->add(resource, ref); in incrementRefcountLocked() 120 void ResourceCache::decrementRefcount(void* resource) { in decrementRefcount() argument 122 decrementRefcountLocked(resource); in decrementRefcount() 149 void ResourceCache::decrementRefcountLocked(void* resource) { in decrementRefcountLocked() argument 150 ssize_t index = mCache->indexOfKey(resource); in decrementRefcountLocked() 158 deleteResourceReferenceLocked(resource, ref); in decrementRefcountLocked() [all …]
|
D | DisplayList.cpp | 181 SkBitmap* resource = bitmapResources.itemAt(i); in initFromDisplayListRenderer() local 182 mBitmapResources.add(resource); in initFromDisplayListRenderer() 183 caches.resourceCache.incrementRefcountLocked(resource); in initFromDisplayListRenderer() 188 SkBitmap* resource = ownedBitmapResources.itemAt(i); in initFromDisplayListRenderer() local 189 mOwnedBitmapResources.add(resource); in initFromDisplayListRenderer() 190 caches.resourceCache.incrementRefcountLocked(resource); in initFromDisplayListRenderer() 195 SkiaColorFilter* resource = filterResources.itemAt(i); in initFromDisplayListRenderer() local 196 mFilterResources.add(resource); in initFromDisplayListRenderer() 197 caches.resourceCache.incrementRefcountLocked(resource); in initFromDisplayListRenderer() 202 SkiaShader* resource = shaders.itemAt(i); in initFromDisplayListRenderer() local [all …]
|
/frameworks/base/docs/html/guide/topics/resources/ |
D | accessing-resources.jd | 45 <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 …]
|
D | available-resources.jd | 17 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>
|
D | more-resources.jd | 10 <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 <bool>} element's {@code name} will be used as the resource 46 <dt>resource reference:</dt> [all …]
|
D | providing-resources.jd | 11 <li>Alternative resources provide configuration-specific resource files</li> 40 specific device configurations, by grouping them in specially-named resource directories. At 41 runtime, Android uses the appropriate resource based on the current configuration. For 46 using resource IDs that are generated in your project's {@code R} class. How to use 54 <p>You should place each type of resource in a specific subdirectory of your project's 72 subdirectories): an image resource, two layout resources, and a string resource file. The resource 101 <td>XML files that define a state list of colors. See <a href="color-list-resource.html">Color 108 are compiled into the following drawable resource subtypes:</p> 117 <p>See <a href="drawable-resource.html">Drawable Resources</a>.</p> 124 See <a href="layout-resource.html">Layout Resource</a>.</td> [all …]
|
D | style-resource.jd | 16 <p>A style resource defines the format and look for a UI. 23 <p class="note"><strong>Note:</strong> A style is a simple resource that is referenced 32 The filename is arbitrary. The element's {@code name} will be used as the resource ID.</dd> 34 <dt>resource reference:</dt> 69 resource ID to apply the style to a View, Activity, or application. 72 <dd><em>Style resource</em>. Reference to a style from which this 84 <dd><em>Attribute resource</em>. <strong>Required</strong>. The name of the style property
|
D | drawable-resource.jd | 15 <p>A drawable resource is a general concept for a graphic that can be drawn to the screen and which 17 to another XML resource with attributes such as {@code android:drawable} and {@code android:icon}. 56 <p>Also see the <a href="animation-resource.html">Animation Resource</a> document for how to 60 href="{@docRoot}guide/topics/resources/more-resources.html#Color">color resource</a> can also be 62 drawable</a>, you can reference a color resource for the {@code android:drawable} attribute ({@code 73 <p>You can reference a bitmap file directly, using the filename as the resource ID, or create an 74 alias resource ID in XML.</p> 89 resource for any of these files when you save them in the {@code res/drawable/} directory.</p> 95 The filename is used as the resource ID.</dd> 97 <dt>compiled resource datatype:</dt> [all …]
|
D | string-resource.jd | 6 <p>A string resource provides text strings for your application 12 <dd>XML resource that provides a single string.</dd> 14 <dd>XML resource that provides an array of strings.</dd> 16 <dd>XML resource that carries different strings for pluralization.</dd> 28 <p>A single string that can be referenced from the application or from other resource files (such 31 <p class="note"><strong>Note:</strong> A string is a simple resource that is referenced 41 resource ID.</dd> 43 <dt>compiled resource datatype:</dt> 46 <dt>resource reference:</dt> 79 <dd><em>String</em>. A name for the string. This name will be used as the resource [all …]
|
D | layout-resource.jd | 15 <p>A layout resource defines the architecture for the UI in an Activity or a component of a UI.</p> 22 The filename will be used as the resource ID.</dd> 24 <dt>compiled resource datatype:</dt> 25 <dd>Resource pointer to a {@link android.view.View} (or subclass) resource.</dd> 27 <dt>resource reference:</dt> 79 <dd><em>Resource ID</em>. A unique resource name for the element, which you can 86 href="more-resources.html#Dimension">dimension resource</a>) or a keyword ({@code "fill_parent"} 92 href="more-resources.html#Dimension">dimension resource</a>) or a keyword ({@code "fill_parent"} 111 <dd><em>Resource ID</em>. A unique resource name for the element, which you can use to 118 href="more-resources.html#Dimension">dimension resource</a>) or a keyword ({@code "fill_parent"} [all …]
|
/frameworks/base/core/java/android/widget/ |
D | ArrayAdapter.java | 103 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 …]
|
D | ViewAnimator.java | 57 … int resource = a.getResourceId(com.android.internal.R.styleable.ViewAnimator_inAnimation, 0); in ViewAnimator() local 58 if (resource > 0) { in ViewAnimator() 59 setInAnimation(context, resource); in ViewAnimator() 62 resource = a.getResourceId(com.android.internal.R.styleable.ViewAnimator_outAnimation, 0); in ViewAnimator() 63 if (resource > 0) { in ViewAnimator() 64 setOutAnimation(context, resource); in ViewAnimator()
|
D | SimpleAdapter.java | 80 int resource, String[] from, int[] to) { in SimpleAdapter() argument 82 mResource = mDropDownResource = resource; in SimpleAdapter() 118 ViewGroup parent, int resource) { in createViewFromResource() argument 121 v = mInflater.inflate(resource, parent, false); in createViewFromResource() 137 public void setDropDownViewResource(int resource) { in setDropDownViewResource() argument 138 this.mDropDownResource = resource; in setDropDownViewResource()
|
/frameworks/base/docs/html/guide/topics/manifest/ |
D | meta-data-element.jd | 9 android:<a href="#rsrc">resource</a>="<i>resource specification</i>" 29 attribute. However, to assign a resource ID as the value, use the 30 <code><a href="{@docRoot}guide/topics/manifest/meta-data-element.html#resource">resource</a></code>… 32 resource to the "{@code zoo}" name: 38 On the other hand, using the {@code resource} attribute would assign "{@code zoo}" 39 the numeric ID of the resource, not the value stored in the resource: 42 <pre><meta-data android:name="zoo" android:resource="@string/kangaroo" /></pre> 47 have complex data to associate with a component, store it as a resource and 48 use the {@code resource} attribute to inform the component of its ID. 58 <dt><a name="rsrc"></a>{@code android:resource}</dt> [all …]
|
D | permission-group-element.jd | 8 …e class="stx"><permission-group android:<a href="#desc">description</a>="<i>string resource</i>" 9 android:<a href="#icon">icon</a>="<i>drawable resource</i>" 10 android:<a href="#label">label</a>="<i>string resource</i>" 34 set as a reference to a string resource. Unlike the {@code label} 39 as a reference to a drawable resource containing the image definition.</dd> 45 as a reference to a string resource, so that it can be localized like other
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/util/ |
D | DynamicIdMap.java | 62 public Integer getId(Pair<ResourceType, String> resource) { in getId() argument 63 Integer value = mDynamicIds.get(resource); in getId() 66 mDynamicIds.put(resource, value); in getId() 67 mRevDynamicIds.put(value, resource); in getId()
|
/frameworks/base/core/tests/overlaytests/ |
D | README | 1 Unit tests for runtime resource overlay 4 As of this writing, runtime resource overlay is only triggered for 11 Once runtime resource overlay may be applied to applications, the tests 13 applying runtime resource overlay to a dedicated test application, the
|
/frameworks/base/core/java/android/view/animation/ |
D | LayoutAnimationController.java | 112 … 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() 117 … resource = 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/docs/html/training/basics/supporting-devices/ |
D | languages.jd | 35 the project. Within this <code>res/</code> directory are subdirectories for various resource 48 <p>Once you’ve decided on the languages you will support, create the resource subdirectories and 49 string resource files. For example:</p> 67 <p>For example, the following are some different string resource files for different languages.</p> 103 configuration qualifer) on any resource type, such as if you want to provide 110 resource name defined by the {@code <string>} element's {@code name} attribute.</p> 112 <p>In your source code, you can refer to a string resource with the syntax {@code 113 R.string.<string_name>}. There are a variety of methods that accept a string resource this 119 // Get a string resource from your app's {@link android.content.res.Resources} 122 // Or supply a string resource to a method that requires a string [all …]
|
/frameworks/native/libs/utils/ |
D | README | 27 additional resource values (and possibly new configurations) for 70 * res/values: integers, strings, etc. Each resource may have different 79 generates a resources.arsc file. Each resource name is assigned an 84 * tt: corresponds to the resource type (string, int, etc). Every 85 resource of the same type within the same package has the same 109 The pp part of a resource ID defines a namespace. Android currently 121 resource.arsc files. Normally, this forest is structured as follows, 133 The resource overlay extension 136 The resource overlay mechanism aims to (partly) shadow and extend 138 Technically, this is achieved by adding resource-only packages (called [all …]
|
/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/base/tools/layoutlib/bridge/src/android/util/ |
D | BridgeXmlPullAttributes.java | 266 ResourceValue resource = getResourceValue(value); in resolveResourceValue() local 267 if (resource != null) { in resolveResourceValue() 269 if (mPlatformFile || resource.isFramework()) { in resolveResourceValue() 270 id = Bridge.getResourceId(resource.getResourceType(), resource.getName()); in resolveResourceValue() 273 resource.getResourceType(), resource.getName()); in resolveResourceValue()
|
/frameworks/base/docs/html/tools/projects/ |
D | index.jd | 24 <p>Projects act as containers for storing things such as code and resource files. The SDK tools 33 <dd>An Android project is the container for your application's source code, resource files, and 60 onto a device. They contain things such as application source code and resource files. 105 "{@docRoot}guide/topics/resources/animation-resource.html">Animation</a> resource 111 "{@docRoot}guide/topics/resources/color-list-resource.html">Color Values</a> resource 119 "{@docRoot}guide/topics/resources/drawable-resource.html">Drawable</a> resource type.</dd> 124 "{@docRoot}guide/topics/resources/layout-resource.html">Layout</a> resource type.</dd> 129 See the <a href="{@docRoot}guide/topics/resources/menu-resource.html">Menus</a> 130 resource type.</dd> 136 are processed by aapt and must be referenced from the application using a resource [all …]
|
/frameworks/base/docs/html/training/basics/firstapp/ |
D | building-ui.jd | 150 <h3>About resource objects</h3> 151 <p>A resource object is simply a unique integer name that's associated with an app resource, 153 <p>Every resource has a 154 corresponding resource object defined in your project's {@code gen/R.java} file. You can use the 158 attribute. You can also create arbitrary resource IDs that you associate with a view using the <a 176 <p>The at sign (<code>@</code>) is required when you're referring to any resource object from 177 XML. It is followed by the resource type ({@code id} in this case), a slash, then the resource name 180 <p>The plus sign (<code>+</code>) before the resource type is needed only when you're defining a 181 resource ID for the first time. When you compile the app, 182 the SDK tools use the ID name to create a new resource ID in [all …]
|