Home
last modified time | relevance | path

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

123456

/packages/apps/Calendar/src/com/android/calendar/
DAsyncQueryService.java69 public int token; field in AsyncQueryService.Operation
104 builder.append(token); in toString()
142 public final int cancelOperation(int token) { in cancelOperation() argument
143 return AsyncQueryServiceHelper.cancelOperation(token); in cancelOperation()
169 public void startQuery(int token, Object cookie, Uri uri, String[] projection, in startQuery() argument
176 info.token = token; in startQuery()
201 public void startInsert(int token, Object cookie, Uri uri, ContentValues initialValues, in startInsert() argument
208 info.token = token; in startInsert()
237 public void startUpdate(int token, Object cookie, Uri uri, ContentValues values, in startUpdate() argument
244 info.token = token; in startUpdate()
[all …]
DAsyncQueryServiceHelper.java52 public int token; // Used for cancel field in AsyncQueryServiceHelper.OperationInfo
106 builder.append(token); in toString()
149 return o.token == this.token && o.op == this.op; in equivalent()
190 op.token = info.token; in getLastCancelableOperation()
201 + " token:" + op.token); in getLastCancelableOperation()
216 static public int cancelOperation(int token) { in cancelOperation() argument
221 if (it.next().token == token) { in cancelOperation()
229 Log.d(TAG, "cancelOperation(" + token + ") -> " + canceled); in cancelOperation()
342 Message reply = args.handler.obtainMessage(args.token); in onHandleIntent()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DHanziToPinyin.java97 private void tokenize(char character, Token token) { in tokenize() argument
98 token.source = Character.toString(character); in tokenize()
102 token.type = Token.LATIN; in tokenize()
103 token.target = token.source; in tokenize()
109 token.type = Token.LATIN; in tokenize()
110 token.target = mAsciiTransliterator == null ? token.source : in tokenize()
111 mAsciiTransliterator.transliterate(token.source); in tokenize()
115 token.type = Token.PINYIN; in tokenize()
116 token.target = mPinyinTransliterator.transliterate(token.source); in tokenize()
117 if (TextUtils.isEmpty(token.target) || in tokenize()
[all …]
DSearchIndexManager.java178 public void appendToken(String token) { in appendToken() argument
179 if (TextUtils.isEmpty(token)) { in appendToken()
186 mSbTokens.append(token); in appendToken()
424 for (String token : FTS_TOKEN_SEPARATOR_RE.split(s)) { in splitIntoFtsTokens()
425 if (!TextUtils.isEmpty(token)) { in splitIntoFtsTokens()
426 ret.add(token); in splitIntoFtsTokens()
441 for (String token : splitIntoFtsTokens(query)) { in getFtsMatchQuery()
442 ftsQueryBuilder.addToken(result, token); in getFtsMatchQuery()
448 public abstract void addToken(StringBuilder builder, String token); in addToken() argument
470 public void addToken(StringBuilder builder, String token) { in getDigitsQueryBuilder()
[all …]
DNameSplitter.java237 final String token = nextToken(); in NameTokenizer() local
238 if (token.length() > 0) { in NameTokenizer()
239 final char c = token.charAt(0); in NameTokenizer()
245 if (mEndPointer > 0 && token.charAt(0) == '.') { in NameTokenizer()
247 } else if (mEndPointer > 0 && token.charAt(0) == ',') { in NameTokenizer()
250 mTokens[mEndPointer] = token; in NameTokenizer()
422 String token = tokenizer.nextToken(); in splitChineseName() local
424 name.givenNames = token; in splitChineseName()
427 name.givenNames = token; in splitChineseName()
430 name.givenNames = token; in splitChineseName()
[all …]
DContactLocaleUtils.java383 final Token token = tokens.get(i); in getPinyinNameLookupKeys() local
384 if (Token.UNKNOWN == token.type) { in getPinyinNameLookupKeys()
387 if (Token.PINYIN == token.type) { in getPinyinNameLookupKeys()
388 keyPinyin.insert(0, token.target); in getPinyinNameLookupKeys()
389 keyInitial.insert(0, token.target.charAt(0)); in getPinyinNameLookupKeys()
390 } else if (Token.LATIN == token.type) { in getPinyinNameLookupKeys()
398 keyPinyin.insert(0, token.source); in getPinyinNameLookupKeys()
399 keyInitial.insert(0, token.source.charAt(0)); in getPinyinNameLookupKeys()
401 keyOriginal.insert(0, token.source); in getPinyinNameLookupKeys()
DProfileAwareUriMatcher.java84 String token = tokens[i]; in addURI() local
85 if (token.equals(PROFILE_SEGMENT)) { in addURI()
88 } else if (token.equals(LOOKUP_SEGMENT) in addURI()
89 || token.equals(VCARD_SEGMENT)) { in addURI()
92 } else if (token.equals(ID_SEGMENT)) { in addURI()
94 } else if (token.equals(WILDCARD_SEGMENT)) { in addURI()
/packages/apps/Calendar/tests/src/com/android/calendar/
DAsyncQueryServiceTest.java113 work[index].token = ++mId; in testQuery()
125 aqs.startQuery(work[index].token, work[index].cookie, work[index].uri, in testQuery()
142 work[index].token = ++mId; in testInsert()
152 aqs.startInsert(work[index].token, work[index].cookie, work[index].uri, work[index].values, in testInsert()
168 work[index].token = ++mId; in testUpdate()
180 aqs.startUpdate(work[index].token, work[index].cookie, work[index].uri, work[index].values, in testUpdate()
196 work[index].token = ++mId; in testDelete()
206 aqs.startDelete(work[index].token, in testDelete()
226 work[index].token = ++mId; in testBatch()
239 aqs.startBatch(work[index].token, in testBatch()
[all …]
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/datetime/parser/
DDateTimeParser.java38 private static int parseDigits(Token token) { in parseDigits() argument
39 return Integer.parseInt(token.image, 10); in parseDigits()
198 {if (true) return token.image;} in day_of_week()
411 public Token token, jj_nt; field in DateTimeParser
434 token = new Token(); in DateTimeParser()
446 token = new Token(); in ReInit()
455 token = new Token(); in DateTimeParser()
464 token = new Token(); in ReInit()
472 token = new Token(); in DateTimeParser()
480 token = new Token(); in ReInit()
[all …]
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/contenttype/parser/
DContentTypeParser.java117 public Token token, jj_nt; field in ContentTypeParser
135 token = new Token(); in ContentTypeParser()
147 token = new Token(); in ReInit()
156 token = new Token(); in ContentTypeParser()
165 token = new Token(); in ReInit()
173 token = new Token(); in ContentTypeParser()
181 token = new Token(); in ReInit()
189 if ((oldToken = token).next != null) token = token.next; in jj_consume_token()
190 else token = token.next = token_source.getNextToken(); in jj_consume_token()
192 if (token.kind == kind) { in jj_consume_token()
[all …]
/packages/apps/Email/provider_src/com/android/email/provider/
DContentCache.java193 for (CacheToken token: this) { in invalidateTokens()
194 if (token.getId().equals(id)) { in invalidateTokens()
195 token.invalidate(); in invalidateTokens()
196 removeList.add(token); in invalidateTokens()
200 for (CacheToken token: removeList) { in invalidateTokens()
201 remove(token); in invalidateTokens()
210 for (CacheToken token: this) { in invalidate()
211 token.invalidate(); in invalidate()
216 /*package*/ boolean remove(CacheToken token) { in remove() argument
217 boolean result = super.remove(token); in remove()
[all …]
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/address/parser/
DAddressListParser.java614 jj_la = xla; jj_lastpos = jj_scanpos = token; in jj_2_1()
621 jj_la = xla; jj_lastpos = jj_scanpos = token; in jj_2_2()
700 public Token token, jj_nt; field in AddressListParser
730 token = new Token(); in AddressListParser()
743 token = new Token(); in ReInit()
754 token = new Token(); in AddressListParser()
764 token = new Token(); in ReInit()
774 token = new Token(); in AddressListParser()
783 token = new Token(); in ReInit()
793 if ((oldToken = token).next != null) token = token.next; in jj_consume_token()
[all …]
/packages/apps/Mms/src/com/android/mms/data/
DConversation.java706 public static void asyncDeleteObsoleteThreads(AsyncQueryHandler handler, int token) { in asyncDeleteObsoleteThreads() argument
707 handler.startDelete(token, null, Threads.OBSOLETE_THREADS_URI, null, null); in asyncDeleteObsoleteThreads()
718 public static void startQueryForAll(AsyncQueryHandler handler, int token) { in startQueryForAll() argument
719 handler.cancelOperation(token); in startQueryForAll()
726 startQuery(handler, token, null); in startQueryForAll()
738 public static void startQuery(AsyncQueryHandler handler, int token, String selection) { in startQuery() argument
739 handler.cancelOperation(token); in startQuery()
746 handler.startQuery(token, null, sAllThreadsUri, in startQuery()
759 public static void startDelete(ConversationQueryHandler handler, int token, boolean deleteAll, in startDelete() argument
776 handler.setDeleteToken(token); in startDelete()
[all …]
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadStorageProvider.java117 final long token = Binder.clearCallingIdentity(); in createDocument() local
140 Binder.restoreCallingIdentity(token); in createDocument()
147 final long token = Binder.clearCallingIdentity(); in deleteDocument() local
153 Binder.restoreCallingIdentity(token); in deleteDocument()
165 final long token = Binder.clearCallingIdentity(); in queryDocument() local
175 Binder.restoreCallingIdentity(token); in queryDocument()
187 final long token = Binder.clearCallingIdentity(); in queryChildDocuments() local
198 Binder.restoreCallingIdentity(token); in queryChildDocuments()
210 final long token = Binder.clearCallingIdentity(); in queryChildDocumentsForManage() local
221 Binder.restoreCallingIdentity(token); in queryChildDocumentsForManage()
[all …]
/packages/apps/InCallUI/src/com/android/incallui/
DCallerInfoAsyncQuery.java68 public void onQueryComplete(int token, Object cookie, CallerInfo ci); in onQueryComplete() argument
99 public void startQuery(int token, Object cookie, Uri uri, String[] projection, in startQuery() argument
109 super.startQuery(token, cookie, uri, projection, selection, selectionArgs, orderBy); in startQuery()
217 protected void onQueryComplete(int token, Object cookie, Cursor cursor) { in onQueryComplete() argument
219 Log.d(this, "##### onQueryComplete() ##### query complete for token: " + token); in onQueryComplete()
298 Log.d(this, "constructing CallerInfo object for token: " + token); in onQueryComplete()
303 startQuery(token, endMarker, null, null, null, null, null); in onQueryComplete()
309 " for token: " + token + mCallerInfo); in onQueryComplete()
310 cw.listener.onQueryComplete(token, cw.cookie, mCallerInfo); in onQueryComplete()
338 public static CallerInfoAsyncQuery startQuery(int token, Context context, CallerInfo info, in startQuery() argument
[all …]
/packages/apps/LegacyCamera/jni/feature_stab/src/dbregtest/
Ddbregtest.cpp320 string token; in parse_cmd_line() local
322 while (cmdline >> token) in parse_cmd_line()
326 int pos = token.find("-"); in parse_cmd_line()
330 switch (token[1]) in parse_cmd_line()
333 --c; cmdline >> token; in parse_cmd_line()
334 if (token.compare("rt") == 0) in parse_cmd_line()
338 else if (token.compare("a") == 0) in parse_cmd_line()
342 else if (token.compare("p") == 0) in parse_cmd_line()
371 cerr << progname << "illegal option " << token << endl; in parse_cmd_line()
388 image_list_file_name = token; in parse_cmd_line()
/packages/apps/Camera/jni/feature_stab/src/dbregtest/
Ddbregtest.cpp320 string token; in parse_cmd_line() local
322 while (cmdline >> token) in parse_cmd_line()
326 int pos = token.find("-"); in parse_cmd_line()
330 switch (token[1]) in parse_cmd_line()
333 --c; cmdline >> token; in parse_cmd_line()
334 if (token.compare("rt") == 0) in parse_cmd_line()
338 else if (token.compare("a") == 0) in parse_cmd_line()
342 else if (token.compare("p") == 0) in parse_cmd_line()
371 cerr << progname << "illegal option " << token << endl; in parse_cmd_line()
388 image_list_file_name = token; in parse_cmd_line()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DRichInputMethodManager.java113 public boolean switchToNextInputMethod(final IBinder token, final boolean onlyCurrentIme) { in switchToNextInputMethod() argument
114 if (mImmWrapper.switchToNextInputMethod(token, onlyCurrentIme)) { in switchToNextInputMethod()
119 if (switchToNextInputSubtypeInThisIme(token, onlyCurrentIme)) { in switchToNextInputMethod()
122 return switchToNextInputMethodAndSubtype(token); in switchToNextInputMethod()
125 private boolean switchToNextInputSubtypeInThisIme(final IBinder token, in switchToNextInputSubtypeInThisIme() argument
144 setInputMethodAndSubtype(token, nextSubtype); in switchToNextInputSubtypeInThisIme()
148 private boolean switchToNextInputMethodAndSubtype(final IBinder token) { in switchToNextInputMethodAndSubtype() argument
162 imm.setInputMethod(token, nextImi.getId()); in switchToNextInputMethodAndSubtype()
166 imm.setInputMethodAndSubtype(token, nextImi.getId(), firstSubtype); in switchToNextInputMethodAndSubtype()
381 public void setInputMethodAndSubtype(final IBinder token, final InputMethodSubtype subtype) { in setInputMethodAndSubtype() argument
[all …]
DLatinIME.java491 public void switchSubtype(final IBinder token, final RichInputMethodManager richImm) { in switchSubtype() argument
503 richImm.setInputMethodAndSubtype(token, lastActiveSubtype); in switchSubtype()
506 richImm.switchToNextInputMethod(token, true /* onlyCurrentIme */); in switchSubtype()
1323 final IBinder token = getWindow().getWindow().getAttributes().token; in switchToNextSubtype() local
1325 mRichImm.switchToNextInputMethod(token, false /* onlyCurrentIme */); in switchToNextSubtype()
1328 mSubtypeState.switchSubtype(token, mRichImm); in switchToNextSubtype()
1792 lp.token = windowToken; in showOptionDialog()
1873 final IBinder token = getWindow().getWindow().getAttributes().token; in shouldSwitchToOtherInputMethods() local
1874 if (token == null) { in shouldSwitchToOtherInputMethods()
1877 return mRichImm.shouldOfferSwitchingToNextInputMethod(token, fallbackValue); in shouldSwitchToOtherInputMethods()
[all …]
/packages/services/Telecomm/src/com/android/server/telecom/
DTelecomService.java187 long token = Binder.clearCallingIdentity(); in getDefaultOutgoingPhoneAccount() local
202 Binder.restoreCallingIdentity(token); in getDefaultOutgoingPhoneAccount()
238 long token = Binder.clearCallingIdentity(); in getCallCapablePhoneAccounts() local
246 Binder.restoreCallingIdentity(token); in getCallCapablePhoneAccounts()
253 long token = Binder.clearCallingIdentity(); in getPhoneAccountsSupportingScheme() local
261 Binder.restoreCallingIdentity(token); in getPhoneAccountsSupportingScheme()
359 long token = Binder.clearCallingIdentity(); in getSimCallManagers() local
367 Binder.restoreCallingIdentity(token); in getSimCallManagers()
573 long token = Binder.clearCallingIdentity(); in handlePinMmi() local
578 Binder.restoreCallingIdentity(token); in handlePinMmi()
[all …]
/packages/apps/Mms/src/com/android/mms/util/
DSendingProgressTokenManager.java39 Long token = TOKEN_POOL.get(key); in get() local
41 Log.v(TAG, "TokenManager.get(" + key + ") -> " + token); in get()
43 return token != null ? token : NO_TOKEN; in get()
46 synchronized public static void put(Object key, long token) { in put() argument
48 Log.v(TAG, "TokenManager.put(" + key + ", " + token + ")"); in put()
50 TOKEN_POOL.put(key, token); in put()
/packages/apps/ContactsCommon/src/com/android/contacts/common/database/
DNoNullCursorAsyncQueryHandler.java36 public void startQuery(int token, Object cookie, Uri uri, String[] projection, String selection, in startQuery() argument
39 super.startQuery(token, projectionCookie, uri, projection, selection, selectionArgs, in startQuery()
44 protected final void onQueryComplete(int token, Object cookie, Cursor cursor) { in onQueryComplete() argument
47 super.onQueryComplete(token, projectionCookie.originalCookie, cursor); in onQueryComplete()
52 onNotNullableQueryComplete(token, projectionCookie.originalCookie, cursor); in onQueryComplete()
55 protected abstract void onNotNullableQueryComplete(int token, Object cookie, Cursor cursor); in onNotNullableQueryComplete() argument
/packages/providers/MediaProvider/src/com/android/providers/media/
DMediaDocumentsProvider.java204 final long token = Binder.clearCallingIdentity(); in queryDocument() local
284 Binder.restoreCallingIdentity(token); in queryDocument()
296 final long token = Binder.clearCallingIdentity(); in queryChildDocuments() local
374 Binder.restoreCallingIdentity(token); in queryChildDocuments()
385 final long token = Binder.clearCallingIdentity(); in queryRecentDocuments() local
409 Binder.restoreCallingIdentity(token); in queryRecentDocuments()
438 final long token = Binder.clearCallingIdentity(); in openDocument() local
442 Binder.restoreCallingIdentity(token); in openDocument()
452 final long token = Binder.clearCallingIdentity(); in openDocumentThumbnail() local
468 Binder.restoreCallingIdentity(token); in openDocumentThumbnail()
[all …]
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/structure/v2/
Dpatricia_trie_policy.cpp439 int PatriciaTriePolicy::getNextWordAndNextToken(const int token, int *const outCodePoints, in getNextWordAndNextToken() argument
442 if (token == 0) { in getNextWordAndNextToken()
453 if (token < 0 || token >= terminalPtNodePositionsVectorSize) { in getNextWordAndNextToken()
454 AKLOGE("Given token %d is invalid.", token); in getNextWordAndNextToken()
457 const int terminalPtNodePos = mTerminalPtNodePositionsForIteratingWords[token]; in getNextWordAndNextToken()
461 const int nextToken = token + 1; in getNextWordAndNextToken()
/packages/inputmethods/LatinIME/native/jni/
Dcom_android_inputmethod_latin_BinaryDictionary.cpp294 jlong dict, jint token, jintArray outCodePoints, jbooleanArray outIsBeginningOfSentence) { in latinime_BinaryDictionary_getNextWord() argument
305 const int nextToken = dictionary->getNextWordAndNextToken(token, wordCodePoints, in latinime_BinaryDictionary_getNextWord()
566 int token = 0; in latinime_BinaryDictionary_migrateNative() local
569 token = dictionary->getNextWordAndNextToken(token, wordCodePoints, &wordCodePointCount); in latinime_BinaryDictionary_migrateNative()
589 } while (token != 0); in latinime_BinaryDictionary_migrateNative()
593 token = dictionary->getNextWordAndNextToken(token, wordCodePoints, &wordCodePointCount); in latinime_BinaryDictionary_migrateNative()
613 } while (token != 0); in latinime_BinaryDictionary_migrateNative()

123456