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

123456

/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
H A DContactsMockResources.java30 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 DPartner.java100 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/UnifiedEmail/src/com/android/mail/ui/
H A DToastBarOperation.java124 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 DKeyCodeDescriptionMapper.java152 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 DMainKeyboardAccessibilityDelegate.java155 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...]
H A DMoreKeysKeyboardAccessibilityDelegate.java46 public void setOpenAnnounce(final int resId) { argument
47 mOpenAnnounceResId = resId;
50 public void setCloseAnnounce(final int resId) { argument
51 mCloseAnnounceResId = resId;
/packages/apps/DeskClock/src/com/android/deskclock/events/
H A DLogEventTracker.java44 * @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 DByResource.java28 * 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);
/packages/apps/Messaging/src/com/android/messaging/ui/
H A DListEmptyView.java47 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 DMediaUtil.java34 public abstract void playSound(final Context context, final int resId, argument
H A DMediaUtilImpl.java29 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 DFakeMediaUtil.java28 public void playSound(Context context, int resId, OnCompletionListener completionListener) { argument
/packages/apps/Contacts/src/com/android/contacts/vcard/
H A DSelectAccountActivity.java59 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/Settings/src/com/android/settings/
H A DRegulatoryInfoDisplayActivity.java63 int resId = getResourceId();
64 if (resId != 0) {
66 Drawable d = getDrawable(resId);
81 image.setImageResource(resId);
98 int resId = getResources().getIdentifier(
108 resId = id;
111 return resId;
/packages/apps/PackageInstaller/src/android/support/wearable/view/
H A DWearableDialogHelper.java81 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 DSubscriptionInfoHelper.java58 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 DResourceTexture.java32 public ResourceTexture(Context context, int resId) { argument
35 mResId = resId;
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/dialog/
H A DProgressDialogFragment.java65 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 DToastService.java63 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/Dialer/java/com/android/incallui/
H A DStatusBarNotifier.java153 private static int getWorkStringFromPersonalString(int resId) { argument
154 if (resId == R.string.notification_ongoing_call) {
156 } else if (resId == R.string.notification_ongoing_call_wifi) {
158 } else if (resId == R.string.notification_incoming_call_wifi) {
160 } else if (resId == R.string.notification_incoming_call) {
163 return resId;
691 int resId = R.string.notification_ongoing_call;
693 resId = R.string.notification_ongoing_call_wifi;
708 resId = R.string.notification_incoming_spam_call;
710 resId
[all...]
/packages/apps/Contacts/src/com/android/contacts/interactions/
H A DImportDialogFragment.java191 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...]
H A DExportDialogFragment.java134 final int resId = adapter.getItem(which).mChoiceResourceId;
135 if (resId == R.string.export_to_vcf_file) {
142 } else if (resId == R.string.share_contacts) {
156 + getActivity().getResources().getResourceEntryName(resId));
222 public AdapterEntry(CharSequence label, int resId, int subId) { argument
224 mChoiceResourceId = resId;
228 public AdapterEntry(String label, int resId) { argument
231 this(label, resId, /* subId = */ -1);
/packages/apps/Contacts/src/com/android/contacts/util/
H A DAccountSelectionUtil.java64 int resId, int subscriptionId) {
70 mResId = resId;
75 int resId) {
78 this(activity, accountList, resId, /* subscriptionId = */ -1);
91 public static Dialog getSelectAccountDialog(Activity activity, int resId, argument
137 new AccountSelectedListener(activity, writableAccountList, resId);
157 public static void doImport(Activity activity, int resId, AccountWithDataSet account, argument
159 if (resId == R.string.import_from_sim) {
161 } else if (resId == R.string.import_from_vcf_file) {
63 AccountSelectedListener(Activity activity, List<AccountWithDataSet> accountList, int resId, int subscriptionId) argument
74 AccountSelectedListener(Activity activity, List<AccountWithDataSet> accountList, int resId) argument
/packages/apps/Settings/src/com/android/settings/fingerprint/
H A DFingerprintEnrollBase.java83 protected void setHeaderText(int resId, boolean force) { argument
86 CharSequence title = getText(resId);
96 protected void setHeaderText(int resId) { argument
97 setHeaderText(resId, false /* force */);
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
H A DDictionaryFactory.java131 final int resId = DictionaryInfoUtils.getMainDictionaryResourceIdIfAvailableForLocale(
133 if (0 == resId) return null;
134 afd = context.getResources().openRawResourceFd(resId);
136 Log.e(TAG, "Found the resource but it is compressed. resId=" + resId);

Completed in 973 milliseconds

123456