Searched defs:resource (Results 1 - 25 of 28) sorted by relevance

12

/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/util/
H A DDynamicIdMap.java44 * Returns a dynamic integer for the given resource type/name, creating it if it doesn't
47 * @param type the type of the resource
48 * @param name the name of the resource
56 * Returns a dynamic integer for the given resource type/name, creating it if it doesn't
59 * @param resource the type/name of the resource
62 public Integer getId(Pair<ResourceType, String> resource) { argument
63 Integer value = mDynamicIds.get(resource);
66 mDynamicIds.put(resource, value);
67 mRevDynamicIds.put(value, resource);
[all...]
/frameworks/rs/java/tests/HelloComputeNDK/src/com/example/android/rs/hellocomputendk/
H A DHelloComputeNDK.java57 private Bitmap loadBitmap(int resource) { argument
60 return BitmapFactory.decodeResource(getResources(), resource, options);
/frameworks/base/core/java/android/transition/
H A DTransitionInflater.java39 * This class inflates scenes and transitions from resource files.
41 * Information on XML resource descriptions for transitions can be found for
67 * Loads a {@link Transition} object from a resource
69 * @param resource The resource id of the transition to load
74 public Transition inflateTransition(int resource) { argument
75 XmlResourceParser parser = mContext.getResources().getXml(resource);
94 * Loads a {@link TransitionManager} object from a resource
96 * @param resource The resource i
101 inflateTransitionManager(int resource, ViewGroup sceneRoot) argument
[all...]
/frameworks/base/core/tests/coretests/src/android/widget/
H A DListViewTest.java131 public Adapter(Context context, int resource, List<T> objects) { argument
132 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/testing/espresso/espresso-lib-tests/src/androidTest/java/com/google/android/apps/common/testing/ui/espresso/contrib/
H A DCountingIdlingResourceTest.java37 private CountingIdlingResource resource; field in class:CountingIdlingResourceTest
46 resource = new CountingIdlingResource(RESOURCE_NAME, true);
50 assertEquals(RESOURCE_NAME, resource.getName());
54 resource.increment();
55 resource.decrement();
57 resource.decrement();
64 resource.increment();
66 resource.decrement();
75 resource.increment();
79 resource
[all...]
/frameworks/base/core/java/android/widget/
H A DYearPickerView.java124 public YearAdapter(Context context, int resource) { argument
125 super(context, resource);
H A DArrayAdapter.java34 * objects. By default this class expects that the provided resource id references
37 * resource.
63 * The resource indicating what views to inflate to display the content of this
69 * The resource indicating what views to inflate to display the content of this
75 * If the inflated resource is not a TextView, {@link #mFieldId} is used to find
77 * identifier that matches the one defined in the resource file.
100 * @param resource The resource ID for a layout file containing a TextView to use when
103 public ArrayAdapter(Context context, int resource) { argument
104 init(context, resource,
115 ArrayAdapter(Context context, int resource, int textViewResourceId) argument
127 ArrayAdapter(Context context, int resource, T[] objects) argument
140 ArrayAdapter(Context context, int resource, int textViewResourceId, T[] objects) argument
152 ArrayAdapter(Context context, int resource, List<T> objects) argument
165 ArrayAdapter(Context context, int resource, int textViewResourceId, List<T> objects) argument
308 init(Context context, int resource, int textViewResourceId, List<T> objects) argument
365 createViewFromResource(int position, View convertView, ViewGroup parent, int resource) argument
406 setDropDownViewResource(int resource) argument
[all...]
H A DSimpleAdapter.java45 * <li> ImageView. The expected bind value is a resource id or a string and
71 * @param resource Resource identifier of a view layout that defines the views for this list
80 int resource, String[] from, int[] to) {
82 mResource = mDropDownResource = resource;
118 ViewGroup parent, int resource) {
121 v = mInflater.inflate(resource, parent, false);
132 * <p>Sets the layout resource to create the drop down views.</p>
134 * @param resource the layout resource defining the drop down views
137 public void setDropDownViewResource(int resource) { argument
79 SimpleAdapter(Context context, List<? extends Map<String, ?>> data, int resource, String[] from, int[] to) argument
117 createViewFromResource(int position, View convertView, ViewGroup parent, int resource) argument
[all...]
/frameworks/base/core/tests/coretests/src/com/android/internal/widget/
H A DSizeAdaptiveLayoutTest.java53 private void inflate(int resource){ argument
54 mSizeAdaptiveLayout = (SizeAdaptiveLayout) mInflater.inflate(resource, null);
/frameworks/base/libs/hwui/
H A DResourceCache.cpp34 ALOGD(" ResourceCache: mCache(%zu): resource, ref = 0x%p, 0x%p",
59 void ResourceCache::incrementRefcount(void* resource, ResourceType resourceType) { argument
61 incrementRefcountLocked(resource, resourceType);
82 void ResourceCache::incrementRefcountLocked(void* resource, ResourceType resourceType) { argument
83 ssize_t index = mCache->indexOfKey(resource);
87 mCache->add(resource, ref);
110 void ResourceCache::decrementRefcount(void* resource) { argument
112 decrementRefcountLocked(resource);
133 void ResourceCache::decrementRefcountLocked(void* resource) { argument
134 ssize_t index = mCache->indexOfKey(resource);
164 destructor(SkPath* resource) argument
169 destructorLocked(SkPath* resource) argument
187 destructor(const SkBitmap* resource) argument
192 destructorLocked(const SkBitmap* resource) argument
210 destructor(Res_png_9patch* resource) argument
215 destructorLocked(Res_png_9patch* resource) argument
239 recycle(SkBitmap* resource) argument
248 recycleLocked(SkBitmap* resource) argument
273 deleteResourceReferenceLocked(const void* resource, ResourceReference* ref) argument
[all...]
/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/tools/layoutlib/bridge/src/android/view/
H A DBridgeInflater.java152 public View inflate(int resource, ViewGroup root) { argument
162 Pair<ResourceType, String> layoutInfo = Bridge.resolveResourceId(resource);
167 layoutInfo = mProjectCallback.resolveResourceId(resource);
276 // else if there's a resource reference, this means we are in an adapter
277 // binding case. Set the resource ref as the view cookie only for the top
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/date/
H A DYearPickerView.java105 public YearAdapter(Context context, int resource, List<String> objects) { argument
106 super(context, resource, objects);
/frameworks/rs/java/tests/GenImages/src/com/android/rs/genimage/
H A DGenImage.java43 private Bitmap loadBitmap(Context context, int resource) { argument
46 return BitmapFactory.decodeResource(context.getResources(), resource, options);
/frameworks/rs/java/tests/SampleTest/src/com/android/rs/sample/
H A DSampleRSActivity.java144 private Bitmap loadBitmap(int resource) { argument
147 Bitmap b = BitmapFactory.decodeResource(getResources(), resource, options);
/frameworks/base/core/java/android/preference/
H A DGenericInflater.java209 * Inflate a new item hierarchy from the specified xml resource. Throws
212 * @param resource ID for an XML resource to load (e.g.,
219 public T inflate(int resource, P root) { argument
220 return inflate(resource, root, root != null);
244 * Inflate a new hierarchy from the specified xml resource. Throws
247 * @param resource ID for an XML resource to load (e.g.,
259 public T inflate(int resource, P root, boolean attachToRoot) { argument
260 if (DEBUG) System.out.println("INFLATING from resource
[all...]
/frameworks/base/services/tests/servicestests/src/com/android/server/
H A DMountServiceTests.java127 fail("Failed to load resource with id: " + rawResId);
140 private void mountObb(StorageManager sm, final int resource, final File file, argument
142 copyRawToFile(resource, file);
161 private ObbObserver mountObbWithoutWait(final StorageManager sm, final int resource, argument
163 copyRawToFile(resource, file);
/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/testing/espresso/espresso-lib/src/main/java/com/google/android/apps/common/testing/ui/espresso/base/
H A DIdlingResourceRegistry.java82 * Registers the given resource.
84 public void register(final IdlingResource resource) { argument
85 checkNotNull(resource);
90 register(resource);
95 if (resource.getName().equals(oldResource.getName())) {
96 // This does not throw an error to avoid leaving tests that register resource in test
99 Log.e(TAG, String.format("Attempted to register resource with same names:" +
100 " %s. R1: %s R2: %s.\nDuplicate resource registration will be ignored.",
101 resource.getName(), resource, oldResourc
118 registerToIdleCallback(IdlingResource resource, final int position) argument
[all...]
/frameworks/base/core/java/android/view/
H A DLayoutInflater.java61 * it only works with an XmlPullParser returned from a compiled resource
354 * Inflate a new view hierarchy from the specified xml resource. Throws
357 * @param resource ID for an XML layout resource to load (e.g.,
364 public View inflate(int resource, ViewGroup root) { argument
365 return inflate(resource, root, root != null);
389 * Inflate a new view hierarchy from the specified xml resource. Throws
392 * @param resource ID for an XML layout resource to load (e.g.,
405 public View inflate(int resource, ViewGrou argument
[all...]
/frameworks/rs/java/tests/ImageProcessing2/src/com/android/rs/image/
H A DImageProcessingActivity2.java398 private Bitmap loadBitmap(int resource) { argument
401 return BitmapFactory.decodeResource(getResources(), resource, options);
/frameworks/base/core/java/com/android/internal/app/
H A DAlertController.java271 * Set the view resource to display in the dialog.
353 * @param resId the resource identifier of the drawable to use as the icon,
1052 public CheckedItemAdapter(Context context, int resource, int textViewResourceId, argument
1054 super(context, resource, textViewResourceId, objects);
/frameworks/base/core/java/android/content/res/
H A DAssetManager.java31 * for the way most applications will want to retrieve their resource data.
145 * Retrieve the string value associated with a particular resource
163 * Retrieve the string value associated with a particular resource
181 * Retrieve the string array associated with a particular resource
208 * Retrieve the text array associated with a particular resource
684 * Retrieve the resource identifier for the given resource name.
709 /** Returns true if the resource was found, filling in mRetStringBlock and
713 /** Returns true if the resource was found, filling in mRetStringBlock and
732 /*package*/ native final int getArraySize(int resource); argument
733 retrieveArray(int resource, int[] outValues) argument
[all...]
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
H A DBridgeContext.java276 // check if this is a style resource
330 public Pair<View, Boolean> inflateView(ResourceReference resource, ViewGroup parent, argument
332 boolean isPlatformLayout = resource.isFramework();
336 ILayoutPullParser parser = getParser(resource);
340 this, resource.isFramework());
353 if (resource instanceof ResourceValue) {
354 resValue = (ResourceValue) resource;
358 resource.getName());
361 resource.getName());
374 // set the resource re
410 getParser(ResourceReference resource) argument
[all...]

Completed in 674 milliseconds

12