/frameworks/av/services/mediaresourcemanager/test/ |
D | ResourceManagerService_test.cpp | 115 const Vector<MediaResource> &resources) { in expectEqResourceInfo() argument 117 EXPECT_TRUE(isEqualResources(resources, info.resources)); in expectEqResourceInfo() 252 Vector<MediaResource> resources; in testReclaimResourceSecure() local 253 resources.push_back(MediaResource(String8(kResourceSecureCodec), 1)); in testReclaimResourceSecure() 254 resources.push_back(MediaResource(String8(kResourceGraphicMemory), 150)); in testReclaimResourceSecure() 263 EXPECT_FALSE(mService->reclaimResource(kLowPriorityPid, resources)); in testReclaimResourceSecure() 264 EXPECT_FALSE(mService->reclaimResource(kMidPriorityPid, resources)); in testReclaimResourceSecure() 267 EXPECT_TRUE(mService->reclaimResource(kHighPriorityPid, resources)); in testReclaimResourceSecure() 271 EXPECT_TRUE(mService->reclaimResource(kHighPriorityPid, resources)); in testReclaimResourceSecure() 275 EXPECT_FALSE(mService->reclaimResource(kHighPriorityPid, resources)); in testReclaimResourceSecure() [all …]
|
/frameworks/base/libs/androidfw/tests/data/basic/ |
D | build | 21 unzip bundle.apk resources.arsc && \ 22 mv resources.arsc basic.arsc && \ 25 unzip bundle_de_fr.apk resources.arsc && \ 26 mv resources.arsc split_de_fr.arsc && \ 29 unzip bundle_hdpi-v4.apk resources.arsc && \ 30 mv resources.arsc split_hdpi_v4.arsc && \ 33 unzip bundle_xhdpi-v4.apk resources.arsc && \ 34 mv resources.arsc split_xhdpi_v4.arsc && \ 37 unzip bundle_xxhdpi-v4.apk resources.arsc && \ 38 mv resources.arsc split_xxhdpi_v4.arsc && \
|
/frameworks/base/tools/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/setup/ |
D | ConfigGenerator.java | 20 import com.android.ide.common.resources.configuration.CountryCodeQualifier; 21 import com.android.ide.common.resources.configuration.DensityQualifier; 22 import com.android.ide.common.resources.configuration.FolderConfiguration; 23 import com.android.ide.common.resources.configuration.KeyboardStateQualifier; 24 import com.android.ide.common.resources.configuration.LayoutDirectionQualifier; 25 import com.android.ide.common.resources.configuration.LocaleQualifier; 26 import com.android.ide.common.resources.configuration.NavigationMethodQualifier; 27 import com.android.ide.common.resources.configuration.NetworkCodeQualifier; 28 import com.android.ide.common.resources.configuration.NightModeQualifier; 29 import com.android.ide.common.resources.configuration.ScreenDimensionQualifier; [all …]
|
/frameworks/base/docs/html/guide/topics/resources/ |
D | overview.jd | 8 <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 …]
|
D | available-resources.jd | 10 <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> 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> [all …]
|
D | more-resources.jd | 3 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 <resources>} element.</p> 56 <<a href="#bool-resources-element">resources</a>> 60 </resources> 68 <dt id="bool-resources-element"><code><resources></code></dt> 88 <resources> 91 </resources> [all …]
|
D | style-resource.jd | 3 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 <resources>} element.</p> 43 <<a href="#resources-element">resources</a>> 51 </resources> 59 <dt id="resources-element"><code><resources></code></dt> 101 <resources> 106 </resources>
|
D | providing-resources.jd | 10 <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 …]
|
D | accessing-resources.jd | 12 <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 …]
|
/frameworks/av/services/mediaresourcemanager/ |
D | ResourceManagerService.cpp | 45 static bool hasResourceType(String8 type, Vector<MediaResource> resources) { in hasResourceType() argument 46 for (size_t i = 0; i < resources.size(); ++i) { in hasResourceType() 47 if (resources[i].mType == type) { in hasResourceType() 56 if (hasResourceType(type, infos[i].resources)) { in hasResourceType() 121 Vector<MediaResource> resources = infos[j].resources; in dump() local 123 for (size_t k = 0; k < resources.size(); ++k) { in dump() 124 snprintf(buffer, SIZE, " %s\n", resources[k].toString().string()); in dump() 170 const Vector<MediaResource> &resources) { in addResource() argument 172 pid, (long long) clientId, getString(resources).string()); in addResource() 179 info.resources.appendVector(resources); in addResource() [all …]
|
/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/expr/ |
D | ResourceExpr.java | 138 final String resources = "getRoot().getResources()"; in toJava() local 142 if ("bool".equals(mResourceType)) return resources + ".getBoolean(" + resourceName + ")"; in toJava() 143 if ("color".equals(mResourceType)) return resources + ".getColor(" + resourceName + ")"; in toJava() 144 …if ("colorStateList".equals(mResourceType)) return resources + ".getColorStateList(" + resourceNam… in toJava() 145 if ("dimen".equals(mResourceType)) return resources + ".getDimension(" + resourceName + ")"; in toJava() 146 …if ("dimenOffset".equals(mResourceType)) return resources + ".getDimensionPixelOffset(" + resource… in toJava() 147 …if ("dimenSize".equals(mResourceType)) return resources + ".getDimensionPixelSize(" + resourceName… in toJava() 148 … if ("drawable".equals(mResourceType)) return resources + ".getDrawable(" + resourceName + ")"; in toJava() 152 return resources + ".getFraction(" + resourceName + ", " + base + ", " + pbase + in toJava() 156 … if ("intArray".equals(mResourceType)) return resources + ".getIntArray(" + resourceName + ")"; in toJava() [all …]
|
/frameworks/av/media/libmedia/ |
D | IResourceManagerService.cpp | 77 const Vector<MediaResource> &resources) { in addResource() argument 83 writeToParcel(&data, resources); in addResource() 97 virtual bool reclaimResource(int callingPid, const Vector<MediaResource> &resources) { in reclaimResource() argument 101 writeToParcel(&data, resources); in reclaimResource() 135 Vector<MediaResource> resources; in onTransact() local 136 readFromParcel(data, &resources); in onTransact() 137 addResource(pid, clientId, client, resources); in onTransact() 152 Vector<MediaResource> resources; in onTransact() local 153 readFromParcel(data, &resources); in onTransact() 154 bool ret = reclaimResource(callingPid, resources); in onTransact()
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
D | SpeechOrbView.java | 31 Resources resources = context.getResources(); in SpeechOrbView() local 33 resources.getFraction(R.fraction.lb_search_bar_speech_orb_max_level_zoom, 1, 1); in SpeechOrbView() 35 mNotListeningOrbColors = new Colors(resources.getColor(R.color.lb_speech_orb_not_recording), in SpeechOrbView() 36 resources.getColor(R.color.lb_speech_orb_not_recording_pulsed), in SpeechOrbView() 37 resources.getColor(R.color.lb_speech_orb_not_recording_icon)); in SpeechOrbView() 38 mListeningOrbColors = new Colors(resources.getColor(R.color.lb_speech_orb_recording), in SpeechOrbView() 39 resources.getColor(R.color.lb_speech_orb_recording), in SpeechOrbView()
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/system/ |
D | Settings.java | 114 public Customizations(Resources resources, String packageName) { in Customizations() argument 115 mResources = resources; in Customizations() 131 Resources resources = null; in getCustomizations() local 137 resources = pm.getResourcesForApplication(packageName); in getCustomizations() 141 if (resources != null) { in getCustomizations() 146 return resources == null ? null : new Customizations(resources, packageName); in getCustomizations()
|
/frameworks/base/tools/aapt2/ |
D | process.dot | 4 out_table_aligned [label="out/default/resources-aligned.arsc"]; 5 out_table_fr_aligned [label="out/fr/resources-aligned.arsc"]; 10 out_table [label="out/default/resources.arsc"]; 11 out_fr_table [label="out/fr/resources.arsc"]; 12 out_values_table [label="out/values/resources.arsc"]; 13 out_layout_table [label="out/layout/resources.arsc"]; 14 out_values_fr_table [label="out/values-fr/resources.arsc"]; 15 out_layout_fr_table [label="out/layout-fr/resources.arsc"]; 22 lib_apk_resources_arsc [label="lib.apk:resources.arsc",color=green];
|
D | todo.txt | 9 X - Copy and transform resources. 20 - Collect all resources (ids from layouts). 21 - Generate resource table from base resources. 22 - Generate resource table from individual resources of the required type. 26 X Collect all resources (ids from layouts).
|
/frameworks/base/docs/html/training/basics/supporting-devices/ |
D | languages.jd | 3 page.tags=strings,localizing,localization,resources,formats,l10n 21 …<li><a href="{@docRoot}guide/topics/resources/localization.html">Localization with Resources</a></… 27 in an external file. Android makes this easy with a resources directory in each Android 43 resourcess for the Locales with the language code "es". Android loads the appropriate resources 45 …<a href="{@docRoot}guide/topics/resources/providing-resources.html#AlternativeResources">Providing… 63 <p>At runtime, the Android system uses the appropriate set of string resources based on the 73 <resources> 76 </resources> 84 <resources> 87 </resources> [all …]
|
/frameworks/support/design/base/android/support/design/widget/ |
D | FloatingActionButtonImpl.java | 66 final Resources resources = mView.getResources(); in createBorderDrawable() local 69 resources.getColor(R.color.design_fab_stroke_top_outer_color), in createBorderDrawable() 70 resources.getColor(R.color.design_fab_stroke_top_inner_color), in createBorderDrawable() 71 resources.getColor(R.color.design_fab_stroke_end_inner_color), in createBorderDrawable() 72 resources.getColor(R.color.design_fab_stroke_end_outer_color)); in createBorderDrawable()
|
/frameworks/base/tools/layoutlib/bridge/resources/bars/ |
D | README | 1 The directory contains the resources for StatusBar and Navigation Bar. 3 The resources are not arranged as per the standard resources configuration. 4 They are stored per API. However, to prevent duplication of resources, each API
|
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/util/ |
D | Partner.java | 55 return entry.resources.getDrawable(entry.id); in getDrawable() 66 return entry.resources.getString(entry.id); in getString() 94 public Resources resources; field in Partner.ResourceEntry 98 ResourceEntry(Resources resources, int id, boolean isOverlay) { in ResourceEntry() argument 99 this.resources = resources; in ResourceEntry()
|
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/ |
D | ScriptC.java | 57 protected ScriptC(RenderScript rs, Resources resources, int resourceID) { in ScriptC() argument 59 long id = internalCreate(rs, resources, resourceID); in ScriptC() 88 …private static synchronized long internalCreate(RenderScript rs, Resources resources, int resource… in internalCreate() argument 91 InputStream is = resources.openRawResource(resourceID); in internalCreate() 117 String resName = resources.getResourceEntryName(resourceID); in internalCreate()
|
/frameworks/base/rs/java/android/renderscript/ |
D | ScriptC.java | 59 protected ScriptC(RenderScript rs, Resources resources, int resourceID) { in ScriptC() argument 61 long id = internalCreate(rs, resources, resourceID); in ScriptC() 94 …private static synchronized long internalCreate(RenderScript rs, Resources resources, int resource… in internalCreate() argument 97 InputStream is = resources.openRawResource(resourceID); in internalCreate() 123 String resName = resources.getResourceEntryName(resourceID); in internalCreate()
|
/frameworks/base/tools/layoutlib/bridge/tests/res/testApp/MyApplication/src/main/java/com/android/layoutlib/test/myapplication/ |
D | ArraysCheckWidget.java | 23 Resources resources = context.getResources(); in ArraysCheckWidget() local 24 for (CharSequence chars : resources.getTextArray(R.array.array)) { in ArraysCheckWidget() 27 for (int i : resources.getIntArray(R.array.int_array)) { in ArraysCheckWidget() 30 for (String string : resources.getStringArray(R.array.string_array)) { in ArraysCheckWidget()
|
/frameworks/base/tests/CanvasCompare/src/com/android/test/hwuicompare/ |
D | ResourceModifiers.java | 60 public static void init(Resources resources) { in init() argument 61 sInstance = new ResourceModifiers(resources); in init() 64 public ResourceModifiers(Resources resources) { in ResourceModifiers() argument 65 mBitmap = BitmapFactory.decodeResource(resources, R.drawable.sunset1); in ResourceModifiers() 69 mDrawWidth = resources.getDimensionPixelSize(R.dimen.layer_width); in ResourceModifiers() 70 mDrawHeight = resources.getDimensionPixelSize(R.dimen.layer_height); in ResourceModifiers()
|
/frameworks/opt/photoviewer/src/com/android/ex/photo/loaders/ |
D | PhotoBitmapLoaderInterface.java | 27 public Drawable getDrawable(Resources resources) { in getDrawable() argument 28 if (resources == null) { in getDrawable() 43 return new BitmapDrawable(resources, bitmap); in getDrawable()
|