Searched defs:resource (Results 1 - 25 of 35) sorted by path

12

/frameworks/base/core/java/android/content/res/
H A DAssetManager.java37 * for the way most applications will want to retrieve their resource data.
151 * Retrieves the string value associated with a particular resource
154 * @param resId the resource identifier to load
169 * Retrieves the string value associated with a particular resource
172 * @param resId the resource identifier to load
192 * Retrieves the string array associated with a particular resource
195 * @param resId the resource identifier of the string array
205 * resource identifier for the current configuration.
207 * @param resId the resource identifier to load
208 * @param densityDpi the density bucket for which to load the resource
813 getArraySize(int resource) argument
814 retrieveArray(int resource, int[] outValues) argument
[all...]
/frameworks/base/core/java/android/preference/
H A DGenericInflater.java210 * Inflate a new item hierarchy from the specified xml resource. Throws
213 * @param resource ID for an XML resource to load (e.g.,
220 public T inflate(@XmlRes int resource, P root) { argument
221 return inflate(resource, root, root != null);
245 * Inflate a new hierarchy from the specified xml resource. Throws
248 * @param resource ID for an XML resource to load (e.g.,
260 public T inflate(@XmlRes int resource, P root, boolean attachToRoot) { argument
261 if (DEBUG) System.out.println("INFLATING from resource
[all...]
/frameworks/base/core/java/android/transition/
H A DTransitionInflater.java40 * This class inflates scenes and transitions from resource files.
42 * Information on XML resource descriptions for transitions can be found for
68 * Loads a {@link Transition} object from a resource
70 * @param resource The resource id of the transition to load
75 public Transition inflateTransition(@TransitionRes int resource) { argument
77 XmlResourceParser parser = mContext.getResources().getXml(resource);
96 * Loads a {@link TransitionManager} object from a resource
98 * @param resource The resource i
103 inflateTransitionManager(@ransitionRes int resource, ViewGroup sceneRoot) argument
[all...]
/frameworks/base/core/java/android/view/
H A DLayoutInflater.java65 * it only works with an XmlPullParser returned from a compiled resource
366 * Inflate a new view hierarchy from the specified xml resource. Throws
369 * @param resource ID for an XML layout resource to load (e.g.,
376 public View inflate(@LayoutRes int resource, @Nullable ViewGroup root) { argument
377 return inflate(resource, root, root != null);
401 * Inflate a new view hierarchy from the specified xml resource. Throws
404 * @param resource ID for an XML layout resource to load (e.g.,
417 public View inflate(@LayoutRes int resource, argument
[all...]
H A DView.java4076 * reference to a style resource that supplies default values for
4086 * theme attribute or style resource. This constructor of View allows
4093 * <li>The style resource specified in the AttributeSet (named "style").
4109 * reference to a style resource that supplies default values for
4111 * @param defStyleRes A resource identifier of a style resource that
10405 * Dispatch a notification about a resource configuration change down
10409 * @param newConfig The new resource configuration.
10425 * @param newConfig The new resource configuration.
17927 * Return an array of resource ID
20838 inflate(Context context, @LayoutRes int resource, ViewGroup root) argument
[all...]
/frameworks/base/core/java/android/widget/
H A DArrayAdapter.java41 * objects. By default this class expects that the provided resource id references
44 * resource.
68 * The resource indicating what views to inflate to display the content of this
74 * The resource indicating what views to inflate to display the content of this
86 * If the inflated resource is not a TextView, {@code mFieldId} is used to find
88 * identifier that matches the one defined in the resource file.
110 * @param resource The resource ID for a layout file containing a TextView to use when
113 public ArrayAdapter(@NonNull Context context, @LayoutRes int resource) { argument
114 this(context, resource,
125 ArrayAdapter(@onNull Context context, @LayoutRes int resource, @IdRes int textViewResourceId) argument
138 ArrayAdapter(@onNull Context context, @LayoutRes int resource, @NonNull T[] objects) argument
151 ArrayAdapter(@onNull Context context, @LayoutRes int resource, @IdRes int textViewResourceId, @NonNull T[] objects) argument
164 ArrayAdapter(@onNull Context context, @LayoutRes int resource, @NonNull List<T> objects) argument
178 ArrayAdapter(@onNull Context context, @LayoutRes int resource, @IdRes int textViewResourceId, @NonNull List<T> objects) argument
374 createViewFromResource(@onNull LayoutInflater inflater, int position, @Nullable View convertView, @NonNull ViewGroup parent, int resource) argument
421 setDropDownViewResource(@ayoutRes int resource) argument
[all...]
H A DImageView.java399 private final int resource; field in class:ImageView.ImageDrawableCallback
401 ImageDrawableCallback(Drawable drawable, Uri uri, int resource) { argument
404 this.resource = resource;
411 mResource = resource;
424 * @param resId the resource identifier of the drawable
430 // The resource configuration may have changed, so we should always
431 // try to load the resource even if the resId hasn't changed.
842 Log.w(LOG_TAG, "Unable to find resource: " + mResource, e);
H A DSimpleAdapter.java49 * <li> ImageView. The expected bind value is a resource id or a string and
79 * @param resource Resource identifier of a view layout that defines the views for this list
88 @LayoutRes int resource, String[] from, @IdRes int[] to) {
90 mResource = mDropDownResource = resource;
125 ViewGroup parent, int resource) {
128 v = inflater.inflate(resource, parent, false);
139 * <p>Sets the layout resource to create the drop down views.</p>
141 * @param resource the layout resource defining the drop down views
144 public void setDropDownViewResource(int resource) { argument
87 SimpleAdapter(Context context, List<? extends Map<String, ?>> data, @LayoutRes int resource, String[] from, @IdRes int[] to) argument
124 createViewFromResource(LayoutInflater inflater, int position, View convertView, ViewGroup parent, int resource) argument
[all...]
/frameworks/base/core/java/com/android/internal/app/
H A DAlertController.java273 * Set the view resource to display in the dialog.
355 * @param resId the resource identifier of the drawable to use as the icon,
1154 public CheckedItemAdapter(Context context, int resource, int textViewResourceId, argument
1156 super(context, resource, textViewResourceId, objects);
/frameworks/base/core/tests/coretests/src/android/widget/
H A DListViewTest.java133 public Adapter(Context context, int resource, List<T> objects) { argument
134 super(context, resource, objects);
/frameworks/base/core/tests/coretests/src/android/widget/focus/
H A DListWithMailMessages.java117 public MyAdapter(Context context, int resource, argument
119 super(context, resource, objects);
/frameworks/base/libs/hwui/
H A DResourceCache.cpp35 ALOGD(" ResourceCache: mCache(%zu): resource, ref = 0x%p, 0x%p",
60 void ResourceCache::incrementRefcount(void* resource, ResourceType resourceType) { argument
62 incrementRefcountLocked(resource, resourceType);
69 void ResourceCache::incrementRefcountLocked(void* resource, ResourceType resourceType) { argument
70 ssize_t index = mCache->indexOfKey(resource);
74 mCache->add(resource, ref);
79 void ResourceCache::decrementRefcount(void* resource) { argument
81 decrementRefcountLocked(resource);
88 void ResourceCache::decrementRefcountLocked(void* resource) { argument
89 ssize_t index = mCache->indexOfKey(resource);
105 destructor(Res_png_9patch* resource) argument
110 destructorLocked(Res_png_9patch* resource) argument
134 deleteResourceReferenceLocked(const void* resource, ResourceReference* ref) argument
[all...]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
H A DSuggestionParser.java257 public Object parse(int resource) { argument
258 XmlPullParser parser = mContext.getResources().getXml(resource);
279 Log.w(TAG, "Problem parser resource " + resource, e);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DButtonDispatcher.java95 public void setImageResource(int resource) { argument
96 mImageResource = resource;
/frameworks/base/services/tests/servicestests/src/com/android/server/
H A DMountServiceTests.java115 fail("Failed to load resource with id: " + rawResId);
128 private void mountObb(StorageManager sm, final int resource, final File file, argument
130 copyRawToFile(resource, file);
149 private ObbObserver mountObbWithoutWait(final StorageManager sm, final int resource, argument
151 copyRawToFile(resource, file);
/frameworks/base/tests/DpiTest/src/com/google/android/test/dpi/
H A DDpiTestActivity.java103 addLabelToRoot(root, "Prescaled resource drawable");
132 addLabelToRoot(root, "No-dpi resource drawable");
139 addLabelToRoot(root, "Prescaled 9-patch resource drawable");
164 private void addBitmapDrawable(LinearLayout layout, int resource, boolean scale) { argument
166 bitmap = loadAndPrintDpi(resource, scale);
179 private void addResourceDrawable(LinearLayout layout, int resource) { argument
182 final Drawable d = getResources().getDrawable(resource);
190 private void addCanvasBitmap(LinearLayout layout, int resource, boolean scale) { argument
192 bitmap = loadAndPrintDpi(resource, scale);
201 private void addNinePatchResourceDrawable(LinearLayout layout, int resource) { argument
[all...]
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DGLTextureViewActivity.java253 private int loadTexture(int resource) { argument
270 Bitmap bitmap = BitmapFactory.decodeResource(mResources, resource);
/frameworks/base/tests/UiBench/src/com/android/test/uibench/opengl/
H A DImageFlipRenderThread.java206 private int loadTexture(int resource) { argument
223 Bitmap bitmap = BitmapFactory.decodeResource(mResources, resource);
/frameworks/base/tools/aapt2/flatten/
H A DXmlFlattener.cpp217 // their StringPool index to lookup their resource IDs.
266 // Sort the string pool so that attribute resource IDs show up first.
284 // Write the array of resource IDs, indexed by StringPool order.
290 // When we see the first non-resource ID,
308 bool XmlFlattener::consume(IAaptContext* context, xml::XmlResource* resource) { argument
309 if (!resource->root) {
312 return flatten(context, resource->root.get());
/frameworks/base/tools/aapt2/link/
H A DLinkers.h37 ResourceNameRef resource; member in struct:aapt::CallSite
41 * Determines whether a versioned resource should be created. If a versioned resource already
52 bool consume(IAaptContext* context, xml::XmlResource* resource) override;
56 * If any attribute resource values are defined as public, this consumer will move all private
57 * attribute resource values to a private ^private-attr type, avoiding backwards compatibility
60 * The Android platform ignores resource attributes it doesn't recognize, so an app developer can
82 * Resolves attributes in the XmlResource and compiles string values to resource values.
90 bool consume(IAaptContext* context, xml::XmlResource* resource) override;
H A DXmlReferenceLinker.cpp161 bool XmlReferenceLinker::consume(IAaptContext* context, xml::XmlResource* resource) { argument
163 CallSite callSite = { resource->file.name };
164 XmlVisitor visitor(context, context->getExternalSymbols(), resource->file.source,
166 if (resource->root) {
167 resource->root->accept(&visitor);
/frameworks/base/tools/layoutlib/bridge/src/android/view/
H A DBridgeInflater.java194 public View inflate(int resource, ViewGroup root) { argument
203 Pair<ResourceType, String> layoutInfo = Bridge.resolveResourceId(resource);
208 layoutInfo = mLayoutlibCallback.resolveResourceId(resource);
350 // else if there's a resource reference, this means we are in an adapter
351 // binding case. Set the resource ref as the view cookie only for the top
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
H A DBridgeContext.java350 // check if this is a style resource
403 public Pair<View, Boolean> inflateView(ResourceReference resource, ViewGroup parent, argument
405 boolean isPlatformLayout = resource.isFramework();
409 ILayoutPullParser parser = getParser(resource);
413 this, resource.isFramework());
426 if (resource instanceof ResourceValue) {
427 resValue = (ResourceValue) resource;
431 resource.getName());
434 resource.getName());
447 // set the resource re
483 getParser(ResourceReference resource) argument
[all...]
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/util/
H A DDynamicIdMap.java45 * Returns a dynamic integer for the given resource type/name, creating it if it doesn't
48 * @param type the type of the resource
49 * @param name the name of the resource
58 * Returns a dynamic integer for the given resource type/name, creating it if it doesn't
61 * @param resource the type/name of the resource
65 public Integer getId(Pair<ResourceType, String> resource) { argument
66 Integer value = mDynamicIds.get(resource);
69 mDynamicIds.put(resource, value);
70 mRevDynamicIds.put(value, resource);
[all...]
/frameworks/data-binding/compilationTests/src/test/java/android/databinding/compilationTest/
H A DSimpleCompilationTest.java94 private ScopedException singleFileErrorTest(String resource, String targetFile, argument
98 copyResourceTo(resource, targetFile);

Completed in 799 milliseconds

12