/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | WindowTokenTests.java | 47 final WindowTestUtils.TestWindowToken token = in testAddWindow() local 50 assertEquals(0, token.getWindowsCount()); in testAddWindow() 52 final WindowState window1 = createWindow(null, TYPE_APPLICATION, token, "window1"); in testAddWindow() 53 final WindowState window11 = createWindow(window1, FIRST_SUB_WINDOW, token, "window11"); in testAddWindow() 54 final WindowState window12 = createWindow(window1, FIRST_SUB_WINDOW, token, "window12"); in testAddWindow() 55 final WindowState window2 = createWindow(null, TYPE_APPLICATION, token, "window2"); in testAddWindow() 56 final WindowState window3 = createWindow(null, TYPE_APPLICATION, token, "window3"); in testAddWindow() 58 token.addWindow(window1); in testAddWindow() 61 token.addWindow(window11); in testAddWindow() 62 token.addWindow(window12); in testAddWindow() [all …]
|
/frameworks/base/services/core/java/com/android/server/tv/ |
D | TvRemoteService.java | 89 private void informInputBridgeConnected(IBinder token) { in informInputBridgeConnected() argument 90 mHandler.obtainMessage(UserHandler.MSG_INPUT_BRIDGE_CONNECTED, 0, 0, token).sendToTarget(); in informInputBridgeConnected() 94 private void openInputBridgeInternalLocked(TvRemoteProviderProxy provider, IBinder token, in openInputBridgeInternalLocked() argument 98 Slog.d(TAG, "openInputBridgeInternalLocked(), token: " + token + ", name: " + name + in openInputBridgeInternalLocked() 104 if (mBridgeMap.containsKey(token)) { in openInputBridgeInternalLocked() 107 informInputBridgeConnected(token); in openInputBridgeInternalLocked() 111 UinputBridge inputBridge = new UinputBridge(token, name, width, height, maxPointers); in openInputBridgeInternalLocked() 113 mBridgeMap.put(token, inputBridge); in openInputBridgeInternalLocked() 114 mProviderMap.put(token, provider); in openInputBridgeInternalLocked() 117 informInputBridgeConnected(token); in openInputBridgeInternalLocked() [all …]
|
D | UinputBridge.java | 44 public UinputBridge(IBinder token, String name, int width, int height, int maxPointers) in UinputBridge() argument 52 if (token == null) { in UinputBridge() 55 mPtr = nativeOpen(name, token.toString(), width, height, maxPointers); in UinputBridge() 59 mToken = token; in UinputBridge() 76 public void close(IBinder token) { in close() argument 77 if (isTokenValid(token)) { in close() 79 clear(token); in close() 92 protected boolean isTokenValid(IBinder token) { in isTokenValid() argument 93 return mToken.equals(token); in isTokenValid() 96 public void sendTimestamp(IBinder token, long timestamp) { in sendTimestamp() argument [all …]
|
D | TvRemoteProviderProxy.java | 240 public void inputBridgeConnected(IBinder token) { in inputBridgeConnected() argument 242 if (DEBUG) Slog.d(TAG, this + ": inputBridgeConnected token: " + token); in inputBridgeConnected() 244 mActiveConnection.onInputBridgeConnected(token); in inputBridgeConnected() 251 void openInputBridge(TvRemoteProviderProxy provider, IBinder token, String name, in openInputBridge() argument 254 void closeInputBridge(TvRemoteProviderProxy provider, IBinder token); in closeInputBridge() argument 256 void clearInputBridge(TvRemoteProviderProxy provider, IBinder token); in clearInputBridge() argument 258 void sendTimeStamp(TvRemoteProviderProxy provider, IBinder token, long timestamp); in sendTimeStamp() argument 260 void sendKeyDown(TvRemoteProviderProxy provider, IBinder token, int keyCode); in sendKeyDown() argument 262 void sendKeyUp(TvRemoteProviderProxy provider, IBinder token, int keyCode); in sendKeyUp() argument 264 void sendPointerDown(TvRemoteProviderProxy provider, IBinder token, int pointerId, int x, in sendPointerDown() argument [all …]
|
/frameworks/compile/mclinker/lib/Script/ |
D | ScriptScanner.ll | 19 typedef mcld::ScriptParser::token token; 22 #define yyterminate() return token::END 68 return token::LINKER_SCRIPT; 79 <LDSCRIPT>"ENTRY" { return token::ENTRY; } 81 <LDSCRIPT>"INCLUDE" { return token::INCLUDE; } 82 <LDSCRIPT>"INPUT" { return token::INPUT; } 83 <LDSCRIPT>"GROUP" { return token::GROUP; } 84 <LDSCRIPT>"AS_NEEDED" { return token::AS_NEEDED; } 85 <LDSCRIPT>"OUTPUT" { return token::OUTPUT; } 86 <LDSCRIPT>"SEARCH_DIR" { return token::SEARCH_DIR; } [all …]
|
D | ScriptParser.yy | 82 %token END 0 /* EOF */ 83 %token <string> STRING LNAMESPEC 84 %token <integer> INTEGER 87 %token LINKER_SCRIPT DEFSYM VERSION_SCRIPT DYNAMIC_LIST 90 %token ENTRY 92 %token INCLUDE 93 %token INPUT 94 %token GROUP 95 %token AS_NEEDED 96 %token OUTPUT [all …]
|
/frameworks/base/services/net/java/android/net/ip/ |
D | IpClientManager.java | 67 final long token = Binder.clearCallingIdentity(); in completedPreDhcpAction() local 75 Binder.restoreCallingIdentity(token); in completedPreDhcpAction() 83 final long token = Binder.clearCallingIdentity(); in confirmConfiguration() local 97 final long token = Binder.clearCallingIdentity(); in readPacketFilterComplete() local 105 Binder.restoreCallingIdentity(token); in readPacketFilterComplete() 113 final long token = Binder.clearCallingIdentity(); in shutdown() local 121 Binder.restoreCallingIdentity(token); in shutdown() 129 final long token = Binder.clearCallingIdentity(); in startProvisioning() local 137 Binder.restoreCallingIdentity(token); in startProvisioning() 147 final long token = Binder.clearCallingIdentity(); in stop() local [all …]
|
/frameworks/base/media/lib/tvremote/java/com/android/media/tv/remoteprovider/ |
D | TvRemoteProvider.java | 99 public void onInputBridgeConnected(IBinder token) { in onInputBridgeConnected() argument 126 public void openRemoteInputBridge(IBinder token, String name, int width, int height, in openRemoteInputBridge() argument 129 mRemoteServiceInput.openInputBridge(token, name, width, height, maxPointers); in openRemoteInputBridge() 141 public void closeInputBridge(IBinder token) throws RuntimeException { in closeInputBridge() argument 143 mRemoteServiceInput.closeInputBridge(token); in closeInputBridge() 157 public void clearInputBridge(IBinder token) throws RuntimeException { in clearInputBridge() argument 158 if (DEBUG_KEYS) Log.d(TAG, "clearInputBridge() token " + token); in clearInputBridge() 160 mRemoteServiceInput.clearInputBridge(token); in clearInputBridge() 174 public void sendTimestamp(IBinder token, long timestamp) throws RuntimeException { in sendTimestamp() argument 175 if (DEBUG_KEYS) Log.d(TAG, "sendTimestamp() token: " + token + in sendTimestamp() [all …]
|
/frameworks/native/opengl/libagl/ |
D | Tokenizer.cpp | 50 uint32_t token = run.first + run.length; in acquire() local 51 _insertTokenAt(token, 1); in acquire() 52 return token; in acquire() 55 bool Tokenizer::isAcquired(uint32_t token) const in isAcquired() 57 return (_indexOrderOf(token) >= 0); in isAcquired() 60 status_t Tokenizer::reserve(uint32_t token) in reserve() argument 63 const ssize_t i = _indexOrderOf(token, &o); in reserve() 67 ssize_t err = _insertTokenAt(token, o); in reserve() 71 status_t Tokenizer::release(uint32_t token) in release() argument 73 const ssize_t i = _indexOrderOf(token); in release() [all …]
|
/frameworks/base/services/net/java/android/net/ |
D | NetworkMonitorManager.java | 60 final long token = Binder.clearCallingIdentity(); in start() local 68 Binder.restoreCallingIdentity(token); in start() 73 final long token = Binder.clearCallingIdentity(); in launchCaptivePortalApp() local 81 Binder.restoreCallingIdentity(token); in launchCaptivePortalApp() 86 final long token = Binder.clearCallingIdentity(); in notifyCaptivePortalAppFinished() local 94 Binder.restoreCallingIdentity(token); in notifyCaptivePortalAppFinished() 99 final long token = Binder.clearCallingIdentity(); in setAcceptPartialConnectivity() local 107 Binder.restoreCallingIdentity(token); in setAcceptPartialConnectivity() 112 final long token = Binder.clearCallingIdentity(); in forceReevaluation() local 120 Binder.restoreCallingIdentity(token); in forceReevaluation() [all …]
|
/frameworks/base/core/jni/ |
D | android_util_XmlBlock.cpp | 63 jlong token) in android_content_XmlBlock_nativeGetStringBlock() argument 65 ResXMLTree* osb = reinterpret_cast<ResXMLTree*>(token); in android_content_XmlBlock_nativeGetStringBlock() 75 jlong token, jint res_id) in android_content_XmlBlock_nativeCreateParseState() argument 77 ResXMLTree* osb = reinterpret_cast<ResXMLTree*>(token); in android_content_XmlBlock_nativeCreateParseState() 96 jlong token) in android_content_XmlBlock_nativeNext() argument 98 ResXMLParser* st = reinterpret_cast<ResXMLParser*>(token); in android_content_XmlBlock_nativeNext() 130 jlong token) in android_content_XmlBlock_nativeGetNamespace() argument 132 ResXMLParser* st = reinterpret_cast<ResXMLParser*>(token); in android_content_XmlBlock_nativeGetNamespace() 141 jlong token) in android_content_XmlBlock_nativeGetName() argument 143 ResXMLParser* st = reinterpret_cast<ResXMLParser*>(token); in android_content_XmlBlock_nativeGetName() [all …]
|
/frameworks/base/core/java/android/app/ |
D | IActivityTaskManager.aidl | 127 boolean finishActivity(in IBinder token, int code, in Intent data, int finishTask); in finishActivity() argument 128 boolean finishActivityAffinity(in IBinder token); in finishActivityAffinity() argument 130 oneway void activityIdle(in IBinder token, in Configuration config, in activityIdle() argument 132 void activityResumed(in IBinder token); in activityResumed() argument 134 void activityPaused(in IBinder token); in activityPaused() argument 135 void activityStopped(in IBinder token, in Bundle state, in activityStopped() argument 137 oneway void activityDestroyed(in IBinder token); in activityDestroyed() argument 138 void activityRelaunched(in IBinder token); in activityRelaunched() argument 139 oneway void activitySlept(in IBinder token); in activitySlept() argument 142 String getCallingPackage(in IBinder token); in getCallingPackage() argument [all …]
|
D | ClientTransactionHandler.java | 70 public abstract Activity getActivity(IBinder token); in getActivity() argument 91 public abstract void handleDestroyActivity(IBinder token, boolean finishing, int configChanges, in handleDestroyActivity() argument 95 public abstract void handlePauseActivity(IBinder token, boolean finished, boolean userLeaving, in handlePauseActivity() argument 106 public abstract void handleResumeActivity(IBinder token, boolean finalStateRequest, in handleResumeActivity() argument 116 public abstract void handleTopResumedActivityChanged(IBinder token, in handleTopResumedActivityChanged() argument 130 public abstract void handleStopActivity(IBinder token, boolean show, int configChanges, in handleStopActivity() argument 137 public abstract void performRestartActivity(IBinder token, boolean start); in performRestartActivity() argument 148 public abstract void handleSendResult(IBinder token, List<ResultInfo> results, String reason); in handleSendResult() argument 151 public abstract void handleMultiWindowModeChanged(IBinder token, boolean isInMultiWindowMode, in handleMultiWindowModeChanged() argument 155 public abstract void handleNewIntent(IBinder token, List<ReferrerIntent> intents); in handleNewIntent() argument [all …]
|
D | InstantAppResolverService.java | 66 public void onGetInstantAppResolveInfo(@Nullable int[] digestPrefix, @NonNull String token, in onGetInstantAppResolveInfo() argument 80 public void onGetInstantAppIntentFilter(@Nullable int[] digestPrefix, @NonNull String token, in onGetInstantAppIntentFilter() argument 111 @Nullable int[] hostDigestPrefix, @NonNull String token, in onGetInstantAppResolveInfo() argument 115 onGetInstantAppResolveInfo(hostDigestPrefix, token, callback); in onGetInstantAppResolveInfo() 143 @NonNull String token, @NonNull InstantAppResolutionCallback callback) { in onGetInstantAppIntentFilter() argument 147 onGetInstantAppIntentFilter(hostDigestPrefix, token, callback); in onGetInstantAppIntentFilter() 176 @NonNull String token, @NonNull InstantAppResolutionCallback callback) { in onGetInstantAppResolveInfo() argument 178 onGetInstantAppResolveInfo(sanitizedIntent, hostDigestPrefix, token, callback); in onGetInstantAppResolveInfo() 199 @NonNull String token, @NonNull InstantAppResolutionCallback callback) { in onGetInstantAppIntentFilter() argument 201 onGetInstantAppIntentFilter(sanitizedIntent, hostDigestPrefix, token, callback); in onGetInstantAppIntentFilter() [all …]
|
/frameworks/base/core/java/android/util/proto/ |
D | ProtoStream.java | 490 public static int getTagSizeFromToken(long token) { in getTagSizeFromToken() argument 491 return (int) (0x7 & (token >> 61)); in getTagSizeFromToken() 499 public static boolean getRepeatedFromToken(long token) { in getRepeatedFromToken() argument 500 return (0x1 & (token >> 60)) != 0; in getRepeatedFromToken() 508 public static int getDepthFromToken(long token) { in getDepthFromToken() argument 509 return (int) (0x01ff & (token >> 51)); in getDepthFromToken() 521 public static int getObjectIdFromToken(long token) { in getObjectIdFromToken() argument 522 return (int) (0x07ffff & (token >> 32)); in getObjectIdFromToken() 530 public static int getOffsetFromToken(long token) { in getOffsetFromToken() argument 531 return (int) token; in getOffsetFromToken() [all …]
|
/frameworks/base/core/java/android/os/ |
D | TokenWatcher.java | 78 public void acquire(IBinder token, String tag) in acquire() argument 81 if (mTokens.containsKey(token)) { in acquire() 89 Death d = new Death(token, tag); in acquire() 91 token.linkToDeath(d, 0); in acquire() 95 mTokens.put(token, d); in acquire() 104 public void cleanup(IBinder token, boolean unlink) in cleanup() argument 107 Death d = mTokens.remove(token); in cleanup() 109 d.token.unlinkToDeath(d, 0); in cleanup() 110 d.token = null; in cleanup() 120 public void release(IBinder token) in release() argument [all …]
|
/frameworks/base/core/java/android/util/ |
D | JsonReader.java | 216 private JsonToken token; field in JsonReader 311 if (token != expected) { in expect() 322 return token != JsonToken.END_OBJECT && token != JsonToken.END_ARRAY; in hasNext() 329 if (token != null) { in peek() 330 return token; in peek() 337 if (!lenient && token != JsonToken.BEGIN_ARRAY && token != JsonToken.BEGIN_OBJECT) { in peek() 339 "Expected JSON document to start with '[' or '{' but was " + token); in peek() 354 JsonToken token = nextValue(); in peek() local 356 return token; in peek() 360 return token = JsonToken.END_DOCUMENT; // TODO: avoid throwing here? in peek() [all …]
|
/frameworks/base/core/java/android/content/pm/ |
D | KeySet.java | 31 private IBinder token; field in KeySet 34 public KeySet(IBinder token) { in KeySet() argument 35 if (token == null) { in KeySet() 38 this.token = token; in KeySet() 43 return token; in getToken() 51 return token == ks.token; in equals() 59 return token.hashCode(); in hashCode() 90 IBinder token = in.readStrongBinder(); in readFromParcel() local 91 return new KeySet(token); in readFromParcel() 99 out.writeStrongBinder(token); in writeToParcel()
|
/frameworks/base/telephony/java/android/telephony/ims/stub/ |
D | ImsSmsImplBase.java | 162 public void sendSms(int token, @IntRange(from = 0, to = 65535) int messageRef, in sendSms() argument 167 onSendSmsResult(token, messageRef, SEND_STATUS_ERROR, in sendSms() 185 public void acknowledgeSms(int token, @IntRange(from = 0, to = 65535) int messageRef, in acknowledgeSms() argument 203 public void acknowledgeSmsReport(int token, @IntRange(from = 0, to = 65535) int messageRef, in acknowledgeSmsReport() argument 222 public final void onSmsReceived(int token, @SmsMessage.Format String format, byte[] pdu) in onSmsReceived() argument 229 mListener.onSmsReceived(token, format, pdu); in onSmsReceived() 234 acknowledgeSms(token, message.mWrappedSmsMessage.mMessageRef, in onSmsReceived() 238 acknowledgeSms(token, 0, DELIVER_STATUS_ERROR_GENERIC); in onSmsReceived() 257 public final void onSendSmsResultSuccess(int token, in onSendSmsResultSuccess() argument 264 mListener.onSendSmsResult(token, messageRef, SEND_STATUS_OK, in onSendSmsResultSuccess() [all …]
|
/frameworks/base/core/tests/coretests/src/android/text/method/ |
D | EditorState.java | 79 for (String token : tokens) { in setByString() 80 if (token.startsWith("'") && token.endsWith("'")) { in setByString() 81 for (int i = 1; i < token.length() - 1; ++i) { in setByString() 82 final char ch = token.charAt(1); in setByString() 89 sb.append(token.substring(1, token.length() - 1)); in setByString() 90 } else if (token.startsWith("U+")) { in setByString() 91 final int codePoint = Integer.parseInt(token.substring(2), 16); in setByString() 93 throw new IllegalArgumentException("Invalid code point is specified:" + token); in setByString() 96 } else if (token.equals(CURSOR)) { in setByString() 102 } else if (token.equals(SELECTION_START)) { in setByString() [all …]
|
/frameworks/base/core/java/android/hardware/face/ |
D | IFaceService.aidl | 30 void authenticate(IBinder token, long sessionId, int userid, in authenticate() argument 38 void prepareForAuthentication(boolean requireConfirmation, IBinder token, long sessionId, in prepareForAuthentication() argument 46 void cancelAuthentication(IBinder token, String opPackageName); in cancelAuthentication() argument 49 void cancelAuthenticationFromService(IBinder token, String opPackageName, in cancelAuthenticationFromService() argument 53 void enroll(int userId, IBinder token, in byte [] cryptoToken, IFaceServiceReceiver receiver, in enroll() argument 57 void cancelEnrollment(IBinder token); in cancelEnrollment() argument 60 void remove(IBinder token, int faceId, int userId, IFaceServiceReceiver receiver, in remove() argument 73 long generateChallenge(IBinder token); in generateChallenge() argument 76 int revokeChallenge(IBinder token); in revokeChallenge() argument 91 void resetLockout(in byte [] token); in resetLockout() argument [all …]
|
/frameworks/base/media/java/android/media/tv/ |
D | ITvRemoteServiceInput.aidl | 25 void openInputBridge(IBinder token, String name, int width, int height, int maxPointers); in openInputBridge() argument 27 void closeInputBridge(IBinder token); in closeInputBridge() argument 29 void clearInputBridge(IBinder token); in clearInputBridge() argument 31 void sendTimestamp(IBinder token, long timestamp); in sendTimestamp() argument 33 void sendKeyDown(IBinder token, int keyCode); in sendKeyDown() argument 35 void sendKeyUp(IBinder token, int keyCode); in sendKeyUp() argument 37 void sendPointerDown(IBinder token, int pointerId, int x, int y); in sendPointerDown() argument 39 void sendPointerUp(IBinder token, int pointerId); in sendPointerUp() argument 41 void sendPointerSync(IBinder token); in sendPointerSync() argument
|
/frameworks/base/core/java/android/app/servertransaction/ |
D | TransactionExecutor.java | 72 final IBinder token = transaction.getActivityToken(); in execute() local 73 if (token != null) { in execute() 76 final ClientTransactionItem destroyItem = activitiesToBeDestroyed.get(token); in execute() 81 activitiesToBeDestroyed.remove(token); in execute() 83 if (mTransactionHandler.getActivityClient(token) == null) { in execute() 112 final IBinder token = transaction.getActivityToken(); in executeCallbacks() local 113 ActivityClientRecord r = mTransactionHandler.getActivityClient(token); in executeCallbacks() 135 item.execute(mTransactionHandler, token, mPendingActions); in executeCallbacks() 136 item.postExecute(mTransactionHandler, token, mPendingActions); in executeCallbacks() 139 r = mTransactionHandler.getActivityClient(token); in executeCallbacks() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | AppSmsManager.java | 90 String token = generateNonce(); in createAppSpecificSmsToken() local 97 AppRequestInfo info = new AppRequestInfo(callingPkg, intent, token); in createAppSpecificSmsToken() 100 return token; in createAppSpecificSmsToken() 127 String token = PackageBasedTokenUtil.generateToken(mContext, callingPackageName); in createAppSpecificSmsTokenWithPackageInfo() local 128 if (token != null) { in createAppSpecificSmsTokenWithPackageInfo() 136 callingPackageName, intent, token, prefixes, subId, true); in createAppSpecificSmsTokenWithPackageInfo() 140 return token; in createAppSpecificSmsTokenWithPackageInfo() 191 for (String token : keySet) { in removeExpiredTokenLocked() 192 AppRequestInfo request = mTokenMap.get(token); in removeExpiredTokenLocked() 229 for (String token : mTokenMap.keySet()) { in findAppRequestInfoSmsIntentLocked() [all …]
|
/frameworks/base/core/java/android/content/ |
D | AsyncQueryHandler.java | 72 int token = msg.what; in handleMessage() local 111 Message reply = args.handler.obtainMessage(token); in handleMessage() 164 public void startQuery(int token, Object cookie, Uri uri, in startQuery() argument 168 Message msg = mWorkerThreadHandler.obtainMessage(token); in startQuery() 193 public final void cancelOperation(int token) { in cancelOperation() argument 194 mWorkerThreadHandler.removeMessages(token); in cancelOperation() 207 public final void startInsert(int token, Object cookie, Uri uri, in startInsert() argument 210 Message msg = mWorkerThreadHandler.obtainMessage(token); in startInsert() 233 public final void startUpdate(int token, Object cookie, Uri uri, in startUpdate() argument 236 Message msg = mWorkerThreadHandler.obtainMessage(token); in startUpdate() [all …]
|