Searched refs:string (Results 1 - 25 of 1581) sorted by relevance

1234567891011>>

/packages/apps/UnifiedEmail/src/com/google/android/mail/common/base/
H A DStrings.java35 * Returns the given string if it is non-null; the empty string otherwise.
37 * @param string the string to test and possibly return
38 * @return {@code string} itself if it is non-null; {@code ""} if it is null
40 public static String nullToEmpty(String string) { argument
41 return (string == null) ? "" : string;
45 * Returns the given string if it is nonempty; {@code null} otherwise.
47 * @param string th
51 emptyToNull(String string) argument
68 isNullOrEmpty(String string) argument
91 padStart(String string, int minLength, char padChar) argument
123 padEnd(String string, int minLength, char padChar) argument
147 repeat(String string, int count) argument
[all...]
/packages/apps/Email/emailcommon/src/com/android/emailcommon/service/
H A DServiceUnavailableException.java26 public ServiceUnavailableException(String string) { argument
27 super(string);
/packages/inputmethods/LatinIME/native/dicttoolkit/src/utils/
H A Darguments_parser.h20 #include <string>
36 static OptionSpec keyValueOption(const std::string &valueName, const std::string &defaultValue,
37 const std::string &description) {
41 static OptionSpec switchOption(const std::string &description) {
47 const std::string &getValueName() const { return mValueName; }
48 const std::string &getDefaultValue() const { return mDefaultValue; }
49 const std::string &getDescription() const { return mDescription; }
52 OptionSpec(const bool needsValue, const std::string &valueName, const std::string
[all...]
H A Darguments_and_options.h20 #include <string>
33 ArgumentsAndOptions(std::unordered_map<std::string, std::string> &&options,
34 std::unordered_map<std::string, std::vector<std::string>> &&arguments)
41 bool hasOption(const std::string &optionName) const {
45 const std::string &getOptionValue(const std::string &optionName) const {
51 bool hasArgument(const std::string &name) const {
56 const std::string
[all...]
H A Dcommand_utils.h22 #include <string>
40 static CommandType getCommandType(const std::string &commandName);
41 static void printCommandUnknownMessage(const std::string &programName,
42 const std::string &commandName);
H A Dutf8_utils.h21 #include <string>
32 static std::vector<int> getCodePoints(const std::string &utf8Str);
33 static std::string getUtf8String(const CodePointArrayView codePoints);
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/
H A DWifiFormPageType.java33 CHOOSE_NETWORK(FormPageDisplayer.DISPLAY_TYPE_LIST_CHOICE, R.string.title_select_wifi_network,
34 0, new int[] { R.string.other_network },
36 ENTER_SSID(FormPageDisplayer.DISPLAY_TYPE_TEXT_INPUT, R.string.title_ssid, 0,
38 CHOOSE_SECURITY(FormPageDisplayer.DISPLAY_TYPE_LIST_CHOICE, R.string.security_type, 0,
39 new int[] { R.string.wifi_security_type_none, R.string.wifi_security_type_wep,
40 R.string.wifi_security_type_wpa, R.string.wifi_security_type_eap }),
42 R.string.wifi_setup_input_password, 0, 0),
43 CONNECT(FormPageDisplayer.DISPLAY_TYPE_LOADING, R.string
[all...]
/packages/services/Telephony/src/com/android/phone/settings/
H A DVoicemailDialogUtil.java47 int titleId = R.string.error_updating_title;
50 msgId = R.string.vm_changed;
51 titleId = R.string.voicemail;
53 b.setNegativeButton(R.string.close_dialog, parent);
58 msgId = R.string.no_change;
59 titleId = R.string.voicemail;
61 b.setNegativeButton(R.string.close_dialog, parent);
64 msgId = R.string.vm_change_failed;
66 b.setPositiveButton(R.string.close_dialog, parent);
69 msgId = R.string
[all...]
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
H A DCellBroadcastResources.java32 * Returns the string resource ID's for CMAS and ETWS emergency alerts.
41 * @param context a Context for resource string access
49 buf.append(context.getString(R.string.delivery_time_heading));
68 appendMessageDetail(context, buf, R.string.cmas_category_heading, categoryId);
74 appendMessageDetail(context, buf, R.string.cmas_response_heading, responseId);
80 appendMessageDetail(context, buf, R.string.cmas_severity_heading, severityId);
86 appendMessageDetail(context, buf, R.string.cmas_urgency_heading, urgencyId);
92 appendMessageDetail(context, buf, R.string.cmas_certainty_heading, certaintyId);
110 * Returns the string resource ID for the CMAS category.
111 * @return a string resourc
[all...]
/packages/apps/ContactsCommon/src/com/android/contacts/common/util/
H A DContactDisplayUtils.java66 * @return An appropriate string label
94 * @return An appropriate string label.
97 if (type == null) return R.string.call_other;
100 return R.string.call_home;
102 return R.string.call_mobile;
104 return R.string.call_work;
106 return R.string.call_fax_work;
108 return R.string.call_fax_home;
110 return R.string.call_pager;
112 return R.string
[all...]
/packages/apps/DeskClock/src/com/android/deskclock/
H A DHandleDeskClockApiCalls.java122 final int eventLabel = intent.getIntExtra(EXTRA_EVENT_LABEL, R.string.label_intent);
125 Events.sendStopwatchEvent(R.string.action_show, eventLabel);
132 Events.sendStopwatchEvent(R.string.action_start, eventLabel);
133 reason = getString(R.string.stopwatch_started);
138 Events.sendStopwatchEvent(R.string.action_pause, eventLabel);
139 reason = getString(R.string.stopwatch_paused);
145 Events.sendStopwatchEvent(R.string.action_reset, eventLabel);
146 reason = getString(R.string.stopwatch_reset);
152 reason = getString(R.string.stopwatch_isnt_running);
155 Events.sendStopwatchEvent(R.string
[all...]
/packages/apps/Camera2/src/com/android/camera/
H A DFatalErrorHandler.java37 R.string.error_cannot_connect_camera,
38 R.string.feedback_description_camera_access,
41 R.string.error_cannot_connect_camera,
42 R.string.feedback_description_camera_access,
45 R.string.error_camera_disabled,
46 R.string.feedback_description_camera_access,
49 R.string.error_media_storage_failure,
50 R.string.feedback_description_save_photo,
58 * @param dialogMsgId The resource ID of string to display in the fatal
60 * @param feedbackMsgId The resource ID of default string t
[all...]
/packages/apps/DeskClock/src/com/android/deskclock/stopwatch/
H A DStopwatchService.java47 Events.sendStopwatchEvent(R.string.action_start, R.string.label_notification);
52 Events.sendStopwatchEvent(R.string.action_pause, R.string.label_notification);
57 Events.sendStopwatchEvent(R.string.action_lap, R.string.label_notification);
63 Events.sendStopwatchEvent(R.string.action_reset, R.string.label_notification);
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/
H A DStrSegment.java20 * The information container class of segment in a string.
22 * This class defines information of a segment in a string, such as a character, a word or a clause.
28 /** The string */
29 public String string; field in class:StrSegment
45 * @param str The string
63 * @param str The string
68 this.string = str;
/packages/apps/Messaging/src/com/android/messaging/util/
H A DTextUtil.java22 * Returns true if the string is empty, null or only whitespace.
24 public static boolean isAllWhitespace(@Nullable String string) { argument
25 if (string == null || string.isEmpty()) {
29 for (int i = 0; i < string.length(); ++i) {
30 if (!Character.isWhitespace(string.charAt(i))) {
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
H A DDetailsHelper.java105 return context.getString(R.string.title);
107 return context.getString(R.string.description);
109 return context.getString(R.string.time);
111 return context.getString(R.string.location);
113 return context.getString(R.string.path);
115 return context.getString(R.string.width);
117 return context.getString(R.string.height);
119 return context.getString(R.string.orientation);
121 return context.getString(R.string.duration);
123 return context.getString(R.string
[all...]
/packages/experimental/LoaderApp/src/com/android/loaderapp/model/
H A DFallbackSource.java62 this.titleRes = R.string.account_phone;
109 R.string.nameLabelsGroup, -1, -1, true));
117 kind.fieldList.add(new EditField(StructuredName.PREFIX, R.string.name_prefix,
120 kind.fieldList.add(new EditField(StructuredName.FAMILY_NAME, R.string.name_family,
122 kind.fieldList.add(new EditField(StructuredName.MIDDLE_NAME, R.string.name_middle,
124 kind.fieldList.add(new EditField(StructuredName.GIVEN_NAME, R.string.name_given,
126 kind.fieldList.add(new EditField(StructuredName.SUFFIX, R.string.name_suffix,
129 R.string.name_phonetic_family, FLAGS_PHONETIC).setOptional(true));
131 R.string.name_phonetic_middle, FLAGS_PHONETIC).setOptional(true));
133 R.string
[all...]
/packages/apps/Settings/src/com/android/settings/users/
H A DUserDialogs.java56 .setPositiveButton(R.string.user_delete_button, onConfirmListener)
57 .setNegativeButton(android.R.string.cancel, null);
59 builder.setTitle(R.string.work_profile_confirm_remove_title);
64 builder.setMessage(R.string.work_profile_confirm_remove_message);
67 builder.setTitle(R.string.user_confirm_remove_self_title);
68 builder.setMessage(R.string.user_confirm_remove_self_message);
70 builder.setTitle(R.string.user_profile_confirm_remove_title);
71 builder.setMessage(R.string.user_profile_confirm_remove_message);
73 builder.setTitle(R.string.user_confirm_remove_title);
74 builder.setMessage(R.string
[all...]
/packages/apps/Dialer/src/com/android/dialer/calllog/
H A DCallTypeHelper.java53 mIncomingName = resources.getString(R.string.type_incoming);
54 mOutgoingName = resources.getString(R.string.type_outgoing);
55 mMissedName = resources.getString(R.string.type_missed);
56 mIncomingVideoName = resources.getString(R.string.type_incoming_video);
57 mOutgoingVideoName = resources.getString(R.string.type_outgoing_video);
58 mMissedVideoName = resources.getString(R.string.type_missed_video);
59 mVoicemailName = resources.getString(R.string.type_voicemail);
60 mRejectedName = resources.getString(R.string.type_rejected);
61 mBlockedName = resources.getString(R.string.type_blocked);
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/storage/
H A DMoveAppProgressFragment.java44 setTitle(getActivity().getString(R.string.storage_wizard_move_app_progress_title,
46 setSummary(getActivity().getString(R.string.storage_wizard_move_app_progress_description,
53 return context.getString(R.string.insufficient_storage);
55 return context.getString(R.string.move_error_device_admin);
57 return context.getString(R.string.does_not_exist);
59 return context.getString(R.string.app_forward_locked);
61 return context.getString(R.string.invalid_location);
63 return context.getString(R.string.system_package);
66 return context.getString(R.string.insufficient_storage);
/packages/apps/ContactsCommon/src/com/android/contacts/common/
H A DContactStatusUtil.java34 return resources.getString(R.string.status_available);
37 return resources.getString(R.string.status_away);
39 return resources.getString(R.string.status_busy);
/packages/apps/Email/provider_src/com/android/email/mail/store/imap/
H A DImapSimpleString.java30 /* package */ ImapSimpleString(String string) { argument
31 mString = (string != null) ? string : "";
/packages/services/Telephony/src/com/android/services/telephony/
H A DDisconnectCauseUtil.java169 resourceId = R.string.callFailed_userBusy;
173 resourceId = R.string.callFailed_congestion;
177 resourceId = R.string.callFailed_timedOut;
181 resourceId = R.string.callFailed_server_unreachable;
185 resourceId = R.string.callFailed_number_unreachable;
189 resourceId = R.string.callFailed_invalid_credentials;
193 resourceId = R.string.callFailed_server_error;
197 resourceId = R.string.callFailed_out_of_network;
202 resourceId = R.string.callFailed_noSignal;
206 resourceId = R.string
[all...]
/packages/apps/ExactCalculator/src/com/android/calculator2/
H A DKeyMaps.java39 * Map key id to corresponding (internationalized) display string.
45 return context.getString(R.string.const_pi);
47 return context.getString(R.string.const_e);
49 return context.getString(R.string.op_sqrt);
51 return context.getString(R.string.op_fact);
53 return context.getString(R.string.op_pct);
55 return context.getString(R.string.fun_sin) + context.getString(R.string.lparen);
57 return context.getString(R.string.fun_cos) + context.getString(R.string
[all...]
/packages/apps/Settings/src/com/android/settings/deviceinfo/
H A DStorageWizardReady.java34 setHeaderText(R.string.storage_wizard_ready_title, mDisk.getDescription());
42 setBodyText(R.string.storage_wizard_ready_external_body,
46 setBodyText(R.string.storage_wizard_ready_internal_body,
50 getNextButton().setText(R.string.done);

Completed in 640 milliseconds

1234567891011>>