Home
last modified time | relevance | path

Searched refs:resId (Results 1 – 25 of 207) sorted by relevance

123456789

/aosp14/frameworks/base/core/tests/overlaytests/device/src/com/android/overlaytest/
H A DOverlayBaseTest.java212 final int resId = R.bool.always_true; in testBoolean() local
222 final int resId = R.array.fibonacci; in testIntegerArrayOverlay() local
223 assertResource(resId, in testIntegerArrayOverlay()
240 final int resId = R.drawable.drawable; in testDrawable() local
259 final int resId = R.string.str; in testAppString() local
288 final int resId = R.raw.lorem_ipsum; in testAppRaw() local
416 assertResource(resId, 100, 100, 100); in testMatrix100000()
423 assertResource(resId, 100, 100, 600); in testMatrix100001()
430 assertResource(resId, 100, 100, 500); in testMatrix100010()
437 assertResource(resId, 100, 100, 600); in testMatrix100011()
[all …]
/aosp14/frameworks/base/packages/SettingsLib/Spa/tests/src/com/android/settingslib/spa/widget/illustration/
H A DIllustrationTest.kt47 val resId = R.drawable.accessibility_captioning_banner regex
50 resId = resId,
52 modifier = Modifier.semantics { drawableId = resId }
59 val isIllustrationNode = hasAnyAncestor(hasDrawable(resId))
60 composeTestRule.onAllNodes(hasDrawable(resId))
70 val resId = R.raw.empty regex
73 resId = resId,
75 modifier = Modifier.semantics { rawId = resId }
82 val isIllustrationNode = hasAnyAncestor(hasRaw(resId))
83 composeTestRule.onAllNodes(hasRaw(resId))
/aosp14/frameworks/base/packages/SettingsLib/src/com/android/settingslib/media/
H A DInfoMediaDevice.java81 int resId; in getDrawableResIdByType() local
84 resId = R.drawable.ic_media_group_device; in getDrawableResIdByType()
87 resId = R.drawable.ic_media_display_device; in getDrawableResIdByType()
90 resId = R.drawable.ic_media_tablet; in getDrawableResIdByType()
93 resId = R.drawable.ic_dock_device; in getDrawableResIdByType()
96 resId = R.drawable.ic_media_computer; in getDrawableResIdByType()
99 resId = R.drawable.ic_media_game_console; in getDrawableResIdByType()
102 resId = R.drawable.ic_media_car; in getDrawableResIdByType()
105 resId = R.drawable.ic_media_smartwatch; in getDrawableResIdByType()
108 resId = R.drawable.ic_smartphone; in getDrawableResIdByType()
[all …]
/aosp14/frameworks/base/core/java/android/service/autofill/
H A DImageTransformation.java101 + option.resId + ": " + e.getClass()); in apply()
132 addOption(regex, resId); in Builder()
148 addOption(regex, resId, contentDescription); in Builder()
164 addOptionInternal(regex, resId, null); in addOption()
179 public Builder addOption(@NonNull Pattern regex, @DrawableRes int resId, in addOption() argument
190 Preconditions.checkArgument(resId != 0); in addOptionInternal()
192 mOptions.add(new Option(regex, resId, contentDescription)); in addOptionInternal()
238 resIds[i] = option.resId; in writeToParcel()
283 public final int resId; field in ImageTransformation.Option
286 Option(Pattern pattern, int resId, CharSequence contentDescription) { in Option() argument
[all …]
/aosp14/frameworks/base/packages/SettingsLib/src/com/android/settingslib/graph/
H A DBluetoothDeviceLayerDrawable.java52 public static BluetoothDeviceLayerDrawable createLayerDrawable(Context context, int resId, in createLayerDrawable() argument
54 return createLayerDrawable(context, resId, batteryLevel, 1 /*iconScale*/); in createLayerDrawable()
66 public static BluetoothDeviceLayerDrawable createLayerDrawable(Context context, int resId, in createLayerDrawable() argument
68 final Drawable deviceDrawable = context.getDrawable(resId); in createLayerDrawable()
85 drawable.setConstantState(context, resId, batteryLevel, iconScale); in createLayerDrawable()
90 public void setConstantState(Context context, int resId, int batteryLevel, float iconScale) { in setConstantState() argument
91 mState = new BluetoothDeviceLayerDrawableState(context, resId, batteryLevel, iconScale); in setConstantState()
139 int resId; field in BluetoothDeviceLayerDrawable.BluetoothDeviceLayerDrawableState
143 public BluetoothDeviceLayerDrawableState(Context context, int resId, in BluetoothDeviceLayerDrawableState() argument
146 this.resId = resId; in BluetoothDeviceLayerDrawableState()
[all …]
/aosp14/frameworks/base/packages/SettingsLib/Spa/spa/src/com/android/settingslib/spa/widget/illustration/
H A DIllustration.kt42 val resId: Int
60 resId = model.resId,
68 resId: Int,
89 resId = resId,
95 resId = resId,
/aosp14/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
H A DOverlayPackagesProvider.java277 final int resId; in getRequiredAppsSet() local
280 resId = R.array.required_apps_managed_user; in getRequiredAppsSet()
283 resId = R.array.required_apps_managed_profile; in getRequiredAppsSet()
286 resId = R.array.required_apps_managed_device; in getRequiredAppsSet()
296 final int resId; in getDisallowedAppsSet() local
299 resId = R.array.disallowed_apps_managed_user; in getDisallowedAppsSet()
302 resId = R.array.disallowed_apps_managed_profile; in getDisallowedAppsSet()
305 resId = R.array.disallowed_apps_managed_device; in getDisallowedAppsSet()
315 final int resId; in getVendorRequiredAppsSet() local
318 resId = R.array.vendor_required_apps_managed_user; in getVendorRequiredAppsSet()
[all …]
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DSystemUIDialog.java243 public void setMessage(int resId) { in setMessage() argument
244 setMessage(mContext.getString(resId)); in setMessage()
251 public void setPositiveButton(int resId, OnClickListener onClick) { in setPositiveButton() argument
252 setPositiveButton(resId, onClick, true /* dismissOnClick */); in setPositiveButton()
260 setButton(BUTTON_POSITIVE, resId, onClick, dismissOnClick); in setPositiveButton()
267 public void setNegativeButton(int resId, OnClickListener onClick) { in setNegativeButton() argument
268 setNegativeButton(resId, onClick, true /* dismissOnClick */); in setNegativeButton()
276 setButton(BUTTON_NEGATIVE, resId, onClick, dismissOnClick); in setNegativeButton()
283 public void setNeutralButton(int resId, OnClickListener onClick) { in setNeutralButton() argument
284 setNeutralButton(resId, onClick, true /* dismissOnClick */); in setNeutralButton()
[all …]
/aosp14/frameworks/base/core/java/android/content/res/
H A DAssetManager.java585 if (getResourceValue(resId, 0, outValue, true)) { in getResourceText()
621 int getResourceArraySize(@ArrayRes int resId) { in getResourceArraySize() argument
702 return nativeGetResourceIntArray(mObject, resId); in getResourceIntArray()
713 @AttrRes int[] getStyleAttributes(@StyleRes int resId) { in getStyleAttributes() argument
716 return nativeGetStyleAttributes(mObject, resId); in getStyleAttributes()
765 @Nullable String getResourceName(@AnyRes int resId) { in getResourceName() argument
768 return nativeGetResourceName(mObject, resId); in getResourceName()
813 int getParentThemeIdentifier(@StyleRes int resId) { in getParentThemeIdentifier() argument
1602 @StyleRes int resId); in nativeGetStyleAttributes() argument
1604 @ArrayRes int resId); in nativeGetResourceStringArray() argument
[all …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tileimpl/
H A DTilesStatesTextTest.kt38 val resId = mContext.resources.getIdentifier(resName, "array", mContext.packageName) regex
40 assertNotEquals("Missing resource for $resName", 0, resId)
42 val array = mContext.resources.getStringArray(resId)
60 val resId = mContext.resources.getIdentifier(resName, "array", mContext.packageName) regex
62 assertNotEquals("Missing resource for $resName", 0, resId)
64 assertThat(SubtitleArrayMapping.getSubtitleId(spec)).isEqualTo(resId)
/aosp14/frameworks/base/core/java/com/android/internal/widget/
H A DCachingIconView.java133 public void setImageResource(@DrawableRes int resId) { in setImageResource() argument
134 if (!testAndSetCache(resId)) { in setImageResource()
137 Drawable drawable = loadSizeRestrictedDrawable(resId); in setImageResource()
139 super.setImageResource(resId); in setImageResource()
154 public Runnable setImageResourceAsync(@DrawableRes int resId) { in setImageResourceAsync() argument
156 Drawable drawable = loadSizeRestrictedDrawable(resId); in setImageResourceAsync()
161 return super.setImageResourceAsync(resId); in setImageResourceAsync()
241 private synchronized boolean testAndSetCache(int resId) { in testAndSetCache() argument
243 if (resId == 0 || mLastResId == 0) { in testAndSetCache()
246 isCached = resId == mLastResId && null == mLastPackage; in testAndSetCache()
[all …]
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/shade/carrier/
H A DShadeCarrierGroup.java61 public void updateTextAppearance(@StyleRes int resId) { in updateTextAppearance() argument
62 FontSizeUtils.updateFontSizeFromStyle(getNoSimTextView(), resId); in updateTextAppearance() local
63 getCarrier1View().updateTextAppearance(resId); in updateTextAppearance()
64 getCarrier2View().updateTextAppearance(resId); in updateTextAppearance()
65 getCarrier3View().updateTextAppearance(resId); in updateTextAppearance()
/aosp14/frameworks/base/core/java/com/android/internal/app/
H A DToolbarActionBar.java95 public void setCustomView(int resId) { in setCustomView() argument
101 public void setIcon(int resId) { in setIcon() argument
102 mDecorToolbar.setIcon(resId); in setIcon()
111 public void setLogo(int resId) { in setLogo() argument
112 mDecorToolbar.setLogo(resId); in setLogo()
161 public void setHomeAsUpIndicator(int resId) { in setHomeAsUpIndicator() argument
162 mDecorToolbar.setNavigationIcon(resId); in setHomeAsUpIndicator()
228 public void setTitle(int resId) { in setTitle() argument
229 mDecorToolbar.setTitle(resId != 0 ? mDecorToolbar.getContext().getText(resId) : null); in setTitle()
243 public void setSubtitle(int resId) { in setSubtitle() argument
[all …]
/aosp14/frameworks/base/packages/SettingsLib/AdaptiveIcon/src/com/android/settingslib/widget/
H A DAdaptiveOutlineDrawable.java95 int resId; in getColor() local
98 resId = R.color.advanced_outline_color; in getColor()
102 resId = R.color.bt_outline_color; in getColor()
105 return resources.getColor(resId, /* theme */ null); in getColor()
109 int resId; in getDimensionPixelSize() local
112 resId = R.dimen.advanced_dashboard_tile_foreground_image_inset; in getDimensionPixelSize()
116 resId = R.dimen.dashboard_tile_foreground_image_inset; in getDimensionPixelSize()
119 return resources.getDimensionPixelSize(resId); in getDimensionPixelSize()
/aosp14/frameworks/base/services/core/java/com/android/server/notification/
H A DPropConfig.java25 public static int getInt(Context context, String propName, int resId) { in getInt() argument
26 return SystemProperties.getInt(propName, context.getResources().getInteger(resId)); in getInt()
29 public static String[] getStringArray(Context context, String propName, int resId) { in getStringArray() argument
31 return !UNSET.equals(prop) ? prop.split(",") : context.getResources().getStringArray(resId); in getStringArray()
/aosp14/frameworks/base/core/java/com/android/internal/policy/
H A DTransitionAnimation.java255 int resId = Resources.ID_NULL; in loadAnimationAttr() local
264 resId = updateToTranslucentAnimIfNeeded(resId, transit); in loadAnimationAttr()
273 int resId = Resources.ID_NULL; in getAnimationResId() local
280 resId = updateToTranslucentAnimIfNeeded(resId, transit); in getAnimationResId()
281 return resId; in getAnimationResId()
286 int resId = Resources.ID_NULL; in getDefaultAnimationResId() local
294 resId = updateToTranslucentAnimIfNeeded(resId, transit); in getDefaultAnimationResId()
295 return resId; in getDefaultAnimationResId()
323 resId = updateToTranslucentAnimIfNeeded(resId); in loadAnimationAttr()
325 resId = updateToTranslucentAnimIfNeeded(resId, transit); in loadAnimationAttr()
[all …]
/aosp14/frameworks/base/packages/SystemUI/src/com/android/keyguard/
H A DKeyguardPatternViewController.java303 int resId = 0; in showPromptReason() local
306 resId = R.string.kg_prompt_reason_restart_pattern; in showPromptReason()
309 resId = R.string.kg_prompt_after_update_pattern; in showPromptReason()
312 resId = R.string.kg_prompt_reason_timeout_pattern; in showPromptReason()
315 resId = R.string.kg_prompt_reason_device_admin; in showPromptReason()
318 resId = R.string.kg_prompt_after_user_lockdown_pattern; in showPromptReason()
321 resId = R.string.kg_prompt_unattended_update_pattern; in showPromptReason()
324 resId = R.string.kg_prompt_reason_timeout_pattern; in showPromptReason()
327 resId = R.string.kg_prompt_reason_timeout_pattern; in showPromptReason()
332 resId = R.string.kg_prompt_reason_timeout_pattern; in showPromptReason()
[all …]
/aosp14/frameworks/base/packages/SettingsLib/Spa/spa/src/com/android/settingslib/spa/framework/util/
H A DMessageFormats.kt29 fun Context.formatString(@StringRes resId: Int, vararg arguments: Pair<String, Any>): String =
30 resources.formatString(resId, *arguments)
34 fun Resources.formatString(@StringRes resId: Int, vararg arguments: Pair<String, Any>): String =
35 MessageFormat(getString(resId), Locale.getDefault(Locale.Category.FORMAT))
/aosp14/frameworks/base/core/java/com/android/internal/view/
H A DStandaloneActionMode.java66 public void setTitle(int resId) { in setTitle() argument
67 setTitle(resId != 0 ? mContext.getString(resId) : null); in setTitle()
71 public void setSubtitle(int resId) { in setSubtitle() argument
72 setSubtitle(resId != 0 ? mContext.getString(resId) : null); in setSubtitle()
/aosp14/frameworks/base/core/java/android/content/pm/
H A DSuspendDialogInfo.java406 public Builder setIcon(@DrawableRes int resId) { in setIcon() argument
407 Preconditions.checkArgument(ResourceId.isValid(resId), "Invalid resource id provided"); in setIcon()
408 mIconResId = resId; in setIcon()
420 public Builder setTitle(@StringRes int resId) { in setTitle() argument
421 Preconditions.checkArgument(ResourceId.isValid(resId), "Invalid resource id provided"); in setTitle()
422 mTitleResId = resId; in setTitle()
476 public Builder setMessage(@StringRes int resId) { in setMessage() argument
477 Preconditions.checkArgument(ResourceId.isValid(resId), "Invalid resource id provided"); in setMessage()
478 mDialogMessageResId = resId; in setMessage()
492 public Builder setNeutralButtonText(@StringRes int resId) { in setNeutralButtonText() argument
[all …]
/aosp14/frameworks/base/apct-tests/perftests/core/src/android/app/
H A DOverlayManagerPerfTest.java199 for (int resId = R.string.short_text000; resId < R.string.short_text255; resId++) { in getStringOneLargeOverlay()
200 sContext.getString(resId); in getStringOneLargeOverlay()
229 for (int resId = R.string.short_text000; resId < R.string.short_text255; resId++) { in getStringLargeTenOverlays()
230 sContext.getString(resId); in getStringLargeTenOverlays()
/aosp14/frameworks/base/core/java/android/os/vibrator/
H A DVibrationConfig.java85 private static int loadDefaultIntensity(@Nullable Resources res, int resId) { in loadDefaultIntensity() argument
87 int value = loadInteger(res, resId, defaultIntensity); in loadDefaultIntensity()
94 private static float loadFloat(@Nullable Resources res, int resId, float defaultValue) { in loadFloat() argument
95 return res != null ? res.getFloat(resId) : defaultValue; in loadFloat()
98 private static int loadInteger(@Nullable Resources res, int resId, int defaultValue) { in loadInteger() argument
99 return res != null ? res.getInteger(resId) : defaultValue; in loadInteger()
/aosp14/frameworks/base/packages/CompanionDeviceManager/src/com/android/companiondevicemanager/
H A DUtils.java78 @NonNull Context context, @StringRes int resId, CharSequence... formatArgs) { in getHtmlFromResources() argument
83 final String plain = context.getString(resId, (Object[]) escapedArgs); in getHtmlFromResources()
91 int resId = bundle == null ? 0 : bundle.getInt(COMPANION_DEVICE_ACTIVITY_VENDOR_ICON, 0); in getVendorHeaderIcon() local
93 if (bundle == null || resId == 0) { in getVendorHeaderIcon()
97 return context.createPackageContext(packageName, /* flags= */ 0).getDrawable(resId); in getVendorHeaderIcon()
151 static @NonNull Drawable getIcon(@NonNull Context context, int resId) { in getIcon() argument
152 Drawable icon = context.getResources().getDrawable(resId, null); in getIcon()
/aosp14/frameworks/base/core/java/android/app/
H A DActionBar.java269 public abstract void setCustomView(@LayoutRes int resId); in setCustomView() argument
284 public abstract void setIcon(@DrawableRes int resId); in setIcon() argument
314 public abstract void setLogo(@DrawableRes int resId); in setLogo() argument
414 public abstract void setTitle(@StringRes int resId); in setTitle() argument
437 public abstract void setSubtitle(@StringRes int resId); in setSubtitle() argument
923 public void setHomeAsUpIndicator(@DrawableRes int resId) { } in setHomeAsUpIndicator() argument
962 public void setHomeActionContentDescription(@StringRes int resId) { } in setHomeActionContentDescription() argument
1203 public abstract Tab setIcon(@DrawableRes int resId); in setIcon() argument
1221 public abstract Tab setText(@StringRes int resId); in setText() argument
1284 public abstract Tab setContentDescription(@StringRes int resId); in setContentDescription() argument
/aosp14/frameworks/base/tools/aapt/
H A DResourceIdCache.cpp27 CacheEntry(const android::String16& name, uint32_t resId) : hashedName(name), id(resId) { } in CacheEntry()
88 uint32_t resId) { in store() argument
92 mIdMap[hashcode] = CacheEntry(hashedName, resId); in store()
94 return resId; in store()

123456789