/frameworks/base/libs/hwui/ |
H A D | ResourceCache.h | 73 void incrementRefcount(SkPath* resource); 74 void incrementRefcount(SkBitmap* resource); 75 void incrementRefcount(SkiaShader* resource); 76 void incrementRefcount(SkiaColorFilter* resource); 77 void incrementRefcount(Res_png_9patch* resource); 78 void incrementRefcount(Layer* resource); 80 void incrementRefcountLocked(SkPath* resource); 81 void incrementRefcountLocked(SkBitmap* resource); 82 void incrementRefcountLocked(SkiaShader* resource); 83 void incrementRefcountLocked(SkiaColorFilter* resource); [all...] |
H A D | ResourceCache.cpp | 34 ALOGD(" ResourceCache: mCache(%d): resource, ref = 0x%p, 0x%p", 59 void ResourceCache::incrementRefcount(void* resource, ResourceType resourceType) { argument 61 incrementRefcountLocked(resource, resourceType); 92 void ResourceCache::incrementRefcountLocked(void* resource, ResourceType resourceType) { argument 93 ssize_t index = mCache->indexOfKey(resource); 97 mCache->add(resource, ref); 130 void ResourceCache::decrementRefcount(void* resource) { argument 132 decrementRefcountLocked(resource); 163 void ResourceCache::decrementRefcountLocked(void* resource) { argument 164 ssize_t index = mCache->indexOfKey(resource); 204 destructor(SkPath* resource) argument 209 destructorLocked(SkPath* resource) argument 226 destructor(SkBitmap* resource) argument 231 destructorLocked(SkBitmap* resource) argument 248 destructor(SkiaShader* resource) argument 253 destructorLocked(SkiaShader* resource) argument 267 destructor(SkiaColorFilter* resource) argument 272 destructorLocked(SkiaColorFilter* resource) argument 286 destructor(Res_png_9patch* resource) argument 291 destructorLocked(Res_png_9patch* resource) argument 314 recycle(SkBitmap* resource) argument 323 recycleLocked(SkBitmap* resource) argument 348 deleteResourceReferenceLocked(void* resource, ResourceReference* ref) argument [all...] |
H A D | DisplayList.cpp | 190 SkBitmap* resource = bitmapResources.itemAt(i); local 191 mBitmapResources.add(resource); 192 caches.resourceCache.incrementRefcountLocked(resource); 197 SkBitmap* resource = ownedBitmapResources.itemAt(i); local 198 mOwnedBitmapResources.add(resource); 199 caches.resourceCache.incrementRefcountLocked(resource); 204 SkiaColorFilter* resource = filterResources.itemAt(i); local 205 mFilterResources.add(resource); 206 caches.resourceCache.incrementRefcountLocked(resource); 211 Res_png_9patch* resource local 218 SkiaShader* resource = shaders.itemAt(i); local [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 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 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...] |
H A D | ViewAnimator.java | 57 int resource = a.getResourceId(com.android.internal.R.styleable.ViewAnimator_inAnimation, 0); 58 if (resource > 0) { 59 setInAnimation(context, resource); 62 resource = a.getResourceId(com.android.internal.R.styleable.ViewAnimator_outAnimation, 0); 63 if (resource > 0) { 64 setOutAnimation(context, resource); 309 * @param resourceID The resource id of the animation. 322 * @param resourceID The resource id of the animation.
|
H A D | AdapterViewAnimator.java | 180 int resource = a.getResourceId( 182 if (resource > 0) { 183 setInAnimation(context, resource); 188 resource = a.getResourceId(com.android.internal.R.styleable.AdapterViewAnimator_outAnimation, 0); 189 if (resource > 0) { 190 setOutAnimation(context, resource); 907 * @param resourceID The resource id of the animation. 920 * @param resourceID The resource id of the animation.
|
/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/java/android/view/animation/ |
H A D | LayoutAnimationController.java | 112 int resource = a.getResourceId(com.android.internal.R.styleable.LayoutAnimation_animation, 0); 113 if (resource > 0) { 114 setAnimation(context, resource); 117 resource = a.getResourceId(com.android.internal.R.styleable.LayoutAnimation_interpolator, 0); 118 if (resource > 0) { 119 setInterpolator(context, resource); 176 * @param resourceID the resource identifier of the animation 221 * @param resourceID the resource identifier of the interpolator
|
/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 | 54 private Bitmap loadBitmap(int resource) { argument 57 return BitmapFactory.decodeResource(getResources(), resource, options);
|
/frameworks/base/tools/layoutlib/bridge/src/android/util/ |
H A D | BridgeXmlPullAttributes.java | 266 ResourceValue resource = getResourceValue(value); 267 if (resource != null) { 269 if (mPlatformFile || resource.isFramework()) { 270 id = Bridge.getResourceId(resource.getResourceType(), resource.getName()); 273 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/base/cmds/bootanimation/ |
H A D | bootanimation_main.cpp | 30 # include <sys/resource.h>
|
/frameworks/native/services/surfaceflinger/ |
H A D | main_surfaceflinger.cpp | 18 #include <sys/resource.h>
|
/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/core/tests/coretests/ |
H A D | Android.mk | 31 # intermediate dir to include all the test apks as raw resource 36 # Rules to copy all the test apks to the intermediate raw resource directory
|
/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/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/ |
H A D | BridgeContext.java | 272 // check if this is a style resource 321 public Pair<View, Boolean> inflateView(ResourceReference resource, ViewGroup parent, argument 323 boolean isPlatformLayout = resource.isFramework(); 327 ILayoutPullParser parser = getParser(resource); 331 this, resource.isFramework()); 344 if (resource instanceof ResourceValue) { 345 resValue = (ResourceValue) resource; 349 resource.getName()); 352 resource.getName()); 365 // set the resource re 401 getParser(ResourceReference resource) argument [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/opt/datetimepicker/src/com/android/datetimepicker/date/ |
H A D | YearPickerView.java | 107 public YearAdapter(Context context, int resource, List<String> objects) { argument 108 super(context, resource, objects);
|
/frameworks/base/core/java/android/transition/ |
H A D | TransitionInflater.java | 35 * This class inflates scenes and transitions from resource files. 37 * Information on XML resource descriptions for transitions can be found for 58 * Loads a {@link Transition} object from a resource 60 * @param resource The resource id of the transition to load 65 public Transition inflateTransition(int resource) { argument 66 XmlResourceParser parser = mContext.getResources().getXml(resource); 85 * Loads a {@link TransitionManager} object from a resource 89 * @param resource The resource i 94 inflateTransitionManager(int resource, ViewGroup sceneRoot) argument [all...] |
/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/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/core/tests/overlaytests/ |
H A D | runtests.sh | 75 $adb shell rm /data/resource-cache/vendor@overlay@framework@framework-res.apk@idmap
|