Searched refs:string (Results 1 - 25 of 2203) 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/services/Car/tools/bootio/
H A Dbootio_collector.h20 #include <string>
25 BootioCollector(std::string path);
32 std::string getStoragePath();
34 std::string path_;
/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);
/packages/apps/Car/LocalMediaPlayer/proto/
H A Dproto.proto26 optional string name = 3;
31 optional string media_id = 1;
33 optional string title = 3;
34 optional string subtitle = 4;
35 optional string path = 5;
/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/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
H A DCellBroadcastResources.java33 * Returns the string resource ID's for CMAS and ETWS emergency alerts.
42 * @param context a Context for resource string access
50 buf.append(context.getString(R.string.delivery_time_heading));
69 appendMessageDetail(context, buf, R.string.cmas_category_heading, categoryId);
75 appendMessageDetail(context, buf, R.string.cmas_response_heading, responseId);
81 appendMessageDetail(context, buf, R.string.cmas_severity_heading, severityId);
87 appendMessageDetail(context, buf, R.string.cmas_urgency_heading, urgencyId);
93 appendMessageDetail(context, buf, R.string.cmas_certainty_heading, certaintyId);
111 * Returns the string resource ID for the CMAS category.
112 * @return a string resourc
[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/Test/connectivity/sl4n/facades/test/
H A Dtest_facade.h29 std::tuple<std::string, int> TestStringEmptyReturn();
30 std::tuple<std::string, int> TestStringMaxReturn(
31 std::string max_string);
33 std::string string_test, int int_test);
/packages/apps/Contacts/src/com/android/contacts/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/Dialer/java/com/android/contacts/common/util/
H A DContactDisplayUtils.java60 * @return An appropriate string label
91 * @return An appropriate string label.
95 return R.string.call_other;
99 return R.string.call_home;
101 return R.string.call_mobile;
103 return R.string.call_work;
105 return R.string.call_fax_work;
107 return R.string.call_fax_home;
109 return R.string.call_pager;
111 return R.string
[all...]
/packages/apps/DocumentsUI/src/com/android/documentsui/
H A DFileTypeMap.java34 * A map from mime type to user friendly type string.
51 // Mapping from generic media type string to extension media type string
52 mMediaTypeStringMap.put(R.string.video_file_type, R.string.video_extension_file_type);
53 mMediaTypeStringMap.put(R.string.audio_file_type, R.string.audio_extension_file_type);
54 mMediaTypeStringMap.put(R.string.image_file_type, R.string.image_extension_file_type);
57 mFileTypeMap.put(MimeTypes.APK_TYPE, R.string
[all...]
/packages/apps/Dialer/java/com/android/dialer/util/
H A DMoreStrings.java26 * Returns the given string if it is non-null; the empty string otherwise.
28 * @param string the string to test and possibly return
29 * @return {@code string} itself if it is non-null; {@code ""} if it is null
31 public static String nullToEmpty(@Nullable String string) { argument
32 return (string == null) ? "" : string;
36 * Returns the given string if it is nonempty; {@code null} otherwise.
38 * @param string th
42 emptyToNull(@ullable String string) argument
[all...]
/packages/apps/Dialer/java/com/android/dialer/app/voicemail/error/
H A DVvm3VoicemailMessageCreator.java87 context.getString(R.string.vvm3_error_vms_dns_failure_title),
88 getCustomerSupportString(context, R.string.vvm3_error_vms_dns_failure_message),
95 context.getString(R.string.vvm3_error_vmg_dns_failure_title),
96 getCustomerSupportString(context, R.string.vvm3_error_vmg_dns_failure_message),
103 context.getString(R.string.vvm3_error_spg_dns_failure_title),
104 getCustomerSupportString(context, R.string.vvm3_error_spg_dns_failure_message),
111 context.getString(R.string.vvm3_error_vms_no_cellular_title),
112 getCustomerSupportString(context, R.string.vvm3_error_vms_no_cellular_message),
119 context.getString(R.string.vvm3_error_vmg_no_cellular_title),
120 getCustomerSupportString(context, 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/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/Dialer/java/com/android/dialer/calllogutils/
H A DCallTypeHelper.java56 mIncomingName = resources.getString(R.string.type_incoming);
57 mIncomingPulledName = resources.getString(R.string.type_incoming_pulled);
58 mOutgoingName = resources.getString(R.string.type_outgoing);
59 mOutgoingPulledName = resources.getString(R.string.type_outgoing_pulled);
60 mMissedName = resources.getString(R.string.type_missed);
61 mIncomingVideoName = resources.getString(R.string.type_incoming_video);
62 mIncomingVideoPulledName = resources.getString(R.string.type_incoming_video_pulled);
63 mOutgoingVideoName = resources.getString(R.string.type_outgoing_video);
64 mOutgoingVideoPulledName = resources.getString(R.string.type_outgoing_video_pulled);
65 mMissedVideoName = resources.getString(R.string
[all...]
/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/DeskClock/src/com/android/deskclock/events/
H A DShortcutEventTracker.java40 shortcuts.add(uidm.getShortcutId(R.string.category_alarm, R.string.action_create));
41 shortcuts.add(uidm.getShortcutId(R.string.category_timer, R.string.action_create));
42 shortcuts.add(uidm.getShortcutId(R.string.category_stopwatch, R.string.action_pause));
43 shortcuts.add(uidm.getShortcutId(R.string.category_stopwatch, R.string.action_start));
44 shortcuts.add(uidm.getShortcutId(R.string.category_screensaver, R.string
[all...]
/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/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);

Completed in 721 milliseconds

1234567891011>>