Home
last modified time | relevance | path

Searched refs:resourceId (Results 1 – 25 of 112) sorted by relevance

12345

/frameworks/base/core/java/android/app/admin/
DParcelableResource.java87 @NonNull Context context, @AnyRes int resourceId, @ResourceType int resourceType) in ParcelableResource() argument
90 verifyResourceExistsInCallingPackage(context, resourceId, resourceType); in ParcelableResource()
92 this.mResourceId = resourceId; in ParcelableResource()
93 this.mPackageName = context.getResources().getResourcePackageName(resourceId); in ParcelableResource()
94 this.mResourceName = context.getResources().getResourceName(resourceId); in ParcelableResource()
103 @AnyRes int resourceId, @NonNull String packageName, @NonNull String resourceName, in ParcelableResource()
105 this.mResourceId = resourceId; in ParcelableResource()
112 Context context, @AnyRes int resourceId, @ResourceType int resourceType) in verifyResourceExistsInCallingPackage() argument
116 if (!hasDrawableInCallingPackage(context, resourceId)) { in verifyResourceExistsInCallingPackage()
119 resourceId, in verifyResourceExistsInCallingPackage()
[all …]
/frameworks/base/core/tests/coretests/src/android/view/
DInflateTest.java56 public void inflateTest(int resourceId) { in inflateTest() argument
57 mView = mInflater.inflate(resourceId, null); in inflateTest()
61 public void inflateCachedTest(int resourceId) { in inflateCachedTest() argument
63 mInflater.inflate(resourceId, null); in inflateCachedTest()
65 mInflater.inflate(resourceId, null); in inflateCachedTest()
/frameworks/opt/car/setupwizard/library/main/src/com/android/car/setupwizardlib/partner/
DResourceEntry.java53 int resourceId = bundle.getInt(KEY_RESOURCE_ID); in fromBundle() local
54 return new ResourceEntry(packageName, resourceName, resourceId); in fromBundle()
57 public ResourceEntry(String packageName, String resourceName, int resourceId) { in ResourceEntry() argument
60 mResourceId = resourceId; in ResourceEntry()
/frameworks/ex/framesequence/samples/FrameSequenceSamples/src/com/android/framesequence/samples/
DSamplesList.java36 static Map<String,?> makeSample(String name, Class<?> activity, int resourceId) { in makeSample() argument
40 ret.put(KEY_RESOURCE, resourceId); in makeSample()
61 int resourceId = ((Integer) SAMPLES.get(position).get(KEY_RESOURCE)).intValue(); in onListItemClick() local
64 intent.putExtra("resourceId", resourceId); in onListItemClick()
/frameworks/base/core/java/android/widget/
DCalendarView.java311 public void setSelectedDateVerticalBar(@DrawableRes int resourceId) { in setSelectedDateVerticalBar() argument
312 mDelegate.setSelectedDateVerticalBar(resourceId); in setSelectedDateVerticalBar()
349 public void setWeekDayTextAppearance(@StyleRes int resourceId) { in setWeekDayTextAppearance() argument
350 mDelegate.setWeekDayTextAppearance(resourceId); in setWeekDayTextAppearance()
372 public void setDateTextAppearance(@StyleRes int resourceId) { in setDateTextAppearance() argument
373 mDelegate.setDateTextAppearance(resourceId); in setDateTextAppearance()
616 void setSelectedDateVerticalBar(@DrawableRes int resourceId); in setSelectedDateVerticalBar() argument
620 void setWeekDayTextAppearance(@StyleRes int resourceId); in setWeekDayTextAppearance() argument
623 void setDateTextAppearance(@StyleRes int resourceId); in setDateTextAppearance() argument
/frameworks/base/packages/SystemUI/src-release/com/android/systemui/flags/
DFlagsFactory.kt55 @BoolRes resourceId: Int, in resourceBooleanFlag()
65 resourceId = resourceId, in resourceBooleanFlag()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DNetworkRegistrationManager.java314 int resourceId; in getPackageName() local
319 resourceId = com.android.internal.R.string.config_wwan_network_service_package; in getPackageName()
324 resourceId = com.android.internal.R.string.config_wlan_network_service_package; in getPackageName()
334 packageName = mPhone.getContext().getResources().getString(resourceId); in getPackageName()
348 int resourceId; in getClassName() local
353 resourceId = com.android.internal.R.string.config_wwan_network_service_class; in getClassName()
358 resourceId = com.android.internal.R.string.config_wlan_network_service_class; in getClassName()
368 className = mPhone.getContext().getResources().getString(resourceId); in getClassName()
/frameworks/base/packages/SystemUI/src-debug/com/android/systemui/flags/
DFlagsFactory.kt55 @BoolRes resourceId: Int, in resourceBooleanFlag()
65 resourceId = resourceId, in resourceBooleanFlag()
/frameworks/base/core/java/android/gesture/
DGestureLibraries.java55 public static GestureLibrary fromRawResource(Context context, @RawRes int resourceId) { in fromRawResource() argument
56 return new ResourceGestureLibrary(context, resourceId); in fromRawResource()
148 public ResourceGestureLibrary(Context context, int resourceId) { in ResourceGestureLibrary() argument
150 mResourceId = resourceId; in ResourceGestureLibrary()
/frameworks/base/core/java/android/text/style/
DImageSpan.java206 public ImageSpan(@NonNull Context context, @DrawableRes int resourceId) { in ImageSpan() argument
207 this(context, resourceId, ALIGN_BOTTOM); in ImageSpan()
219 public ImageSpan(@NonNull Context context, @DrawableRes int resourceId, in ImageSpan() argument
223 mResourceId = resourceId; in ImageSpan()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/users/
DAvatarPickerActivity.java318 int resourceId = mPreselectedImages.getResourceId(index, -1); in returnSelectionResult() local
319 if (resourceId == -1) { in returnSelectionResult()
322 returnUriResult(uriForResourceId(resourceId)); in returnSelectionResult()
329 private Uri uriForResourceId(int resourceId) { in uriForResourceId() argument
332 .authority(getResources().getResourcePackageName(resourceId)) in uriForResourceId()
333 .appendPath(getResources().getResourceTypeName(resourceId)) in uriForResourceId()
334 .appendPath(getResources().getResourceEntryName(resourceId)) in uriForResourceId()
/frameworks/base/core/java/android/view/
DPointerIcon.java250 int resourceId = a.getResourceId(typeIndex, -1); in getSystemIcon() local
253 if (resourceId == -1) { in getSystemIcon()
259 if ((resourceId & 0xff000000) == 0x01000000) { in getSystemIcon()
260 icon.mSystemIconResourceId = resourceId; in getSystemIcon()
262 icon.loadResource(context, context.getResources(), resourceId); in getSystemIcon()
325 public static @NonNull PointerIcon load(@NonNull Resources resources, @XmlRes int resourceId) { in load() argument
331 icon.loadResource(null, resources, resourceId); in load()
461 private void loadResource(Context context, Resources resources, @XmlRes int resourceId) { in loadResource() argument
462 final XmlResourceParser parser = resources.getXml(resourceId); in loadResource()
/frameworks/base/apct-tests/perftests/autofill/src/android/view/autofill/
DMyAutofillService.java150 String resourceId = response.mIgnoredIds[i]; in handleRequest() local
151 requiredIds[i] = getAutofillIdByResourceId(request, resourceId); in handleRequest()
164 private AutofillId getAutofillIdByResourceId(FillRequest request, String resourceId) in getAutofillIdByResourceId() argument
167 resourceId); in getAutofillIdByResourceId()
169 throw new AssertionError("No node with resource id " + resourceId); in getAutofillIdByResourceId()
DAutofillTestHelper.java36 public static ViewNode findNodeByResourceId(List<FillContext> contexts, String resourceId) { in findNodeByResourceId() argument
38 ViewNode node = findNodeByResourceId(context.getStructure(), resourceId); in findNodeByResourceId()
/frameworks/base/packages/SystemUI/src/com/android/systemui/user/legacyhelper/ui/
DLegacyUserUiHelper.kt67 val resourceId: Int? = getGuestUserRecordNameResourceId(record) in getUserRecordName() constant
69 resourceId != null -> context.getString(resourceId) in getUserRecordName()
/frameworks/base/core/java/android/util/
DTypedValue.java203 public int resourceId; field in TypedValue
678 resourceId = other.resourceId; in setTo()
693 if (resourceId != 0) { in toString()
694 sb.append(" r=0x").append(Integer.toHexString(resourceId)); in toString()
/frameworks/base/media/mca/filterfw/java/android/filterfw/io/
DGraphReader.java41 public FilterGraph readGraphResource(Context context, int resourceId) throws GraphIOException { in readGraphResource() argument
42 InputStream inputStream = context.getResources().openRawResource(resourceId); in readGraphResource()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/flags/
DFlag.kt47 val resourceId: Int in describeContents() constant
131 @BoolRes override val resourceId: Int, constant in com.android.systemui.flags.ResourceBooleanFlag
187 @StringRes override val resourceId: Int, constant in com.android.systemui.flags.ResourceStringFlag
227 @IntegerRes override val resourceId: Int, constant in com.android.systemui.flags.ResourceIntFlag
299 override val resourceId: Int, constant in com.android.systemui.flags.ResourceFloatFlag
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/ui/
DRenderInfo.kt54 val resourceId = deviceIconMap.getValue(key) in lookup() constant
56 if (resourceId == APP_ICON_ID) { in lookup()
64 icon = iconMap.get(resourceId) in lookup()
66 icon = context.resources.getDrawable(resourceId, null) in lookup()
67 iconMap.put(resourceId, icon) in lookup()
/frameworks/base/services/core/java/com/android/server/pm/pkg/parsing/
DParsingUtils.java181 @NonNull Resources res, int resourceId, @NonNull ParseInput input) { in parseKnownActivityEmbeddingCerts() argument
182 if (!sa.hasValue(resourceId)) { in parseKnownActivityEmbeddingCerts()
186 final int knownActivityEmbeddingCertsResource = sa.getResourceId(resourceId, 0); in parseKnownActivityEmbeddingCerts()
214 final String knownCert = sa.getString(resourceId); in parseKnownActivityEmbeddingCerts()
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/robolectric/
DExternalResources.java82 Integer resourceId = resourceIds.get(ResName.qualifyResName(name, defPackage, defType)); in getIdentifier() local
83 if (resourceId == null) { in getIdentifier()
86 return resourceId; in getIdentifier()
/frameworks/base/tools/processors/view_inspector/test/resources/android/processor/view/inspector/InspectionCompanionGeneratorTest/
DSimpleProperties.java.txt72 * Property ID of {@code resourceId}.
93 mResourceIdId = propertyMapper.mapResourceId("resourceId", R.attr.resourceId);
/frameworks/base/services/core/java/com/android/server/infra/
DFrameworkResourcesServiceNameResolver.java99 @StringRes int resourceId) { in FrameworkResourcesServiceNameResolver() argument
101 mStringResourceId = resourceId; in FrameworkResourcesServiceNameResolver()
107 @ArrayRes int resourceId, boolean isMultiple) { in FrameworkResourcesServiceNameResolver() argument
115 mArrayResourceId = resourceId; in FrameworkResourcesServiceNameResolver()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DGraphReader.java532 public static FilterGraph readXmlGraphResource(MffContext context, int resourceId) in readXmlGraphResource() argument
534 FilterGraph.Builder builder = getBuilderForXmlResource(context, resourceId); in readXmlGraphResource()
550 MffContext context, int resourceId, FilterGraph parentGraph) in readXmlSubGraphResource() argument
552 FilterGraph.Builder builder = getBuilderForXmlResource(context, resourceId); in readXmlSubGraphResource()
565 private static FilterGraph.Builder getBuilderForXmlResource(MffContext context, int resourceId) in getBuilderForXmlResource() argument
568 .openRawResource(resourceId); in getBuilderForXmlResource()
/frameworks/base/media/mca/filterfw/java/android/filterfw/
DGraphEnvironment.java135 public int loadGraph(Context context, int resourceId) { in loadGraph() argument
139 graph = getGraphReader().readGraphResource(context, resourceId); in loadGraph()

12345