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

12345

/packages/apps/Mms/src/com/android/mms/util/
H A DSendingProgressTokenManager.java37 Long token = TOKEN_POOL.get(key);
39 Log.v(TAG, "TokenManager.get(" + key + ") -> " + token);
41 return token != null ? token : NO_TOKEN;
44 synchronized public static void put(Object key, long token) { argument
46 Log.v(TAG, "TokenManager.put(" + key + ", " + token + ")");
48 TOKEN_POOL.put(key, token);
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
H A DHanziToPinyin.java60 * Type of this token, ASCII, PINYIN or UNKNOWN.
97 private void tokenize(char character, Token token) { argument
98 token.source = Character.toString(character);
102 token.type = Token.LATIN;
103 token.target = token.source;
109 token.type = Token.LATIN;
110 token.target = mAsciiTransliterator == null ? token.source :
111 mAsciiTransliterator.transliterate(token
[all...]
H A DProfileAwareUriMatcher.java73 // Keep track of whether we've passed a "lookup" token in the path; wildcards after
74 // that token will be interpreted as lookup keys. For our purposes, vcard paths
78 String token = tokens[i];
79 if (token.equals(PROFILE_SEGMENT)) {
82 } else if (token.equals(LOOKUP_SEGMENT)
83 || token.equals(VCARD_SEGMENT)) {
86 } else if (token.equals(ID_SEGMENT)) {
88 } 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,
422 for (String token : FTS_TOKEN_SEPARATOR_RE.split(s)) {
423 if (!TextUtils.isEmpty(token)) {
424 ret.add(token);
431 * Tokenizes the query and normalizes/hex encodes each token
446 addToken(StringBuilder builder, String token) argument
490 addToken(StringBuilder builder, String token) argument
502 addToken(StringBuilder builder, String token) argument
[all...]
H A DContactLocaleUtils.java366 final Token token = tokens.get(i);
367 if (Token.UNKNOWN == token.type) {
370 if (Token.PINYIN == token.type) {
371 keyPinyin.insert(0, token.target);
372 keyInitial.insert(0, token.target.charAt(0));
373 } else if (Token.LATIN == token.type) {
381 keyPinyin.insert(0, token.source);
382 keyInitial.insert(0, token.source.charAt(0));
384 keyOriginal.insert(0, token.source);
/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/Mms/src/com/android/mms/transaction/
H A DMessageSender.java27 * @param token The token to identify the sending progress.
33 boolean sendMessage(long token) throws MmsException; argument
H A DProgressCallbackEntity.java40 public ProgressCallbackEntity(Context context, long token, byte[] b) { argument
45 mToken = token;
85 intent.putExtra("token", mToken);
H A DTransaction.java143 * @param token The token to identify the sending progress.
151 protected byte[] sendPdu(long token, byte[] pdu) throws IOException, MmsException { argument
152 return sendPdu(token, pdu, mTransactionSettings.getMmscUrl());
158 * @param token The token to identify the sending progress.
167 protected byte[] sendPdu(long token, byte[] pdu, argument
175 mContext, token,
/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/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/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/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/
H A DInputMethodManagerCompatWrapper.java37 public boolean switchToNextInputMethod(final IBinder token, final boolean onlyCurrentIme) { argument
39 METHOD_switchToNextInputMethod, token, onlyCurrentIme);
/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/apps/Dialer/src/com/android/dialer/
H A DCallDetailActivityQueryHandler.java66 protected synchronized void onNotNullableQueryComplete(int token, Object cookie, argument
69 if (token == QUERY_VOICEMAIL_CONTENT_TOKEN) {
79 } else if (token == QUERY_VOICEMAIL_STATUS_TOKEN) {
82 Log.w(TAG, "Unknown query completed: ignoring: " + token);
/packages/apps/Email/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/Camera/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/Camera2/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/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/InCallUI/src/com/android/incallui/
H A DCallerInfoAsyncQuery.java63 public void onQueryComplete(int token, Object cookie, CallerInfo ci); argument
142 Log.d(this, "Processing event: " + cw.event + " token (arg1): " + msg.arg1 +
159 // passing the original token value back to the caller
198 protected void onQueryComplete(int token, Object cookie, Cursor cursor) { argument
199 Log.d(this, "##### onQueryComplete() ##### query complete for token: " + token);
217 // check the token and if needed, create the callerinfo object.
277 Log.d(this, "constructing CallerInfo object for token: " + token);
282 startQuery(token, endMarke
304 startQuery(int token, Context context, Uri contactRef, OnQueryCompleteListener listener, Object cookie) argument
334 startQuery(int token, Context context, String number, OnQueryCompleteListener listener, Object cookie) argument
420 addQueryListener(int token, OnQueryCompleteListener listener, Object cookie) argument
[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...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
H A DRichInputMethodManager.java118 public boolean switchToNextInputMethod(final IBinder token, final boolean onlyCurrentIme) { argument
119 if (mImmWrapper.switchToNextInputMethod(token, onlyCurrentIme)) {
124 if (switchToNextInputSubtypeInThisIme(token, onlyCurrentIme)) {
127 return switchToNextInputMethodAndSubtype(token);
130 private boolean switchToNextInputSubtypeInThisIme(final IBinder token, argument
149 setInputMethodAndSubtype(token, nextSubtype);
153 private boolean switchToNextInputMethodAndSubtype(final IBinder token) { argument
167 imm.setInputMethod(token, nextImi.getId());
171 imm.setInputMethodAndSubtype(token, nextImi.getId(), firstSubtype);
356 public void setInputMethodAndSubtype(final IBinder token, fina argument
[all...]
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
H A DDownloadStorageProvider.java116 final long token = Binder.clearCallingIdentity();
139 Binder.restoreCallingIdentity(token);
146 final long token = Binder.clearCallingIdentity();
152 Binder.restoreCallingIdentity(token);
164 final long token = Binder.clearCallingIdentity();
174 Binder.restoreCallingIdentity(token);
186 final long token = Binder.clearCallingIdentity();
197 Binder.restoreCallingIdentity(token);
209 final long token = Binder.clearCallingIdentity();
220 Binder.restoreCallingIdentity(token);
[all...]
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/address/parser/
H A DAddressListParser.java614 jj_la = xla; jj_lastpos = jj_scanpos = token;
621 jj_la = xla; jj_lastpos = jj_scanpos = token;
700 public Token token, jj_nt; field in class:AddressListParser
730 token = new Token();
743 token = new Token();
754 token = new Token();
764 token = new Token();
774 token = new Token();
783 token = new Token();
793 if ((oldToken = token)
[all...]

Completed in 445 milliseconds

12345