/frameworks/base/core/java/android/widget/ |
D | ArrayAdapter.java | 138 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 …]
|
D | ViewAnimator.java | 63 … int resource = a.getResourceId(com.android.internal.R.styleable.ViewAnimator_inAnimation, 0); in ViewAnimator() local 64 if (resource > 0) { in ViewAnimator() 65 setInAnimation(context, resource); in ViewAnimator() 68 resource = a.getResourceId(com.android.internal.R.styleable.ViewAnimator_outAnimation, 0); in ViewAnimator() 69 if (resource > 0) { in ViewAnimator() 70 setOutAnimation(context, resource); in ViewAnimator()
|
D | SimpleAdapter.java | 91 @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/opt/car/setupwizard/library/main/src/com/android/car/setupwizardlib/partner/ |
D | PartnerConfigHelper.java | 97 Resources resource = getResourcesByPackageName(context, resourceEntry.getPackageName()); in getColor() local 98 result = resource.getColor(resourceEntry.getResourceId(), null); in getColor() 136 Resources resource = getResourcesByPackageName(context, resourceEntry.getPackageName()); in getColorStateList() local 140 resource.getValue(resourceEntry.getResourceId(), outValue, true); in getColorStateList() 145 result = resource.getColorStateList(resourceEntry.getResourceId(), null); in getColorStateList() 179 Resources resource = getResourcesByPackageName(context, resourceEntry.getPackageName()); in getDrawable() local 183 resource.getValue(resourceEntry.getResourceId(), outValue, true); in getDrawable() 188 result = resource.getDrawable(resourceEntry.getResourceId(), null); in getDrawable() 222 Resources resource = getResourcesByPackageName(context, resourceEntry.getPackageName()); in getString() local 223 result = resource.getString(resourceEntry.getResourceId()); in getString() [all …]
|
/frameworks/base/tools/aapt2/ |
D | readme.md | 4 - 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 …]
|
D | Resources.proto | 36 // Developer friendly source file information for an entity in the resource table. 49 // Top level message representing a resource table. 51 // The string pool containing source paths referenced throughout the resource table. This does 58 // The <overlayable> declarations within the resource table. 61 // The version fingerprints of the tools that built the resource table. 94 // attr, etc. This maps to the second part of a resource identifier in Java (R.type.entry). 99 // The name of the type. This corresponds to the 'type' part of a full resource name of the form 109 // The visibility of the resource outside of its package. 113 // private one. An unknown visibility, in this case, would cause the resource to be omitted 117 // A resource was explicitly marked as private. This means the resource can not be accessed [all …]
|
D | ResourcesInternal.proto | 26 // The top level message representing an external resource file (layout XML, PNG, etc). 37 // The name of the resource (in the form package:type/name). 40 // The configuration for which the resource is defined.
|
/frameworks/base/cmds/idmap2/tests/data/overlay/ |
D | build | 20 --no-resource-removal \ 27 --no-resource-removal \ 34 --no-resource-removal \ 41 --no-resource-removal \ 48 --no-resource-removal \ 55 --no-resource-removal \
|
/frameworks/av/media/libmedia/ |
D | MediaResource.cpp | 81 String8 toString(const MediaResourceParcel& resource) { in toString() argument 85 asString(resource.type), asString(resource.subType), in toString() 86 bytesToHexString(resource.id).c_str(), in toString() 87 (long long)resource.value); in toString()
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/util/ |
D | DynamicIdMap.java | 65 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/core/java/android/view/animation/ |
D | LayoutAnimationController.java | 114 … 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() 119 … resource = 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/base/tools/aapt2/link/ |
D | XmlReferenceLinker.cpp | 163 bool XmlReferenceLinker::Consume(IAaptContext* context, xml::XmlResource* resource) { in Consume() argument 165 CallSite callsite{resource->file.name.package}; in Consume() 167 std::string out_name = resource->file.name.entry; in Consume() 176 XmlVisitor visitor(resource->file.source, callsite, context, context->GetExternalSymbols()); in Consume() 177 if (resource->root) { in Consume() 178 resource->root->Accept(&visitor); in Consume()
|
D | XmlNamespaceRemover.cpp | 52 bool XmlNamespaceRemover::Consume(IAaptContext* context, xml::XmlResource* resource) { in Consume() argument 53 if (!resource->root) { in Consume() 58 resource->root->Accept(&visitor); in Consume()
|
/frameworks/base/tests/DpiTest/src/com/google/android/test/dpi/ |
D | DpiTestActivity.java | 164 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/ |
D | CustomBar.java | 246 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() + "'.", null, resource); in getColor()
|
/frameworks/base/tests/net/java/com/android/server/ |
D | IpSecServiceRefcountedResourceTest.java | 70 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/ |
D | ISensorServer.cpp | 113 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 if (resource == nullptr) { in onTransact() 207 createSensorDirectConnection(opPackageName, size, type, format, resource); in onTransact() 208 native_handle_close(resource); in onTransact() 209 native_handle_delete(resource); in onTransact()
|
/frameworks/av/services/mediaresourcemanager/ |
D | ResourceManagerService.cpp | 296 const MediaResourceParcel& resource, const ResourceInfo& clientInfo) { in onFirstAdded() argument 298 if (resource.type == MediaResource::Type::kCpuBoost in onFirstAdded() 299 && resource.subType == MediaResource::SubType::kUnspecifiedSubType) { in onFirstAdded() 307 } else if (resource.type == MediaResource::Type::kBattery in onFirstAdded() 308 && resource.subType == MediaResource::SubType::kVideoCodec) { in onFirstAdded() 314 const MediaResourceParcel& resource, const ResourceInfo& clientInfo) { in onLastRemoved() argument 315 if (resource.type == MediaResource::Type::kCpuBoost in onLastRemoved() 316 && resource.subType == MediaResource::SubType::kUnspecifiedSubType in onLastRemoved() 321 } else if (resource.type == MediaResource::Type::kBattery in onLastRemoved() 322 && resource.subType == MediaResource::SubType::kVideoCodec) { in onLastRemoved() [all …]
|
/frameworks/layoutlib/bridge/src/android/util/ |
D | BridgeXmlPullAttributes.java | 325 ResourceValue resource = getResourceValue(value); in resolveResourceValue() local 326 if (resource != null) { in resolveResourceValue() 327 return resource.isFramework() ? in resolveResourceValue() 328 Bridge.getResourceId(resource.getResourceType(), resource.getName()) : in resolveResourceValue() 329 mContext.getLayoutlibCallback().getOrGenerateResourceId(resource.asReference()); in resolveResourceValue()
|
/frameworks/base/tools/aapt2/optimize/ |
D | ResourceFilter.cpp | 31 ResourceName resource = ResourceName({}, type->type, (*it)->name); in Consume() local 32 if (blacklist_.find(resource) != blacklist_.end()) { in Consume()
|
/frameworks/base/services/core/java/com/android/server/tv/tunerresourcemanager/ |
D | TunerResourceBasic.java | 93 TunerResourceBasic resource = new TunerResourceBasic(this); in build() local 94 return resource; in build()
|
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/wear/ |
D | InstallTask.java | 164 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/ |
D | GenericInflater.java | 227 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/ |
D | HelloComputeNDK.java | 56 private Bitmap loadBitmap(int resource) { in loadBitmap() argument 59 return BitmapFactory.decodeResource(getResources(), resource, options); in loadBitmap()
|
/frameworks/base/core/java/android/view/ |
D | LayoutInflater.java | 478 public View inflate(@LayoutRes int resource, @Nullable ViewGroup root) { in inflate() argument 479 return inflate(resource, root, root != null); in inflate() 519 public View inflate(@LayoutRes int resource, @Nullable ViewGroup root, boolean attachToRoot) { in inflate() argument 522 Log.d(TAG, "INFLATING from resource: \"" + res.getResourceName(resource) + "\" (" in inflate() 523 + Integer.toHexString(resource) + ")"); in inflate() 526 View view = tryInflatePrecompiled(resource, res, root, attachToRoot); in inflate() 530 XmlResourceParser parser = res.getLayout(resource); in inflate() 539 View tryInflatePrecompiled(@LayoutRes int resource, Resources res, @Nullable ViewGroup root, in tryInflatePrecompiled() argument 548 String pkg = res.getResourcePackageName(resource); in tryInflatePrecompiled() 549 String layout = res.getResourceEntryName(resource); in tryInflatePrecompiled() [all …]
|