Searched refs:token (Results 26 - 50 of 152) sorted by relevance

1234567

/packages/apps/Email/provider_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/providers/ContactsProvider/src/com/android/providers/contacts/
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,
424 for (String token : FTS_TOKEN_SEPARATOR_RE.split(s)) {
425 if (!TextUtils.isEmpty(token)) {
426 ret.add(token);
433 * Tokenizes the query and normalizes/hex encodes each token
448 addToken(StringBuilder builder, String token) argument
492 addToken(StringBuilder builder, String token) argument
504 addToken(StringBuilder builder, String token) argument
[all...]
H A DContactLocaleUtils.java481 final Token token = tokens.get(i);
482 if (Token.UNKNOWN == token.type) {
485 if (Token.PINYIN == token.type) {
486 keyPinyin.insert(0, token.target);
487 keyInitial.insert(0, token.target.charAt(0));
488 } else if (Token.LATIN == token.type) {
496 keyPinyin.insert(0, token.source);
497 keyInitial.insert(0, token.source.charAt(0));
499 keyOriginal.insert(0, token.source);
H A DNameSplitter.java40 * <li>Assign the last remaining token as the last name.</li>
237 final String token = nextToken();
238 if (token.length() > 0) {
239 final char c = token.charAt(0);
245 if (mEndPointer > 0 && token.charAt(0) == '.') {
247 } else if (mEndPointer > 0 && token.charAt(0) == ',') {
250 mTokens[mEndPointer] = token;
257 * Returns true if the token is followed by a dot in the original full name.
264 * Returns true if the token is followed by a comma in the original full name.
422 String 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/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/apps/Calendar/src/com/android/calendar/
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/TimeZoneUpdater/src/main/com/android/timezone/updater/
H A DRulesCheckReceiver.java51 * token} which must be returned to the system server {@link RulesManager} API via one of the
80 // important object state that could be corrupted and the check token allows for ordering
90 byte[] token = intent.getByteArrayExtra(RulesUpdaterContract.EXTRA_CHECK_TOKEN);
91 EventLogTags.writeTimezoneCheckTriggerReceived(Arrays.toString(token));
97 handleUninstall(token);
107 DistroOperation operation = getOperation(context, token);
111 handleCheckComplete(token, success);
120 handleCheckComplete(token, true /* success */);
123 handleUninstall(token);
126 handleCopyAndInstall(context, token, operatio
336 handleCheckComplete(final byte[] token, final boolean success) argument
[all...]
/packages/services/Car/TrustAgent/src/com/android/car/trust/
H A DPhoneEnrolmentController.java47 // BLE characteristics associated with the enrollment/add escrow token service.
81 * @param enrolButton Button used to send new escrow token to remote device.
100 appendOutputText("Sending new escrow token to remote device");
102 byte[] token = generateEscrowToken();
103 sendEnrolmentRequest(token);
105 // WARNING: Store the token so it can be used later for unlocking. This token
108 storeToken(token);
114 * @return A random byte array that is used as the escrow token for remote device unlock.
123 private void sendEnrolmentRequest(byte[] token) { argument
195 storeToken(byte[] token) argument
[all...]
H A DCarBleTrustAgent.java41 * A sample trust agent that demonstrates how to use the escrow token unlock APIs. </p>
50 public static final String ACTION_ADD_TOKEN = "add-token-action";
51 public static final String ACTION_IS_TOKEN_ACTIVE = "is-token-active-action";
52 public static final String ACTION_REMOVE_TOKEN = "remove-token-action";
55 public static final String ACTION_TOKEN_STATUS_RESULT = "token-status-result-action";
56 public static final String ACTION_ADD_TOKEN_RESULT = "add-token-result-action";
58 public static final String INTENT_EXTRA_ESCROW_TOKEN = "extra-escrow-token";
59 public static final String INTENT_EXTRA_TOKEN_HANDLE = "extra-token-handle";
60 public static final String INTENT_EXTRA_TOKEN_STATUS = "extra-token-status";
85 byte[] token
240 unlock(byte[] token, long handle) argument
289 onEscrowTokenAdded(byte[] token, long handle, UserHandle user) argument
[all...]
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
H A DCallerInfoAsyncQueryFactoryFixture.java54 public CallerInfoAsyncQuery startQuery(int token, Context context, String number,
57 r.mToken = token;
/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...]
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
H A DDownloadStorageProvider.java157 final long token = Binder.clearCallingIdentity();
170 Binder.restoreCallingIdentity(token);
177 final long token = Binder.clearCallingIdentity();
187 Binder.restoreCallingIdentity(token);
194 final long token = Binder.clearCallingIdentity();
209 Binder.restoreCallingIdentity(token);
216 final long token = Binder.clearCallingIdentity();
242 Binder.restoreCallingIdentity(token);
263 final long token = Binder.clearCallingIdentity();
292 Binder.restoreCallingIdentity(token);
[all...]
/packages/services/Telecomm/src/com/android/server/telecom/
H A DBluetoothPhoneServiceImpl.java99 long token = Binder.clearCallingIdentity();
109 Binder.restoreCallingIdentity(token);
121 long token = Binder.clearCallingIdentity();
131 Binder.restoreCallingIdentity(token);
142 long token = Binder.clearCallingIdentity();
155 Binder.restoreCallingIdentity(token);
166 long token = Binder.clearCallingIdentity();
178 Binder.restoreCallingIdentity(token);
189 long token = Binder.clearCallingIdentity();
206 Binder.restoreCallingIdentity(token);
[all...]
H A DContactsAsyncHelper.java50 * @param token Integer passed in {@link ContactsAsyncHelper#startObtainPhotoAsync(int,
58 public void onImageLoadComplete(int token, Drawable photo, Bitmap photoIcon, argument
122 " token: " + msg.what + " image URI: " + args.displayPhotoUri);
127 " token: " + msg.what + " image URI: " + args.displayPhotoUri +
192 * @param token Arbitrary integer which will be returned as the first argument of
203 public void startObtainPhotoAsync(int token, Context context, Uri displayPhotoUri, argument
225 Message msg = mThreadHandler.obtainMessage(token);
/packages/services/Telephony/src/com/android/phone/
H A DADNList.java210 protected void onQueryComplete(int token, Object cookie, Cursor c) { argument
221 protected void onInsertComplete(int token, Object cookie, Uri uri) { argument
227 protected void onUpdateComplete(int token, Object cookie, int result) { argument
233 protected void onDeleteComplete(int token, Object cookie, int result) { argument
/packages/services/Telephony/src/com/android/phone/settings/fdn/
H A DDeleteFdnContactScreen.java175 protected void onQueryComplete(int token, Object cookie, Cursor c) { argument
179 protected void onInsertComplete(int token, Object cookie, Uri uri) { argument
183 protected void onUpdateComplete(int token, Object cookie, int result) { argument
187 protected void onDeleteComplete(int token, Object cookie, int result) { argument
/packages/apps/Dialer/java/com/android/dialer/database/
H A DCallLogQueryHandler.java59 /** The token for the query to fetch the old entries from the call log. */
61 /** The token for the query to mark all missed calls as old after seeing the call log. */
63 /** The token for the query to mark all missed calls as read after seeing the call log. */
65 /** The token for the query to fetch voicemail status messages. */
67 /** The token for the query to fetch the number of unread voicemails. */
69 /** The token for the query to fetch the number of missed calls. */
157 private void fetchCalls(int token, int callType, boolean newOnly, long newerThan) { argument
215 token,
286 protected synchronized void onNotNullableQueryComplete(int token, Object cookie, Cursor cursor) { argument
291 if (token
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/provider/
H A DGalleryProvider.java90 long token = Binder.clearCallingIdentity();
96 Binder.restoreCallingIdentity(token);
116 long token = Binder.clearCallingIdentity();
131 Binder.restoreCallingIdentity(token);
175 long token = Binder.clearCallingIdentity();
191 Binder.restoreCallingIdentity(token);
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
H A DRichInputMethodManager.java131 public boolean switchToNextInputMethod(final IBinder token, final boolean onlyCurrentIme) { argument
132 if (mImmWrapper.switchToNextInputMethod(token, onlyCurrentIme)) {
137 if (switchToNextInputSubtypeInThisIme(token, onlyCurrentIme)) {
140 return switchToNextInputMethodAndSubtype(token);
143 private boolean switchToNextInputSubtypeInThisIme(final IBinder token, argument
162 setInputMethodAndSubtype(token, nextSubtype);
166 private boolean switchToNextInputMethodAndSubtype(final IBinder token) { argument
180 imm.setInputMethod(token, nextImi.getId());
184 imm.setInputMethodAndSubtype(token, nextImi.getId(), firstSubtype);
472 public void setInputMethodAndSubtype(final IBinder token, fina argument
[all...]
/packages/apps/Settings/src/com/android/settings/fingerprint/
H A DFingerprintEnrollIntroduction.java143 private void launchFindSensor(byte[] token) { argument
145 if (token != null) {
146 intent.putExtra(ChooseLockSettingsHelper.EXTRA_KEY_CHALLENGE_TOKEN, token);
175 byte[] token = data.getByteArrayExtra(
177 launchFindSensor(token);
/packages/apps/Contacts/tests/src/com/android/contacts/database/
H A DNoNullCursorAsyncQueryHandlerTest.java71 protected void onNotNullableQueryComplete(int token, Object cookie,
98 protected void onNotNullableQueryComplete(int token, Object cookie,
125 protected void onNotNullableQueryComplete(int token, Object cookie,
/packages/apps/Email/tests/src/com/android/email/provider/
H A DContentCacheTests.java105 // Add a token for "2"
212 // Get a token for arbitrary object named "1"
213 CacheToken token = cache.getCacheToken("1");
215 cache.putCursor(cursor1, "1", SIMPLE_PROJECTION, token);
220 // Get a token for arbitrary object named "2"
221 token = cache.getCacheToken("2");
223 cache.putCursor(cursor1, "2", SIMPLE_PROJECTION, token);
240 // Get a token for arbitrary object named "3"
241 token = cache.getCacheToken("3");
243 cache.putCursor(cursor1, "3", SIMPLE_PROJECTION, token);
[all...]
/packages/apps/Nfc/nci/jni/extns/pn54x/src/utils/
H A DphNxpConfig.cpp207 string token; local
251 token.erase ();
254 token.push_back (c);
260 token.push_back ('\0');
265 token.push_back (c);
380 pParam = new CNxpNfcParam (token.c_str (), strValue);
382 pParam = new CNxpNfcParam (token.c_str (), numValue);
394 pParam = new CNxpNfcParam(token.c_str(), strValue);
/packages/apps/UnifiedEmail/src/com/android/mail/providers/
H A DSearchRecentSuggestionsProvider.java150 for (String token : mFullQueryTerms) {
151 builder.append(token).append(QUERY_TOKEN_SEPARATOR);

Completed in 698 milliseconds

1234567