/aosp14/frameworks/base/core/java/android/widget/ |
H A D | ArrayAdapter.java | 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() 165 this(context, resource, 0, Arrays.asList(objects)); in ArrayAdapter() 178 public ArrayAdapter(@NonNull Context context, @LayoutRes int resource, in ArrayAdapter() argument 193 this(context, resource, 0, objects); in ArrayAdapter() 207 this(context, resource, textViewResourceId, objects, false); in ArrayAdapter() 214 mResource = mDropDownResource = resource; in ArrayAdapter() 425 view = inflater.inflate(resource, parent, false); in createViewFromResource() 466 public void setDropDownViewResource(@LayoutRes int resource) { in setDropDownViewResource() argument [all …]
|
H A D | ViewAnimator.java | 64 … int resource = a.getResourceId(com.android.internal.R.styleable.ViewAnimator_inAnimation, 0); in ViewAnimator() local 65 if (resource > 0) { in ViewAnimator() 66 setInAnimation(context, resource); in ViewAnimator() 69 resource = a.getResourceId(com.android.internal.R.styleable.ViewAnimator_outAnimation, 0); in ViewAnimator() 70 if (resource > 0) { in ViewAnimator() 71 setOutAnimation(context, resource); in ViewAnimator()
|
H A 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()
|
/aosp14/frameworks/base/core/java/android/app/admin/ |
H A D | DevicePolicyResourcesManager.java | 211 ParcelableResource resource = mService.getDrawable( in getDrawable() local 213 if (resource == null) { in getDrawable() 216 return resource.getDrawable( in getDrawable() 308 ParcelableResource resource = mService.getDrawable( in getDrawableForDensity() local 310 if (resource == null) { in getDrawableForDensity() 355 ParcelableResource resource = mService.getDrawable( in getDrawableAsIcon() local 357 if (resource == null) { in getDrawableAsIcon() 360 return Icon.createWithResource(resource.getPackageName(), resource.getResourceId()); in getDrawableAsIcon() 492 if (resource == null) { in getString() 495 return resource.getString(mContext, defaultStringLoader); in getString() [all …]
|
H A D | DevicePolicyStringResource.java | 66 @NonNull ParcelableResource resource) { in DevicePolicyStringResource() argument 68 Objects.requireNonNull(resource, "ParcelableResource must be provided."); in DevicePolicyStringResource() 72 this.mResource = resource; in DevicePolicyStringResource() 134 ParcelableResource resource = in.readTypedObject(ParcelableResource.CREATOR); 136 return new DevicePolicyStringResource(stringId, resourceIdInCallingPackage, resource);
|
H A D | DevicePolicyDrawableResource.java | 76 @NonNull ParcelableResource resource) { in DevicePolicyDrawableResource() argument 81 Objects.requireNonNull(resource); in DevicePolicyDrawableResource() 87 this.mResource = resource; in DevicePolicyDrawableResource() 197 ParcelableResource resource = in.readTypedObject(ParcelableResource.CREATOR); 201 resource);
|
/aosp14/system/core/init/ |
H A D | rlimit_parser.cpp | 39 int resource; in ParseRlimit() local 41 if (ParseInt(args[1], &resource)) { in ParseRlimit() 42 if (resource >= RLIM_NLIMITS) { in ParseRlimit() 45 } else if (resource < 0) { in ParseRlimit() 64 resource = it->second; in ParseRlimit() 80 return std::pair{resource, limit}; in ParseRlimit()
|
H A D | rlimit_parser_test.cpp | 33 const auto& [resource, rlimit] = *result; in TestRlimitSuccess() 35 EXPECT_EQ(expected_resource, resource); in TestRlimitSuccess()
|
/aosp14/frameworks/base/tools/aapt2/ |
H A D | readme.md | 4 - Added navigation resource type. 5 - Fixed issue with resource deduplication. (bug 64397629) 37 resource types. (bug 62260121) 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 102 - Added sparse resource type encoding, which encodes resource entries that are sparse with 113 (minSdkVersion >= O or resource qualifier >= v26). 126 - Support legacy `configVarying` resource type. 142 - Support new `font` resource type. 151 `--no-resource-deduping`. [all …]
|
H A D | Resources.proto | 56 // Top level message representing a resource table. 126 // A resource was explicitly marked as private. This means the resource can not be accessed 132 // A resource was explicitly marked as public. This means the resource can be accessed 152 // existing resource. 202 // The staged resource ID definition of a finalized resource. 234 // Whether this resource can be overlaid by a runtime resource overlay (RRO). 241 // The staged resource ID of this finalized resource. 303 // A value that is a reference to another resource. This reference can be by name or resource ID. 315 // The resource ID (0xPPTTEEEE) of the resource being referred. This is optional. 318 // The name of the resource being referred. This is optional if the resource ID is set. [all …]
|
H A D | ResourceMetadata.proto | 29 // Metadata relating to "aapt2 optimize --shorten-resource-paths" 40 // Metadata relating to "aapt2 optimize --collapse-resource-names" 42 // Maps resource IDs (e.g. 0x7f123456) to their original names (e.g.
|
H A 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.
|
/aosp14/frameworks/base/tools/aapt2/link/ |
H A D | XmlReferenceLinker.cpp | 130 bool XmlReferenceLinker::Consume(IAaptContext* context, xml::XmlResource* resource) { in Consume() argument 132 CallSite callsite{resource->file.name.package}; in Consume() 134 std::string out_name = resource->file.name.entry; in Consume() 143 XmlVisitor visitor(resource->file.source, &resource->string_pool, callsite, context, table_, in Consume() 145 if (resource->root) { in Consume() 146 resource->root->Accept(&visitor); in Consume()
|
H A 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()
|
/aosp14/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/ |
H A D | DeviceManagementResourcesProvider.java | 102 ParcelableResource resource = drawables.get(i).getResource(); in updateDrawables() local 107 Objects.requireNonNull(resource, "ParcelableResource must be provided."); in updateDrawables() 110 updated |= updateDrawable(drawableId, drawableStyle, resource); in updateDrawables() 113 drawableId, drawableSource, drawableStyle, resource); in updateDrawables() 184 ParcelableResource resource = getDrawableForSourceLocked( in getDrawable() local 186 if (resource != null) { in getDrawable() 187 return resource; in getDrawable() 215 ParcelableResource resource = strings.get(i).getResource(); in updateStrings() local 218 Objects.requireNonNull(resource, "ParcelableResource must be provided."); in updateStrings() 220 updated |= updateString(stringId, resource); in updateStrings() [all …]
|
/aosp14/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); 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()
|
/aosp14/frameworks/base/tests/DpiTest/src/com/google/android/test/dpi/ |
H A 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()
|
/aosp14/frameworks/base/cmds/idmap2/tests/data/overlay/ |
H A D | build | 20 --no-resource-removal \ 27 --no-resource-removal \ 35 --no-resource-removal \ 42 --no-resource-removal \
|
/aosp14/frameworks/base/packages/SettingsLib/src/com/android/settingslib/core/ |
H A D | AbstractPreferenceController.java | 143 String preferenceKey, String overrideKey, int resource) { in replaceEnterpriseStringTitle() argument 156 () -> mContext.getString(resource))); in replaceEnterpriseStringTitle() 161 PreferenceScreen screen, String preferenceKey, String overrideKey, int resource) { in replaceEnterpriseStringSummary() argument 174 () -> mContext.getString(resource))); in replaceEnterpriseStringSummary()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/ui/viewmodel/ |
H A D | KeyguardPreviewSmartspaceViewModel.kt | 79 fun getStatusBarHeight(resource: Resources): Int { 81 val resourceId: Int = resource.getIdentifier("status_bar_height", "dimen", "android") 83 result = resource.getDimensionPixelSize(resourceId)
|
/aosp14/frameworks/base/tools/aapt2/optimize/ |
H A D | ResourceFilter.cpp | 31 ResourceName resource = ResourceName({}, type->named_type, (*it)->name); in Consume() local 32 if (exclude_list_.find(resource) != exclude_list_.end()) { in Consume()
|
/aosp14/frameworks/base/services/core/java/com/android/server/tv/tunerresourcemanager/ |
H A D | TunerResourceBasic.java | 93 TunerResourceBasic resource = new TunerResourceBasic(this); in build() local 94 return resource; in build()
|
/aosp14/frameworks/base/packages/SystemUI/docs/ |
H A D | usb_audio.md | 1 # USB audio Permission and Confirmation warning dialog resource string id matrix table 5 | # | Permission |isUsbAudioDevice| hasAudioPlayback | hasAudioCapture | string resource ID |
|
/aosp14/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/wear/ |
H A D | InstallTask.java | 164 public static void safeClose(Closeable resource) { in safeClose() argument 165 if (resource != null) { in safeClose() 167 resource.close(); in safeClose()
|
/aosp14/frameworks/base/core/java/android/preference/ |
H A 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()
|