Searched refs:token (Results 1 - 25 of 135) sorted by relevance

123456

/packages/providers/ContactsProvider/src/com/android/providers/contacts/
H A DHanziToPinyin.java60 * Type of this token, ASCII, PINYIN or UNKNOWN.
98 private void tokenize(char character, Token token) { argument
99 token.source = Character.toString(character);
103 token.type = Token.LATIN;
104 token.target = token.source;
110 token.type = Token.LATIN;
111 token.target = mAsciiTransliterator == null ? token.source :
112 mAsciiTransliterator.transliterate(token
[all...]
H A DProfileAwareUriMatcher.java79 // Keep track of whether we've passed a "lookup" token in the path; wildcards after
80 // that token will be interpreted as lookup keys. For our purposes, vcard paths
84 String token = tokens[i];
85 if (token.equals(PROFILE_SEGMENT)) {
88 } else if (token.equals(LOOKUP_SEGMENT)
89 || token.equals(VCARD_SEGMENT)) {
92 } else if (token.equals(ID_SEGMENT)) {
94 } else if (token.equals(WILDCARD_SEGMENT)) {
H A DSearchIndexManager.java178 public void appendToken(String token) { argument
179 if (TextUtils.isEmpty(token)) {
186 mSbTokens.append(token);
200 // Then, if the name contains more than one FTS token, put each token into the index
213 // So, here, we put each token in a name into the index too. In the case above,
424 for (String token : FTS_TOKEN_SEPARATOR_RE.split(s)) {
425 if (!TextUtils.isEmpty(token)) {
426 ret.add(token);
433 * Tokenizes the query and normalizes/hex encodes each token
448 addToken(StringBuilder builder, String token) argument
492 addToken(StringBuilder builder, String token) argument
504 addToken(StringBuilder builder, String token) argument
[all...]
/packages/apps/Calendar/src/com/android/calendar/
H A DAsyncQueryService.java69 public int token; field in class:AsyncQueryService.Operation
103 builder.append(", token=");
104 builder.append(token);
117 * returns a practically unique token for db operations
138 * @param token The token representing the operation to be canceled. If
139 * multiple operations have the same token they will all be
142 public final int cancelOperation(int token) { argument
143 return AsyncQueryServiceHelper.cancelOperation(token);
150 * @param token
169 startQuery(int token, Object cookie, Uri uri, String[] projection, String selection, String[] selectionArgs, String orderBy) argument
201 startInsert(int token, Object cookie, Uri uri, ContentValues initialValues, long delayMillis) argument
237 startUpdate(int token, Object cookie, Uri uri, ContentValues values, String selection, String[] selectionArgs, long delayMillis) argument
274 startDelete(int token, Object cookie, Uri uri, String selection, String[] selectionArgs, long delayMillis) argument
305 startBatch(int token, Object cookie, String authority, ArrayList<ContentProviderOperation> cpo, long delayMillis) argument
329 onQueryComplete(int token, Object cookie, Cursor cursor) argument
344 onInsertComplete(int token, Object cookie, Uri uri) argument
359 onUpdateComplete(int token, Object cookie, int result) argument
374 onDeleteComplete(int token, Object cookie, int result) argument
391 onBatchComplete(int token, Object cookie, ContentProviderResult[] results) argument
[all...]
H A DAsyncQueryServiceHelper.java52 public int token; // Used for cancel field in class:AsyncQueryServiceHelper.OperationInfo
105 builder.append("OperationInfo [\n\t token= ");
106 builder.append(token);
149 return o.token == this.token && o.op == this.op;
190 op.token = info.token;
201 + " token:" + op.token);
212 * @param token Th
216 cancelOperation(int token) argument
[all...]
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/contenttype/parser/
H A DContentTypeParser.java117 public Token token, jj_nt; field in class:ContentTypeParser
135 token = new Token();
147 token = new Token();
156 token = new Token();
165 token = new Token();
173 token = new Token();
181 token = new Token();
189 if ((oldToken = token).next != null) token = token
[all...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/
H A DInputMethodManagerCompatWrapper.java43 public boolean switchToNextInputMethod(final IBinder token, final boolean onlyCurrentIme) { argument
45 METHOD_switchToNextInputMethod, token, onlyCurrentIme);
48 public boolean shouldOfferSwitchingToNextInputMethod(final IBinder token) { argument
50 METHOD_shouldOfferSwitchingToNextInputMethod, token);
/packages/services/Telephony/src/org/apache/james/mime4j/field/contenttype/parser/
H A DContentTypeParser.java117 public Token token, jj_nt; field in class:ContentTypeParser
135 token = new Token();
147 token = new Token();
156 token = new Token();
165 token = new Token();
173 token = new Token();
181 token = new Token();
189 if ((oldToken = token).next != null) token = token
[all...]
/packages/apps/ContactsCommon/src/com/android/contacts/common/database/
H A DNoNullCursorAsyncQueryHandler.java36 public void startQuery(int token, Object cookie, Uri uri, String[] projection, String selection, argument
39 super.startQuery(token, projectionCookie, uri, projection, selection, selectionArgs,
44 protected final void onQueryComplete(int token, Object cookie, Cursor cursor) { argument
47 super.onQueryComplete(token, projectionCookie.originalCookie, cursor);
52 onNotNullableQueryComplete(token, projectionCookie.originalCookie, cursor);
55 protected abstract void onNotNullableQueryComplete(int token, Object cookie, Cursor cursor); argument
/packages/services/Telecomm/src/com/android/server/telecom/
H A DInCallAdapter.java51 long token = Binder.clearCallingIdentity();
63 Binder.restoreCallingIdentity(token);
74 long token = Binder.clearCallingIdentity();
86 Binder.restoreCallingIdentity(token);
97 long token = Binder.clearCallingIdentity();
109 Binder.restoreCallingIdentity(token);
120 long token = Binder.clearCallingIdentity();
132 Binder.restoreCallingIdentity(token);
143 long token = Binder.clearCallingIdentity();
155 Binder.restoreCallingIdentity(token);
[all...]
H A DCallerInfoAsyncQueryFactory.java23 CallerInfoAsyncQuery startQuery(int token, Context context, String number, argument
H A DTelecomServiceImpl.java122 long token = Binder.clearCallingIdentity();
130 Binder.restoreCallingIdentity(token);
162 long token = Binder.clearCallingIdentity();
170 Binder.restoreCallingIdentity(token);
188 long token = Binder.clearCallingIdentity();
196 Binder.restoreCallingIdentity(token);
214 long token = Binder.clearCallingIdentity();
222 Binder.restoreCallingIdentity(token);
234 long token = Binder.clearCallingIdentity();
243 Binder.restoreCallingIdentity(token);
[all...]
H A DConnectionServiceWrapper.java71 long token = Binder.clearCallingIdentity();
79 Binder.restoreCallingIdentity(token);
87 long token = Binder.clearCallingIdentity();
99 Binder.restoreCallingIdentity(token);
107 long token = Binder.clearCallingIdentity();
119 Binder.restoreCallingIdentity(token);
127 long token = Binder.clearCallingIdentity();
137 Binder.restoreCallingIdentity(token);
145 long token = Binder.clearCallingIdentity();
157 Binder.restoreCallingIdentity(token);
[all...]
/packages/apps/Contacts/src/com/android/contacts/util/
H A DNotifyingAsyncQueryHandler.java40 void onQueryComplete(int token, Object cookie, Cursor cursor); argument
58 protected void onQueryComplete(int token, Object cookie, Cursor cursor) { argument
61 listener.onQueryComplete(token, cookie, cursor);
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
H A DStringUtils.java12 * Additionally, each token is first passed through {@link BidiFormatter#unicodeWrap(String)}
21 * Additionally, each token is first passed through {@link BidiFormatter#unicodeWrap(String)}
28 for (String token : tokens) {
34 sb.append(bidiFormatter.unicodeWrap(token));
/packages/apps/Dialer/src/com/android/dialer/database/
H A DFilteredNumberAsyncQueryHandler.java47 protected void onQueryComplete(int token, Object cookie, Cursor cursor) { argument
49 protected void onInsertComplete(int token, Object cookie, Uri uri) { argument
51 protected void onUpdateComplete(int token, Object cookie, int result) { argument
53 protected void onDeleteComplete(int token, Object cookie, int result) { argument
91 protected void onQueryComplete(int token, Object cookie, Cursor cursor) { argument
93 ((Listener) cookie).onQueryComplete(token, cookie, cursor);
98 protected void onInsertComplete(int token, Object cookie, Uri uri) { argument
100 ((Listener) cookie).onInsertComplete(token, cookie, uri);
105 protected void onUpdateComplete(int token, Object cookie, int result) { argument
107 ((Listener) cookie).onUpdateComplete(token, cooki
112 onDeleteComplete(int token, Object cookie, int result) argument
[all...]
/packages/inputmethods/LatinIME/tools/dicttool/compat/android/text/
H A DTextUtils.java73 for (Object token: tokens) {
79 sb.append(token);
92 for (Object token: tokens) {
98 sb.append(token);
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/datetime/parser/
H A DDateTimeParser.java38 private static int parseDigits(Token token) { argument
39 return Integer.parseInt(token.image, 10);
198 {if (true) return token.image;}
411 public Token token, jj_nt; field in class:DateTimeParser
434 token = new Token();
446 token = new Token();
455 token = new Token();
464 token = new Token();
472 token = new Token();
480 token
[all...]
/packages/services/Telephony/src/org/apache/james/mime4j/field/datetime/parser/
H A DDateTimeParser.java38 private static int parseDigits(Token token) { argument
39 return Integer.parseInt(token.image, 10);
198 {if (true) return token.image;}
411 public Token token, jj_nt; field in class:DateTimeParser
434 token = new Token();
446 token = new Token();
455 token = new Token();
464 token = new Token();
472 token = new Token();
480 token
[all...]
/packages/apps/Dialer/InCallUI/src/com/android/incallui/
H A DCallerInfoAsyncQuery.java82 public void onQueryComplete(int token, Object cookie, CallerInfo ci); argument
112 public void startQuery(int token, Object cookie, Uri uri, String[] projection, argument
122 super.startQuery(token, cookie, uri, projection, selection, selectionArgs, orderBy);
173 Log.d(this, "Processing event: " + cw.event + " token (arg1): " + msg.arg1 +
190 // passing the original token value back to the caller
229 protected void onQueryComplete(int token, Object cookie, Cursor cursor) { argument
231 Log.d(this, "##### onQueryComplete() ##### query complete for token: " + token);
249 // check the token and if needed, create the callerinfo object.
310 Log.d(this, "constructing CallerInfo object for token
339 startQuery(final int token, final Context context, final CallerInfo info, final OnQueryCompleteListener listener, final Object cookie) argument
370 startDefaultDirectoryQuery(int token, Context context, CallerInfo info, OnQueryCompleteListener listener, Object cookie) argument
388 startQueryInternal(int token, Context context, CallerInfo info, OnQueryCompleteListener listener, Object cookie, Uri contactRef) argument
425 startOtherDirectoriesQuery(int token, Context context, CallerInfo info, OnQueryCompleteListener listener, Object cookie) argument
501 onQueryComplete(int token, Object cookie, CallerInfo ci) argument
514 onDirectoryQueryComplete(int token, Object cookie, CallerInfo ci, long directoryId) argument
[all...]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
H A DVer4DictDecoder.java67 int token = 0;
71 binaryDictionary.getNextWordProperty(token);
81 token = result.mNextToken;
82 } while (token != 0);
/packages/apps/Dialer/src/com/android/dialer/calllog/
H A DVoicemailQueryHandler.java32 /** The token for the query to mark all new voicemails as old. */
58 protected void onUpdateComplete(int token, Object cookie, int result) { argument
59 if (token == UPDATE_MARK_VOICEMAILS_AS_OLD_TOKEN) {
66 Log.w(TAG, "Unknown update completed: ignoring: " + token);
/packages/apps/Email/provider_src/com/android/email/provider/
H A DContentCache.java54 * 1. Get a CacheToken: CacheToken token = cache.getToken(id);
56 * 3. Put the cursor in the cache: cache.putCursor(cursor, id, token);
177 * A list of tokens that are in use at any moment; there can be more than one token for an id
193 for (CacheToken token: this) {
194 if (token.getId().equals(id)) {
195 token.invalidate();
196 removeList.add(token);
200 for (CacheToken token: removeList) {
201 remove(token);
210 for (CacheToken token
216 remove(CacheToken token) argument
264 equals(Object token) argument
475 putCursor(Cursor c, String id, String[] projection, CacheToken token) argument
482 putCursorImpl(Cursor c, String id, String[] projection, CacheToken token) argument
[all...]
/packages/apps/LegacyCamera/jni/feature_stab/src/dbregtest/
H A Ddbregtest.cpp320 string token; local
322 while (cmdline >> token)
326 int pos = token.find("-");
330 switch (token[1])
333 --c; cmdline >> token; local
334 if (token.compare("rt") == 0)
338 else if (token.compare("a") == 0)
342 else if (token.compare("p") == 0)
371 cerr << progname << "illegal option " << token << endl;
388 image_list_file_name = token;
[all...]
/packages/apps/Calendar/tests/src/com/android/calendar/
H A DAsyncQueryServiceTest.java113 work[index].token = ++mId;
125 aqs.startQuery(work[index].token, work[index].cookie, work[index].uri,
142 work[index].token = ++mId;
152 aqs.startInsert(work[index].token, work[index].cookie, work[index].uri, work[index].values,
168 work[index].token = ++mId;
180 aqs.startUpdate(work[index].token, work[index].cookie, work[index].uri, work[index].values,
196 work[index].token = ++mId;
206 aqs.startDelete(work[index].token,
226 work[index].token = ++mId;
239 aqs.startBatch(work[index].token,
495 onQueryComplete(int token, Object cookie, Cursor cursor) argument
514 onInsertComplete(int token, Object cookie, Uri uri) argument
527 onUpdateComplete(int token, Object cookie, int result) argument
540 onDeleteComplete(int token, Object cookie, int result) argument
553 onBatchComplete(int token, Object cookie, ContentProviderResult[] results) argument
[all...]

Completed in 652 milliseconds

123456