/packages/apps/Email/emailcommon/src/com/android/emailcommon/service/ |
H A D | ServiceUnavailableException.java | 26 public ServiceUnavailableException(String string) { argument 27 super(string);
|
/packages/apps/Dialer/java/com/android/dialer/util/ |
H A D | MoreStrings.java | 26 * 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 D | StrSegment.java | 20 * 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 D | ImapSimpleString.java | 29 /* package */ ImapSimpleString(String string) { argument 30 mString = (string != null) ? string : "";
|
/packages/apps/Email/provider_src/com/android/email/mail/store/imap/ |
H A D | ImapSimpleString.java | 30 /* package */ ImapSimpleString(String string) { argument 31 mString = (string != null) ? string : "";
|
/packages/apps/Messaging/src/com/android/messaging/util/ |
H A D | TextUtil.java | 22 * 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 D | PasswordMetrics.java | 41 public static int maxLengthSequence(@NonNull String string) { argument
|
/packages/apps/UnifiedEmail/src/com/google/android/mail/common/base/ |
H A D | Escaper.java | 24 * <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 D | CharEscaper.java | 28 * <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 D | Strings.java | 35 * 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 D | UnicodeEscaper.java | 30 * <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 D | ContactsDictionaryUtils.java | 31 public static int getWordEndPosition(final String string, final int len, argument 36 cp = string.codePointAt(end);
|
/packages/services/Car/tools/io_analysis/ |
H A D | check_io_trace.py | 22 import string namespace 109 words = string.split(l)
|
H A D | check_verity.py | 22 import string namespace
|
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/ |
H A D | BluetoothPbapAuthenticator.java | 72 public final synchronized void setSessionKey(final String string) { argument 73 mSessionKey = string;
|
/packages/apps/Contacts/src/com/android/contacts/util/ |
H A D | DateUtils.java | 63 * 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 D | PackedString.java | 32 * 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 D | MmsSmsUtils.java | 45 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 D | ChannelNumber.java | 156 private static boolean isInteger(String string) { argument 158 Integer.parseInt(string);
|
/packages/apps/UnifiedEmail/src/com/android/emailcommon/mail/ |
H A D | PackedString.java | 35 * 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 D | TypefaceUtils.java | 102 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 D | PersistentLogger.java | 102 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 D | ImapConnection.java | 76 * @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 D | DataManagerSearch.java | 200 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 D | NameLookupBuilder.java | 83 String string); 82 insertNameLookup(long rawContactId, long dataId, int lookupType, String string) argument
|