Searched refs:resourceId (Results 26 - 50 of 109) sorted by relevance

12345

/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
H A DShared.java123 public static final String getQuantityString(Context context, int resourceId, int quantity) { argument
124 return context.getResources().getQuantityString(resourceId, quantity, quantity);
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
H A DRestrictedSwitchPreference.java63 if (restrictedSwitchSummary.resourceId != 0) {
64 data = context.getString(restrictedSwitchSummary.resourceId);
H A DHelpUtils.java168 intent.putExtra(EXTRA_PRIMARY_COLOR, context.getColor(typedValue.resourceId));
/frameworks/base/packages/Shell/tests/src/com/android/shell/
H A DUiBot.java109 UiObject uiObject = mDevice.findObject(new UiSelector().resourceId(id));
179 .findObject(new UiSelector().resourceId("android:id/button_once"));
/frameworks/base/services/core/java/com/android/server/am/
H A DLaunchWarningWindow.java43 getWindow().setFeatureDrawableResource(Window.FEATURE_LEFT_ICON, out.resourceId);
/frameworks/support/v4/java/android/support/v4/content/res/
H A DTypedArrayUtils.java79 if (value.resourceId != 0) {
/frameworks/base/core/java/android/appwidget/
H A DAppWidgetProviderInfo.java364 private Drawable loadDrawable(Context context, int density, int resourceId, argument
369 if (resourceId > 0) {
373 return resources.getDrawableForDensity(resourceId, density);
/frameworks/base/core/java/android/content/res/
H A DResourcesImpl.java622 if (verifyPreloadConfig(changingConfigs, 0, value.resourceId, "drawable")) {
627 changingConfigs, LAYOUT_DIR_CONFIG, value.resourceId, "drawable")) {
647 @Config int allowVarying, @AnyRes int resourceId, @Nullable String name) {
656 resName = getResourceName(resourceId);
663 + Integer.toHexString(resourceId)
670 resName = getResourceName(resourceId);
675 + Integer.toHexString(resourceId)
764 0, value.resourceId, "color")) {
857 if (verifyPreloadConfig(value.changingConfigurations, 0, value.resourceId,
646 verifyPreloadConfig(@onfig int changingConfigurations, @Config int allowVarying, @AnyRes int resourceId, @Nullable String name) argument
/frameworks/data-binding/extensions/library/src/main/java/android/databinding/
H A DViewDataBinding.java573 protected int getColorFromResource(int resourceId) { argument
575 return getRoot().getContext().getColor(resourceId);
577 return getRoot().getResources().getColor(resourceId);
582 protected ColorStateList getColorStateListFromResource(int resourceId) { argument
584 return getRoot().getContext().getColorStateList(resourceId);
586 return getRoot().getResources().getColorStateList(resourceId);
591 protected Drawable getDrawableFromResource(int resourceId) { argument
593 return getRoot().getContext().getDrawable(resourceId);
595 return getRoot().getResources().getDrawable(resourceId);
/frameworks/support/v7/appcompat/src/android/support/v7/app/
H A DAppCompatDialog.java162 themeId = outValue.resourceId;
H A DAlertDialog.java112 return outValue.resourceId;
227 * @param resId the resourceId of the drawable to use as the icon or 0
251 mAlert.setIcon(out.resourceId);
439 P.mIconId = out.resourceId;
H A DAppCompatDelegateImplV7.java387 if (outValue.resourceId != 0) {
388 themedContext = new ContextThemeWrapper(mContext, outValue.resourceId);
742 if (outValue.resourceId != 0) {
745 actionBarTheme.applyStyle(outValue.resourceId, true);
1244 if (outValue.resourceId != 0) {
1247 widgetTheme.applyStyle(outValue.resourceId, true);
1255 if (outValue.resourceId != 0) {
1260 widgetTheme.applyStyle(outValue.resourceId, true);
1953 if (outValue.resourceId != 0) {
1954 widgetTheme.applyStyle(outValue.resourceId, tru
[all...]
/frameworks/base/core/java/android/widget/
H A DCalendarViewLegacyDelegate.java439 public void setSelectedDateVerticalBar(int resourceId) { argument
440 Drawable drawable = mDelegator.getContext().getDrawable(resourceId);
464 public void setWeekDayTextAppearance(int resourceId) { argument
465 if (mWeekDayTextAppearanceResId != resourceId) {
466 mWeekDayTextAppearanceResId = resourceId;
477 public void setDateTextAppearance(int resourceId) { argument
478 if (mDateTextAppearanceResId != resourceId) {
479 mDateTextAppearanceResId = resourceId;
H A DActivityChooserView.java336 * @param resourceId The content description resource id.
338 public void setExpandActivityOverflowButtonContentDescription(@StringRes int resourceId) { argument
339 CharSequence contentDescription = mContext.getString(resourceId);
516 * @param resourceId The resource id.
518 public void setDefaultActionButtonContentDescription(@StringRes int resourceId) { argument
519 mDefaultActionButtonContentDescription = resourceId;
H A DSuggestionsAdapter.java381 mUrlColor = context.getColorStateList(colorValue.resourceId);
554 int resourceId = Integer.parseInt(drawableId);
557 + "://" + mProviderContext.getPackageName() + "/" + resourceId;
564 drawable = mProviderContext.getDrawable(resourceId);
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/bots/
H A DDirectoryListBot.java150 final UiSelector docList = new UiSelector().resourceId(
152 new UiSelector().resourceId(DIR_LIST_ID));
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DStreamingTextView.java98 private Bitmap getScaledBitmap(int resourceId, float scaled) { argument
99 Bitmap bitmap = BitmapFactory.decodeResource(getResources(), resourceId);
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
H A DAbsActionBarView.java65 && tv.resourceId != 0) {
66 mPopupContext = new ContextThemeWrapper(context, tv.resourceId);
/frameworks/base/services/core/java/com/android/server/display/
H A DColorFade.java191 private String readFile(Context context, int resourceId) { argument
193 InputStream stream = context.getResources().openRawResource(resourceId);
197 Slog.e(TAG, "Unrecognized shader " + Integer.toString(resourceId));
202 private int loadShader(Context context, int resourceId, int type) { argument
203 String source = readFile(context, resourceId);
/frameworks/ex/common/java/com/android/common/contacts/
H A DBaseEmailAddressAdapter.java387 int resourceId = directoryCursor.getInt(DirectoryListQuery.TYPE_RESOURCE_ID);
388 if (packageName != null && resourceId != 0) {
392 partition.directoryType = resources.getString(resourceId);
395 + resourceId + "@" + packageName);
399 + resourceId + "@" + packageName, e);
/frameworks/base/core/java/android/app/
H A DAlertDialog.java223 return outValue.resourceId;
394 * @param resId the resourceId of the drawable to use as the icon or 0
413 mAlert.setIcon(out.resourceId);
598 P.mIconId = out.resourceId;
H A DPresentation.java303 theme = outValue.resourceId;
H A DTimePickerDialog.java86 return outValue.resourceId;
/frameworks/base/core/java/com/android/internal/app/
H A DHeavyWeightSwitcherActivity.java90 out.resourceId);
/frameworks/base/tools/layoutlib/bridge/src/android/view/
H A DLayoutInflater_Delegate.java120 layout = tempValue.resourceId;

Completed in 1006 milliseconds

12345