/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/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/services/Telephony/src/com/android/services/telephony/ |
D | Log.java | 52 public static void d(String prefix, String format, Object... args) { in d() argument 53 android.telecom.Log.d(prefix, format, args); in d() 60 public static void i(String prefix, String format, Object... args) { in i() argument 61 android.telecom.Log.i(prefix, format, args); in i() 68 public static void v(String prefix, String format, Object... args) { in v() argument 69 android.telecom.Log.v(prefix, format, args); in v() 76 public static void w(String prefix, String format, Object... args) { in w() argument 77 android.telecom.Log.w(prefix, format, args); in w() 84 public static void e(String prefix, Throwable tr, String format, Object... args) { in e() argument 85 android.telecom.Log.e(prefix, tr, format, args); in e() [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/apps/Launcher3/src/com/android/launcher3/model/ |
D | BgDataModel.java | 113 public synchronized void dump(String prefix, FileDescriptor fd, PrintWriter writer, in dump() argument 116 dumpProto(prefix, fd, writer, args); in dump() 119 writer.println(prefix + "Data Model:"); in dump() 120 writer.print(prefix + " ---- workspace screens: "); in dump() 125 writer.println(prefix + " ---- workspace items "); in dump() 127 writer.println(prefix + '\t' + workspaceItems.get(i).toString()); in dump() 129 writer.println(prefix + " ---- appwidget items "); in dump() 131 writer.println(prefix + '\t' + appWidgets.get(i).toString()); in dump() 133 writer.println(prefix + " ---- folder items "); in dump() 135 writer.println(prefix + '\t' + folders.valueAt(i).toString()); in dump() [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/apps/Contacts/tests/src/com/android/contacts/format/ |
D | TextHighlighterTest.java | 50 final String prefix = "TE"; in testSetText_MatchingPrefix() local 52 CharSequence seq = mTextHighlighter.applyPrefixHighlight("test", prefix); in testSetText_MatchingPrefix() 55 seq = mTextHighlighter.applyPrefixHighlight("Test", prefix); in testSetText_MatchingPrefix() 58 seq = mTextHighlighter.applyPrefixHighlight("TEst", prefix); in testSetText_MatchingPrefix() 61 seq = mTextHighlighter.applyPrefixHighlight("a test", prefix); in testSetText_MatchingPrefix() 77 final String prefix = "TE"; in testSetText_NoMatchingMiddleOfWord() local 78 CharSequence seq = mTextHighlighter.applyPrefixHighlight("atest", prefix); in testSetText_NoMatchingMiddleOfWord() 81 seq = mTextHighlighter.applyPrefixHighlight("atest otest", prefix); in testSetText_NoMatchingMiddleOfWord() 84 seq = mTextHighlighter.applyPrefixHighlight("atest test", prefix); in testSetText_NoMatchingMiddleOfWord()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/pbapclient/ |
D | PhonebookEntry.java | 32 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/Contacts/src/com/android/contacts/format/ |
D | TextHighlighter.java | 47 public void setPrefixText(TextView view, String text, String prefix) { in setPrefixText() argument 48 view.setText(applyPrefixHighlight(text, prefix)); in setPrefixText() 72 public CharSequence applyPrefixHighlight(CharSequence text, String prefix) { in applyPrefixHighlight() argument 73 if (prefix == null) { in applyPrefixHighlight() 79 while (prefixStart < prefix.length() && in applyPrefixHighlight() 80 !Character.isLetterOrDigit(prefix.charAt(prefixStart))) { in applyPrefixHighlight() 83 final String trimmedPrefix = prefix.substring(prefixStart); in applyPrefixHighlight()
|
/packages/apps/Dialer/java/com/android/contacts/common/format/ |
D | TextHighlighter.java | 45 public void setPrefixText(TextView view, String text, String prefix) { in setPrefixText() argument 46 view.setText(applyPrefixHighlight(text, prefix)); in setPrefixText() 71 public CharSequence applyPrefixHighlight(CharSequence text, String prefix) { in applyPrefixHighlight() argument 72 if (prefix == null) { in applyPrefixHighlight() 78 while (prefixStart < prefix.length() in applyPrefixHighlight() 79 && !Character.isLetterOrDigit(prefix.charAt(prefixStart))) { in applyPrefixHighlight() 82 final String trimmedPrefix = prefix.substring(prefixStart); in applyPrefixHighlight()
|
/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/services/Car/car-support-lib/src/android/support/car/app/ |
D | CarFragmentActivity.java | 444 public void dump(String prefix, FileDescriptor fd, PrintWriter writer, String[] args) { in dump() argument 449 writer.print(prefix); writer.print("Local FragmentActivity "); in dump() 452 String innerPrefix = prefix + " "; in dump() 459 mFragments.getSupportFragmentManager().dump(prefix, fd, writer, args); in dump() 460 writer.print(prefix); writer.println("View Hierarchy:"); in dump() 461 dumpViewHierarchy(prefix + " ", writer, getWindow().getDecorView()); in dump() 530 private void dumpViewHierarchy(String prefix, PrintWriter writer, View view) { in dumpViewHierarchy() argument 531 writer.print(prefix); in dumpViewHierarchy() 545 prefix = prefix + " "; in dumpViewHierarchy() 547 dumpViewHierarchy(prefix, writer, grp.getChildAt(i)); in dumpViewHierarchy() [all …]
|
/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/apps/Dialer/java/com/android/voicemail/impl/mail/store/imap/ |
D | ImapString.java | 156 public final boolean startsWith(String prefix) { in startsWith() argument 157 if (prefix == null) { in startsWith() 161 if (me.length() < prefix.length()) { in startsWith() 164 return me.substring(0, prefix.length()).equalsIgnoreCase(prefix); in startsWith()
|
/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/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/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/providers/DownloadProvider/src/com/android/providers/downloads/ |
D | Helpers.java | 233 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/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/ExactCalculator/src/com/android/calculator2/ |
D | StringUtils.java | 67 public static CharSequence getExtensionIgnoring(CharSequence whole, CharSequence prefix, in getExtensionIgnoring() argument 72 final int pLen = prefix.length(); in getExtensionIgnoring() 74 while (pIndex < pLen && prefix.charAt(pIndex) == c) { in getExtensionIgnoring() 83 if (wIndex == wLen || whole.charAt(wIndex) != prefix.charAt(pIndex) ) { in getExtensionIgnoring()
|
/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/TV/common/src/com/android/tv/common/ |
D | SoftPreconditions.java | 148 public static void warn(String tag, String prefix, String msg, Exception e) in warn() argument 155 logMessage = prefix; in warn() 156 } else if (TextUtils.isEmpty(prefix)) { in warn() 159 logMessage = prefix + ": " + msg; in warn()
|
/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()
|