Home
last modified time | relevance | path

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

123456

/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DHanziToPinyin.java98 private void tokenize(char character, Token token) { in tokenize() argument
99 token.source = Character.toString(character); in tokenize()
103 token.type = Token.LATIN; in tokenize()
104 token.target = token.source; in tokenize()
110 token.type = Token.LATIN; in tokenize()
111 token.target = mAsciiTransliterator == null ? token.source : in tokenize()
112 mAsciiTransliterator.transliterate(token.source); in tokenize()
116 token.type = Token.PINYIN; in tokenize()
117 token.target = mPinyinTransliterator.transliterate(token.source); in tokenize()
118 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 …]
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/services/Telecomm/src/com/android/server/telecom/
DInCallAdapter.java51 long token = Binder.clearCallingIdentity(); in answerCall() local
63 Binder.restoreCallingIdentity(token); in answerCall()
74 long token = Binder.clearCallingIdentity(); in rejectCall() local
86 Binder.restoreCallingIdentity(token); in rejectCall()
97 long token = Binder.clearCallingIdentity(); in playDtmfTone() local
109 Binder.restoreCallingIdentity(token); in playDtmfTone()
120 long token = Binder.clearCallingIdentity(); in stopDtmfTone() local
132 Binder.restoreCallingIdentity(token); in stopDtmfTone()
143 long token = Binder.clearCallingIdentity(); in postDialContinue() local
155 Binder.restoreCallingIdentity(token); in postDialContinue()
[all …]
DTelecomServiceImpl.java124 long token = Binder.clearCallingIdentity();
132 Binder.restoreCallingIdentity(token);
164 long token = Binder.clearCallingIdentity();
172 Binder.restoreCallingIdentity(token);
190 long token = Binder.clearCallingIdentity();
198 Binder.restoreCallingIdentity(token);
216 long token = Binder.clearCallingIdentity();
224 Binder.restoreCallingIdentity(token);
236 long token = Binder.clearCallingIdentity();
245 Binder.restoreCallingIdentity(token);
[all …]
DConnectionServiceWrapper.java70 long token = Binder.clearCallingIdentity(); in handleCreateConnectionComplete() local
78 Binder.restoreCallingIdentity(token); in handleCreateConnectionComplete()
86 long token = Binder.clearCallingIdentity(); in setActive() local
98 Binder.restoreCallingIdentity(token); in setActive()
106 long token = Binder.clearCallingIdentity(); in setRinging() local
118 Binder.restoreCallingIdentity(token); in setRinging()
126 long token = Binder.clearCallingIdentity(); in setVideoProvider() local
136 Binder.restoreCallingIdentity(token); in setVideoProvider()
144 long token = Binder.clearCallingIdentity(); in setDialing() local
156 Binder.restoreCallingIdentity(token); in setDialing()
[all …]
DBluetoothPhoneServiceImpl.java96 long token = Binder.clearCallingIdentity();
106 Binder.restoreCallingIdentity(token);
118 long token = Binder.clearCallingIdentity();
128 Binder.restoreCallingIdentity(token);
139 long token = Binder.clearCallingIdentity();
152 Binder.restoreCallingIdentity(token);
163 long token = Binder.clearCallingIdentity();
175 Binder.restoreCallingIdentity(token);
186 long token = Binder.clearCallingIdentity();
203 Binder.restoreCallingIdentity(token);
[all …]
/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/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/services/Telephony/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/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/services/Telephony/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/Dialer/src/com/android/dialer/database/
DFilteredNumberAsyncQueryHandler.java47 protected void onQueryComplete(int token, Object cookie, Cursor cursor) { in onQueryComplete() argument
49 protected void onInsertComplete(int token, Object cookie, Uri uri) { in onInsertComplete() argument
51 protected void onUpdateComplete(int token, Object cookie, int result) { in onUpdateComplete() argument
53 protected void onDeleteComplete(int token, Object cookie, int result) { in onDeleteComplete() argument
91 protected void onQueryComplete(int token, Object cookie, Cursor cursor) { in onQueryComplete() argument
93 ((Listener) cookie).onQueryComplete(token, cookie, cursor); in onQueryComplete()
98 protected void onInsertComplete(int token, Object cookie, Uri uri) { in onInsertComplete() argument
100 ((Listener) cookie).onInsertComplete(token, cookie, uri); in onInsertComplete()
105 protected void onUpdateComplete(int token, Object cookie, int result) { in onUpdateComplete() argument
107 ((Listener) cookie).onUpdateComplete(token, cookie, result); in onUpdateComplete()
[all …]
/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/Dialer/InCallUI/src/com/android/incallui/
DCallerInfoAsyncQuery.java82 public void onQueryComplete(int token, Object cookie, CallerInfo ci); in onQueryComplete() argument
112 public void startQuery(int token, Object cookie, Uri uri, String[] projection, in startQuery() argument
122 super.startQuery(token, cookie, uri, projection, selection, selectionArgs, orderBy); in startQuery()
229 protected void onQueryComplete(int token, Object cookie, Cursor cursor) { in onQueryComplete() argument
231 Log.d(this, "##### onQueryComplete() ##### query complete for token: " + token); in onQueryComplete()
310 Log.d(this, "constructing CallerInfo object for token: " + token); in onQueryComplete()
315 startQuery(token, endMarker, null, null, null, null, null); in onQueryComplete()
321 " for token: " + token + mCallerInfo); in onQueryComplete()
322 cw.listener.onQueryComplete(token, cw.cookie, mCallerInfo); in onQueryComplete()
339 public static void startQuery(final int token, final Context context, final CallerInfo info, in startQuery() argument
[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/services/Telephony/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/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/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadStorageProvider.java124 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()
162 final long token = Binder.clearCallingIdentity(); in renameDocument() local
171 Binder.restoreCallingIdentity(token); in renameDocument()
188 final long token = Binder.clearCallingIdentity(); in queryDocument() local
200 Binder.restoreCallingIdentity(token); in queryDocument()
217 final long token = Binder.clearCallingIdentity(); in queryChildDocuments() local
228 Binder.restoreCallingIdentity(token); in queryChildDocuments()
[all …]
/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/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DRichInputMethodManager.java131 public boolean switchToNextInputMethod(final IBinder token, final boolean onlyCurrentIme) { in switchToNextInputMethod() argument
132 if (mImmWrapper.switchToNextInputMethod(token, onlyCurrentIme)) { in switchToNextInputMethod()
137 if (switchToNextInputSubtypeInThisIme(token, onlyCurrentIme)) { in switchToNextInputMethod()
140 return switchToNextInputMethodAndSubtype(token); in switchToNextInputMethod()
143 private boolean switchToNextInputSubtypeInThisIme(final IBinder token, in switchToNextInputSubtypeInThisIme() argument
162 setInputMethodAndSubtype(token, nextSubtype); in switchToNextInputSubtypeInThisIme()
166 private boolean switchToNextInputMethodAndSubtype(final IBinder token) { in switchToNextInputMethodAndSubtype() argument
180 imm.setInputMethod(token, nextImi.getId()); in switchToNextInputMethodAndSubtype()
184 imm.setInputMethodAndSubtype(token, nextImi.getId(), firstSubtype); in switchToNextInputMethodAndSubtype()
472 public void setInputMethodAndSubtype(final IBinder token, final InputMethodSubtype subtype) { in setInputMethodAndSubtype() argument
[all …]
/packages/apps/Dialer/src/com/android/dialer/calllog/
DCallLogQueryHandler.java179 private void fetchCalls(int token, int callType, boolean newOnly, long newerThan) { in fetchCalls() argument
215 startQuery(token, null, uri, CallLogQuery._PROJECTION, selection, selectionArgs.toArray( in fetchCalls()
266 protected synchronized void onNotNullableQueryComplete(int token, Object cookie, in onNotNullableQueryComplete() argument
272 if (token == QUERY_CALLLOG_TOKEN || token == QUERY_VOICEMAIL_ARCHIVE) { in onNotNullableQueryComplete()
276 } else if (token == QUERY_VOICEMAIL_STATUS_TOKEN) { in onNotNullableQueryComplete()
278 } else if (token == QUERY_VOICEMAIL_UNREAD_COUNT_TOKEN) { in onNotNullableQueryComplete()
280 } else if (token == QUERY_MISSED_CALLS_UNREAD_COUNT_TOKEN) { in onNotNullableQueryComplete()
283 Log.w(TAG, "Unknown query completed: ignoring: " + token); in onNotNullableQueryComplete()
/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/
Dpointer.h201 GenericPointer Append(const Token& token, Allocator* allocator = 0) const {
204 Ch *p = r.CopyFromRaw(*this, 1, token.length + 1);
205 std::memcpy(p, token.name, (token.length + 1) * sizeof(Ch));
207 r.tokens_[tokenCount_].length = token.length;
208 r.tokens_[tokenCount_].index = token.index;
220 Token token = { name, length, kPointerInvalidIndex }; variable
221 return Append(token, allocator);
260 Token token = { (Ch*)buffer, length, index }; variable
261 return Append(token, allocator);
267 Token token = { name, length, index }; variable
[all …]

123456