/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/util/ |
H A D | DynamicIdMap.java | 44 * 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/base/core/tests/coretests/src/android/widget/ |
H A D | ListViewTest.java | 131 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 D | ListWithMailMessages.java | 117 public MyAdapter(Context context, int resource, argument 119 super(context, resource, objects);
|
/frameworks/base/tools/layoutlib/bridge/src/android/view/ |
H A D | BridgeInflater.java | 155 public View inflate(int resource, ViewGroup root) { argument 162 Pair<ResourceType, String> layoutInfo = Bridge.resolveResourceId(resource); 167 layoutInfo = mProjectCallback.resolveResourceId(resource); 246 // else if there's a resource reference, this means we are in an adapter 247 // binding case. Set the resource ref as the view cookie only for the top
|
/frameworks/base/libs/hwui/ |
H A D | ResourceCache.cpp | 32 ALOGD(" ResourceCache: mCache(%d): resource, ref = 0x%p, 0x%p", 57 void ResourceCache::incrementRefcount(void* resource, ResourceType resourceType) { argument 59 incrementRefcountLocked(resource, resourceType); 86 void ResourceCache::incrementRefcountLocked(void* resource, ResourceType resourceType) { argument 87 ssize_t index = mCache->indexOfKey(resource); 91 mCache->add(resource, ref); 120 void ResourceCache::decrementRefcount(void* resource) { argument 122 decrementRefcountLocked(resource); 149 void ResourceCache::decrementRefcountLocked(void* resource) { argument 150 ssize_t index = mCache->indexOfKey(resource); 186 destructor(SkPath* resource) argument 191 destructorLocked(SkPath* resource) argument 208 destructor(SkBitmap* resource) argument 213 destructorLocked(SkBitmap* resource) argument 230 destructor(SkiaShader* resource) argument 235 destructorLocked(SkiaShader* resource) argument 249 destructor(SkiaColorFilter* resource) argument 254 destructorLocked(SkiaColorFilter* resource) argument 272 recycle(SkBitmap* resource) argument 281 recycleLocked(SkBitmap* resource) argument 306 deleteResourceReferenceLocked(void* resource, ResourceReference* ref) argument [all...] |
H A D | DisplayListRenderer.cpp | 221 SkBitmap* resource = bitmapResources.itemAt(i); local 222 mBitmapResources.add(resource); 223 caches.resourceCache.incrementRefcountLocked(resource); 228 SkBitmap* resource = ownedBitmapResources.itemAt(i); local 229 mOwnedBitmapResources.add(resource); 230 caches.resourceCache.incrementRefcountLocked(resource); 235 SkiaColorFilter* resource = filterResources.itemAt(i); local 236 mFilterResources.add(resource); 237 caches.resourceCache.incrementRefcountLocked(resource); 242 SkiaShader* resource local [all...] |
/frameworks/base/tests/DpiTest/src/com/google/android/test/dpi/ |
H A D | DpiTestActivity.java | 103 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/RenderScriptTests/SampleTest/src/com/android/rs/sample/ |
H A D | SampleRSActivity.java | 140 private Bitmap loadBitmap(int resource) { argument 143 Bitmap b = BitmapFactory.decodeResource(getResources(), resource, options);
|
/frameworks/base/core/java/android/preference/ |
H A D | GenericInflater.java | 209 * 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/core/java/android/widget/ |
H A D | ArrayAdapter.java | 34 * 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 textViewResourceId The resource ID for a layout file containing a TextView to use when 111 * @param resource The resource ID for a layout file containing a layout to use when 113 * @param textViewResourceId The id of the TextView within the layout resource t 115 ArrayAdapter(Context context, int resource, int textViewResourceId) argument 140 ArrayAdapter(Context context, int resource, int textViewResourceId, 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 D | SimpleAdapter.java | 45 * <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 D | SizeAdaptiveLayoutTest.java | 53 private void inflate(int resource){ argument 54 mSizeAdaptiveLayout = (SizeAdaptiveLayout) mInflater.inflate(resource, null);
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
H A D | MountServiceTests.java | 127 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 D | GLTextureViewActivity.java | 253 private int loadTexture(int resource) { argument 270 Bitmap bitmap = BitmapFactory.decodeResource(mResources, resource);
|
/frameworks/base/tests/RenderScriptTests/ImageProcessing2/src/com/android/rs/image/ |
H A D | ImageProcessingActivity2.java | 332 private Bitmap loadBitmap(int resource) { argument 335 return copyBitmap(BitmapFactory.decodeResource(getResources(), resource, options));
|
/frameworks/base/core/java/android/view/ |
H A D | LayoutInflater.java | 57 * it only works with an XmlPullParser returned from a compiled resource 341 * Inflate a new view hierarchy from the specified xml resource. Throws 344 * @param resource ID for an XML layout resource to load (e.g., 351 public View inflate(int resource, ViewGroup root) { argument 352 return inflate(resource, root, root != null); 376 * Inflate a new view hierarchy from the specified xml resource. Throws 379 * @param resource ID for an XML layout resource to load (e.g., 392 public View inflate(int resource, ViewGrou argument [all...] |
H A D | View.java | 3276 * either be an attribute resource, whose value will be retrieved 3277 * from the current theme, or an explicit style resource. 7613 * Dispatch a notification about a resource configuration change down 7617 * @param newConfig The new resource configuration. 7633 * @param newConfig The new resource configuration. 14309 * Return an array of resource IDs of the drawable states representing the 14454 * Set the background to a given resource. The resource should refer to 14456 * @param resid The identifier of the resource. 15309 * href={@docRoot}guide/topics/resources/more-resources.html#Id">ID resource typ 16463 inflate(Context context, int resource, ViewGroup root) argument [all...] |
/frameworks/base/tests/RenderScriptTests/ImageProcessing/src/com/android/rs/image/ |
H A D | ImageProcessingActivity.java | 339 private Bitmap loadBitmap(int resource) { argument 342 return copyBitmap(BitmapFactory.decodeResource(getResources(), resource, options));
|
/frameworks/base/core/java/android/content/res/ |
H A D | AssetManager.java | 30 * 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 659 * Retrieve the resource identifier for the given resource name. 684 /** Returns true if the resource was found, filling in mRetStringBlock and 688 /** Returns true if the resource was found, filling in mRetStringBlock and 704 /*package*/ native final int getArraySize(int resource); argument 705 retrieveArray(int resource, int[] outValues) argument [all...] |
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/ |
H A D | BridgeContext.java | 268 // check if this is a style resource 317 public Pair<View, Boolean> inflateView(ResourceReference resource, ViewGroup parent, argument 319 boolean isPlatformLayout = resource.isFramework(); 323 ILayoutPullParser parser = getParser(resource); 327 this, resource.isFramework()); 340 if (resource instanceof ResourceValue) { 341 resValue = (ResourceValue) resource; 345 resource.getName()); 348 resource.getName()); 361 // set the resource re 397 getParser(ResourceReference resource) argument [all...] |