Home
last modified time | relevance | path

Searched refs:resource (Results 1 – 25 of 121) sorted by relevance

12345

/frameworks/base/core/java/android/widget/
DArrayAdapter.java138 public ArrayAdapter(@NonNull Context context, @LayoutRes int resource) { in ArrayAdapter() argument
139 this(context, resource, 0, new ArrayList<>()); in ArrayAdapter()
150 public ArrayAdapter(@NonNull Context context, @LayoutRes int resource, in ArrayAdapter() argument
152 this(context, resource, textViewResourceId, new ArrayList<>()); in ArrayAdapter()
164 public ArrayAdapter(@NonNull Context context, @LayoutRes int resource, @NonNull T[] objects) { in ArrayAdapter() argument
165 this(context, resource, 0, Arrays.asList(objects)); in ArrayAdapter()
178 public ArrayAdapter(@NonNull Context context, @LayoutRes int resource, in ArrayAdapter() argument
180 this(context, resource, textViewResourceId, Arrays.asList(objects)); in ArrayAdapter()
191 public ArrayAdapter(@NonNull Context context, @LayoutRes int resource, in ArrayAdapter() argument
193 this(context, resource, 0, objects); in ArrayAdapter()
[all …]
DViewAnimator.java60 … int resource = a.getResourceId(com.android.internal.R.styleable.ViewAnimator_inAnimation, 0); in ViewAnimator() local
61 if (resource > 0) { in ViewAnimator()
62 setInAnimation(context, resource); in ViewAnimator()
65 resource = a.getResourceId(com.android.internal.R.styleable.ViewAnimator_outAnimation, 0); in ViewAnimator()
66 if (resource > 0) { in ViewAnimator()
67 setOutAnimation(context, resource); in ViewAnimator()
DSimpleAdapter.java91 @LayoutRes int resource, String[] from, @IdRes int[] to) { in SimpleAdapter() argument
93 mResource = mDropDownResource = resource; in SimpleAdapter()
128 ViewGroup parent, int resource) { in createViewFromResource() argument
131 v = inflater.inflate(resource, parent, false); in createViewFromResource()
147 public void setDropDownViewResource(int resource) { in setDropDownViewResource() argument
148 mDropDownResource = resource; in setDropDownViewResource()
/frameworks/base/tools/aapt2/
Dreadme.md4 - Added navigation resource type.
5 - Fixed issue with resource deduplication. (bug 64397629)
32 - Fixed issue where overlays that declared `<add-resource>` did not compile. (bug 38355988)
33 - Fixed issue where `%n` in a string resource was interpreted as a format argument. (bug 37132275)
37 resource types. (bug 62260121)
41 - Fix issue where overlaid `<style>` would not be merged, and would replace the original resource
61 will automatically convert any 'id' resource references from the resource ID 0xPPTTEEEE to
64 a resource ID by assuming it is larger than 0. In Java, a resource ID with package ID greater
68 Rewriting these resource IDs to use the package ID 7F while maintaining their definitions under
102 - Added sparse resource type encoding, which encodes resource entries that are sparse with
[all …]
DResources.proto37 // Developer friendly source file information for an entity in the resource table.
50 // Top level message representing a resource table.
52 // The string pool containing source paths referenced throughout the resource table. This does
59 // The <overlayable> declarations within the resource table.
62 // The version fingerprints of the tools that built the resource table.
95 // attr, etc. This maps to the second part of a resource identifier in Java (R.type.entry).
100 // The name of the type. This corresponds to the 'type' part of a full resource name of the form
110 // The visibility of the resource outside of its package.
114 // private one. An unknown visibility, in this case, would cause the resource to be omitted
118 // A resource was explicitly marked as private. This means the resource can not be accessed
[all …]
DResourcesInternal.proto27 // The top level message representing an external resource file (layout XML, PNG, etc).
38 // The name of the resource (in the form package:type/name).
41 // The configuration for which the resource is defined.
/frameworks/opt/car/setupwizard/library/main/src/com/android/car/setupwizardlib/partner/
DPartnerConfigHelper.java93 Resources resource = getResourcesByPackageName(context, resourceEntry.getPackageName()); in getColor() local
94 result = resource.getColor(resourceEntry.getResourceId(), null); in getColor()
128 Resources resource = getResourcesByPackageName(context, resourceEntry.getPackageName()); in getDrawable() local
132 resource.getValue(resourceEntry.getResourceId(), outValue, true); in getDrawable()
137 result = resource.getDrawable(resourceEntry.getResourceId(), null); in getDrawable()
171 Resources resource = getResourcesByPackageName(context, resourceEntry.getPackageName()); in getString() local
172 result = resource.getString(resourceEntry.getResourceId()); in getString()
217 Resources resource = getResourcesByPackageName(context, resourceEntry.getPackageName()); in getDimension() local
218 result = resource.getDimension(resourceEntry.getResourceId()); in getDimension()
253 Resources resource = getResourcesByPackageName(context, resourceEntry.getPackageName()); in getBoolean() local
[all …]
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/util/
DDynamicIdMap.java65 public Integer getId(Pair<ResourceType, String> resource) { in getId() argument
66 Integer value = mDynamicIds.get(resource); in getId()
69 mDynamicIds.put(resource, value); in getId()
70 mRevDynamicIds.put(value, resource); in getId()
/frameworks/base/cmds/idmap2/tests/data/overlay/
Dbuild20 --no-resource-removal \
27 --no-resource-removal \
34 --no-resource-removal \
41 --no-resource-removal \
48 --no-resource-removal \
/frameworks/base/tools/aapt2/link/
DXmlReferenceLinker.cpp154 bool XmlReferenceLinker::Consume(IAaptContext* context, xml::XmlResource* resource) { in Consume() argument
156 CallSite callsite{resource->file.name.package}; in Consume()
158 std::string out_name = resource->file.name.entry; in Consume()
167 XmlVisitor visitor(resource->file.source, callsite, context, context->GetExternalSymbols()); in Consume()
168 if (resource->root) { in Consume()
169 resource->root->Accept(&visitor); in Consume()
DXmlNamespaceRemover.cpp52 bool XmlNamespaceRemover::Consume(IAaptContext* context, xml::XmlResource* resource) { in Consume() argument
53 if (!resource->root) { in Consume()
58 resource->root->Accept(&visitor); in Consume()
DLinkers.h124 bool Consume(IAaptContext* context, xml::XmlResource* resource) override;
138 bool Consume(IAaptContext* context, xml::XmlResource* resource) override;
/frameworks/av/media/codec2/hidl/1.0/vts/functional/common/
DREADME.md16 …t is to validate audio specific functionality of Codec2 components. The resource files for this te…
18 usage: `VtsHalMediaC2V1_0TargetAudioDecTest -I default -C <comp name> -P <path to resource files>`
20 usage: `VtsHalMediaC2V1_0TargetAudioEncTest -I software -C <comp name> -P <path to resource files>`
27 …t is to validate video specific functionality of Codec2 components. The resource files for this te…
29 usage: `VtsHalMediaC2V1_0TargetVideoDecTest -I default -C <comp name> -P <path to resource files>`
31 usage: `VtsHalMediaC2V1_0TargetVideoEncTest -I software -C <comp name> -P <path to resource files>`
/frameworks/base/core/java/android/view/animation/
DLayoutAnimationController.java114 … int resource = a.getResourceId(com.android.internal.R.styleable.LayoutAnimation_animation, 0); in LayoutAnimationController() local
115 if (resource > 0) { in LayoutAnimationController()
116 setAnimation(context, resource); in LayoutAnimationController()
119resource = a.getResourceId(com.android.internal.R.styleable.LayoutAnimation_interpolator, 0); in LayoutAnimationController()
120 if (resource > 0) { in LayoutAnimationController()
121 setInterpolator(context, resource); in LayoutAnimationController()
/frameworks/av/services/mediaresourcemanager/
DResourceManagerService.cpp262 const MediaResource& resource, const ResourceInfo& clientInfo) { in onFirstAdded() argument
264 if (resource.mType == MediaResource::kCpuBoost in onFirstAdded()
265 && resource.mSubType == MediaResource::kUnspecifiedSubType) { in onFirstAdded()
273 } else if (resource.mType == MediaResource::kBattery in onFirstAdded()
274 && resource.mSubType == MediaResource::kVideoCodec) { in onFirstAdded()
280 const MediaResource& resource, const ResourceInfo& clientInfo) { in onLastRemoved() argument
281 if (resource.mType == MediaResource::kCpuBoost in onLastRemoved()
282 && resource.mSubType == MediaResource::kUnspecifiedSubType in onLastRemoved()
287 } else if (resource.mType == MediaResource::kBattery in onLastRemoved()
288 && resource.mSubType == MediaResource::kVideoCodec) { in onLastRemoved()
[all …]
/frameworks/base/tests/DpiTest/src/com/google/android/test/dpi/
DDpiTestActivity.java164 private void addBitmapDrawable(LinearLayout layout, int resource, boolean scale) { in addBitmapDrawable() argument
166 bitmap = loadAndPrintDpi(resource, scale); in addBitmapDrawable()
179 private void addResourceDrawable(LinearLayout layout, int resource) { in addResourceDrawable() argument
182 final Drawable d = getResources().getDrawable(resource); in addResourceDrawable()
190 private void addCanvasBitmap(LinearLayout layout, int resource, boolean scale) { in addCanvasBitmap() argument
192 bitmap = loadAndPrintDpi(resource, scale); in addCanvasBitmap()
201 private void addNinePatchResourceDrawable(LinearLayout layout, int resource) { in addNinePatchResourceDrawable() argument
204 final Drawable d = getResources().getDrawable(resource); in addNinePatchResourceDrawable()
207 Log.i("foo", "9-patch #" + Integer.toHexString(resource) in addNinePatchResourceDrawable()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
DCustomBar.java246 ResourceValue resource = in getColor() local
249 resource = renderResources.resolveResValue(resource); in getColor()
250 if (resource != null) { in getColor()
251 ResourceType type = resource.getResourceType(); in getColor()
256 return ResourceHelper.getColor(resource.getValue()); in getColor()
262 resource.getValue() + "'.", resource); in getColor()
/frameworks/base/tests/net/java/com/android/server/
DIpSecServiceRefcountedResourceTest.java70 RefcountedResource<IResource> resource, in assertResourceState() argument
78 assertEquals(refCount, resource.mRefCount); in assertResourceState()
81 verify(resource, times(userReleaseCallCount)).userRelease(); in assertResourceState()
82 verify(resource, times(releaseReferenceCallCount)).releaseReference(); in assertResourceState()
85 verify(resource.getResource(), times(invalidateCallCount)).invalidate(); in assertResourceState()
86 verify(resource.getResource(), times(freeUnderlyingResourcesCallCount)) in assertResourceState()
107 RefcountedResource<IResource> resource = getTestRefcountedResource(binderMock); in testConstructor() local
110 assertResourceState(resource, 1, 0, 0, 0, 0); in testConstructor()
/frameworks/native/libs/sensor/
DISensorServer.cpp113 uint32_t size, int32_t type, int32_t format, const native_handle_t *resource) { in createSensorDirectConnection() argument
120 data.writeNativeHandle(resource); in createSensorDirectConnection()
201 native_handle_t *resource = data.readNativeHandle(); in onTransact() local
203 createSensorDirectConnection(opPackageName, size, type, format, resource); in onTransact()
204 native_handle_close(resource); in onTransact()
205 native_handle_delete(resource); in onTransact()
/frameworks/layoutlib/bridge/src/android/util/
DBridgeXmlPullAttributes.java329 ResourceValue resource = getResourceValue(value); in resolveResourceValue() local
330 if (resource != null) { in resolveResourceValue()
331 return resource.isFramework() ? in resolveResourceValue()
332 Bridge.getResourceId(resource.getResourceType(), resource.getName()) : in resolveResourceValue()
333 mContext.getLayoutlibCallback().getOrGenerateResourceId(resource.asReference()); in resolveResourceValue()
/frameworks/base/tools/aapt2/optimize/
DResourceFilter.cpp31 ResourceName resource = ResourceName({}, type->type, (*it)->name); in Consume() local
32 if (blacklist_.find(resource) != blacklist_.end()) { in Consume()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/wear/
DInstallTask.java164 public static void safeClose(Closeable resource) { in safeClose() argument
165 if (resource != null) { in safeClose()
167 resource.close(); in safeClose()
/frameworks/base/core/java/android/preference/
DGenericInflater.java227 public T inflate(@XmlRes int resource, P root) { in inflate() argument
228 return inflate(resource, root, root != null); in inflate()
267 public T inflate(@XmlRes int resource, P root, boolean attachToRoot) { in inflate() argument
268 if (DEBUG) System.out.println("INFLATING from resource: " + resource); in inflate()
269 XmlResourceParser parser = getContext().getResources().getXml(resource); in inflate()
/frameworks/rs/tests/java_api/HelloComputeNDK/src/com/example/android/rs/hellocomputendk/
DHelloComputeNDK.java56 private Bitmap loadBitmap(int resource) { in loadBitmap() argument
59 return BitmapFactory.decodeResource(getResources(), resource, options); in loadBitmap()
/frameworks/base/core/java/android/view/
DLayoutInflater.java477 public View inflate(@LayoutRes int resource, @Nullable ViewGroup root) { in inflate() argument
478 return inflate(resource, root, root != null); in inflate()
518 public View inflate(@LayoutRes int resource, @Nullable ViewGroup root, boolean attachToRoot) { in inflate() argument
521 Log.d(TAG, "INFLATING from resource: \"" + res.getResourceName(resource) + "\" (" in inflate()
522 + Integer.toHexString(resource) + ")"); in inflate()
525 View view = tryInflatePrecompiled(resource, res, root, attachToRoot); in inflate()
529 XmlResourceParser parser = res.getLayout(resource); in inflate()
538 View tryInflatePrecompiled(@LayoutRes int resource, Resources res, @Nullable ViewGroup root, in tryInflatePrecompiled() argument
547 String pkg = res.getResourcePackageName(resource); in tryInflatePrecompiled()
548 String layout = res.getResourceEntryName(resource); in tryInflatePrecompiled()
[all …]

12345