/frameworks/base/tools/aapt2/link/ |
H A D | XmlNamespaceRemover.cpp | 71 xml::XmlResource* resource) { 72 if (!resource->root) { 76 while (xml::NodeCast<xml::Namespace>(resource->root.get())) { 77 if (resource->root->children.empty()) { 80 resource->root = std::move(resource->root->children.front()); 81 resource->root->parent = nullptr; 84 resource->root->Accept(&visitor); 70 Consume(IAaptContext* context, xml::XmlResource* resource) argument
|
H A D | Linkers.h | 41 ResourceNameRef resource; member in struct:aapt::CallSite 45 * Determines whether a versioned resource should be created. If a versioned 46 * resource already exists, it takes precedence. 66 * If any attribute resource values are defined as public, this consumer will 68 * attribute resource values to a private ^private-attr type, avoiding backwards 72 * The Android platform ignores resource attributes it doesn't recognize, so an 141 bool Consume(IAaptContext* context, xml::XmlResource* resource) override; 150 * Resolves attributes in the XmlResource and compiles string values to resource 158 bool Consume(IAaptContext* context, xml::XmlResource* resource) override;
|
H A D | XmlReferenceLinker.cpp | 163 bool XmlReferenceLinker::Consume(IAaptContext* context, xml::XmlResource* resource) { argument 164 const CallSite callsite = {resource->file.name}; 165 XmlVisitor visitor(resource->file.source, callsite, context, context->GetExternalSymbols()); 166 if (resource->root) { 167 resource->root->Accept(&visitor);
|
/frameworks/support/graphics/drawable/animated/tests/src/android/support/graphics/drawable/tests/ |
H A D | DrawableUtils.java | 33 public static void saveVectorDrawableIntoPNG(Resources resource, Bitmap bitmap, int resId, argument 45 String originalFilePath = resource.getString(resId);
|
/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/rs/tests/java_api/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/core/java/android/transition/ |
H A D | TransitionInflater.java | 40 * 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/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);
|
/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/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...] |
/frameworks/support/frameworks/support/samples/SupportEmojiDemos/src/com/example/android/support/text/emoji/ |
H A D | ListFragment.java | 63 MyArrayAdapter(Context context, int resource, int textViewResourceId, argument 65 super(context, resource, textViewResourceId, objects);
|
/frameworks/support/samples/SupportEmojiDemos/src/com/example/android/support/text/emoji/ |
H A D | ListFragment.java | 63 MyArrayAdapter(Context context, int resource, int textViewResourceId, argument 65 super(context, resource, textViewResourceId, objects);
|
/frameworks/support/transition/src/android/support/transition/ |
H A D | TransitionInflater.java | 38 * This class inflates scenes and transitions from resource files. 60 * Loads a {@link Transition} object from a resource 62 * @param resource The resource id of the transition to load 67 public Transition inflateTransition(int resource) { argument 68 XmlResourceParser parser = mContext.getResources().getXml(resource); 82 * Loads a {@link TransitionManager} object from a resource 84 * @param resource The resource id of the transition manager to load 89 public TransitionManager inflateTransitionManager(int resource, ViewGrou argument [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/data-binding/compilationTests/src/test/java/android/databinding/compilationTest/ |
H A D | SimpleCompilationTest.java | 112 private ScopedException singleFileErrorTest(String resource, String targetFile, argument 116 copyResourceTo(resource, targetFile); 139 private void singleFileWarningTest(String resource, String targetFile, argument 143 copyResourceTo(resource, targetFile);
|
/frameworks/native/libs/sensor/ |
H A D | ISensorServer.cpp | 110 uint32_t size, int32_t type, int32_t format, const native_handle_t *resource) { 117 data.writeNativeHandle(resource); 196 native_handle_t *resource = data.readNativeHandle(); local 198 createSensorDirectConnection(opPackageName, size, type, format, resource); 199 native_handle_close(resource); 200 native_handle_delete(resource); 109 createSensorDirectConnection(const String16& opPackageName, uint32_t size, int32_t type, int32_t format, const native_handle_t *resource) argument
|
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/date/ |
H A D | YearPickerView.java | 105 public YearAdapter(Context context, int resource, List<String> objects) { argument 106 super(context, resource, objects);
|
/frameworks/rs/tests/java_api/GenImages/src/com/android/rs/genimage/ |
H A D | GenImage.java | 43 private Bitmap loadBitmap(Context context, int resource) { argument 46 return BitmapFactory.decodeResource(context.getResources(), resource, options);
|
/frameworks/rs/tests/java_api/SampleTest/src/com/android/rs/sample/ |
H A D | SampleRSActivity.java | 144 private Bitmap loadBitmap(int resource) { argument 147 Bitmap b = BitmapFactory.decodeResource(getResources(), resource, options);
|
/frameworks/support/v7/preference/src/android/support/v7/preference/ |
H A D | PreferenceInflater.java | 99 * Inflate a new item hierarchy from the specified xml resource. Throws 102 * @param resource ID for an XML resource to load (e.g., 109 public Preference inflate(int resource, @Nullable PreferenceGroup root) { argument 110 XmlResourceParser parser = getContext().getResources().getXml(resource);
|
/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/java/android/widget/ |
H A D | ArrayAdapter.java | 50 * and inflate a view resource. 87 * The resource indicating what views to inflate to display the content of this 93 * The resource indicating what views to inflate to display the content of this 110 * If the inflated resource is not a TextView, {@code mFieldId} is used to find 112 * identifier that matches the one defined in the resource file. 134 * @param resource The resource ID for a layout file containing a TextView to use when 137 public ArrayAdapter(@NonNull Context context, @LayoutRes int resource) { argument 138 this(context, resource, 0, new ArrayList<>()); 145 * @param resource Th 149 ArrayAdapter(@onNull Context context, @LayoutRes int resource, @IdRes int textViewResourceId) argument 162 ArrayAdapter(@onNull Context context, @LayoutRes int resource, @NonNull T[] objects) argument 175 ArrayAdapter(@onNull Context context, @LayoutRes int resource, @IdRes int textViewResourceId, @NonNull T[] objects) argument 188 ArrayAdapter(@onNull Context context, @LayoutRes int resource, @NonNull List<T> objects) argument 202 ArrayAdapter(@onNull Context context, @LayoutRes int resource, @IdRes int textViewResourceId, @NonNull List<T> objects) argument 207 ArrayAdapter(@onNull Context context, @LayoutRes int resource, @IdRes int textViewResourceId, @NonNull List<T> objects, boolean objsFromResources) argument 410 createViewFromResource(@onNull LayoutInflater inflater, int position, @Nullable View convertView, @NonNull ViewGroup parent, int resource) argument 457 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...] |
/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/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);
|