Home
last modified time | relevance | path

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

1234567

/packages/services/Telecomm/src/com/android/server/telecom/
DInCallAdapter.java53 long token = Binder.clearCallingIdentity(); in answerCall() local
65 Binder.restoreCallingIdentity(token); in answerCall()
76 long token = Binder.clearCallingIdentity(); in deflectCall() local
88 Binder.restoreCallingIdentity(token); in deflectCall()
101 long token = Binder.clearCallingIdentity(); in rejectCall() local
121 Binder.restoreCallingIdentity(token); in rejectCall()
135 long token = Binder.clearCallingIdentity(); in rejectCallWithReason() local
147 Binder.restoreCallingIdentity(token); in rejectCallWithReason()
157 long token = Binder.clearCallingIdentity(); in transferCall() local
170 Binder.restoreCallingIdentity(token); in transferCall()
[all …]
DTelecomServiceImpl.java121 long token = Binder.clearCallingIdentity();
129 Binder.restoreCallingIdentity(token);
165 long token = Binder.clearCallingIdentity();
173 Binder.restoreCallingIdentity(token);
196 long token = Binder.clearCallingIdentity();
204 Binder.restoreCallingIdentity(token);
221 long token = Binder.clearCallingIdentity();
229 Binder.restoreCallingIdentity(token);
253 long token = Binder.clearCallingIdentity();
261 Binder.restoreCallingIdentity(token);
[all …]
DConnectionServiceWrapper.java78 long token = Binder.clearCallingIdentity(); in handleCreateConnectionComplete() local
98 Binder.restoreCallingIdentity(token); in handleCreateConnectionComplete()
107 long token = Binder.clearCallingIdentity(); in handleCreateConferenceComplete() local
127 Binder.restoreCallingIdentity(token); in handleCreateConferenceComplete()
136 long token = Binder.clearCallingIdentity(); in setActive() local
151 Binder.restoreCallingIdentity(token); in setActive()
159 long token = Binder.clearCallingIdentity(); in setRinging() local
174 Binder.restoreCallingIdentity(token); in setRinging()
182 long token = Binder.clearCallingIdentity(); in resetConnectionTime() local
194 Binder.restoreCallingIdentity(token); in resetConnectionTime()
[all …]
DBluetoothPhoneServiceImpl.java104 long token = Binder.clearCallingIdentity();
114 Binder.restoreCallingIdentity(token);
126 long token = Binder.clearCallingIdentity();
136 Binder.restoreCallingIdentity(token);
147 long token = Binder.clearCallingIdentity();
160 Binder.restoreCallingIdentity(token);
171 long token = Binder.clearCallingIdentity();
183 Binder.restoreCallingIdentity(token);
194 long token = Binder.clearCallingIdentity();
212 Binder.restoreCallingIdentity(token);
[all …]
/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.java182 public void appendToken(String token) { in appendToken() argument
183 if (TextUtils.isEmpty(token)) { in appendToken()
190 mSbTokens.append(token); in appendToken()
428 for (String token : FTS_TOKEN_SEPARATOR_RE.split(s)) { in splitIntoFtsTokens()
429 if (!TextUtils.isEmpty(token)) { in splitIntoFtsTokens()
430 ret.add(token); in splitIntoFtsTokens()
445 for (String token : splitIntoFtsTokens(query)) { in getFtsMatchQuery()
446 ftsQueryBuilder.addToken(result, token); in getFtsMatchQuery()
452 public abstract void addToken(StringBuilder builder, String token); in addToken() argument
474 public void addToken(StringBuilder builder, String token) { in getDigitsQueryBuilder()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/sap/
DSapRilReceiver.java59 private void removeOngoingReqAndSendMessage(int token, SapMessage sapMessage) { in removeOngoingReqAndSendMessage() argument
60 Integer reqType = SapMessage.sOngoingRequests.remove(token); in removeOngoingReqAndSendMessage()
62 Log.d(TAG, "removeOngoingReqAndSendMessage: token " + token + " reqType " + ( in removeOngoingReqAndSendMessage()
70 public void connectResponse(int token, int sapConnectRsp, int maxMsgSize) { in connectResponse() argument
71 Log.d(TAG, "connectResponse: token " + token + " sapConnectRsp " + sapConnectRsp in connectResponse()
80 removeOngoingReqAndSendMessage(token, sapMessage); in connectResponse()
84 public void disconnectResponse(int token) { in disconnectResponse() argument
85 Log.d(TAG, "disconnectResponse: token " + token); in disconnectResponse()
89 removeOngoingReqAndSendMessage(token, sapMessage); in disconnectResponse()
93 public void disconnectIndication(int token, int disconnectType) { in disconnectIndication() argument
[all …]
/packages/services/Telephony/src/com/android/phone/
DImsRcsController.java89 final long token = Binder.clearCallingIdentity(); in registerImsRegistrationCallback() local
96 Binder.restoreCallingIdentity(token); in registerImsRegistrationCallback()
106 final long token = Binder.clearCallingIdentity(); in unregisterImsRegistrationCallback() local
112 Binder.restoreCallingIdentity(token); in unregisterImsRegistrationCallback()
122 final long token = Binder.clearCallingIdentity(); in getImsRcsRegistrationState() local
133 Binder.restoreCallingIdentity(token); in getImsRcsRegistrationState()
143 final long token = Binder.clearCallingIdentity(); in getImsRcsRegistrationTransportType() local
158 Binder.restoreCallingIdentity(token); in getImsRcsRegistrationTransportType()
172 final long token = Binder.clearCallingIdentity(); in registerRcsAvailabilityCallback() local
179 Binder.restoreCallingIdentity(token); in registerRcsAvailabilityCallback()
[all …]
/packages/apps/Dialer/java/com/android/incallui/
DCallerInfoAsyncQuery.java59 void onQueryComplete(int token, Object cookie, CallerInfo ci); in onQueryComplete() argument
63 void onDataLoaded(int token, Object cookie, CallerInfo ci); in onDataLoaded() argument
86 final int token, in startQuery() argument
98 public void onQueryComplete(int token, Object cookie, CallerInfo ci) { in startQuery()
103 || !startOtherDirectoriesQuery(token, context, info, listener, cookie)) { in startQuery()
105 listener.onQueryComplete(token, cookie, ci); in startQuery()
111 public void onDataLoaded(int token, Object cookie, CallerInfo ci) { in startQuery()
113 listener.onDataLoaded(token, cookie, ci); in startQuery()
116 startDefaultDirectoryQuery(token, context, info, contactsProviderQueryCompleteListener, cookie); in startQuery()
121 int token, in startDefaultDirectoryQuery() argument
[all …]
/packages/services/Car/service/src/com/android/car/
DCarTestService.java73 public void stopCarService(IBinder token) throws RemoteException { in stopCarService() argument
74 Log.d(TAG, "stopCarService, token: " + token); in stopCarService()
78 if (mTokens.containsKey(token)) { in stopCarService()
83 TokenDeathRecipient deathRecipient = new TokenDeathRecipient(token); in stopCarService()
84 mTokens.put(token, deathRecipient); in stopCarService()
85 token.linkToDeath(deathRecipient, 0); in stopCarService()
94 public void startCarService(IBinder token) throws RemoteException { in startCarService() argument
95 Log.d(TAG, "startCarService, token: " + token); in startCarService()
97 releaseToken(token); in startCarService()
100 private void releaseToken(IBinder token) { in releaseToken() argument
[all …]
DCarProjectionService.java282 public void stopProjectionAccessPoint(IBinder token) { in stopProjectionAccessPoint() argument
284 Log.i(TAG, "Received stop access point request from " + token); in stopProjectionAccessPoint()
288 if (!unregisterWirelessClientLocked(token)) { in stopProjectionAccessPoint()
289 Log.w(TAG, "Client " + token + " was not registered"); in stopProjectionAccessPoint()
341 BluetoothDevice device, int profile, IBinder token) { in requestBluetoothProfileInhibit() argument
352 if (token == null) { in requestBluetoothProfileInhibit()
355 return mCarBluetoothService.requestProfileInhibit(device, profile, token); in requestBluetoothProfileInhibit()
374 BluetoothDevice device, int profile, IBinder token) { in releaseBluetoothProfileInhibit() argument
385 if (token == null) { in releaseBluetoothProfileInhibit()
388 return mCarBluetoothService.releaseProfileInhibit(device, profile, token); in releaseBluetoothProfileInhibit()
[all …]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/sqlite/
DSqlChecker.java86 private void throwIfContainsToken(String token, String sql) { in throwIfContainsToken() argument
87 final String lower = token.toLowerCase(); in throwIfContainsToken()
89 throw genException("Detected disallowed token: " + token, sql); in throwIfContainsToken()
97 findTokens(sql, OPTION_NONE, token -> throwIfContainsToken(token, sql)); in ensureNoInvalidTokens()
107 findTokens(sql, OPTION_TOKEN_ONLY, token -> { in ensureSingleTokenOnly()
112 throwIfContainsToken(token, sql); in ensureSingleTokenOnly()
158 final String token = sql.substring(start, end); in findTokens() local
159 checker.accept(token); in findTokens()
187 final String token; in findTokens() local
191 token = tokenUnquoted.replaceAll( in findTokens()
[all …]
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
DSQLiteTokenizer.java107 final String token = sql.substring(start, end); in tokenize() local
108 checker.accept(token); in tokenize()
136 final String token; in tokenize() local
140 token = tokenUnquoted.replaceAll( in tokenize()
143 token = tokenUnquoted; in tokenize()
145 checker.accept(token); in tokenize()
165 final String token = sql.substring(quoteStart + 1, quoteEnd); in tokenize() local
167 checker.accept(token); in tokenize()
214 public static boolean isKeyword(@NonNull String token) { in isKeyword() argument
215 switch (token.toUpperCase(Locale.US)) { in isKeyword()
[all …]
/packages/apps/Dialer/java/com/android/dialer/blocking/
DFilteredNumberAsyncQueryHandler.java58 protected void onQueryComplete(int token, Object cookie, Cursor cursor) { in onQueryComplete() argument
61 ((Listener) cookie).onQueryComplete(token, cookie, cursor); in onQueryComplete()
71 protected void onInsertComplete(int token, Object cookie, Uri uri) { in onInsertComplete() argument
73 ((Listener) cookie).onInsertComplete(token, cookie, uri); in onInsertComplete()
78 protected void onUpdateComplete(int token, Object cookie, int result) { in onUpdateComplete() argument
80 ((Listener) cookie).onUpdateComplete(token, cookie, result); in onUpdateComplete()
85 protected void onDeleteComplete(int token, Object cookie, int result) { in onDeleteComplete() argument
87 ((Listener) cookie).onDeleteComplete(token, cookie, result); in onDeleteComplete()
100 protected void onQueryComplete(int token, Object cookie, Cursor cursor) { in hasBlockedNumbers()
160 protected void onQueryComplete(int token, Object cookie, Cursor cursor) { in isBlockedNumber()
[all …]
/packages/apps/Settings/src/com/android/settings/notification/
DRemoteVolumePreferenceController.java55 public void onRemoteUpdate(MediaSession.Token token, String name,
58 updateToken(token);
60 if (Objects.equals(mActiveToken, token)) {
76 public void onRemoteVolumeChanged(MediaSession.Token token, int flags) {
77 if (Objects.equals(mActiveToken, token)) {
219 MediaSession.Token token, MediaController.PlaybackInfo playbackInfo) { in updatePreference() argument
220 if (seekBarPreference == null || token == null || playbackInfo == null) { in updatePreference()
229 private void updateToken(MediaSession.Token token) { in updateToken() argument
230 mActiveToken = token; in updateToken()
231 if (token != null) { in updateToken()
[all …]
/packages/services/Car/car-lib/src/android/car/vms/
DVmsPublisherClientService.java86 private void setToken(IBinder token) { in setToken() argument
88 mToken = token; in setToken()
118 IBinder token = getTokenForPublisherServiceThreadSafe(); in publish() local
121 mVmsPublisherService.publish(token, layer, publisherId, payload); in publish()
137 IBinder token = getTokenForPublisherServiceThreadSafe(); in setLayersOffering() local
140 mVmsPublisherService.setLayersOffering(token, offering); in setLayersOffering()
152 IBinder token; in getTokenForPublisherServiceThreadSafe() local
154 token = mToken; in getTokenForPublisherServiceThreadSafe()
156 if (token == null) { in getTokenForPublisherServiceThreadSafe()
159 return token; in getTokenForPublisherServiceThreadSafe()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/
DRemoteVolumePreferenceController.java56 public void onRemoteUpdate(MediaSession.Token token, String name,
59 updateToken(token);
61 if (Objects.equals(mActiveToken, token)) {
77 public void onRemoteVolumeChanged(MediaSession.Token token, int flags) {
78 if (Objects.equals(mActiveToken, token)) {
201 MediaSession.Token token, MediaController.PlaybackInfo playbackInfo) { in updatePreference() argument
202 if (seekBarPreference == null || token == null || playbackInfo == null) { in updatePreference()
211 private void updateToken(MediaSession.Token token) { in updateToken() argument
212 mActiveToken = token; in updateToken()
213 if (token != null) { in updateToken()
[all …]
/packages/providers/TvProvider/src/com/android/providers/tv/util/
DSqliteTokenFinder.java88 final String token = sql.substring(start, end); in findTokens() local
89 checker.accept(Pair.create(TYPE_REGULAR, token)); in findTokens()
114 String token = sql.substring(quoteStart + 1, quoteEnd); in findTokens() local
116 if (token.indexOf(ch) >= 0) { in findTokens()
117 token = token.replaceAll(String.valueOf(ch) + ch, String.valueOf(ch)); in findTokens()
131 checker.accept(Pair.create(type, token)); in findTokens()
146 final String token = sql.substring(quoteStart + 1, quoteEnd); in findTokens() local
148 checker.accept(Pair.create(TYPE_IN_BRACKETS, token)); in findTokens()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadStorageProvider.java203 final long token = Binder.clearCallingIdentity(); in createDocument() local
217 Binder.restoreCallingIdentity(token); in createDocument()
224 final long token = Binder.clearCallingIdentity(); in deleteDocument() local
235 Binder.restoreCallingIdentity(token); in deleteDocument()
242 final long token = Binder.clearCallingIdentity(); in renameDocument() local
262 Binder.restoreCallingIdentity(token); in renameDocument()
269 final long token = Binder.clearCallingIdentity(); in queryDocument() local
302 Binder.restoreCallingIdentity(token); in queryDocument()
323 final long token = Binder.clearCallingIdentity(); in queryChildDocuments() local
362 Binder.restoreCallingIdentity(token); in queryChildDocuments()
[all …]
/packages/apps/TimeZoneUpdater/src/main/com/android/timezone/updater/
DRulesCheckReceiver.java102 byte[] token = intent.getByteArrayExtra(RulesUpdaterContract.EXTRA_CHECK_TOKEN); in onReceive()
103 EventLogTags.writeTimezoneCheckTriggerReceived(Arrays.toString(token)); in onReceive()
109 handleUninstall(token); in onReceive()
119 DistroOperation operation = getOperation(context, token); in onReceive()
123 handleCheckComplete(token, success); in onReceive()
132 handleCheckComplete(token, true /* success */); in onReceive()
135 handleUninstall(token); in onReceive()
138 handleCopyAndInstall(context, token, operation.mDistroFormatVersion, in onReceive()
145 handleCheckComplete(token, success); in onReceive()
348 private void handleCheckComplete(final byte[] token, final boolean success) { in handleCheckComplete() argument
[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/services/Car/service/src/com/android/car/trust/
DCarBleTrustAgent.java177 public void onEscrowTokenAdded(byte[] token, long handle, UserHandle user) { in onEscrowTokenAdded() argument
180 + Utils.byteArrayToHexString(token)); in onEscrowTokenAdded()
185 mCarTrustAgentEnrollmentService.onEscrowTokenAdded(token, handle, user.getIdentifier()); in onEscrowTokenAdded()
216 private void unlockUserInternally(int uid, byte[] token, long handle) { in unlockUserInternally() argument
226 unlockUserWithToken(handle, token, UserHandle.of(uid)); in unlockUserInternally()
277 public void addEscrowToken(byte[] token, int uid) {
282 token));
284 CarBleTrustAgent.this.addEscrowToken(token, UserHandle.of(uid));
316 public void onUnlockDataReceived(int user, byte[] token, long handle) {
319 Utils.bytesToLong(token)) + " handle: " + Long.toHexString(handle));
[all …]
/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/Launcher3/src/com/android/launcher3/util/
DWallpaperOffsetInterpolator.java163 public void setWindowToken(IBinder token) { in setWindowToken() argument
164 mWindowToken = token; in setWindowToken()
210 final IBinder token = (IBinder) msg.obj; in handleMessage() local
211 if (token == null) { in handleMessage()
240 setOffsetSafely(token); in handleMessage()
247 Message.obtain(this, MSG_APPLY_OFFSET, token).sendToTarget(); in handleMessage()
260 setOffsetSafely(token); in handleMessage()
268 private void setOffsetSafely(IBinder token) {
270 mWM.setWallpaperOffsets(token, mCurrentOffset, 0.5f);
/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 …]

1234567