Searched refs:prefix (Results 1 - 25 of 45) sorted by relevance

12

/packages/apps/Email/emailcommon/src/org/apache/james/mime4j/util/
H A DTempPath.java30 TempPath createTempPath(String prefix) throws IOException; argument
35 * The prefix will be empty and the suffix will be
45 * The prefix and suffix can be set by the user.
47 * @param prefix the prefix to use. <code>null</code> gives no prefix.
52 TempFile createTempFile(String prefix, String suffix) throws IOException; argument
59 * The prefix and suffix can be set by the user.
61 * @param prefix the prefix t
69 createTempFile(String prefix, String suffix, boolean allowInMemory) argument
[all...]
H A DSimpleTempStorage.java54 private TempPath createTempPath(TempPath parent, String prefix) argument
57 if (prefix == null) {
58 prefix = "";
65 p = new File(parent.getAbsolutePath(), prefix + n);
78 private TempFile createTempFile(TempPath parent, String prefix, argument
81 if (prefix == null) {
82 prefix = "";
94 f = new File(parent.getAbsolutePath(), prefix + n + suffix);
142 public TempFile createTempFile(String prefix, String suffix) argument
145 return SimpleTempStorage.this.createTempFile(this, prefix, suffi
151 createTempFile(String prefix, String suffix, boolean allowInMemory) argument
181 createTempPath(String prefix) argument
[all...]
/packages/apps/Contacts/src/com/android/contacts/format/
H A DPrefixHighlighter.java36 * Sets the text on the given text view, highlighting the word that matches the given prefix.
40 * @param prefix the prefix to look for
42 public void setText(TextView view, String text, char[] prefix) { argument
43 view.setText(apply(text, prefix));
47 * Returns a CharSequence which highlights the given prefix if found in the given text.
50 * @param prefix the prefix to look for
52 public CharSequence apply(CharSequence text, char[] prefix) { argument
53 int index = FormatUtils.indexOfWordPrefix(text, prefix);
[all...]
H A DFormatUtils.java134 * Finds the index of the first word that starts with the given prefix.
138 * @param text the text in which to search for the prefix
139 * @param prefix the text to find, in upper case letters
141 public static int indexOfWordPrefix(CharSequence text, char[] prefix) { argument
142 if (prefix == null || text == null) {
147 int prefixLength = prefix.length;
167 if (Character.toUpperCase(text.charAt(i + j)) != prefix[j]) {
/packages/apps/Email/emailcommon/src/org/apache/commons/io/output/
H A DDeferredFileOutputStream.java72 * The temporary file prefix.
74 private String prefix; field in class:DeferredFileOutputStream
117 * @param prefix Prefix to use for the temporary file.
123 public DeferredFileOutputStream(int threshold, String prefix, String suffix, File directory) argument
126 if (prefix == null) {
127 throw new IllegalArgumentException("Temporary file prefix is missing");
129 this.prefix = prefix;
162 if (prefix != null) {
163 outputFile = File.createTempFile(prefix, suffi
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/util/
H A DCacheManager.java76 String prefix = cacheDir.getAbsolutePath() + "/";
78 BlobCache.deleteFiles(prefix + "imgcache");
79 BlobCache.deleteFiles(prefix + "rev_geocoding");
80 BlobCache.deleteFiles(prefix + "bookmark");
/packages/apps/Gallery2/tests/src/com/android/gallery3d/data/
H A DRealDataTest.java80 void dumpMediaSet(MediaSet set, String prefix) { argument
89 Log.v(TAG, prefix + "got set " + i);
90 dumpMediaSet(sub, prefix + " ");
94 Log.v(TAG, prefix + "got item " + i + " (+" + list.size() + ")");
96 dumpMediaItem(item, prefix + "..");
101 void dumpMediaItem(MediaItem item, String prefix) { argument
103 Log.v(TAG, prefix + "getPath() = " + item.getPath());
/packages/apps/Email/emailcommon/src/org/apache/commons/io/filefilter/
H A DPrefixFileFilter.java26 * Filters filenames for a certain prefix.
56 * Constructs a new Prefix file filter for a single prefix.
58 * @param prefix the prefix to allow, must not be null
59 * @throws IllegalArgumentException if the prefix is null
61 public PrefixFileFilter(String prefix) { argument
62 this(prefix, IOCase.SENSITIVE);
66 * Constructs a new Prefix file filter for a single prefix
69 * @param prefix the prefix t
74 PrefixFileFilter(String prefix, IOCase caseSensitivity) argument
[all...]
H A DFileFilterUtils.java49 * @param prefix the filename prefix
50 * @return a prefix checking filter
52 public static IOFileFilter prefixFileFilter(String prefix) { argument
53 return new PrefixFileFilter(prefix);
/packages/apps/Email/emailcommon/src/org/apache/james/mime4j/field/address/parser/
H A DSimpleNode.java70 public String toString(String prefix) { return prefix + toString(); } argument
75 public void dump(String prefix) { argument
76 System.out.println(toString(prefix));
81 n.dump(prefix + " ");
/packages/apps/Email/src/com/android/email/mail/store/imap/
H A DImapString.java164 public final boolean startsWith(String prefix) { argument
165 if (prefix == null) {
169 if (me.length() < prefix.length()) {
172 return me.substring(0, prefix.length()).equalsIgnoreCase(prefix);
/packages/apps/Email/emailcommon/src/org/apache/commons/io/
H A DFilenameUtils.java45 * <li>the prefix - C:\</li>
75 * Both prefix styles are matched always, irrespective of the machine that you are
268 int prefix = getPrefixLength(filename);
269 if (prefix < 0) {
291 for (int i = prefix + 1; i < size; i++) {
300 for (int i = prefix + 1; i < size; i++) {
302 (i == prefix + 1 || array[i - 2] == SYSTEM_SEPARATOR)) {
314 for (int i = prefix + 2; i < size; i++) {
316 (i == prefix + 2 || array[i - 3] == SYSTEM_SEPARATOR)) {
317 if (i == prefix
[all...]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
H A DNameDistance.java53 * Constructor for a matcher that only checks if one string is the exact prefix of the other
77 boolean prefix = true;
80 prefix = false;
84 if (prefix) {
159 int prefix = 0;
164 prefix++;
167 return jaro + Math.min(0.1f, 1f / length2) * prefix * (1 - jaro);
H A DNameSplitter.java83 public String prefix; field in class:NameSplitter.Name
100 public Name(String prefix, String givenNames, String middleName, String familyName, argument
102 this.prefix = prefix;
110 return prefix;
150 prefix = values.getAsString(StructuredName.PREFIX);
168 putValueIfPresent(values, StructuredName.PREFIX, prefix);
187 prefix = null;
211 return "[prefix: " + prefix
558 join(String prefix, String part1, String part2, String part3, String suffix, boolean useSpace, boolean useCommaAfterPart1, boolean useCommaAfterPart3) argument
[all...]
/packages/inputmethods/PinyinIME/src/com/android/inputmethod/pinyin/
H A DEnglishInputProcessor.java35 CharSequence prefix = null;
36 prefix = inputContext.getTextBeforeCursor(2, 0);
/packages/apps/Exchange/src/com/android/exchange/utility/
H A DFileLogger.java67 static public synchronized void log(String prefix, String str) { argument
91 if (prefix != null) {
92 sb.append(prefix);
111 log(prefix, str);
/packages/apps/Gallery2/src/com/android/gallery3d/data/
H A DMediaSource.java29 protected MediaSource(String prefix) { argument
30 mPrefix = prefix;
H A DDataManager.java201 // Group the path by the prefix.
205 String prefix = path.getPrefix();
206 ArrayList<PathId> group = map.get(prefix);
209 map.put(prefix, group);
216 String prefix = entry.getKey();
217 MediaSource source = mSourceMap.get(prefix);
/packages/apps/Email/emailcommon/src/org/apache/james/mime4j/codec/
H A DEncoderUtil.java342 String prefix = ENC_WORD_PREFIX + mimeCharset + "?B?";
343 return encodeB(prefix, text, usedCharacters, charset, bytes);
345 String prefix = ENC_WORD_PREFIX + mimeCharset + "?Q?";
346 return encodeQ(prefix, text, usage, usedCharacters, charset, bytes);
512 private static String encodeB(String prefix, String text, argument
516 int totalLength = prefix.length() + encodedLength
519 return prefix + encodeB(bytes) + ENC_WORD_SUFFIX;
525 String word1 = encodeB(prefix, part1, usedCharacters, charset,
530 String word2 = encodeB(prefix, part2, 0, charset, bytes2);
540 private static String encodeQ(String prefix, Strin argument
[all...]
/packages/apps/Contacts/tests/src/com/android/contacts/util/
H A DNameConverterTests.java64 * @param prefix Expected prefix (null if not expected).
70 private void assertStructuredName(String displayName, String prefix, argument
74 checkNameComponent(StructuredName.PREFIX, prefix, structuredName);
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
H A DNameSplitterTest.java313 private void assertSplitName(String fullName, String prefix, String givenNames, argument
317 assertEquals(prefix, name.getPrefix());
324 private void assertJoinedName(String expected, String prefix, String givenNames, argument
326 assertJoinedName(expected, FullNameStyle.WESTERN, prefix, givenNames, middleName,
330 private void assertJoinedName(String expected, int nameStyle, String prefix, String givenNames, argument
334 name.prefix = prefix;
/packages/apps/Exchange/tests/src/com/android/exchange/provider/
H A DMockProvider.java149 String prefix = uri.getPath() + "/";
151 if (entry.getKey().startsWith(prefix)) {
188 String prefix = path + "/";
190 if (entry.getKey().startsWith(prefix)) {
/packages/apps/Contacts/src/com/android/contacts/interactions/
H A DTestLoaderManager.java222 public void dump(String prefix, FileDescriptor fd, PrintWriter writer, String[] args) { argument
223 mDelegate.dump(prefix, fd, writer, args);
/packages/apps/Tag/src/com/android/apps/tag/record/
H A DUriRecord.java208 String prefix = URI_PREFIX_MAP.get(payload[0]);
209 Preconditions.checkArgument(prefix != null);
212 prefix.getBytes(Charset.forName("UTF-8")),
/packages/apps/Email/src/com/android/email/activity/setup/
H A DAccountSetupIncomingFragment.java333 String prefix = recvAuth.mDomain;
334 if (prefix != null && prefix.length() > 0) {
335 mImapPathPrefixView.setText(prefix.substring(1));
464 String prefix = mImapPathPrefixView.getText().toString().trim();
465 recvAuth.mDomain = TextUtils.isEmpty(prefix) ? null : ("/" + prefix);

Completed in 330 milliseconds

12