Home
last modified time | relevance | path

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

123456

/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsMockResources.java30 public void addResource(int resId, String packageName, String typeName, String entryName) { in addResource() argument
31 mPackages.put(resId, packageName); in addResource()
32 mTypes.put(resId, typeName); in addResource()
33 mEntries.put(resId, entryName); in addResource()
37 public String getResourceName(int resId) throws NotFoundException { in getResourceName() argument
38 if (!mPackages.containsKey(resId)) { in getResourceName()
39 throw new NotFoundException("Resource " + resId + " not found"); in getResourceName()
41 return mPackages.get(resId) + ":" + mTypes.get(resId) + "/" + mEntries.get(resId); in getResourceName()
45 public String getResourcePackageName(int resId) throws NotFoundException { in getResourcePackageName() argument
46 if (!mPackages.containsKey(resId)) { in getResourcePackageName()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/accessibility/
DKeyCodeDescriptionMapper.java152 final int resId; in getDescriptionForSwitchAlphaSymbol() local
160 resId = R.string.spoken_description_to_symbol; in getDescriptionForSwitchAlphaSymbol()
164 resId = R.string.spoken_description_to_alpha; in getDescriptionForSwitchAlphaSymbol()
167 resId = R.string.spoken_description_to_symbol; in getDescriptionForSwitchAlphaSymbol()
170 resId = R.string.spoken_description_to_numeric; in getDescriptionForSwitchAlphaSymbol()
176 return context.getString(resId); in getDescriptionForSwitchAlphaSymbol()
190 final int resId; in getDescriptionForShiftKey() local
195 resId = R.string.spoken_description_caps_lock; in getDescriptionForShiftKey()
199 resId = R.string.spoken_description_shift_shifted; in getDescriptionForShiftKey()
202 resId = R.string.spoken_description_symbols_shift; in getDescriptionForShiftKey()
[all …]
DMainKeyboardAccessibilityDelegate.java155 final int resId; in announceKeyboardType() local
165 resId = R.string.spoken_description_mode_alpha; in announceKeyboardType()
173 resId = R.string.spoken_description_shiftmode_on; in announceKeyboardType()
181 resId = R.string.spoken_description_shiftmode_locked; in announceKeyboardType()
184 resId = R.string.spoken_description_shiftmode_locked; in announceKeyboardType()
187 resId = R.string.spoken_description_mode_symbol; in announceKeyboardType()
190 resId = R.string.spoken_description_mode_symbol_shift; in announceKeyboardType()
193 resId = R.string.spoken_description_mode_phone; in announceKeyboardType()
196 resId = R.string.spoken_description_mode_phone_shift; in announceKeyboardType()
201 sendWindowStateChanged(resId); in announceKeyboardType()
DMoreKeysKeyboardAccessibilityDelegate.java46 public void setOpenAnnounce(final int resId) { in setOpenAnnounce() argument
47 mOpenAnnounceResId = resId; in setOpenAnnounce()
50 public void setCloseAnnounce(final int resId) { in setCloseAnnounce() argument
51 mCloseAnnounceResId = resId; in setCloseAnnounce()
/packages/apps/Launcher3/src/com/android/launcher3/
DPartner.java100 int resId = getResources().getIdentifier(RES_DEFAULT_WALLPAPER_HIDDEN, "bool", in hideDefaultWallpaper() local
102 return resId != 0 && getResources().getBoolean(resId); in hideDefaultWallpaper()
106 int resId = getResources().getIdentifier(RES_SYSTEM_WALLPAPER_DIR, "string", in getWallpaperDirectory() local
108 return (resId != 0) ? new File(getResources().getString(resId)) : null; in getWallpaperDirectory()
112 int resId = getResources().getIdentifier(RES_REQUIRE_FIRST_RUN_FLOW, "bool", in requiresFirstRunFlow() local
114 return resId != 0 && getResources().getBoolean(resId); in requiresFirstRunFlow()
123 int resId = getResources().getIdentifier(RES_GRID_NUM_ROWS, in applyInvariantDeviceProfileOverrides() local
125 if (resId > 0) { in applyInvariantDeviceProfileOverrides()
126 numRows = getResources().getInteger(resId); in applyInvariantDeviceProfileOverrides()
129 resId = getResources().getIdentifier(RES_GRID_NUM_COLUMNS, in applyInvariantDeviceProfileOverrides()
[all …]
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DToastBarOperation.java124 final int resId; in getDescription() local
126 resId = R.plurals.conversation_deleted; in getDescription()
130 resId = R.plurals.conversation_folder_changed; in getDescription()
134 resId = R.plurals.conversation_archived; in getDescription()
136 resId = R.plurals.conversation_spammed; in getDescription()
138 resId = R.plurals.conversation_not_spam; in getDescription()
140 resId = R.plurals.conversation_not_important; in getDescription()
142 resId = R.plurals.conversation_muted; in getDescription()
144 resId = R.plurals.conversation_unstarred; in getDescription()
146 resId = R.plurals.conversation_phished; in getDescription()
[all …]
DConversationTipView.java116 image.setImageResource(attr.resId); in bindIcon()
272 public int resId; field in ConversationTipView.ImageAttrSet
276 public ImageAttrSet(int resId, int background, String contentDescription) { in ImageAttrSet() argument
277 this.resId = resId; in ImageAttrSet()
/packages/apps/ContactsCommon/src/com/android/contacts/common/util/
DAccountSelectionUtil.java63 int resId, int subscriptionId) { in AccountSelectedListener() argument
69 mResId = resId; in AccountSelectedListener()
74 int resId) { in AccountSelectedListener() argument
77 this(context, accountList, resId, /* subscriptionId = */ -1); in AccountSelectedListener()
86 public static Dialog getSelectAccountDialog(Context context, int resId) { in getSelectAccountDialog() argument
87 return getSelectAccountDialog(context, resId, null, null); in getSelectAccountDialog()
90 public static Dialog getSelectAccountDialog(Context context, int resId, in getSelectAccountDialog() argument
92 return getSelectAccountDialog(context, resId, onClickListener, null); in getSelectAccountDialog()
99 public static Dialog getSelectAccountDialog(Context context, int resId, in getSelectAccountDialog() argument
144 new AccountSelectedListener(context, writableAccountList, resId); in getSelectAccountDialog()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/dialog/
DProgressDialogFragment.java65 public void setIcon(@DrawableRes int resId) { in setIcon() argument
66 mIconView.setImageResource(resId); in setIcon()
75 public void setTitle(@StringRes int resId) { in setTitle() argument
76 mTitleView.setText(resId); in setTitle()
83 public void setExtraText(@StringRes int resId) { in setExtraText() argument
84 mExtraTextView.setText(resId); in setExtraText()
92 public void setSummary(@StringRes int resId) { in setSummary() argument
93 mSummaryView.setText(resId); in setSummary()
/packages/apps/ContactsCommon/src/com/android/contacts/common/interactions/
DImportExportDialogFragment.java190 final int resId = adapter.getItem(which).mChoiceResourceId; in onCreateDialog()
191 if (resId == R.string.import_from_sim || resId == R.string.import_from_vcf_file) { in onCreateDialog()
192 dismissDialog = handleImportRequest(resId, in onCreateDialog()
194 } else if (resId == R.string.export_to_vcf_file) { in onCreateDialog()
201 } else if (resId == R.string.share_contacts) { in onCreateDialog()
215 + getActivity().getResources().getResourceEntryName(resId)); in onCreateDialog()
281 private boolean handleImportRequest(int resId, int subscriptionId) { in handleImportRequest() argument
292 args.putInt(KEY_RES_ID, resId); in handleImportRequest()
305 AccountSelectionUtil.doImport(getActivity(), resId, in handleImportRequest() local
347 public AdapterEntry(CharSequence label, int resId, int subId) { in AdapterEntry() argument
[all …]
/packages/apps/Settings/src/com/android/settings/
DRegulatoryInfoDisplayActivity.java63 int resId = getResourceId(); in onCreate() local
64 if (resId != 0) { in onCreate()
66 Drawable d = getDrawable(resId); in onCreate()
81 image.setImageResource(resId); in onCreate()
98 int resId = getResources().getIdentifier( in getResourceId() local
108 resId = id; in getResourceId()
111 return resId; in getResourceId()
/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/ui/wear/
DAppPermissionsFragmentWear.java280 int resId; in getPermissionGroupIcon() local
284 resId = isEnabled ? R.drawable.ic_permission_calendar in getPermissionGroupIcon()
288 resId = isEnabled ? R.drawable.ic_permission_camera in getPermissionGroupIcon()
292 resId = isEnabled ? R.drawable.ic_permission_contact in getPermissionGroupIcon()
296 resId = isEnabled ? R.drawable.ic_permission_location in getPermissionGroupIcon()
300 resId = isEnabled ? R.drawable.ic_permission_mic in getPermissionGroupIcon()
304 resId = isEnabled ? R.drawable.ic_permission_call in getPermissionGroupIcon()
308 resId = isEnabled ? R.drawable.ic_permission_sensor in getPermissionGroupIcon()
312 resId = isEnabled ? R.drawable.ic_permission_sms in getPermissionGroupIcon()
316 resId = isEnabled ? R.drawable.ic_permission_storage in getPermissionGroupIcon()
[all …]
/packages/apps/ContactsCommon/src/com/android/contacts/common/vcard/
DSelectAccountActivity.java59 final int resId = R.string.import_from_vcf_file; in onCreate() local
82 this, accountList, resId) { in onCreate()
95 showDialog(resId); in onCreate()
100 protected Dialog onCreateDialog(int resId, Bundle bundle) { in onCreateDialog() argument
101 if (resId == R.string.import_from_vcf_file) { in onCreateDialog()
106 return AccountSelectionUtil.getSelectAccountDialog(this, resId, in onCreateDialog()
110 return super.onCreateDialog(resId, bundle); in onCreateDialog()
/packages/apps/Dialer/InCallUI/src/com/android/incallui/
DGlowPadWrapper.java114 final int resId = getResourceIdForTarget(target); in onTrigger() local
115 if (resId == R.drawable.ic_lockscreen_answer) { in onTrigger()
118 } else if (resId == R.drawable.ic_lockscreen_decline) { in onTrigger()
121 } else if (resId == R.drawable.ic_lockscreen_text) { in onTrigger()
124 … } else if (resId == R.drawable.ic_videocam || resId == R.drawable.ic_lockscreen_answer_video) { in onTrigger()
127 } else if (resId == R.drawable.ic_lockscreen_decline_video) { in onTrigger()
DStatusBarNotifier.java518 int resId = R.string.notification_ongoing_call; in getContentString() local
520 resId = R.string.notification_ongoing_call_wifi; in getContentString()
525 resId = R.string.notification_incoming_call_wifi; in getContentString()
527 resId = R.string.notification_incoming_call; in getContentString()
530 resId = R.string.notification_on_hold; in getContentString()
532 resId = R.string.notification_dialing; in getContentString()
535 resId = R.string.notification_requesting_video_call; in getContentString()
541 resId = getWorkStringFromPersonalString(resId); in getContentString()
544 return mContext.getString(resId); in getContentString()
547 private static int getWorkStringFromPersonalString(int resId) { in getWorkStringFromPersonalString() argument
[all …]
/packages/apps/Contacts/src/com/android/contacts/detail/
DContactDisplayUtils.java164 final int resId = isStarred in configureStarredImageView() local
167 starredView.setImageResource(resId); in configureStarredImageView()
184 final int resId = isStarred in configureStarredMenuItem() local
187 starredMenuItem.setIcon(resId); in configureStarredMenuItem()
303 final int resId = resources.getIdentifier(name, "drawable", packageName); in getDrawable() local
305 if (resId == 0) { in getDrawable()
312 return getResourceDrawable(resources, resId); in getDrawable()
320 private Drawable getResourceDrawable(Resources resources, int resId) in getResourceDrawable() argument
322 Drawable drawable = resources.getDrawable(resId); in getResourceDrawable()
/packages/apps/Settings/src/com/android/settings/notification/
DVolumeSeekBarPreference.java163 public void showIcon(int resId) { in showIcon() argument
166 if (mIconResId == resId) return; in showIcon()
167 mIconResId = resId; in showIcon()
171 public void setMuteIcon(int resId) { in setMuteIcon() argument
172 if (mMuteIconResId == resId) return; in setMuteIcon()
173 mMuteIconResId = resId; in setMuteIcon()
/packages/apps/Dialer/src/com/android/dialer/dialpad/
DDialpadFragment.java845 int resId = view.getId(); in onPressed() local
846 if (resId == R.id.one) { in onPressed()
848 } else if (resId == R.id.two) { in onPressed()
850 } else if (resId == R.id.three) { in onPressed()
852 } else if (resId == R.id.four) { in onPressed()
854 } else if (resId == R.id.five) { in onPressed()
856 } else if (resId == R.id.six) { in onPressed()
858 } else if (resId == R.id.seven) { in onPressed()
860 } else if (resId == R.id.eight) { in onPressed()
862 } else if (resId == R.id.nine) { in onPressed()
[all …]
/packages/apps/TV/src/com/android/tv/ui/
DBlockScreenView.java93 public void setImage(int resId) { in setImage() argument
94 mNormalImageView.setImageResource(resId); in setImage()
109 public void setShrunkenImage(int resId) { in setShrunkenImage() argument
110 mShrunkenImageView.setImageResource(resId); in setShrunkenImage()
125 public void setText(int resId) { in setText() argument
126 mTextView.setText(resId); in setText()
/packages/apps/Dialer/InCallUI/src/com/android/incallui/widget/multiwaveview/
DTargetDrawable.java61 public TargetDrawable(Resources res, int resId, int count) { in TargetDrawable() argument
62 mResourceId = resId; in TargetDrawable()
63 setDrawable(res, resId); in TargetDrawable()
67 public void setDrawable(Resources res, int resId) { in setDrawable() argument
70 Drawable drawable = resId == 0 ? null : res.getDrawable(resId); in setDrawable()
/packages/apps/TV/tests/common/src/com/android/tv/testing/
DUtils.java57 public static String getUriStringForResource(Context context, int resId) { in getUriStringForResource() argument
58 if (resId == 0) { in getUriStringForResource()
64 .authority(res.getResourcePackageName(resId)) in getUriStringForResource()
65 .path(res.getResourceTypeName(resId)) in getUriStringForResource()
66 .appendPath(res.getResourceEntryName(resId)).build().toString(); in getUriStringForResource()
/packages/apps/Messaging/src/com/android/messaging/ui/
DListEmptyView.java47 public void setImageHint(final int resId) { in setImageHint() argument
48 mEmptyImageHint.setImageResource(resId); in setImageHint()
51 public void setTextHint(final int resId) { in setTextHint() argument
52 mEmptyTextHint.setText(getResources().getText(resId)); in setTextHint()
/packages/apps/Launcher3/WallpaperPicker/src/com/android/gallery3d/common/
DBitmapUtils.java48 public static int getRotationFromExif(Resources res, int resId) { in getRotationFromExif() argument
49 return BitmapUtils.getRotationFromExifHelper(res, resId, null, null); in getRotationFromExif()
52 … private static int getRotationFromExifHelper(Resources res, int resId, Context context, Uri uri) { in getRotationFromExifHelper() argument
62 is = res.openRawResource(resId); in getRotationFromExifHelper()
/packages/apps/Settings/src/com/android/settings/deviceinfo/
DStorageWizardBase.java155 protected void setHeaderText(int resId, String... args) { in setHeaderText() argument
156 final CharSequence headerText = TextUtils.expandTemplate(getText(resId), args); in setHeaderText()
161 protected void setBodyText(int resId, String... args) { in setBodyText() argument
163 TextUtils.expandTemplate(getText(resId), args)); in setBodyText()
166 protected void setSecondaryBodyText(int resId, String... args) { in setSecondaryBodyText() argument
168 secondBody.setText(TextUtils.expandTemplate(getText(resId), args)); in setSecondaryBodyText()
/packages/apps/Calendar/src/com/android/calendar/event/
DEventViewUtils.java47 int value, resId; in constructReminderLabel() local
52 resId = R.plurals.Nmins; in constructReminderLabel()
54 resId = R.plurals.Nminutes; in constructReminderLabel()
58 resId = R.plurals.Nhours; in constructReminderLabel()
61 resId = R.plurals.Ndays; in constructReminderLabel()
64 String format = resources.getQuantityString(resId, value); in constructReminderLabel()

123456