/packages/apps/UnifiedEmail/src/org/apache/commons/io/ |
D | FilenameUtils.java | 268 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/ |
D | Log.java | 45 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/ |
D | SimpleTempStorage.java | 54 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/ |
D | NameSplitter.java | 85 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/services/Telecomm/src/com/android/server/telecom/ |
D | Log.java | 260 public static void d(String prefix, String format, Object... args) { in d() argument 262 android.util.Slog.d(TAG, buildMessage(prefix, format, args)); in d() 272 public static void i(String prefix, String format, Object... args) { in i() argument 274 android.util.Slog.i(TAG, buildMessage(prefix, format, args)); in i() 284 public static void v(String prefix, String format, Object... args) { in v() argument 286 android.util.Slog.v(TAG, buildMessage(prefix, format, args)); in v() 296 public static void w(String prefix, String format, Object... args) { in w() argument 298 android.util.Slog.w(TAG, buildMessage(prefix, format, args)); in w() 308 public static void e(String prefix, Throwable tr, String format, Object... args) { in e() argument 310 android.util.Slog.e(TAG, buildMessage(prefix, format, args), tr); in e() [all …]
|
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/codec/ |
D | EncoderUtil.java | 342 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/ |
D | EncoderUtil.java | 342 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/apps/ContactsCommon/tests/src/com/android/contacts/common/format/ |
D | TextHighlighterTest.java | 53 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/apps/UnifiedEmail/src/com/android/mail/content/ |
D | ObjectCursorLoader.java | 172 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/ |
D | TextHighlighter.java | 51 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/ |
D | DeferredFileOutputStream.java | 74 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/ |
D | NameDistance.java | 77 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/DownloadProvider/src/com/android/providers/downloads/ |
D | Helpers.java | 114 final String prefix; in generateSaveFile() local 121 prefix = name; in generateSaveFile() 124 prefix = name.substring(0, dotIndex); in generateSaveFile() 131 prefix = name; in generateSaveFile() 134 prefix = name.substring(0, dotIndex); in generateSaveFile() 140 name = generateAvailableFilenameLocked(parentTest, prefix, suffix); in generateSaveFile() 310 File[] parents, String prefix, String suffix) throws IOException { in generateAvailableFilenameLocked() argument 311 String name = prefix + suffix; in generateAvailableFilenameLocked() 333 name = prefix + Constants.FILENAME_SEQUENCE_SEPARATOR + sequence + suffix; in generateAvailableFilenameLocked()
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | NameSplitterTest.java | 313 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/services/Telephony/src/com/android/phone/common/mail/store/imap/ |
D | ImapString.java | 162 public final boolean startsWith(String prefix) { in startsWith() argument 163 if (prefix == null) { in startsWith() 167 if (me.length() < prefix.length()) { in startsWith() 170 return me.substring(0, prefix.length()).equalsIgnoreCase(prefix); in startsWith()
|
/packages/services/Telephony/src/org/apache/james/mime4j/field/address/parser/ |
D | SimpleNode.java | 70 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/Email/provider_src/com/android/email/mail/store/imap/ |
D | ImapString.java | 163 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/apps/UnifiedEmail/src/org/apache/james/mime4j/field/address/parser/ |
D | SimpleNode.java | 70 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/commons/io/filefilter/ |
D | PrefixFileFilter.java | 61 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/ |
D | ImapStore.java | 589 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/ |
D | AbstractMailActivity.java | 94 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/ |
D | CacheManager.java | 76 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/Email/src/com/android/email/activity/setup/ |
D | AccountSetupIncomingFragment.java | 372 final String prefix = recvAuth.mDomain; in loadSettings() local 373 if (prefix != null && prefix.length() > 0) { in loadSettings() 374 mImapPathPrefixView.setText(prefix.substring(1)); in loadSettings() 577 final String prefix = mImapPathPrefixView.getText().toString().trim(); in collectUserInputInternal() local 578 recvAuth.mDomain = TextUtils.isEmpty(prefix) ? null : ("/" + prefix); in collectUserInputInternal()
|
/packages/apps/Launcher3/util/com/android/launcher3/ |
D | DecoderRing.java | 199 String prefix = "stdin"; in main() local 201 prefix = source.getName(); in main() 206 writeImageData(icon.data, prefix + ".png"); in main() 213 writeImageData(favorite.icon, prefix + ".png"); in main() 221 writeImageData(widget.icon.data, prefix + "_icon.png"); in main()
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
D | DataManager.java | 226 String prefix = path.getPrefix(); in mapMediaItems() local 227 ArrayList<PathId> group = map.get(prefix); in mapMediaItems() 230 map.put(prefix, group); in mapMediaItems() 237 String prefix = entry.getKey(); in mapMediaItems() local 238 MediaSource source = mSourceMap.get(prefix); in mapMediaItems()
|