/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
H A D | ContactsMockResources.java | 30 public void addResource(int resId, String packageName, String typeName, String entryName) { argument 31 mPackages.put(resId, packageName); 32 mTypes.put(resId, typeName); 33 mEntries.put(resId, entryName); 37 public String getResourceName(int resId) throws NotFoundException { argument 38 if (!mPackages.containsKey(resId)) { 39 throw new NotFoundException("Resource " + resId + " not found"); 41 return mPackages.get(resId) + ":" + mTypes.get(resId) + "/" + mEntries.get(resId); 45 getResourcePackageName(int resId) argument 53 getResourceTypeName(int resId) argument 61 getResourceEntryName(int resId) argument [all...] |
/packages/apps/Launcher3/src/com/android/launcher3/ |
H A D | Partner.java | 100 int resId = getResources().getIdentifier(RES_DEFAULT_WALLPAPER_HIDDEN, "bool", 102 return resId != 0 && getResources().getBoolean(resId); 106 int resId = getResources().getIdentifier(RES_SYSTEM_WALLPAPER_DIR, "string", 108 return (resId != 0) ? new File(getResources().getString(resId)) : null; 112 int resId = getResources().getIdentifier(RES_REQUIRE_FIRST_RUN_FLOW, "bool", 114 return resId != 0 && getResources().getBoolean(resId); 123 int resId [all...] |
/packages/apps/TV/src/com/android/tv/util/ |
H A D | ViewCache.java | 41 public void putView(int resId, View view) { argument 42 ArrayList<View> views = mViews.get(resId); 45 mViews.put(resId, views); 53 public void putView(Context context, int resId, ViewGroup fakeParent, int num) { argument 56 ArrayList<View> views = mViews.get(resId); 59 mViews.put(resId, views); 62 View view = inflater.inflate(resId, fakeParent, false); 70 public View getView(int resId) { argument 71 ArrayList<View> views = mViews.get(resId); 75 mViews.remove(resId); 86 getOrCreateView(LayoutInflater inflater, int resId, ViewGroup container) argument [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
H A D | ToastBarOperation.java | 124 final int resId; 126 resId = R.plurals.conversation_deleted; 130 resId = R.plurals.conversation_folder_changed; 134 resId = R.plurals.conversation_archived; 136 resId = R.plurals.conversation_spammed; 138 resId = R.plurals.conversation_not_spam; 140 resId = R.plurals.conversation_not_important; 142 resId = R.plurals.conversation_muted; 144 resId = R.plurals.conversation_unstarred; 146 resId [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/accessibility/ |
H A D | KeyCodeDescriptionMapper.java | 152 final int resId; 160 resId = R.string.spoken_description_to_symbol; 164 resId = R.string.spoken_description_to_alpha; 167 resId = R.string.spoken_description_to_symbol; 170 resId = R.string.spoken_description_to_numeric; 176 return context.getString(resId); 190 final int resId; 195 resId = R.string.spoken_description_caps_lock; 199 resId = R.string.spoken_description_shift_shifted; 202 resId [all...] |
H A D | MainKeyboardAccessibilityDelegate.java | 155 final int resId; 165 resId = R.string.spoken_description_mode_alpha; 173 resId = R.string.spoken_description_shiftmode_on; 181 resId = R.string.spoken_description_shiftmode_locked; 184 resId = R.string.spoken_description_shiftmode_locked; 187 resId = R.string.spoken_description_mode_symbol; 190 resId = R.string.spoken_description_mode_symbol_shift; 193 resId = R.string.spoken_description_mode_phone; 196 resId = R.string.spoken_description_mode_phone_shift; 201 sendWindowStateChanged(resId); [all...] |
/packages/apps/DeskClock/src/com/android/deskclock/events/ |
H A D | LogEventTracker.java | 44 * @return Resource string represented by a given resource id, null if resId is invalid (0). 46 private String safeGetString(@StringRes int resId) { argument 47 return resId == 0 ? null : mContext.getString(resId);
|
/packages/apps/TV/tests/common/src/com/android/tv/testing/uihelper/ |
H A D | ByResource.java | 28 * Creates a BySelector for the {@code resId} from {@code resources} 32 public static BySelector id(Resources resources, int resId) { argument 33 String id = resources.getResourceName(resId);
|
H A D | SidePanelHelper.java | 49 public UiObject2 assertNavigateToItem(int resId) { argument 50 return assertNavigateToItem(resId, Direction.DOWN); 53 public UiObject2 assertNavigateToItem(int resId, Direction direction) { argument 54 String title = mTargetResources.getString(resId);
|
/packages/apps/Messaging/src/com/android/messaging/ui/ |
H A D | ListEmptyView.java | 47 public void setImageHint(final int resId) { argument 48 mEmptyImageHint.setImageResource(resId); 51 public void setTextHint(final int resId) { argument 52 mEmptyTextHint.setText(getResources().getText(resId));
|
/packages/apps/Messaging/src/com/android/messaging/util/ |
H A D | MediaUtil.java | 34 public abstract void playSound(final Context context, final int resId, argument
|
H A D | MediaUtilImpl.java | 29 public void playSound(final Context context, final int resId, argument 40 final AssetFileDescriptor afd = context.getResources().openRawResourceFd(resId); 59 LogUtil.w("MediaUtilImpl", "Error playing sound id: " + resId, e);
|
/packages/apps/Messaging/tests/src/com/android/messaging/util/ |
H A D | FakeMediaUtil.java | 28 public void playSound(Context context, int resId, OnCompletionListener completionListener) { argument
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/ |
H A D | ResIdSubject.java | 50 public static ResIdSubject assertResId(int resId) { argument 51 return assertAbout(ResIdSubject.FACTORY).that(resId); 78 private static String resIdToString(int resId) { argument 79 return application.getResources().getResourceName(resId);
|
/packages/apps/Contacts/src/com/android/contacts/vcard/ |
H A D | SelectAccountActivity.java | 59 final int resId = R.string.import_from_vcf_file; 82 this, accountList, resId) { 95 showDialog(resId); 100 protected Dialog onCreateDialog(int resId, Bundle bundle) { argument 101 if (resId == R.string.import_from_vcf_file) { 106 return AccountSelectionUtil.getSelectAccountDialog(this, resId, 110 return super.onCreateDialog(resId, bundle);
|
/packages/apps/PackageInstaller/src/android/support/wearable/view/ |
H A D | WearableDialogHelper.java | 81 public WearableDialogHelper setPositiveIcon(@DrawableRes int resId) { argument 82 mPositiveIconId = resId; 95 public WearableDialogHelper setNegativeIcon(@DrawableRes int resId) { argument 96 mNegativeIconId = resId; 109 public WearableDialogHelper setNeutralIcon(@DrawableRes int resId) { argument 110 mNeutralIconId = resId; 150 /* package */ Drawable resolveDrawable(@Nullable Drawable drawable, @DrawableRes int resId) { argument 151 return drawable == null && resId != 0 ? mResources.getDrawable(resId, mTheme) : drawable;
|
/packages/apps/Dialer/java/com/android/voicemail/impl/ |
H A D | SubscriptionInfoHelper.java | 58 public void setActionBarTitle(ActionBar actionBar, Resources res, int resId) { argument 63 String title = String.format(res.getString(resId), mSubLabel);
|
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/ |
H A D | ResourceTexture.java | 32 public ResourceTexture(Context context, int resId) { argument 35 mResId = resId;
|
/packages/apps/Settings/src/com/android/settings/ |
H A D | RegulatoryInfoDisplayActivity.java | 81 int resId = 0; 83 resId = getResourceId(); 85 if (resId != 0) { 87 Drawable d = getDrawable(resId); 105 image.setImageResource(resId); 123 int resId = getResources().getIdentifier( 133 resId = id; 136 return resId;
|
/packages/apps/Settings/src/com/android/settings/dream/ |
H A D | WhenToDreamPreferenceController.java | 41 int resId = DreamSettings.getDreamSettingDescriptionResId(mBackend.getWhenToDreamSetting()); 42 preference.setSummary(preference.getContext().getString(resId));
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/dialog/ |
H A D | ProgressDialogFragment.java | 65 public void setIcon(@DrawableRes int resId) { argument 66 mIconView.setImageResource(resId); 75 public void setTitle(@StringRes int resId) { argument 76 mTitleView.setText(resId); 83 public void setExtraText(@StringRes int resId) { argument 84 mExtraTextView.setText(resId); 92 public void setSummary(@StringRes int resId) { argument 93 mSummaryView.setText(resId);
|
/packages/experimental/NotificationShowcase/src/com/android/example/notificationshowcase/ |
H A D | ToastService.java | 63 public static PendingIntent getPendingIntent(Context context, int resId) { argument 64 String text = context.getString(resId); 67 toastIntent.setAction(ACTION_TOAST + ":" + resId); // one per toast message
|
/packages/apps/TV/tests/common/src/com/android/tv/testing/ |
H A D | Utils.java | 52 public static String getUriStringForResource(Context context, int resId) { argument 53 if (resId == 0) { 59 .authority(res.getResourcePackageName(resId)) 60 .path(res.getResourceTypeName(resId)) 61 .appendPath(res.getResourceEntryName(resId)).build().toString();
|
/packages/apps/Dialer/java/com/android/incallui/ |
H A D | StatusBarNotifier.java | 155 private static int getWorkStringFromPersonalString(int resId) { argument 156 if (resId == R.string.notification_ongoing_call) { 158 } else if (resId == R.string.notification_ongoing_call_wifi) { 160 } else if (resId == R.string.notification_incoming_call_wifi) { 162 } else if (resId == R.string.notification_incoming_call) { 165 return resId; 698 int resId = R.string.notification_ongoing_call; 700 resId = R.string.notification_ongoing_call_wifi; 705 resId = R.string.notification_incoming_spam_call; 707 resId [all...] |
/packages/apps/Contacts/src/com/android/contacts/interactions/ |
H A D | ImportDialogFragment.java | 191 final int resId = adapter.getItem(which).mChoiceResourceId; 192 if (resId == R.string.import_from_sim) { 194 } else if (resId == R.string.import_from_vcf_file) { 195 handleImportRequest(resId, SimCard.NO_SUBSCRIPTION_ID); 198 + getActivity().getResources().getResourceEntryName(resId)); 255 private void handleImportRequest(int resId, int subscriptionId) { argument 270 args.putInt(KEY_RES_ID, resId); 276 AccountSelectionUtil.doImport(getActivity(), resId, 296 public AdapterEntry(CharSequence label, int resId, SimCard sim) { argument 298 mChoiceResourceId = resId; 302 AdapterEntry(String label, int resId) argument [all...] |