/packages/apps/Contacts/src/com/android/contacts/format/ |
H A D | PrefixHighlighter.java | 36 * 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 D | FormatUtils.java | 134 * 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/filefilter/ |
H A D | PrefixFileFilter.java | 26 * 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 D | FileFilterUtils.java | 49 * @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/util/ |
H A D | TempPath.java | 30 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 D | SimpleTempStorage.java | 54 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/Exchange/src/com/android/exchange/utility/ |
H A D | FileLogger.java | 67 static public synchronized void log(String prefix, String str) { argument 91 if (prefix != null) { 92 sb.append(prefix); 111 log(prefix, str);
|
/packages/apps/Contacts/tests/src/com/android/contacts/util/ |
H A D | NameConverterTests.java | 64 * @param prefix Expected prefix (null if not expected). 70 private void assertStructuredName(String displayName, String prefix, argument 74 checkNameComponent(StructuredName.PREFIX, prefix, structuredName);
|
/packages/apps/Contacts/src/com/android/contacts/interactions/ |
H A D | TestLoaderManager.java | 222 public void dump(String prefix, FileDescriptor fd, PrintWriter writer, String[] args) { argument 223 mDelegate.dump(prefix, fd, writer, args);
|
/packages/apps/Email/emailcommon/src/org/apache/commons/io/output/ |
H A D | DeferredFileOutputStream.java | 72 * 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/data/ |
H A D | MediaSource.java | 29 protected MediaSource(String prefix) { argument 30 mPrefix = prefix;
|
/packages/apps/Gallery2/tests/src/com/android/gallery3d/data/ |
H A D | RealDataTest.java | 80 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/james/mime4j/field/address/parser/ |
H A D | SimpleNode.java | 70 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 D | ImapString.java | 164 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/james/mime4j/codec/ |
H A D | EncoderUtil.java | 342 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/Settings/src/com/android/settings/vpn2/ |
H A D | VpnDialog.java | 301 private void loadCertificates(Spinner spinner, String prefix, int firstId, String selected) { argument 304 String[] certificates = mKeyStore.saw(prefix);
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
H A D | NameSplitterTest.java | 313 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/Contacts/src/com/android/contacts/group/ |
H A D | SuggestedMemberListAdapter.java | 170 protected FilterResults performFiltering(CharSequence prefix) { argument 172 if (mContentResolver == null || TextUtils.isEmpty(prefix)) { 185 String searchQuery = prefix.toString() + "%";
|
/packages/apps/Email/src/com/android/email/mail/store/ |
H A D | ImapStore.java | 391 // This ensures a valid prefix if the prefix is automatically set by the server 462 * Returns whether or not the prefix has been set by the user. This can be determined by 463 * the fact that the prefix is set, but, the path separator is not set. 474 /** Sets the prefix */ 490 * Fixes the path prefix, if necessary. The path prefix must always end with the 494 // Make sure the path prefix ends with the path separator 538 * Prepends the folder name with the given prefix and UTF-7 encodes it. 540 static String encodeFolderName(String name, String prefix) { argument 560 decodeFolderName(String name, String prefix) argument [all...] |
/packages/apps/Exchange/src/com/android/exchange/ |
H A D | AbstractSyncService.java | 118 public AbstractSyncService(String prefix) { argument
|
/packages/apps/Mms/src/com/android/mms/dom/ |
H A D | NodeImpl.java | 201 public void setPrefix(String prefix) throws DOMException { argument 253 public String lookupNamespaceURI(String prefix) { argument
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
H A D | GLView.java | 426 void dumpTree(String prefix) { argument 427 Log.d(TAG, prefix + getClass().getSimpleName()); 429 getComponent(i).dumpTree(prefix + "....");
|
/packages/apps/Settings/src/com/android/settings/wifi/ |
H A D | WifiConfigController.java | 684 private void loadCertificates(Spinner spinner, String prefix) { argument 688 String[] certs = KeyStore.getInstance().saw(prefix); 704 private void setCertificate(Spinner spinner, String prefix, String cert) { argument 705 prefix = KEYSTORE_SPACE + prefix; 706 if (cert != null && cert.startsWith(prefix)) { 707 setSelection(spinner, cert.substring(prefix.length()));
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
H A D | NameSplitter.java | 83 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/apps/Settings/src/com/android/settings/applications/ |
H A D | ManageApplications.java | 379 ArrayList<ApplicationsState.AppEntry> applyPrefixFilter(CharSequence prefix, argument 381 if (prefix == null || prefix.length() == 0) { 384 String prefixStr = ApplicationsState.normalize(prefix.toString());
|