Searched defs:string (Results 1 - 25 of 54) sorted by relevance

123

/packages/apps/Email/emailcommon/src/com/android/emailcommon/service/
H A DServiceUnavailableException.java26 public ServiceUnavailableException(String string) { argument
27 super(string);
/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/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/voicemail/impl/mail/store/imap/
H A DImapSimpleString.java29 /* package */ ImapSimpleString(String string) { argument
30 mString = (string != null) ? string : "";
/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/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/Settings/tests/robotests/src/android/app/admin/
H A DPasswordMetrics.java41 public static int maxLengthSequence(@NonNull String string) { argument
/packages/apps/UnifiedEmail/src/com/google/android/mail/common/base/
H A DEscaper.java24 * <p>For example, an XML escaper would convert the literal string {@code "Foo<Bar>"} into {@code
27 * string {@code "Foo<Bar>"}.
46 * Returns the escaped form of a given literal string.
60 * @param string the literal string to be escaped
61 * @return the escaped form of {@code string}
62 * @throws NullPointerException if {@code string} is null
63 * @throws IllegalArgumentException if {@code string} contains badly formed UTF-16 or cannot be
66 public abstract String escape(String string); argument
H A DCharEscaper.java28 * <p>For example, an XML escaper would convert the literal string {@code "Foo<Bar>"} into {@code
31 * string {@code "Foo<Bar>"}.
44 * Returns the escaped form of a given literal string.
46 * @param string the literal string to be escaped
47 * @return the escaped form of {@code string}
48 * @throws NullPointerException if {@code string} is null
50 @Override public String escape(String string) { argument
51 checkNotNull(string);
53 int length = string
[all...]
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...]
H A DUnicodeEscaper.java30 * <p>For example, an XML escaper would convert the literal string {@code
33 * the parser API will return this text as the original literal string {@code
121 * Returns the escaped form of a given literal string.
124 * generally safe to use this method. If an input string ends with an
137 * @param string the literal string to be escaped
138 * @return the escaped form of {@code string}
139 * @throws NullPointerException if {@code string} is null
144 public String escape(String string) { argument
145 checkNotNull(string);
[all...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
H A DContactsDictionaryUtils.java31 public static int getWordEndPosition(final String string, final int len, argument
36 cp = string.codePointAt(end);
/packages/services/Car/tools/io_analysis/
H A Dcheck_io_trace.py22 import string namespace
109 words = string.split(l)
H A Dcheck_verity.py22 import string namespace
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/
H A DBluetoothPbapAuthenticator.java72 public final synchronized void setSessionKey(final String string) { argument
73 mSessionKey = string;
/packages/apps/Contacts/src/com/android/contacts/util/
H A DDateUtils.java63 * Parses the supplied string to see if it looks like a date.
65 * @param string The string representation of the provided date
66 * @param mustContainYear If true, the string is parsed as a date containing a year. If false,
67 * the string is parsed into a valid date even if the year field is missing.
68 * @return A Calendar object corresponding to the date if the string is successfully parsed.
71 public static Calendar parseDate(String string, boolean mustContainYear) { argument
77 if (NO_YEAR_DATE_FEB29TH.equals(string)) {
81 date = CommonDateUtils.NO_YEAR_DATE_FORMAT.parse(string, parsePosition);
83 noYearParsed = parsePosition.getIndex() == string
138 formatDate(Context context, String string) argument
152 formatDate(Context context, String string, boolean longForm) argument
[all...]
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/
H A DPackedString.java32 * Packing format is: element : [ value ] or [ value TAG-DELIMITER tag ] packed-string : [ element
44 * Create a packed string using an already-packed string (e.g. from database)
46 * @param string packed string
48 public PackedString(String string) { argument
49 mString = string;
56 * @param tag identifier of string of interest
57 * @return returns value, or null if no string is found
70 * @return a map of the values in the packed string
[all...]
/packages/apps/Messaging/src/com/android/messaging/sms/
H A DMmsSmsUtils.java45 public static boolean isAlias(final String string, final int subId) { argument
50 final int len = string == null ? 0 : string.length();
57 if (!Character.isLetter(string.charAt(0))) { // Nickname begins with a letter
61 final char c = string.charAt(i);
/packages/apps/TV/src/com/android/tv/data/
H A DChannelNumber.java156 private static boolean isInteger(String string) { argument
158 Integer.parseInt(string);
/packages/apps/UnifiedEmail/src/com/android/emailcommon/mail/
H A DPackedString.java35 * packed-string : [ element ] [ ELEMENT-DELIMITER [ element ] ]*
45 * Create a packed string using an already-packed string (e.g. from database)
46 * @param string packed string
48 public PackedString(String string) { argument
49 mString = string;
55 * @param tag identifier of string of interest
56 * @return returns value, or null if no string is found
68 * @return a map of the values in the packed string
[all...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
H A DTypefaceUtils.java102 public static float getStringWidth(final String string, final Paint paint) { argument
104 paint.getTextBounds(string, 0, string.length(), sStringWidthBounds);
/packages/apps/Dialer/java/com/android/dialer/persistentlog/
H A DPersistentLogger.java102 public static void logText(String tag, String string) { argument
103 log(buildTextLog(tag, string));
113 /** Dump the log as human readable string. Blocks until the dump is finished. */
169 private static byte[] buildTextLog(String tag, String string) { argument
171 return String.format("%tm-%td %tH:%tM:%tS.%tL - %s - %s", c, c, c, c, c, c, tag, string)
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/store/
H A DImapConnection.java76 * @return the login command string to sent to the IMAP server
81 // build the LOGIN string once (instead of over-and-over again.)
274 private static String decodeBase64(String string) { argument
275 return new String(Base64.decode(string, Base64.DEFAULT));
278 private static String encodeBase64(String string) { argument
279 return Base64.encodeToString(string.getBytes(), Base64.NO_WRAP);
/packages/apps/TV/src/com/android/tv/search/
H A DDataManagerSearch.java200 private boolean contains(String string, String query) { argument
201 return string != null && string.toLowerCase().contains(query);
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
H A DNameLookupBuilder.java83 String string);
82 insertNameLookup(long rawContactId, long dataId, int lookupType, String string) argument

Completed in 1054 milliseconds

123