/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | ContactsMockResources.java | 30 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/UnifiedEmail/src/com/android/mail/ui/ |
D | ToastBarOperation.java | 124 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 …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/accessibility/ |
D | KeyCodeDescriptionMapper.java | 148 final int resId; in getDescriptionForSwitchAlphaSymbol() local 156 resId = R.string.spoken_description_to_symbol; in getDescriptionForSwitchAlphaSymbol() 160 resId = R.string.spoken_description_to_alpha; in getDescriptionForSwitchAlphaSymbol() 163 resId = R.string.spoken_description_to_symbol; in getDescriptionForSwitchAlphaSymbol() 166 resId = R.string.spoken_description_to_numeric; in getDescriptionForSwitchAlphaSymbol() 172 return context.getString(resId); in getDescriptionForSwitchAlphaSymbol() 185 final int resId; in getDescriptionForShiftKey() local 190 resId = R.string.spoken_description_caps_lock; in getDescriptionForShiftKey() 195 resId = R.string.spoken_description_shift_shifted; in getDescriptionForShiftKey() 198 resId = R.string.spoken_description_shift; in getDescriptionForShiftKey() [all …]
|
D | AccessibleKeyboardViewProxy.java | 152 final int resId = KEYBOARD_MODE_RES_IDS.get(mode); in announceKeyboardMode() local 153 if (resId == 0) { in announceKeyboardMode() 157 final String keyboardMode = context.getString(resId); in announceKeyboardMode() 381 final int resId; in notifySymbolsState() local 389 resId = R.string.spoken_description_mode_alpha; in notifySymbolsState() 393 resId = R.string.spoken_description_mode_symbol; in notifySymbolsState() 396 resId = R.string.spoken_description_mode_phone; in notifySymbolsState() 399 resId = R.string.spoken_description_mode_phone_shift; in notifySymbolsState() 402 resId = -1; in notifySymbolsState() 405 if (resId < 0) { in notifySymbolsState() [all …]
|
/packages/apps/InCallUI/src/com/android/incallui/ |
D | InCallActivity.java | 446 final int resId = getResIdForDisconnectCause(cause); in maybeShowErrorDialogOnDisconnect() local 447 if (resId != INVALID_RES_ID) { in maybeShowErrorDialogOnDisconnect() 448 showErrorDialog(resId); in maybeShowErrorDialogOnDisconnect() 464 private void showErrorDialog(int resId) { in showErrorDialog() argument 465 final CharSequence msg = getResources().getText(resId); in showErrorDialog() 489 int resId = INVALID_RES_ID; in getResIdForDisconnectCause() local 492 resId = R.string.callFailed_cb_enabled; in getResIdForDisconnectCause() 494 resId = R.string.callFailed_fdn_only; in getResIdForDisconnectCause() 496 resId = R.string.callFailed_dsac_restricted; in getResIdForDisconnectCause() 498 resId = R.string.callFailed_dsac_restricted_emergency; in getResIdForDisconnectCause() [all …]
|
D | StatusBarNotifier.java | 464 int resId = R.string.notification_ongoing_call; in getContentString() local 467 resId = R.string.notification_incoming_call; in getContentString() 470 resId = R.string.notification_on_hold; in getContentString() 473 resId = R.string.notification_dialing; in getContentString() 476 return resId; in getContentString()
|
/packages/inputmethods/PinyinIME/src/com/android/inputmethod/pinyin/ |
D | XmlKeyboardLoader.java | 754 int resId = xrp.getAttributeResourceValue(null, name, 0); in getInteger() local 756 if (resId == 0) { in getInteger() 766 return Integer.parseInt(mContext.getResources().getString(resId)); in getInteger() 771 int resId = xrp.getAttributeResourceValue(null, name, 0); in getColor() local 773 if (resId == 0) { in getColor() 783 return mContext.getResources().getColor(resId); in getColor() 788 int resId = xrp.getAttributeResourceValue(null, name, 0); in getString() local 789 if (resId == 0) { in getString() 792 return mContext.getResources().getString(resId); in getString() 797 int resId = xrp.getAttributeResourceValue(null, name, 0); in getFloat() local [all …]
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/util/ |
D | AccountSelectionUtil.java | 61 int resId) { in AccountSelectedListener() argument 67 mResId = resId; in AccountSelectedListener() 76 public static Dialog getSelectAccountDialog(Context context, int resId) { in getSelectAccountDialog() argument 77 return getSelectAccountDialog(context, resId, null, null); in getSelectAccountDialog() 80 public static Dialog getSelectAccountDialog(Context context, int resId, in getSelectAccountDialog() argument 82 return getSelectAccountDialog(context, resId, onClickListener, null); in getSelectAccountDialog() 89 public static Dialog getSelectAccountDialog(Context context, int resId, in getSelectAccountDialog() argument 136 new AccountSelectedListener(context, writableAccountList, resId); in getSelectAccountDialog() 153 public static void doImport(Context context, int resId, AccountWithDataSet account) { in doImport() argument 154 switch (resId) { in doImport()
|
D | ContactDisplayUtils.java | 65 int resId; in getLabelForCallOrSms() local 67 resId = getSmsLabelResourceId(type); in getLabelForCallOrSms() 69 resId = getPhoneLabelResourceId(type); in getLabelForCallOrSms() 76 return context.getResources().getText(resId); in getLabelForCallOrSms()
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/interactions/ |
D | ImportExportDialogFragment.java | 94 final int resId = getItem(position); in onCreateDialog() 95 result.setText(resId); in onCreateDialog() 123 final int resId = adapter.getItem(which); in onCreateDialog() 124 switch (resId) { in onCreateDialog() 127 dismissDialog = handleImportRequest(resId); in onCreateDialog() 146 + getActivity().getResources().getResourceEntryName(resId)); in onCreateDialog() 200 private boolean handleImportRequest(int resId) { in handleImportRequest() argument 211 args.putInt(KEY_RES_ID, resId); in handleImportRequest() 223 AccountSelectionUtil.doImport(getActivity(), resId, in handleImportRequest() local
|
/packages/apps/Settings/src/com/android/settings/ |
D | RegulatoryInfoDisplayActivity.java | 63 int resId = getResourceId(); in onCreate() local 64 if (resId != 0) { in onCreate() 66 Drawable d = resources.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()
|
D | NotificationStation.java | 286 private Drawable loadIconDrawable(String pkg, int userId, int resId) { in loadIconDrawable() argument 289 if (resId == 0) { in loadIconDrawable() 294 return r.getDrawable(resId); in loadIconDrawable() 297 + (pkg != null ? resId : "<system>") in loadIconDrawable() 298 + ": " + Integer.toHexString(resId)); in loadIconDrawable()
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/vcard/ |
D | SelectAccountActivity.java | 59 final int resId = R.string.import_from_sdcard; 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 switch (resId) { in onCreateDialog() 107 return AccountSelectionUtil.getSelectAccountDialog(this, resId, in onCreateDialog() 112 return super.onCreateDialog(resId, bundle); in onCreateDialog()
|
/packages/apps/Contacts/src/com/android/contacts/detail/ |
D | ContactDetailDisplayUtils.java | 194 final int resId = isStarred in configureStarredImageView() local 197 starredView.setImageResource(resId); in configureStarredImageView() 214 final int resId = isStarred in configureStarredMenuItem() local 217 starredMenuItem.setIcon(resId); in configureStarredMenuItem() 473 final int resId = resources.getIdentifier(name, "drawable", packageName); in getDrawable() local 475 if (resId == 0) { in getDrawable() 482 return getResourceDrawable(resources, resId); in getDrawable() 490 private Drawable getResourceDrawable(Resources resources, int resId) in getResourceDrawable() argument 492 Drawable drawable = resources.getDrawable(resId); in getResourceDrawable()
|
/packages/apps/Email/src/com/android/email/activity/ |
D | UiUtilities.java | 39 int resId; in formatSize() local 43 resId = R.plurals.message_view_attachment_bytes; in formatSize() 46 resId = R.plurals.message_view_attachment_kilobytes; in formatSize() 49 resId = R.plurals.message_view_attachment_megabytes; in formatSize() 52 resId = R.plurals.message_view_attachment_gigabytes; in formatSize() 55 return res.getQuantityString(resId, value, value); in formatSize()
|
/packages/apps/DeskClock/src/com/android/deskclock/widget/multiwaveview/ |
D | TargetDrawable.java | 59 public TargetDrawable(Resources res, int resId, int count) { in TargetDrawable() argument 60 mResourceId = resId; in TargetDrawable() 61 setDrawable(res, resId); in TargetDrawable() 65 public void setDrawable(Resources res, int resId) { in setDrawable() argument 68 Drawable drawable = resId == 0 ? null : res.getDrawable(resId); in setDrawable()
|
/packages/apps/InCallUI/src/com/android/incallui/widget/multiwaveview/ |
D | TargetDrawable.java | 59 public TargetDrawable(Resources res, int resId, int count) { in TargetDrawable() argument 60 mResourceId = resId; in TargetDrawable() 61 setDrawable(res, resId); in TargetDrawable() 65 public void setDrawable(Resources res, int resId) { in setDrawable() argument 68 Drawable drawable = resId == 0 ? null : res.getDrawable(resId); in setDrawable()
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/ |
D | Mailbox.java | 417 int resId = -1; in getSystemMailboxName() local 420 resId = R.string.mailbox_name_server_inbox; in getSystemMailboxName() 423 resId = R.string.mailbox_name_server_outbox; in getSystemMailboxName() 426 resId = R.string.mailbox_name_server_drafts; in getSystemMailboxName() 429 resId = R.string.mailbox_name_server_trash; in getSystemMailboxName() 432 resId = R.string.mailbox_name_server_sent; in getSystemMailboxName() 435 resId = R.string.mailbox_name_server_junk; in getSystemMailboxName() 438 resId = R.string.mailbox_name_server_starred; in getSystemMailboxName() 441 resId = R.string.mailbox_name_server_all_unread; in getSystemMailboxName() 446 return context.getString(resId); in getSystemMailboxName()
|
/packages/apps/Launcher3/WallpaperPicker/src/com/android/launcher3/ |
D | WallpaperPickerActivity.java | 202 public ResourceWallpaperInfo(Resources res, int resId, Drawable thumb) { in ResourceWallpaperInfo() argument 204 mResId = resId; in ResourceWallpaperInfo() 772 Resources res, int resId, int rotation, boolean leftAligned) { in createThumbnail() argument 785 context, res, resId, null, rotation, width, height, false, true, null); in createThumbnail() 929 int resId = sysRes.getIdentifier("default_wallpaper", "drawable", "android"); in getPreKKDefaultWallpaperInfo() local 940 int rotation = WallpaperCropActivity.getRotationFromExif(res, resId); in getPreKKDefaultWallpaperInfo() 942 defaultThumbSize, this, null, null, sysRes, resId, rotation, false); in getPreKKDefaultWallpaperInfo() 948 return new ResourceWallpaperInfo(sysRes, resId, new BitmapDrawable(thumb)); in getPreKKDefaultWallpaperInfo() 1007 int resId = res.getIdentifier(extra, "drawable", packageName); in addWallpapers() local 1008 if (resId != 0) { in addWallpapers() [all …]
|
/packages/apps/Calendar/src/com/android/calendar/event/ |
D | EventViewUtils.java | 47 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/ContactsCommon/src/com/android/contacts/common/model/account/ |
D | AccountType.java | 277 static CharSequence getResourceText(Context context, String packageName, int resId, in getResourceText() argument 279 if (resId != -1 && packageName != null) { in getResourceText() 281 return pm.getText(packageName, resId, null); in getResourceText() 282 } else if (resId != -1) { in getResourceText() 283 return context.getText(resId); in getResourceText()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
D | DictionaryInfoUtils.java | 233 int resId; in getMainDictionaryResourceIdIfAvailableForLocale() local 238 if ((resId = res.getIdentifier( in getMainDictionaryResourceIdIfAvailableForLocale() 240 return resId; in getMainDictionaryResourceIdIfAvailableForLocale() 246 if ((resId = res.getIdentifier(dictLanguage, "raw", RESOURCE_PACKAGE_NAME)) != 0) { in getMainDictionaryResourceIdIfAvailableForLocale() 247 return resId; in getMainDictionaryResourceIdIfAvailableForLocale()
|
/packages/apps/UnifiedEmail/src/com/android/mail/utils/ |
D | NotificationUtils.java | 703 final int resId; in getDefaultNotificationIcon() local 705 resId = folder.notificationIconResId; in getDefaultNotificationIcon() 707 resId = R.drawable.ic_notification_multiple_mail_holo_dark; in getDefaultNotificationIcon() 709 resId = R.drawable.ic_contact_picture; in getDefaultNotificationIcon() 712 final Bitmap icon = getIcon(context, resId); in getDefaultNotificationIcon() 715 LogUtils.e(LOG_TAG, "Couldn't decode notif icon res id %d", resId); in getDefaultNotificationIcon() 721 private static Bitmap getIcon(final Context context, final int resId) { in getIcon() argument 722 final Bitmap cachedIcon = sNotificationIcons.get(resId); in getIcon() 727 final Bitmap icon = BitmapFactory.decodeResource(context.getResources(), resId); in getIcon() 728 sNotificationIcons.put(resId, icon); in getIcon()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
D | DictionaryFactory.java | 101 final int resId = DictionaryInfoUtils.getMainDictionaryResourceIdIfAvailableForLocale( in createReadOnlyBinaryDictionary() local 103 if (0 == resId) return null; in createReadOnlyBinaryDictionary() 104 afd = context.getResources().openRawResourceFd(resId); in createReadOnlyBinaryDictionary() 106 Log.e(TAG, "Found the resource but it is compressed. resId=" + resId); in createReadOnlyBinaryDictionary()
|
/packages/apps/Stk/src/com/android/stk/ |
D | StkDialogActivity.java | 153 private void sendResponse(int resId, boolean confirmed) { in sendResponse() argument 156 args.putInt(StkAppService.RES_ID, resId); in sendResponse() 161 private void sendResponse(int resId) { in sendResponse() argument 162 sendResponse(resId, true); in sendResponse()
|