Home
last modified time | relevance | path

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

123456

/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()
/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/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 …]
DDefaultLayoutParser.java245 final int resId = partnerRes.getIdentifier(Partner.RES_FOLDER, in parseAndAdd() local
247 if (resId != 0) { in parseAndAdd()
248 final XmlResourceParser partnerParser = partnerRes.getXml(resId); in parseAndAdd()
267 final int resId = getAttributeResourceValue(parser, ATTR_FOLDER_ITEMS, 0); in parseAndAdd() local
268 if (resId != 0) { in parseAndAdd()
269 parser = mSourceRes.getXml(resId); in parseAndAdd()
/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/Dialer/java/com/android/incallui/
DStatusBarNotifier.java153 private static int getWorkStringFromPersonalString(int resId) { in getWorkStringFromPersonalString() argument
154 if (resId == R.string.notification_ongoing_call) { in getWorkStringFromPersonalString()
156 } else if (resId == R.string.notification_ongoing_call_wifi) { in getWorkStringFromPersonalString()
158 } else if (resId == R.string.notification_incoming_call_wifi) { in getWorkStringFromPersonalString()
160 } else if (resId == R.string.notification_incoming_call) { in getWorkStringFromPersonalString()
163 return resId; in getWorkStringFromPersonalString()
691 int resId = R.string.notification_ongoing_call; in getContentString() local
693 resId = R.string.notification_ongoing_call_wifi; in getContentString()
708 resId = R.string.notification_incoming_spam_call; in getContentString()
710 resId = getECIncomingCallText(session); in getContentString()
[all …]
/packages/apps/Contacts/src/com/android/contacts/interactions/
DImportDialogFragment.java191 final int resId = adapter.getItem(which).mChoiceResourceId; in onCreateDialog()
192 if (resId == R.string.import_from_sim) { in onCreateDialog()
194 } else if (resId == R.string.import_from_vcf_file) { in onCreateDialog()
195 handleImportRequest(resId, SimCard.NO_SUBSCRIPTION_ID); in onCreateDialog()
198 + getActivity().getResources().getResourceEntryName(resId)); in onCreateDialog()
255 private void handleImportRequest(int resId, int subscriptionId) { in handleImportRequest() argument
270 args.putInt(KEY_RES_ID, resId); in handleImportRequest()
276 AccountSelectionUtil.doImport(getActivity(), resId, in handleImportRequest() local
296 public AdapterEntry(CharSequence label, int resId, SimCard sim) { in AdapterEntry() argument
298 mChoiceResourceId = resId; in AdapterEntry()
[all …]
DExportDialogFragment.java134 final int resId = adapter.getItem(which).mChoiceResourceId; in onCreateDialog()
135 if (resId == R.string.export_to_vcf_file) { in onCreateDialog()
142 } else if (resId == R.string.share_contacts) { in onCreateDialog()
156 + getActivity().getResources().getResourceEntryName(resId)); in onCreateDialog()
222 public AdapterEntry(CharSequence label, int resId, int subId) { in AdapterEntry() argument
224 mChoiceResourceId = resId; in AdapterEntry()
228 public AdapterEntry(String label, int resId) { in AdapterEntry() argument
231 this(label, resId, /* subId = */ -1); in AdapterEntry()
/packages/apps/PackageInstaller/src/android/support/wearable/view/
DWearableDialogHelper.java81 public WearableDialogHelper setPositiveIcon(@DrawableRes int resId) { in setPositiveIcon() argument
82 mPositiveIconId = resId; in setPositiveIcon()
95 public WearableDialogHelper setNegativeIcon(@DrawableRes int resId) { in setNegativeIcon() argument
96 mNegativeIconId = resId; in setNegativeIcon()
109 public WearableDialogHelper setNeutralIcon(@DrawableRes int resId) { in setNeutralIcon() argument
110 mNeutralIconId = resId; in setNeutralIcon()
150 /* package */ Drawable resolveDrawable(@Nullable Drawable drawable, @DrawableRes int resId) { in resolveDrawable() argument
151 return drawable == null && resId != 0 ? mResources.getDrawable(resId, mTheme) : drawable; in resolveDrawable()
/packages/apps/Dialer/java/com/android/dialer/app/dialpad/
DDialpadFragment.java815 int resId = view.getId(); in onPressed() local
816 if (resId == R.id.one) { in onPressed()
818 } else if (resId == R.id.two) { in onPressed()
820 } else if (resId == R.id.three) { in onPressed()
822 } else if (resId == R.id.four) { in onPressed()
824 } else if (resId == R.id.five) { in onPressed()
826 } else if (resId == R.id.six) { in onPressed()
828 } else if (resId == R.id.seven) { in onPressed()
830 } else if (resId == R.id.eight) { in onPressed()
832 } else if (resId == R.id.nine) { in onPressed()
[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/Contacts/src/com/android/contacts/util/
DAccountSelectionUtil.java64 int resId, int subscriptionId) { in AccountSelectedListener() argument
70 mResId = resId; in AccountSelectedListener()
75 int resId) { in AccountSelectedListener() argument
78 this(activity, accountList, resId, /* subscriptionId = */ -1); in AccountSelectedListener()
91 public static Dialog getSelectAccountDialog(Activity activity, int resId, in getSelectAccountDialog() argument
137 new AccountSelectedListener(activity, writableAccountList, resId); in getSelectAccountDialog()
157 public static void doImport(Activity activity, int resId, AccountWithDataSet account, in doImport() argument
159 if (resId == R.string.import_from_sim) { in doImport()
161 } else if (resId == R.string.import_from_vcf_file) { in doImport()
/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/Contacts/src/com/android/contacts/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/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/Settings/src/com/android/settings/notification/
DVolumeSeekBarPreference.java169 public void showIcon(int resId) { in showIcon() argument
172 if (mIconResId == resId) return; in showIcon()
173 mIconResId = resId; in showIcon()
177 public void setMuteIcon(int resId) { in setMuteIcon() argument
178 if (mMuteIconResId == resId) return; in setMuteIcon()
179 mMuteIconResId = resId; in setMuteIcon()
/packages/apps/Contacts/src/com/android/contacts/detail/
DContactDisplayUtils.java162 final int resId = isStarred in configureStarredMenuItem() local
165 starredMenuItem.setIcon(resId); in configureStarredMenuItem()
289 final int resId = resources.getIdentifier(name, "drawable", packageName); in getDrawable() local
291 if (resId == 0) { in getDrawable()
300 return getResourceDrawable(resources, resId); in getDrawable()
310 private Drawable getResourceDrawable(Resources resources, int resId) in getResourceDrawable() argument
312 Drawable drawable = resources.getDrawable(resId); in getResourceDrawable()
/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/TV/tests/common/src/com/android/tv/testing/
DUtils.java55 public static String getUriStringForResource(Context context, int resId) { in getUriStringForResource() argument
56 if (resId == 0) { in getUriStringForResource()
62 .authority(res.getResourcePackageName(resId)) in getUriStringForResource()
63 .path(res.getResourceTypeName(resId)) in getUriStringForResource()
64 .appendPath(res.getResourceEntryName(resId)).build().toString(); in getUriStringForResource()
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/
DMailbox.java418 final int resId; in getSystemMailboxName() local
421 resId = R.string.mailbox_name_server_inbox; in getSystemMailboxName()
424 resId = R.string.mailbox_name_server_outbox; in getSystemMailboxName()
427 resId = R.string.mailbox_name_server_drafts; in getSystemMailboxName()
430 resId = R.string.mailbox_name_server_trash; in getSystemMailboxName()
433 resId = R.string.mailbox_name_server_sent; in getSystemMailboxName()
436 resId = R.string.mailbox_name_server_junk; in getSystemMailboxName()
439 resId = R.string.mailbox_name_server_starred; in getSystemMailboxName()
442 resId = R.string.mailbox_name_server_all_unread; in getSystemMailboxName()
447 return context.getString(resId); in getSystemMailboxName()
/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()
/packages/apps/Stk/src/com/android/stk/
DStkDialogActivity.java258 private void sendResponse(int resId, boolean confirmed) { in sendResponse() argument
265 CatLog.d(LOG_TAG, "Ignore response: id is " + resId); in sendResponse()
269 CatLog.d(LOG_TAG, "sendResponse resID[" + resId + "] confirmed[" + confirmed + "]"); in sendResponse()
275 args.putInt(StkAppService.RES_ID, resId); in sendResponse()
282 private void sendResponse(int resId) { in sendResponse() argument
283 sendResponse(resId, true); in sendResponse()
/packages/services/Telephony/src/com/android/phone/
DCallNotifier.java618 int resId = 0; in onTtyModeReceived() local
621 resId = com.android.internal.R.string.peerTtyModeFull; in onTtyModeReceived()
624 resId = com.android.internal.R.string.peerTtyModeHco; in onTtyModeReceived()
627 resId = com.android.internal.R.string.peerTtyModeVco; in onTtyModeReceived()
630 resId = com.android.internal.R.string.peerTtyModeOff; in onTtyModeReceived()
636 if (resId != 0) { in onTtyModeReceived()
638 mApplication.getResources().getString(resId)); in onTtyModeReceived()

123456