Home
last modified time | relevance | path

Searched refs:resources (Results 1 – 25 of 310) sorted by relevance

12345678910>>...13

/frameworks/base/docs/html/guide/topics/resources/
Doverview.jd8 <li><a href="providing-resources.html">Providing Resources</a></li>
9 <li><a href="accessing-resources.html">Accessing Resources</a></li>
16 <li><a href="available-resources.html">Resource Types</a></li>
22 <p>You should always externalize resources such as images and strings from your application
24 resources also allows you to provide alternative resources that support specific device
27 to provide compatibility with different configurations, you must organize resources in your
28 project's {@code res/} directory, using various sub-directories that group resources by type and
32 <img src="{@docRoot}images/resources/resource_devices_diagram1.png" height="167" alt="" />
39 <img src="{@docRoot}images/resources/resource_devices_diagram2.png" height="167" alt="" />
46 <em>alternative</em> resources for your application:</p>
[all …]
Davailable-resources.jd10 <li><a href="providing-resources.html">Providing Resources</a></li>
11 <li><a href="accessing-resources.html">Accessing Resources</a></li>
17 of application resource that you can provide in your resources directory ({@code res/}).</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<…
27 <dd>Define a color resources that changes based on the View state.<br/>
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>
[all …]
Dmore-resources.jd3 parent.link=available-resources.html
6 <p>This page defines more types of resources you can externalize, including:</p>
16 <dd>XML resource that provides a unique identifier for application resources and
36 such, you can combine bool resources with other simple resources in the one XML file,
37 under one {@code &lt;resources>} element.</p>
56 &lt;<a href="#bool-resources-element">resources</a>&gt;
60 &lt;/resources>
68 <dt id="bool-resources-element"><code>&lt;resources&gt;</code></dt>
88 &lt;resources&gt;
91 &lt;/resources>
[all …]
Dstyle-resource.jd3 parent.link=available-resources.html
25 such, you can combine style resources with other simple resources in the one XML file,
26 under one {@code &lt;resources>} element.</p>
43 &lt;<a href="#resources-element">resources</a>>
51 &lt;/resources>
59 <dt id="resources-element"><code>&lt;resources&gt;</code></dt>
101 &lt;resources>
106 &lt;/resources>
Dproviding-resources.jd10 <li>Different types of resources belong in different subdirectories of {@code res/}</li>
11 <li>Alternative resources provide configuration-specific resource files</li>
12 <li>Always include default resources so your app does not depend on specific
21 <li><a href="#AliasResources">Creating alias resources</a></li>
30 <li><a href="accessing-resources.html">Accessing Resources</a></li>
31 <li><a href="available-resources.html">Resource Types</a></li>
38 <p>You should always externalize application resources such as images and strings from your
39 code, so that you can maintain them independently. You should also provide alternative resources for
45 <p>Once you externalize your application resources, you can access them
47 resources in your application is discussed in <a href="accessing-resources.html">Accessing
[all …]
Daccessing-resources.jd12 <li>Resources can be referenced from resources using a special XML syntax, such as {@code
14 <li>You can also access your app resources with methods in
36 <li><a href="providing-resources.html">Providing Resources</a></li>
37 <li><a href="available-resources.html">Resource Types</a></li>
46 href="providing-resources.html">Providing Resources</a>), you can apply it by
51 resource IDs for all the resources in your {@code
53 {@code R.drawable} for all drawable resources), and for each resource of that type, there is a stat…
62 href="available-resources.html">Resource Types</a>.
75 Android APIs that can access your resources when you provide a resource ID in this format. See
99 <p>You can also retrieve individual resources using methods in {@link
[all …]
Dstring-resource.jd3 parent.link=available-resources.html
7 with optional text styling and formatting. There are three types of resources that can provide
33 combine string resources with other simple resources in the one XML file,
34 under one {@code &lt;resources>} element.</p>
56 &lt;<a href="#string-resources-element">resources</a>>
60 &lt;/resources>
68 <dt id="string-resources-element"><code>&lt;resources&gt;</code></dt>
91 &lt;resources>
93 &lt;/resources>
130 such, you can combine string array resources with other simple resources in the one XML file,
[all …]
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/
DScriptC.java56 protected ScriptC(RenderScript rs, Resources resources, int resourceID) { in ScriptC() argument
61 ScriptCThunker s = new ScriptCThunker(rst, resources, resourceID); in ScriptC()
66 int id = internalCreate(rs, resources, resourceID); in ScriptC()
74 …private static synchronized int internalCreate(RenderScript rs, Resources resources, int resourceI… in internalCreate() argument
77 InputStream is = resources.openRawResource(resourceID); in internalCreate()
103 String resName = resources.getResourceEntryName(resourceID); in internalCreate()
/frameworks/native/libs/utils/
DREADME28 resources in other packages. When an application requests resources,
51 This section provides generic background material on resources in
55 How resources are bundled in .apk files
58 certificates and resources, though packages containing resources but
74 format in a named file resources.arsc, bundled as part of the .apk.
78 During compilation, the aapt tool gathers application resources and
79 generates a resources.arsc file. Each resource name is assigned an
89 * iiii: sequential number, assigned in the order resources are found.
98 Parsing of resources.arsc is handled by ResourceTypes.cpp; this utility
99 is governed by AssetManager.cpp, which tracks loaded resources per
[all …]
/frameworks/base/
DAndroid.mk475 resources/samples/AccelerometerPlay "Accelerometer Play" \
477 resources/samples/ActionBarCompat "Action Bar Compatibility" \
479 resources/samples/AndroidBeamDemo "Android Beam Demo" \
481 resources/samples/ApiDemos "API Demos" \
483 resources/samples/Support4Demos "API 4+ Support Demos" \
485 resources/samples/Support13Demos "API 13+ Support Demos" \
487 resources/samples/BackupRestore "Backup and Restore" \
489 resources/samples/BluetoothChat "Bluetooth Chat" \
491 resources/samples/BluetoothHDP "Bluetooth HDP Demo" \
493 resources/samples/BusinessCard "Business Card" \
[all …]
/frameworks/base/graphics/java/android/renderscript/
DScriptC.java56 protected ScriptC(RenderScript rs, Resources resources, int resourceID) { in ScriptC() argument
58 int id = internalCreate(rs, resources, resourceID); in ScriptC()
72 …private static synchronized int internalCreate(RenderScript rs, Resources resources, int resourceI… in internalCreate() argument
75 InputStream is = resources.openRawResource(resourceID); in internalCreate()
101 String resName = resources.getResourceEntryName(resourceID); in internalCreate()
/frameworks/base/tests/CanvasCompare/src/com/android/test/hwuicompare/
DResourceModifiers.java51 public static void init(Resources resources) { in init() argument
52 sInstance = new ResourceModifiers(resources); in init()
55 public ResourceModifiers(Resources resources) { in ResourceModifiers() argument
56 mBitmap = BitmapFactory.decodeResource(resources, R.drawable.sunset1); in ResourceModifiers()
60 mDrawWidth = resources.getDimensionPixelSize(R.dimen.layer_width); in ResourceModifiers()
61 mDrawHeight = resources.getDimensionPixelSize(R.dimen.layer_height); in ResourceModifiers()
/frameworks/base/docs/html/training/basics/supporting-devices/
Dlanguages.jd3 page.tags="localizing","localization","resources", "formats", "l10n"
23 …<li><a href="{@docRoot}guide/topics/resources/localization.html">Localization with Resources</a></…
29 in an external file. Android makes this easy with a resources directory in each Android
45 resourcess for the Locales with the language code "es". Android loads the appropriate resources
64 <p>At runtime, the Android system uses the appropriate set of string resources based on the
74 &lt;resources>
77 &lt;/resources>
85 &lt;resources>
88 &lt;/resources>
96 &lt;resources>
[all …]
Dindex.jd2 page.tags="resources","screens","versions","localization"
19 <li><a href="{@docRoot}guide/topics/resources/index.html">Application Resources</a></li>
34 resources and other features so your app can provide an optimized user experience on a
41 <dd>Learn how to support multiple languages with alternative string resources.</dd>
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DRenderSessionImpl.java52 import com.android.resources.ResourceType;
53 import com.android.resources.ScreenOrientation;
179 RenderResources resources = getParams().getResources(); in init() local
183 mIsAlphaChannelImage = getBooleanThemeValue(resources, in init()
186 mWindowIsFloating = getBooleanThemeValue(resources, "windowIsFloating", in init()
189 findBackground(resources); in init()
190 findStatusBar(resources, metrics); in init()
191 findActionBar(resources, metrics); in init()
192 findNavigationBar(resources, metrics); in init()
1018 private void findBackground(RenderResources resources) { in findBackground() argument
[all …]
/frameworks/base/core/java/android/view/
DPointerIcon.java195 public static PointerIcon loadCustomIcon(Resources resources, int resourceId) { in loadCustomIcon() argument
196 if (resources == null) { in loadCustomIcon()
201 icon.loadResource(resources, resourceId); in loadCustomIcon()
376 private void loadResource(Resources resources, int resourceId) { in loadResource() argument
377 XmlResourceParser parser = resources.getXml(resourceId); in loadResource()
384 TypedArray a = resources.obtainAttributes( in loadResource()
400 Drawable drawable = resources.getDrawable(bitmapRes); in loadResource()
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DThinPatchesActivity.java53 final Resources resources = activity.getResources(); in PatchView() local
54 mPatch1 = resources.getDrawable(R.drawable.patch); in PatchView()
55 mPatch2 = resources.getDrawable(R.drawable.btn_toggle_on); in PatchView()
56 mPatch3 = resources.getDrawable(R.drawable.patch2); in PatchView()
/frameworks/base/docs/html/guide/appendix/faq/
Dtroubleshooting.jd4 document.location=toRoot+"resources/faq/troubleshooting.html"
8 <a href="{@docRoot}resources/faq/troubleshooting.html">this link</a>.</p>
Dframework.jd4 document.location=toRoot+"resources/faq/framework.html"
8 <a href="{@docRoot}resources/faq/framework.html">this link</a>.</p>
Dlicensingandoss.jd4 document.location=toRoot+"resources/faq/licensingandoss.html"
8 <a href="{@docRoot}resources/faq/licensingandoss.html">this link</a>.</p>
Dindex.jd4 document.location=toRoot+"resources/faq/index.html"
8 <a href="{@docRoot}resources/faq/index.html">this link</a>.</p>
Dsecurity.jd4 document.location=toRoot+"resources/faq/security.html"
8 <a href="{@docRoot}resources/faq/security.html">this link</a>.</p>
Dcommontasks.jd4 document.location=toRoot+"resources/faq/commontasks.html"
8 <a href="{@docRoot}resources/faq/commontasks.html">this link</a>.</p>
/frameworks/base/core/java/android/webkit/
DDateSorter.java53 Resources resources = context.getResources(); in DateSorter() local
69 Locale locale = resources.getConfiguration().locale; in DateSorter()
78 String format = resources.getQuantityString(resId, NUM_DAYS_AGO); in DateSorter()
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
DStatusBar.java19 import com.android.resources.Density;
20 import com.android.resources.ResourceType;

12345678910>>...13