Searched defs:prefix (Results 1 - 25 of 51) sorted by relevance

123

/packages/apps/Bluetooth/src/com/android/bluetooth/pbapclient/
H A DBluetoothPbapCard.java42 public final String prefix; field in class:BluetoothPbapCard
59 prefix = parsedName.length < 4 ? null : parsedName[3];
73 json.put("prefix", prefix);
91 json.put("prefix", name.getPrefix());
H A DPhonebookEntry.java32 public String prefix; field in class:PhonebookEntry.Name
47 (prefix == n.prefix || prefix != null && prefix.equals(n.prefix)) &&
56 result = 23 * result + (prefix == null ? 0 : prefix.hashCode());
70 sb.append(" prefix: ");
71 sb.append(prefix);
[all...]
/packages/apps/UnifiedEmail/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/UnifiedEmail/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/UnifiedEmail/tests/src/com/android/mail/browse/
H A DMessageHeaderViewTest.java59 private static String[] makeRecipientArray(String prefix, int len) { argument
62 arr[i] = String.format("\"%s%02d\" <foo@bar.com>", prefix, i);
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
H A DTestUtils.java92 public static final String dumpToCacheDir(Context context, String prefix, String suffix, argument
95 File file = File.createTempFile(prefix, suffix, context.getCacheDir());
/packages/apps/ContactsCommon/src/com/android/contacts/common/format/
H A DTextHighlighter.java45 * Sets the text on the given text view, highlighting the word that matches the given prefix.
49 * @param prefix the prefix to look for
51 public void setPrefixText(TextView view, String text, String prefix) { argument
52 view.setText(applyPrefixHighlight(text, prefix));
71 * Returns a CharSequence which highlights the given prefix if found in the given text.
74 * @param prefix the prefix to look for
76 public CharSequence applyPrefixHighlight(CharSequence text, String prefix) { argument
77 if (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, String prefix) { argument
142 if (prefix == null || text == null) {
147 int prefixLength = prefix.length();
167 if (Character.toUpperCase(text.charAt(i + j)) != prefix.charAt(j)) {
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/util/
H A DNameConverterTests.java66 * @param prefix Expected prefix (null if not expected).
72 private void assertStructuredName(String displayName, String prefix, argument
76 checkNameComponent(StructuredName.PREFIX, prefix, structuredName);
/packages/apps/TV/common/src/com/android/tv/common/
H A DSoftPreconditions.java141 public static void warn(String tag, String prefix, String msg, Exception e) argument
148 logMessage = prefix;
149 } else if (TextUtils.isEmpty(prefix)) {
152 logMessage = prefix + ": " + msg;
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
H A DAbstractMailActivity.java94 public void dump(String prefix, FileDescriptor fd, PrintWriter writer, String[] args) { argument
95 super.dump(prefix, fd, writer, args);
98 getLoaderManager().dump(prefix, fd, writer, args);
99 getFragmentManager().dump(prefix, fd, writer, args);
/packages/apps/Contacts/tests/src/com/android/contacts/interactions/
H A DTestLoaderManager.java173 public void dump(String prefix, FileDescriptor fd, PrintWriter writer, String[] args) { argument
174 mDelegate.dump(prefix, fd, writer, args);
/packages/apps/Gallery2/src/com/android/gallery3d/data/
H A DMediaSource.java29 protected MediaSource(String prefix) { argument
30 mPrefix = prefix;
/packages/apps/UnifiedEmail/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/Email/provider_src/com/android/email/mail/store/imap/
H A DImapString.java163 public final boolean startsWith(String prefix) { argument
164 if (prefix == null) {
168 if (me.length() < prefix.length()) {
171 return me.substring(0, prefix.length()).equalsIgnoreCase(prefix);
/packages/apps/UnifiedEmail/src/com/android/mail/content/
H A DObjectCursorLoader.java172 public void dump(String prefix, FileDescriptor fd, PrintWriter writer, String[] args) { argument
173 super.dump(prefix, fd, writer, args);
174 writer.print(prefix); writer.print("mUri="); writer.println(mUri);
175 writer.print(prefix); writer.print("mProjection=");
177 writer.print(prefix); writer.print("mSelection="); writer.println(mSelection);
178 writer.print(prefix); writer.print("mSelectionArgs=");
180 writer.print(prefix); writer.print("mSortOrder="); writer.println(mSortOrder);
181 writer.print(prefix); writer.print("mCursor="); writer.println(mCursor);
/packages/apps/UnifiedEmail/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/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
H A DKeyboardTextsSet.java131 private int expandReference(final String text, final int pos, final String prefix, argument
133 final int prefixLength = prefix.length();
136 if (prefix.equals(PREFIX_TEXT)) {
/packages/inputmethods/LatinIME/tools/make-keyboard-text/src/com/android/inputmethod/keyboard/tools/
H A DMoreKeysResources.java234 private static String addPrefix(final String prefix, final String lines) { argument
237 sb.append(prefix + line.trim() + "\n");
/packages/services/Telephony/src/com/android/phone/common/mail/store/imap/
H A DImapString.java169 public final boolean startsWith(String prefix) { argument
170 if (prefix == null) {
174 if (me.length() < prefix.length()) {
177 return me.substring(0, prefix.length()).equalsIgnoreCase(prefix);
/packages/services/Telephony/src/com/android/services/telephony/
H A DLog.java45 public static void d(String prefix, String format, Object... args) { argument
47 android.util.Log.d(TAG, buildMessage(prefix, format, args));
57 public static void i(String prefix, String format, Object... args) { argument
59 android.util.Log.i(TAG, buildMessage(prefix, format, args));
69 public static void v(String prefix, String format, Object... args) { argument
71 android.util.Log.v(TAG, buildMessage(prefix, format, args));
81 public static void w(String prefix, String format, Object... args) { argument
83 android.util.Log.w(TAG, buildMessage(prefix, format, args));
93 public static void e(String prefix, Throwable tr, String format, Object... args) { argument
95 android.util.Log.e(TAG, buildMessage(prefix, forma
106 wtf(String prefix, Throwable tr, String format, Object... args) argument
115 wtf(String prefix, String format, Object... args) argument
167 buildMessage(String prefix, String format, Object... args) argument
[all...]
/packages/services/Telephony/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/ExactCalculator/src/com/android/calculator2/
H A DCalculatorText.java214 private static boolean startsWith(CharSequence whole, CharSequence prefix) { argument
216 int prefixLen = prefix.length();
221 if (prefix.charAt(i) != whole.charAt(i)) {

Completed in 1205 milliseconds

123