/aosp12/packages/apps/Car/libs/car-ui-lib/tests/apitest/ |
H A D | resource_utils.py | 105 for resource in root: 106 if resource.tag == 'declare-styleable' or resource.tag is etree.Comment: 116 resName = resource.get('name') 117 resType = resource.tag 120 if resource.tag == 'item' or resource.tag == 'public': 121 resType = resource.get('type') 124 for policy in resource: 149 grabber = _Grab(resource) 153 resourceset.update([resource]) 156 for resource in set2: [all …]
|
H A D | auto-generate-resources.py | 102 for resource in resources: 104 item.set('type', resource.type) 105 item.set('name', resource.name) 132 for resource in resources: 134 item.set('type', resource.type) 135 item.set('name', resource.name) 178 for resource in newlist: 179 resourceType= resource.type 180 resourceName = resource.name
|
/aosp12/packages/apps/Car/tests/tools/rro/ |
H A D | resource_utils.py | 95 for resource in root: 96 if resource.tag is etree.Comment: 99 for attr in resource: 108 resName = resource.get('name') 109 resType = resource.tag 112 if resource.tag == 'item' or resource.tag == 'public': 117 for policy in resource: 141 if (resource.name == None): 143 grabber = _Grab(resource) 147 resourceset.update([resource]) [all …]
|
/aosp12/build/make/tools/droiddoc/templates-pdk/assets/ |
H A D | android-developer-resource-browser.css | 3 #resource-browser-results .no-results { 8 #resource-browser-results .result { 15 #resource-browser-results .tagged-article { 16 background-image: url(images/resource-article.png); 19 #resource-browser-results .tagged-sample { 20 background-image: url(images/resource-sample.png); 23 #resource-browser-results .tagged-tutorial { 24 background-image: url(images/resource-tutorial.png); 27 #resource-browser-results .resource-meta {
|
H A D | android-developer-resource-browser.js | 76 var resource = ANDROID_RESOURCES[i]; 79 resource.tagsHash = {}; 81 resource.tagsHash[resource.tags[j]] = true; 84 resource.topics = []; 85 for (tag in resource.tagsHash) 88 resource.type = tag; 90 resource.topics.push(tag); 95 resource.topicsHtml = humanizeList(resource.topics, function(item) { 135 var resource = ANDROID_RESOURCES[i]; 148 results.push(resource); [all …]
|
/aosp12/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/ |
H A D | ScrollArrayAdapter.java | 36 public ScrollArrayAdapter(Context context, int resource, int textViewResourceId) { in ScrollArrayAdapter() argument 37 super(context, resource, textViewResourceId); in ScrollArrayAdapter() 38 mLayoutResource = resource; in ScrollArrayAdapter() 45 public ScrollArrayAdapter(Context context, int resource, int textViewResourceId, in ScrollArrayAdapter() argument 47 super(context, resource, textViewResourceId, objects); in ScrollArrayAdapter() 48 mLayoutResource = resource; in ScrollArrayAdapter() 55 public ScrollArrayAdapter(Context context, int resource, int textViewResourceId, in ScrollArrayAdapter() argument 57 super(context, resource, textViewResourceId, objects); in ScrollArrayAdapter() 58 mLayoutResource = resource; in ScrollArrayAdapter()
|
/aosp12/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/media/ |
H A D | MediaResourceManagerTest.java | 122 assertNotNull(resource); in testLoadImageSynchronously() 123 assertFalse(resource.isClosed()); in testLoadImageSynchronously() 124 assertNotSame(0, resource.getRefCount()); in testLoadImageSynchronously() 125 resource.release(); in testLoadImageSynchronously() 154 final FakeImageResource resource, final boolean isCached) { in createAssertListener() 156 assertNotNull(resource); in createAssertListener() 157 assertFalse(resource.isClosed()); in createAssertListener() 158 assertNotSame(0, resource.getRefCount()); in createAssertListener() 160 assertEquals(shouldBeCached, resource.getCached()); in createAssertListener() 161 resource.setCached(true); in createAssertListener() [all …]
|
/aosp12/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 …]
|
/aosp12/frameworks/opt/car/setupwizard/library/main/src/com/android/car/setupwizardlib/partner/ |
H A 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() 223 result = resource.getString(resourceEntry.getResourceId()); in getString() 269 result = resource.getDimension(resourceEntry.getResourceId()); in getDimension() [all …]
|
/aosp12/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 | 49 // Top level message representing a resource table. 117 // A resource was explicitly marked as private. This means the resource can not be accessed 123 // A resource was explicitly marked as public. This means the resource can be accessed 143 // existing resource. 193 // The staged resource ID definition of a finalized resource. 225 // Whether this resource can be overlaid by a runtime resource overlay (RRO). 232 // The staged resource ID of this finalized resource. 294 // A value that is a reference to another resource. This reference can be by name or resource ID. 306 // The resource ID (0xPPTTEEEE) of the resource being referred. This is optional. 309 // The name of the resource being referred. This is optional if the resource ID is set. [all …]
|
/aosp12/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()
|
/aosp12/packages/apps/Messaging/src/com/android/messaging/datamodel/media/ |
H A D | UriImageRequest.java | 41 final ImageResource resource = super.loadMediaInternal(chainedTasks); in loadMediaInternal() local 46 resource.getMediaEncodingRequest(this); in loadMediaInternal() 51 if (resource instanceof DecodedImageResource) { in loadMediaInternal() 52 ((DecodedImageResource) resource).setCacheable(false); in loadMediaInternal() 56 return resource; in loadMediaInternal()
|
H A D | CompositeImageRequest.java | 66 final ImageResource resource = in loadMediaInternal() local 68 if (resource != null) { in loadMediaInternal() 73 final Bitmap resourceBitmap = resource.getBitmap(); in loadMediaInternal() 82 ImageUtils.drawBitmapWithCircleOnCanvas(resource.getBitmap(), smallCircleCanvas, in loadMediaInternal() 92 resource.release(); in loadMediaInternal()
|
H A D | MediaResourceManager.java | 94 void onMediaResourceLoaded(MediaRequest<T> request, T resource, boolean cached); in onMediaResourceLoaded() argument 205 final T resource = mediaRequest.loadMediaBlocking(chainedRequests); in loadMediaFromRequest() local 208 Assert.notNull(resource); in loadMediaFromRequest() 215 resource.addRef(); in loadMediaFromRequest() 217 if (resource.isCacheable()) { in loadMediaFromRequest() 218 addResourceToMemoryCache(mediaRequest, resource); in loadMediaFromRequest() 220 return resource; in loadMediaFromRequest()
|
/aosp12/frameworks/base/tools/aapt2/link/ |
H A D | XmlReferenceLinker.cpp | 132 bool XmlReferenceLinker::Consume(IAaptContext* context, xml::XmlResource* resource) { in Consume() argument 134 CallSite callsite{resource->file.name.package}; in Consume() 136 std::string out_name = resource->file.name.entry; in Consume() 145 XmlVisitor visitor(resource->file.source, &resource->string_pool, callsite, context, table_, in Consume() 147 if (resource->root) { in Consume() 148 resource->root->Accept(&visitor); in Consume()
|
/aosp12/bionic/libc/bionic/ |
H A D | legacy_32_bit_support.cpp | 96 int getrlimit64(int resource, rlimit64* limits64) { in getrlimit64() argument 97 return prlimit64(0, resource, nullptr, limits64); in getrlimit64() 101 int setrlimit64(int resource, const rlimit64* limits64) { in setrlimit64() argument 102 return prlimit64(0, resource, limits64, nullptr); in setrlimit64() 106 int prlimit(pid_t pid, int resource, const rlimit* n32, rlimit* o32) { in prlimit() argument 114 int result = prlimit64(pid, resource, in prlimit()
|
/aosp12/frameworks/av/media/libmedia/ |
H A 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()
|
/aosp12/packages/apps/Camera2/src/com/android/camera/captureintent/resource/ |
H A D | ResourceCaptureToolsImpl.java | 17 package com.android.camera.captureintent.resource; 153 final ResourceConstructed resource = mResourceConstructed.get(); in takePictureNow() local 160 resource.getMainThread().execute(new Runnable() { in takePictureNow() 163 resource.getModuleUI().setShutterButtonEnabled(false); in takePictureNow() 171 resource.getLocationManager().getCurrentLocation(); in takePictureNow() 177 final SettingsManager settingsManager = resource.getSettingsManager(); in takePictureNow() 195 resource.getOrientationManager().getDeviceOrientation().getDegrees(), in takePictureNow() 197 resource.getContext().getExternalCacheDir(), in takePictureNow()
|
/aosp12/build/make/core/ |
H A D | aapt2.mk | 29 $(eval o := $(call aapt2-compiled-resource-out-file,$(r),$(my_compiled_res_base_dir)))\ 30 $(eval $(call aapt2-compile-one-resource-file-rule,$(r),$(o)))\ 35 $(eval o := $(call aapt2-compiled-resource-out-file,$(r),$(my_compiled_res_base_dir)))\ 36 $(eval $(call aapt2-compile-one-resource-file-rule,$(r),$(o)))\ 46 $(call aapt2-compile-resource-dirs) 57 $(call aapt2-compile-resource-zips)
|
/aosp12/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()
|
/aosp12/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/util/ |
H A 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()
|
/aosp12/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()
|
/aosp12/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/ |
H A 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()
|
/aosp12/art/test/StringLiterals/ |
H A D | StringLiterals.java | 31 String resource = "abcd.apk"; in startUpMethod() local 33 System.out.println("Loading " + resource); in startUpMethod() 38 String resource = "ab11.apk"; in startUpMethod2() local
|