Home
last modified time | relevance | path

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

123

/packages/apps/Email/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 …]
DTempPath.java30 TempPath createTempPath(String prefix) throws IOException; in createTempPath() argument
52 TempFile createTempFile(String prefix, String suffix) throws IOException; in createTempFile() argument
69 TempFile createTempFile(String prefix, String suffix, in createTempFile() argument
/packages/apps/Email/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/apps/Email/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/apps/Contacts/src/com/android/contacts/format/
DPrefixHighlighter.java42 public void setText(TextView view, String text, char[] prefix) { in setText() argument
43 view.setText(apply(text, prefix)); in setText()
52 public CharSequence apply(CharSequence text, char[] prefix) { in apply() argument
53 int index = FormatUtils.indexOfWordPrefix(text, prefix); in apply()
60 result.setSpan(mPrefixColorSpan, index, index + prefix.length, 0 /* flags */); in apply()
DFormatUtils.java143 public static int indexOfWordPrefix(CharSequence text, char[] prefix) { in indexOfWordPrefix() argument
144 if (prefix == null || text == null) { in indexOfWordPrefix()
149 int prefixLength = prefix.length; in indexOfWordPrefix()
169 if (Character.toUpperCase(text.charAt(i + j)) != prefix[j]) { in indexOfWordPrefix()
/packages/apps/Gallery2/tests/src/com/android/gallery3d/data/
DRealDataTest.java80 void dumpMediaSet(MediaSet set, String prefix) { in dumpMediaSet() argument
89 Log.v(TAG, prefix + "got set " + i); in dumpMediaSet()
90 dumpMediaSet(sub, prefix + " "); in dumpMediaSet()
94 Log.v(TAG, prefix + "got item " + i + " (+" + list.size() + ")"); in dumpMediaSet()
96 dumpMediaItem(item, prefix + ".."); in dumpMediaSet()
101 void dumpMediaItem(MediaItem item, String prefix) { in dumpMediaItem() argument
103 Log.v(TAG, prefix + "getPath() = " + item.getPath()); in dumpMediaItem()
/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/apps/Email/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/apps/Gallery2/src/com/android/gallery3d/data/
DDataSourceType.java40 Path prefix = path.getPrefixPath(); in identifySourceType()
42 if (prefix == PICASA_ROOT) return TYPE_PICASA; in identifySourceType()
43 if (prefix == MTP_ROOT) return TYPE_MTP; in identifySourceType()
44 if (prefix == LOCAL_ROOT) return TYPE_LOCAL; in identifySourceType()
DMediaSource.java29 protected MediaSource(String prefix) { in MediaSource() argument
30 mPrefix = prefix; in MediaSource()
DDataManager.java228 String prefix = path.getPrefix(); in mapMediaItems() local
229 ArrayList<PathId> group = map.get(prefix); in mapMediaItems()
232 map.put(prefix, group); in mapMediaItems()
239 String prefix = entry.getKey(); in mapMediaItems() local
240 MediaSource source = mSourceMap.get(prefix); in mapMediaItems()
/packages/apps/Email/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/Email/src/com/android/email/mail/store/imap/
DImapString.java164 public final boolean startsWith(String prefix) { in startsWith() argument
165 if (prefix == null) { in startsWith()
169 if (me.length() < prefix.length()) { in startsWith()
172 return me.substring(0, prefix.length()).equalsIgnoreCase(prefix); in startsWith()
/packages/apps/Email/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/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()
407 if (name.prefix == null && tokens.mEndPointer - tokens.mStartPointer == 1) { in splitWesternName()
527 String prefix = includePrefix ? name.prefix : null; in join() local
[all …]
/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/Exchange/exchange2/src/com/android/exchange/utility/
DFileLogger.java67 static public synchronized void log(String prefix, String str) { in log() argument
91 if (prefix != null) { in log()
92 sb.append(prefix); in log()
111 log(prefix, str); in log()
/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/apps/Exchange/exchange2/tests/src/com/android/exchange/provider/
DMockProvider.java149 String prefix = uri.getPath() + "/"; in query() local
151 if (entry.getKey().startsWith(prefix)) { in query()
188 String prefix = path + "/"; in update() local
190 if (entry.getKey().startsWith(prefix)) { in update()
/packages/apps/Exchange/tests/src/com/android/exchange/provider/
DMockProvider.java149 String prefix = uri.getPath() + "/"; in query() local
151 if (entry.getKey().startsWith(prefix)) { in query()
188 String prefix = path + "/"; in update() local
190 if (entry.getKey().startsWith(prefix)) { in update()
/packages/apps/Email/src/com/android/email/activity/setup/
DAccountSetupIncomingFragment.java341 String prefix = recvAuth.mDomain; in loadSettings() local
342 if (prefix != null && prefix.length() > 0) { in loadSettings()
343 mImapPathPrefixView.setText(prefix.substring(1)); in loadSettings()
472 String prefix = mImapPathPrefixView.getText().toString().trim(); in onNext() local
473 recvAuth.mDomain = TextUtils.isEmpty(prefix) ? null : ("/" + prefix); in onNext()
/packages/inputmethods/PinyinIME/src/com/android/inputmethod/pinyin/
DEnglishInputProcessor.java35 CharSequence prefix = null; in processKey() local
36 prefix = inputContext.getTextBeforeCursor(2, 0); in processKey()
/packages/apps/Mms/src/com/android/mms/util/
DCacheManager.java84 String prefix = cacheDir.getAbsolutePath() + "/"; in clear() local
86 BlobCache.deleteFiles(prefix + ImageCacheService.IMAGE_CACHE_FILE); in clear()
/packages/apps/Contacts/tests/src/com/android/contacts/util/
DNameConverterTests.java70 private void assertStructuredName(String displayName, String prefix, in assertStructuredName() argument
74 checkNameComponent(StructuredName.PREFIX, prefix, structuredName); in assertStructuredName()

123