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

1234

/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/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/Email/emailcommon/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/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 DSmsMessageSender.java72 public boolean sendMessage(long token) throws MmsException { argument
75 return queueMessage(token);
78 private boolean queueMessage(long token) throws MmsException { argument
H A DTransaction.java145 * @param token The token to identify the sending progress.
153 protected byte[] sendPdu(long token, byte[] pdu) throws IOException, MmsException { argument
154 return sendPdu(token, pdu, mTransactionSettings.getMmscUrl());
160 * @param token The token to identify the sending progress.
169 protected byte[] sendPdu(long token, byte[] pdu, argument
177 mContext, token,
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
H A DHanziToPinyin.java271 * Type of this token, ASCII, PINYIN or UNKNOWN.
337 Token token = new Token();
339 token.source = letter;
343 token.type = Token.LATIN;
344 token.target = letter;
345 return token;
347 token.type = Token.UNKNOWN;
348 token.target = letter;
349 return token;
353 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 DContactLocaleUtils.java67 for (Token token : tokens) {
70 if (Token.PINYIN == token.type) {
74 sb.append(token.target);
76 sb.append(token.source);
81 sb.append(token.source);
102 final Token token = tokens.get(i);
103 if (Token.PINYIN == token.type) {
104 keyPinyin.insert(0, token.target);
105 keyInitial.insert(0, token.target.charAt(0));
106 } else if (Token.LATIN == token
[all...]
H A DSearchIndexManager.java170 public void appendToken(String token) { argument
171 if (TextUtils.isEmpty(token)) {
178 mSbTokens.append(token);
361 * Tokenizes the query and normalizes/hex encodes each token. The tokenizer uses the same
362 * rules as SQLite's "simple" tokenizer. Each token is added to the retokenizer and then
392 final String token = query.substring(tokenStart, i);
393 ftsQueryBuilder.addToken(result, token);
402 public abstract void addToken(StringBuilder builder, String token); argument
404 /** Normalizes and space-concatenates each token. Example: "a1b2c1* a2b3c2*" */
408 * Scopes each token t
446 addToken(StringBuilder builder, String token) argument
458 addToken(StringBuilder builder, String token) argument
[all...]
H A DNameSplitter.java38 * <li>Assign the last remaining token as the last name.</li>
233 final String token = nextToken();
234 if (token.length() > 0) {
235 final char c = token.charAt(0);
241 if (mEndPointer > 0 && token.charAt(0) == '.') {
243 } else if (mEndPointer > 0 && token.charAt(0) == ',') {
246 mTokens[mEndPointer] = token;
253 * Returns true if the token is followed by a dot in the original full name.
260 * Returns true if the token is followed by a comma in the original full name.
421 String 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/Email/emailcommon/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/Contacts/src/com/android/contacts/
H A DCallDetailActivityQueryHandler.java66 protected synchronized void onQueryComplete(int token, Object cookie, Cursor cursor) { argument
68 if (token == QUERY_VOICEMAIL_CONTENT_TOKEN) {
78 } else if (token == QUERY_VOICEMAIL_STATUS_TOKEN) {
81 Log.w(TAG, "Unknown query completed: ignoring: " + token);
/packages/apps/Email/src/com/android/email/provider/
H A DContentCache.java53 * 1. Get a CacheToken: CacheToken token = cache.getToken(id);
55 * 3. Put the cursor in the cache: cache.putCursor(cursor, id, token);
176 * A list of tokens that are in use at any moment; there can be more than one token for an id
192 for (CacheToken token: this) {
193 if (token.getId().equals(id)) {
194 token.invalidate();
195 removeList.add(token);
199 for (CacheToken token: removeList) {
200 remove(token);
209 for (CacheToken token
215 remove(CacheToken token) argument
263 equals(Object token) argument
474 putCursor(Cursor c, String id, String[] projection, CacheToken token) argument
481 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/Calendar/tests/src/com/android/calendar/
H A DAsyncQueryServiceTest.java92 work[index].token = ++mId;
104 aqs.startQuery(work[index].token, work[index].cookie, work[index].uri,
121 work[index].token = ++mId;
131 aqs.startInsert(work[index].token, work[index].cookie, work[index].uri, work[index].values,
147 work[index].token = ++mId;
159 aqs.startUpdate(work[index].token, work[index].cookie, work[index].uri, work[index].values,
175 work[index].token = ++mId;
185 aqs.startDelete(work[index].token,
205 work[index].token = ++mId;
218 aqs.startBatch(work[index].token,
464 onQueryComplete(int token, Object cookie, Cursor cursor) argument
483 onInsertComplete(int token, Object cookie, Uri uri) argument
496 onUpdateComplete(int token, Object cookie, int result) argument
509 onDeleteComplete(int token, Object cookie, int result) argument
522 onBatchComplete(int token, Object cookie, ContentProviderResult[] results) argument
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/gadget/
H A DMediaSetSource.java58 long token = Binder.clearCallingIdentity();
65 Binder.restoreCallingIdentity(token);
101 long token = Binder.clearCallingIdentity();
105 Binder.restoreCallingIdentity(token);
/packages/apps/Email/emailcommon/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...]
/packages/apps/Contacts/src/com/android/contacts/calllog/
H A DCallLogQueryHandler.java52 /** The token for the query to fetch the new entries from the call log. */
54 /** The token for the query to fetch the old entries from the call log. */
56 /** The token for the query to mark all missed calls as old after seeing the call log. */
58 /** The token for the query to mark all new voicemails as old. */
60 /** The token for the query to mark all missed calls as read after seeing the call log. */
63 /** The token for the query to fetch voicemail status messages. */
168 private void fetchCalls(int token, boolean isNew, boolean voicemailOnly) { argument
185 startQuery(token, null, Calls.CONTENT_URI_WITH_VOICEMAIL,
254 protected synchronized void onQueryComplete(int token, Object cookie, Cursor cursor) { argument
255 if (token
[all...]
/packages/apps/Phone/src/com/android/phone/
H A DADNList.java185 protected void onQueryComplete(int token, Object cookie, Cursor c) { argument
193 protected void onInsertComplete(int token, Object cookie, argument
200 protected void onUpdateComplete(int token, Object cookie, int result) { argument
206 protected void onDeleteComplete(int token, Object cookie, int result) { argument
H A DDeleteFdnContactScreen.java166 protected void onQueryComplete(int token, Object cookie, Cursor c) { argument
169 protected void onInsertComplete(int token, Object cookie, argument
173 protected void onUpdateComplete(int token, Object cookie, int result) { argument
176 protected void onDeleteComplete(int token, Object cookie, int result) { argument
/packages/apps/Email/tests/src/com/android/email/provider/
H A DContentCacheTests.java102 // Add a token for "2"
209 // Get a token for arbitrary object named "1"
210 CacheToken token = cache.getCacheToken("1");
212 cache.putCursor(cursor1, "1", SIMPLE_PROJECTION, token);
217 // Get a token for arbitrary object named "2"
218 token = cache.getCacheToken("2");
220 cache.putCursor(cursor1, "2", SIMPLE_PROJECTION, token);
237 // Get a token for arbitrary object named "3"
238 token = cache.getCacheToken("3");
240 cache.putCursor(cursor1, "3", SIMPLE_PROJECTION, token);
[all...]

Completed in 848 milliseconds

1234