Home
last modified time | relevance | path

Searched refs:prefix (Results 1 – 25 of 83) sorted by relevance

1234

/packages/apps/UnifiedEmail/src/org/apache/commons/io/
DFilenameUtils.java268 int prefix = getPrefixLength(filename); in doNormalize() local
269 if (prefix < 0) { in doNormalize()
291 for (int i = prefix + 1; i < size; i++) { in doNormalize()
300 for (int i = prefix + 1; i < size; i++) { in doNormalize()
302 (i == prefix + 1 || array[i - 2] == SYSTEM_SEPARATOR)) { in doNormalize()
314 for (int i = prefix + 2; i < size; i++) { in doNormalize()
316 (i == prefix + 2 || array[i - 3] == SYSTEM_SEPARATOR)) { in doNormalize()
317 if (i == prefix + 2) { in doNormalize()
324 for (j = i - 4 ; j >= prefix; j--) { in doNormalize()
334 System.arraycopy(array, i + 1, array, prefix, size - i); in doNormalize()
[all …]
/packages/services/Telephony/src/com/android/services/telephony/
DLog.java45 public static void d(String prefix, String format, Object... args) { in d() argument
47 android.util.Log.d(TAG, buildMessage(prefix, format, args)); in d()
57 public static void i(String prefix, String format, Object... args) { in i() argument
59 android.util.Log.i(TAG, buildMessage(prefix, format, args)); in i()
69 public static void v(String prefix, String format, Object... args) { in v() argument
71 android.util.Log.v(TAG, buildMessage(prefix, format, args)); in v()
81 public static void w(String prefix, String format, Object... args) { in w() argument
83 android.util.Log.w(TAG, buildMessage(prefix, format, args)); in w()
93 public static void e(String prefix, Throwable tr, String format, Object... args) { in e() argument
95 android.util.Log.e(TAG, buildMessage(prefix, format, args), tr); in e()
[all …]
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/util/
DSimpleTempStorage.java54 private TempPath createTempPath(TempPath parent, String prefix) in createTempPath() argument
57 if (prefix == null) { in createTempPath()
58 prefix = ""; in createTempPath()
65 p = new File(parent.getAbsolutePath(), prefix + n); in createTempPath()
78 private TempFile createTempFile(TempPath parent, String prefix, in createTempFile() argument
81 if (prefix == null) { in createTempFile()
82 prefix = ""; in createTempFile()
94 f = new File(parent.getAbsolutePath(), prefix + n + suffix); in createTempFile()
142 public TempFile createTempFile(String prefix, String suffix) in createTempFile() argument
145 return SimpleTempStorage.this.createTempFile(this, prefix, suffix); in createTempFile()
[all …]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DNameSplitter.java85 public String prefix; field in NameSplitter.Name
102 public Name(String prefix, String givenNames, String middleName, String familyName, in Name() argument
104 this.prefix = prefix; in Name()
113 return prefix; in getPrefix()
154 prefix = values.getAsString(StructuredName.PREFIX); in fromValues()
172 putValueIfPresent(values, StructuredName.PREFIX, prefix); in toValues()
191 prefix = null; in clear()
215 return "[prefix: " + prefix + " given: " + givenNames + " middle: " + middleName in toString()
404 if (name.prefix == null && tokens.mEndPointer - tokens.mStartPointer == 1) { in splitWesternName()
524 String prefix = includePrefix ? name.prefix : null; in join() local
[all …]
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/codec/
DEncoderUtil.java342 String prefix = ENC_WORD_PREFIX + mimeCharset + "?B?"; in encodeEncodedWord() local
343 return encodeB(prefix, text, usedCharacters, charset, bytes); in encodeEncodedWord()
345 String prefix = ENC_WORD_PREFIX + mimeCharset + "?Q?"; in encodeEncodedWord() local
346 return encodeQ(prefix, text, usage, usedCharacters, charset, bytes); in encodeEncodedWord()
512 private static String encodeB(String prefix, String text, in encodeB() argument
516 int totalLength = prefix.length() + encodedLength in encodeB()
519 return prefix + encodeB(bytes) + ENC_WORD_SUFFIX; in encodeB()
525 String word1 = encodeB(prefix, part1, usedCharacters, charset, in encodeB()
530 String word2 = encodeB(prefix, part2, 0, charset, bytes2); in encodeB()
540 private static String encodeQ(String prefix, String text, Usage usage, in encodeQ() argument
[all …]
/packages/services/Telephony/src/org/apache/james/mime4j/codec/
DEncoderUtil.java342 String prefix = ENC_WORD_PREFIX + mimeCharset + "?B?"; in encodeEncodedWord() local
343 return encodeB(prefix, text, usedCharacters, charset, bytes); in encodeEncodedWord()
345 String prefix = ENC_WORD_PREFIX + mimeCharset + "?Q?"; in encodeEncodedWord() local
346 return encodeQ(prefix, text, usage, usedCharacters, charset, bytes); in encodeEncodedWord()
512 private static String encodeB(String prefix, String text, in encodeB() argument
516 int totalLength = prefix.length() + encodedLength in encodeB()
519 return prefix + encodeB(bytes) + ENC_WORD_SUFFIX; in encodeB()
525 String word1 = encodeB(prefix, part1, usedCharacters, charset, in encodeB()
530 String word2 = encodeB(prefix, part2, 0, charset, bytes2); in encodeB()
540 private static String encodeQ(String prefix, String text, Usage usage, in encodeQ() argument
[all …]
/packages/services/Telecomm/src/com/android/server/telecom/
DLog.java665 public static void d(String prefix, String format, Object... args) { in d() argument
668 systemLogger.i(TAG, buildMessage(prefix, format, args)); in d()
670 systemLogger.d(TAG, buildMessage(prefix, format, args)); in d()
683 public static void i(String prefix, String format, Object... args) { in i() argument
685 systemLogger.i(TAG, buildMessage(prefix, format, args)); in i()
695 public static void v(String prefix, String format, Object... args) { in v() argument
698 systemLogger.i(TAG, buildMessage(prefix, format, args)); in v()
700 systemLogger.v(TAG, buildMessage(prefix, format, args)); in v()
713 public static void w(String prefix, String format, Object... args) { in w() argument
715 systemLogger.w(TAG, buildMessage(prefix, format, args)); in w()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/pbapclient/
DPhonebookEntry.java32 public String prefix; field in PhonebookEntry.Name
47 (prefix == n.prefix || prefix != null && prefix.equals(n.prefix)) && in equals()
56 result = 23 * result + (prefix == null ? 0 : prefix.hashCode()); in hashCode()
71 sb.append(prefix); in toString()
131 name.prefix = n.getPrefix(); in PhonebookEntry()
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/format/
DTextHighlighterTest.java53 final String prefix = "TE"; in testSetText_MatchingPrefix() local
55 CharSequence seq = mTextHighlighter.applyPrefixHighlight("test", prefix); in testSetText_MatchingPrefix()
58 seq = mTextHighlighter.applyPrefixHighlight("Test", prefix); in testSetText_MatchingPrefix()
61 seq = mTextHighlighter.applyPrefixHighlight("TEst", prefix); in testSetText_MatchingPrefix()
64 seq = mTextHighlighter.applyPrefixHighlight("a test", prefix); in testSetText_MatchingPrefix()
80 final String prefix = "TE"; in testSetText_NoMatchingMiddleOfWord() local
81 CharSequence seq = mTextHighlighter.applyPrefixHighlight("atest", prefix); in testSetText_NoMatchingMiddleOfWord()
84 seq = mTextHighlighter.applyPrefixHighlight("atest otest", prefix); in testSetText_NoMatchingMiddleOfWord()
87 seq = mTextHighlighter.applyPrefixHighlight("atest test", prefix); in testSetText_NoMatchingMiddleOfWord()
/packages/services/Car/car-support-lib/src/android/support/car/app/
DCarFragmentActivity.java477 public void dump(String prefix, FileDescriptor fd, PrintWriter writer, String[] args) { in dump() argument
482 writer.print(prefix); writer.print("Local FragmentActivity "); in dump()
485 String innerPrefix = prefix + " "; in dump()
492 mFragments.getSupportFragmentManager().dump(prefix, fd, writer, args); in dump()
493 writer.print(prefix); writer.println("View Hierarchy:"); in dump()
494 dumpViewHierarchy(prefix + " ", writer, getWindow().getDecorView()); in dump()
563 private void dumpViewHierarchy(String prefix, PrintWriter writer, View view) { in dumpViewHierarchy() argument
564 writer.print(prefix); in dumpViewHierarchy()
578 prefix = prefix + " "; in dumpViewHierarchy()
580 dumpViewHierarchy(prefix, writer, grp.getChildAt(i)); in dumpViewHierarchy()
[all …]
/packages/apps/UnifiedEmail/src/com/android/mail/content/
DObjectCursorLoader.java172 public void dump(String prefix, FileDescriptor fd, PrintWriter writer, String[] args) { in dump() argument
173 super.dump(prefix, fd, writer, args); in dump()
174 writer.print(prefix); writer.print("mUri="); writer.println(mUri); in dump()
175 writer.print(prefix); writer.print("mProjection="); in dump()
177 writer.print(prefix); writer.print("mSelection="); writer.println(mSelection); in dump()
178 writer.print(prefix); writer.print("mSelectionArgs="); in dump()
180 writer.print(prefix); writer.print("mSortOrder="); writer.println(mSortOrder); in dump()
181 writer.print(prefix); writer.print("mCursor="); writer.println(mCursor); in dump()
/packages/apps/ContactsCommon/src/com/android/contacts/common/format/
DTextHighlighter.java51 public void setPrefixText(TextView view, String text, String prefix) { in setPrefixText() argument
52 view.setText(applyPrefixHighlight(text, prefix)); in setPrefixText()
76 public CharSequence applyPrefixHighlight(CharSequence text, String prefix) { in applyPrefixHighlight() argument
77 if (prefix == null) { in applyPrefixHighlight()
83 while (prefixStart < prefix.length() && in applyPrefixHighlight()
84 !Character.isLetterOrDigit(prefix.charAt(prefixStart))) { in applyPrefixHighlight()
87 final String trimmedPrefix = prefix.substring(prefixStart); in applyPrefixHighlight()
/packages/apps/UnifiedEmail/src/org/apache/commons/io/output/
DDeferredFileOutputStream.java74 private String prefix; field in DeferredFileOutputStream
123 public DeferredFileOutputStream(int threshold, String prefix, String suffix, File directory) in DeferredFileOutputStream() argument
126 if (prefix == null) { in DeferredFileOutputStream()
129 this.prefix = prefix; in DeferredFileOutputStream()
162 if (prefix != null) { in thresholdReached()
163 outputFile = File.createTempFile(prefix, suffix, directory); in thresholdReached()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/util/
DNameDistance.java77 boolean prefix = true; in getDistance()
80 prefix = false; in getDistance()
84 if (prefix) { in getDistance()
159 int prefix = 0; in getDistance() local
164 prefix++; in getDistance()
167 return jaro + Math.min(0.1f, 1f / length2) * prefix * (1 - jaro); in getDistance()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DNameSplitterTest.java313 private void assertSplitName(String fullName, String prefix, String givenNames, in assertSplitName() argument
317 assertEquals(prefix, name.getPrefix()); in assertSplitName()
324 private void assertJoinedName(String expected, String prefix, String givenNames, in assertJoinedName() argument
326 assertJoinedName(expected, FullNameStyle.WESTERN, prefix, givenNames, middleName, in assertJoinedName()
330 private void assertJoinedName(String expected, int nameStyle, String prefix, String givenNames, in assertJoinedName() argument
334 name.prefix = prefix; in assertJoinedName()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DHelpers.java233 final String prefix; in generateSaveFile() local
240 prefix = name; in generateSaveFile()
243 prefix = name.substring(0, dotIndex); in generateSaveFile()
250 prefix = name; in generateSaveFile()
253 prefix = name.substring(0, dotIndex); in generateSaveFile()
259 name = generateAvailableFilenameLocked(parentTest, prefix, suffix); in generateSaveFile()
429 File[] parents, String prefix, String suffix) throws IOException { in generateAvailableFilenameLocked() argument
430 String name = prefix + suffix; in generateAvailableFilenameLocked()
452 name = prefix + Constants.FILENAME_SEQUENCE_SEPARATOR + sequence + suffix; in generateAvailableFilenameLocked()
/packages/apps/Email/provider_src/com/android/email/mail/store/imap/
DImapString.java163 public final boolean startsWith(String prefix) { in startsWith() argument
164 if (prefix == null) { in startsWith()
168 if (me.length() < prefix.length()) { in startsWith()
171 return me.substring(0, prefix.length()).equalsIgnoreCase(prefix); in startsWith()
/packages/services/Telephony/src/org/apache/james/mime4j/field/address/parser/
DSimpleNode.java70 public String toString(String prefix) { return prefix + toString(); } in toString() argument
75 public void dump(String prefix) { in dump() argument
76 System.out.println(toString(prefix)); in dump()
81 n.dump(prefix + " "); in dump()
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/address/parser/
DSimpleNode.java70 public String toString(String prefix) { return prefix + toString(); } in toString() argument
75 public void dump(String prefix) { in dump() argument
76 System.out.println(toString(prefix)); in dump()
81 n.dump(prefix + " "); in dump()
/packages/services/Telephony/src/com/android/phone/common/mail/store/imap/
DImapString.java169 public final boolean startsWith(String prefix) { in startsWith() argument
170 if (prefix == null) { in startsWith()
174 if (me.length() < prefix.length()) { in startsWith()
177 return me.substring(0, prefix.length()).equalsIgnoreCase(prefix); in startsWith()
/packages/apps/UnifiedEmail/src/org/apache/commons/io/filefilter/
DPrefixFileFilter.java61 public PrefixFileFilter(String prefix) { in PrefixFileFilter() argument
62 this(prefix, IOCase.SENSITIVE); in PrefixFileFilter()
74 public PrefixFileFilter(String prefix, IOCase caseSensitivity) { in PrefixFileFilter() argument
75 if (prefix == null) { in PrefixFileFilter()
78 this.prefixes = new String[] {prefix}; in PrefixFileFilter()
/packages/apps/Email/provider_src/com/android/email/mail/store/
DImapStore.java589 static String encodeFolderName(String name, String prefix) { in encodeFolderName() argument
594 if (prefix != null) { in encodeFolderName()
595 name = prefix + name; in encodeFolderName()
609 static String decodeFolderName(String name, String prefix) { in decodeFolderName() argument
613 if ((prefix != null) && folder.startsWith(prefix)) { in decodeFolderName()
614 folder = folder.substring(prefix.length()); in decodeFolderName()
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DAbstractMailActivity.java94 public void dump(String prefix, FileDescriptor fd, PrintWriter writer, String[] args) { in dump() argument
95 super.dump(prefix, fd, writer, args); in dump()
98 getLoaderManager().dump(prefix, fd, writer, args); in dump()
99 getFragmentManager().dump(prefix, fd, writer, args); in dump()
/packages/apps/Gallery2/src/com/android/gallery3d/util/
DCacheManager.java76 String prefix = cacheDir.getAbsolutePath() + "/"; in removeOldFilesIfNecessary() local
78 BlobCache.deleteFiles(prefix + "imgcache"); in removeOldFilesIfNecessary()
79 BlobCache.deleteFiles(prefix + "rev_geocoding"); in removeOldFilesIfNecessary()
80 BlobCache.deleteFiles(prefix + "bookmark"); in removeOldFilesIfNecessary()
/packages/apps/TV/common/src/com/android/tv/common/
DSoftPreconditions.java141 public static void warn(String tag, String prefix, String msg, Exception e) in warn() argument
148 logMessage = prefix; in warn()
149 } else if (TextUtils.isEmpty(prefix)) { in warn()
152 logMessage = prefix + ": " + msg; in warn()

1234