/packages/apps/Calendar/src/com/android/calendar/ |
D | AsyncQueryService.java | 69 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 …]
|
D | AsyncQueryServiceHelper.java | 52 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/ |
D | HanziToPinyin.java | 97 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 …]
|
D | SearchIndexManager.java | 178 public void appendToken(String token) { in appendToken() argument 179 if (TextUtils.isEmpty(token)) { in appendToken() 186 mSbTokens.append(token); in appendToken() 418 for (String token : FTS_TOKEN_SEPARATOR_RE.split(s)) { in splitIntoFtsTokens() 419 if (!TextUtils.isEmpty(token)) { in splitIntoFtsTokens() 420 ret.add(token); in splitIntoFtsTokens() 435 for (String token : splitIntoFtsTokens(query)) { in getFtsMatchQuery() 436 ftsQueryBuilder.addToken(result, token); in getFtsMatchQuery() 442 public abstract void addToken(StringBuilder builder, String token); in addToken() argument 464 public void addToken(StringBuilder builder, String token) { in getDigitsQueryBuilder() [all …]
|
D | NameSplitter.java | 237 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 …]
|
D | ContactLocaleUtils.java | 366 final Token token = tokens.get(i); in getPinyinNameLookupKeys() local 367 if (Token.UNKNOWN == token.type) { in getPinyinNameLookupKeys() 370 if (Token.PINYIN == token.type) { in getPinyinNameLookupKeys() 371 keyPinyin.insert(0, token.target); in getPinyinNameLookupKeys() 372 keyInitial.insert(0, token.target.charAt(0)); in getPinyinNameLookupKeys() 373 } else if (Token.LATIN == token.type) { in getPinyinNameLookupKeys() 381 keyPinyin.insert(0, token.source); in getPinyinNameLookupKeys() 382 keyInitial.insert(0, token.source.charAt(0)); in getPinyinNameLookupKeys() 384 keyOriginal.insert(0, token.source); in getPinyinNameLookupKeys()
|
D | ProfileAwareUriMatcher.java | 78 String token = tokens[i]; in addURI() local 79 if (token.equals(PROFILE_SEGMENT)) { in addURI() 82 } else if (token.equals(LOOKUP_SEGMENT) in addURI() 83 || token.equals(VCARD_SEGMENT)) { in addURI() 86 } else if (token.equals(ID_SEGMENT)) { in addURI() 88 } else if (token.equals(WILDCARD_SEGMENT)) { in addURI()
|
/packages/apps/Calendar/tests/src/com/android/calendar/ |
D | AsyncQueryServiceTest.java | 113 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/Email/src/org/apache/james/mime4j/field/datetime/parser/ |
D | DateTimeParser.java | 38 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/Email/src/org/apache/james/mime4j/field/contenttype/parser/ |
D | ContentTypeParser.java | 117 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/src/com/android/email/provider/ |
D | ContentCache.java | 192 for (CacheToken token: this) { in invalidateTokens() 193 if (token.getId().equals(id)) { in invalidateTokens() 194 token.invalidate(); in invalidateTokens() 195 removeList.add(token); in invalidateTokens() 199 for (CacheToken token: removeList) { in invalidateTokens() 200 remove(token); in invalidateTokens() 209 for (CacheToken token: this) { in invalidate() 210 token.invalidate(); in invalidate() 215 /*package*/ boolean remove(CacheToken token) { in remove() argument 216 boolean result = super.remove(token); in remove() [all …]
|
/packages/apps/Email/src/org/apache/james/mime4j/field/address/parser/ |
D | AddressListParser.java | 614 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/ |
D | Conversation.java | 706 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/inputmethods/PinyinIME/jni/share/ |
D | dictbuilder.cpp | 401 char16 *token; in read_raw_dict() local 405 token = utf16_strtok(to_tokenize, &token_size, &to_tokenize); in read_raw_dict() 406 if (NULL == token) { in read_raw_dict() 412 size_t lemma_size = utf16_strlen(token); in read_raw_dict() 425 utf16_strcpy(lemma_arr_[i].hanzi_str, token); in read_raw_dict() 430 token = utf16_strtok(to_tokenize, &token_size, &to_tokenize); in read_raw_dict() 431 if (NULL == token) { in read_raw_dict() 436 lemma_arr_[i].freq = utf16_atof(token); in read_raw_dict() 446 token = utf16_strtok(to_tokenize, &token_size, &to_tokenize); in read_raw_dict() 447 assert(NULL != token); in read_raw_dict() [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
D | RichInputMethodManager.java | 116 public boolean switchToNextInputMethod(final IBinder token, final boolean onlyCurrentIme) { in switchToNextInputMethod() argument 117 if (mImmWrapper.switchToNextInputMethod(token, onlyCurrentIme)) { in switchToNextInputMethod() 122 if (switchToNextInputSubtypeInThisIme(token, onlyCurrentIme)) { in switchToNextInputMethod() 125 return switchToNextInputMethodAndSubtype(token); in switchToNextInputMethod() 128 private boolean switchToNextInputSubtypeInThisIme(final IBinder token, in switchToNextInputSubtypeInThisIme() argument 147 setInputMethodAndSubtype(token, nextSubtype); in switchToNextInputSubtypeInThisIme() 151 private boolean switchToNextInputMethodAndSubtype(final IBinder token) { in switchToNextInputMethodAndSubtype() argument 165 imm.setInputMethod(token, nextImi.getId()); in switchToNextInputMethodAndSubtype() 169 imm.setInputMethodAndSubtype(token, nextImi.getId(), firstSubtype); in switchToNextInputMethodAndSubtype() 356 public void setInputMethodAndSubtype(final IBinder token, final InputMethodSubtype subtype) { in setInputMethodAndSubtype() argument [all …]
|
/packages/apps/Gallery2/jni_mosaic/feature_stab/src/dbregtest/ |
D | dbregtest.cpp | 320 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/ |
D | dbregtest.cpp | 320 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/LegacyCamera/jni/feature_stab/src/dbregtest/ |
D | dbregtest.cpp | 320 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/Mms/src/com/android/mms/util/ |
D | SendingProgressTokenManager.java | 37 Long token = TOKEN_POOL.get(key); in get() local 39 Log.v(TAG, "TokenManager.get(" + key + ") -> " + token); in get() 41 return token != null ? token : NO_TOKEN; in get() 44 synchronized public static void put(Object key, long token) { in put() argument 46 Log.v(TAG, "TokenManager.put(" + key + ", " + token + ")"); in put() 48 TOKEN_POOL.put(key, token); in put()
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/database/ |
D | NoNullCursorAsyncQueryHandler.java | 36 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/apps/Dialer/src/com/android/dialer/calllog/ |
D | CallLogQueryHandler.java | 181 private void fetchCalls(int token, int requestId, boolean isNew, int callType) { in fetchCalls() argument 201 startQuery(token, requestId, uri, in fetchCalls() 272 protected void onNotNullableQueryComplete(int token, Object cookie, Cursor cursor) { in onNotNullableQueryComplete() argument 273 if (token == QUERY_NEW_CALLS_TOKEN) { in onNotNullableQueryComplete() 284 } else if (token == QUERY_OLD_CALLS_TOKEN) { in onNotNullableQueryComplete() 295 } else if (token == QUERY_VOICEMAIL_STATUS_TOKEN) { in onNotNullableQueryComplete() 299 Log.w(TAG, "Unknown query completed: ignoring: " + token); in onNotNullableQueryComplete()
|
/packages/apps/Mms/src/com/android/mms/ui/ |
D | ConversationList.java | 724 int token = DELETE_CONVERSATION_TOKEN; in onClick() 726 Conversation.startDeleteAll(mHandler, token, mDeleteLockedMessages); in onClick() 729 Conversation.startDelete(mHandler, token, mDeleteLockedMessages, in onClick() 783 protected void onQueryComplete(int token, Object cookie, Cursor cursor) { in onQueryComplete() argument 784 switch (token) { in onQueryComplete() 835 Log.e(TAG, "onQueryComplete called with unknown token " + token); in onQueryComplete() 840 protected void onDeleteComplete(int token, Object cookie, int result) { in onDeleteComplete() argument 841 super.onDeleteComplete(token, cookie, result); in onDeleteComplete() 842 switch (token) { in onDeleteComplete()
|
/packages/apps/Gallery2/src/com/android/gallery3d/provider/ |
D | GalleryProvider.java | 90 long token = Binder.clearCallingIdentity(); in getType() local 96 Binder.restoreCallingIdentity(token); in getType() 116 long token = Binder.clearCallingIdentity(); in query() local 131 Binder.restoreCallingIdentity(token); in query() 175 long token = Binder.clearCallingIdentity(); in openFile() local 191 Binder.restoreCallingIdentity(token); in openFile()
|
/packages/apps/Email/tests/src/com/android/email/provider/ |
D | ContentCacheTests.java | 210 CacheToken token = cache.getCacheToken("1"); in testContentCacheRemoveEldestEntry() local 212 cache.putCursor(cursor1, "1", SIMPLE_PROJECTION, token); in testContentCacheRemoveEldestEntry() 218 token = cache.getCacheToken("2"); in testContentCacheRemoveEldestEntry() 220 cache.putCursor(cursor1, "2", SIMPLE_PROJECTION, token); in testContentCacheRemoveEldestEntry() 238 token = cache.getCacheToken("3"); in testContentCacheRemoveEldestEntry() 240 cache.putCursor(cursor1, "3", SIMPLE_PROJECTION, token); in testContentCacheRemoveEldestEntry()
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/mail/ |
D | Address.java | 122 Rfc822Token token = tokens[i]; in isAllValid() local 123 String address = token.getAddress(); in isAllValid() 146 Rfc822Token token = tokens[i]; in parse() local 147 String address = token.getAddress(); in parse() 150 String name = token.getName(); in parse()
|