/frameworks/base/libs/hwui/ |
H A D | ResourceCache.cpp | 35 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...] |
H A D | ResourceCache.h | 69 void incrementRefcount(const Res_png_9patch* resource); 71 void decrementRefcount(const Res_png_9patch* resource); 73 void decrementRefcountLocked(const Res_png_9patch* resource); 75 void destructor(Res_png_9patch* resource); 77 void destructorLocked(Res_png_9patch* resource); 80 void deleteResourceReferenceLocked(const void* resource, ResourceReference* ref); 82 void incrementRefcount(void* resource, ResourceType resourceType); 83 void incrementRefcountLocked(void* resource, ResourceType resourceType); 85 void decrementRefcount(void* resource); 86 void decrementRefcountLocked(void* resource); [all...] |
/frameworks/base/tools/aapt2/link/ |
H A D | Linkers.h | 37 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 D | XmlReferenceLinker.cpp | 161 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/com/android/layoutlib/bridge/util/ |
H A D | DynamicIdMap.java | 45 * 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/base/core/java/android/widget/ |
H A D | ArrayAdapter.java | 41 * 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 D | SimpleAdapter.java | 49 * <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...] |
H A D | ViewAnimator.java | 56 int resource = a.getResourceId(com.android.internal.R.styleable.ViewAnimator_inAnimation, 0); 57 if (resource > 0) { 58 setInAnimation(context, resource); 61 resource = a.getResourceId(com.android.internal.R.styleable.ViewAnimator_outAnimation, 0); 62 if (resource > 0) { 63 setOutAnimation(context, resource); 308 * @param resourceID The resource id of the animation. 321 * @param resourceID The resource id of the animation.
|
/frameworks/base/tools/aapt2/flatten/ |
H A D | XmlFlattener.h | 44 bool consume(IAaptContext* context, xml::XmlResource* resource) override;
|
/frameworks/base/core/java/android/view/animation/ |
H A D | LayoutAnimationController.java | 114 int resource = a.getResourceId(com.android.internal.R.styleable.LayoutAnimation_animation, 0); 115 if (resource > 0) { 116 setAnimation(context, resource); 119 resource = a.getResourceId(com.android.internal.R.styleable.LayoutAnimation_interpolator, 0); 120 if (resource > 0) { 121 setInterpolator(context, resource); 178 * @param resourceID the resource identifier of the animation 223 * @param resourceID the resource identifier of the interpolator
|
/frameworks/base/cmds/bootanimation/ |
H A D | bootanimation_main.cpp | 23 #include <sys/resource.h>
|
/frameworks/base/tools/aapt2/process/ |
H A D | IResourceTableConsumer.h | 59 virtual bool consume(IAaptContext* context, xml::XmlResource* resource) = 0;
|
/frameworks/native/opengl/tests/gl_perf/ |
H A D | filltest.cpp | 21 #include <sys/resource.h>
|
/frameworks/rs/java/tests/HelloComputeNDK/src/com/example/android/rs/hellocomputendk/ |
H A D | HelloComputeNDK.java | 56 private Bitmap loadBitmap(int resource) { argument 59 return BitmapFactory.decodeResource(getResources(), resource, options);
|
/frameworks/base/tools/layoutlib/bridge/src/android/util/ |
H A D | BridgeXmlPullAttributes.java | 270 ResourceValue resource = getResourceValue(value); 271 if (resource != null) { 273 if (mPlatformFile || resource.isFramework()) { 274 id = Bridge.getResourceId(resource.getResourceType(), resource.getName()); 277 resource.getResourceType(), resource.getName());
|
/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/native/services/surfaceflinger/ |
H A D | main_surfaceflinger.cpp | 17 #include <sys/resource.h>
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/ |
H A D | CustomBar.java | 87 // Should not happen as the resource is bundled with the jar, and ParserFactory should 259 ResourceValue resource = renderResources.findItemInTheme(attr, true); 261 resource = renderResources.resolveResValue(resource); 262 if (resource != null) { 263 ResourceType type = resource.getResourceType(); 266 // file, rather than referencing a color resource value. 268 return ResourceHelper.getColor(resource.getValue()); 274 resource.getValue() + "'.", resource); [all...] |
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/items/ |
H A D | GenericInflater.java | 204 public T inflate(int resource) { argument 205 return inflate(resource, null); 210 * 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(int resource, T 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 t 260 inflate(int resource, T root, boolean attachToRoot) argument [all...] |
/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/av/media/libmedia/ |
H A D | MediaUtils.cpp | 22 #include <sys/resource.h>
|
/frameworks/base/core/tests/coretests/ |
H A D | Android.mk | 42 # intermediate dir to include all the test apks as raw resource 47 # Rules to copy all the test apks to the intermediate raw resource directory
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
H A D | MountServiceTests.java | 115 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/core/java/android/preference/ |
H A D | GenericInflater.java | 210 * 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/tests/coretests/src/android/widget/ |
H A D | ListViewTest.java | 133 public Adapter(Context context, int resource, List<T> objects) { argument 134 super(context, resource, objects);
|