/frameworks/base/core/java/android/app/ |
D | ActivityClient.java | 45 public void activityIdle(IBinder token, Configuration config, boolean stopProfiling) { in activityIdle() argument 47 getActivityClientController().activityIdle(token, config, stopProfiling); in activityIdle() 54 public void activityResumed(IBinder token, boolean handleSplashScreenExit) { in activityResumed() argument 56 getActivityClientController().activityResumed(token, handleSplashScreenExit); in activityResumed() 63 public void activityRefreshed(IBinder token) { in activityRefreshed() argument 65 getActivityClientController().activityRefreshed(token); in activityRefreshed() 84 public void activityPaused(IBinder token) { in activityPaused() argument 86 getActivityClientController().activityPaused(token); in activityPaused() 93 public void activityStopped(IBinder token, Bundle state, PersistableBundle persistentState, in activityStopped() argument 96 getActivityClientController().activityStopped(token, state, persistentState, in activityStopped() [all …]
|
D | IActivityClientController.aidl | 40 oneway void activityIdle(in IBinder token, in Configuration config, in boolean stopProfiling); in activityIdle() argument 41 oneway void activityResumed(in IBinder token, in boolean handleSplashScreenExit); in activityResumed() argument 42 oneway void activityRefreshed(in IBinder token); in activityRefreshed() argument 54 void activityPaused(in IBinder token); in activityPaused() argument 55 oneway void activityStopped(in IBinder token, in Bundle state, in activityStopped() argument 57 oneway void activityDestroyed(in IBinder token); in activityDestroyed() argument 58 oneway void activityLocalRelaunch(in IBinder token); in activityLocalRelaunch() argument 59 oneway void activityRelaunched(in IBinder token); in activityRelaunched() argument 61 oneway void reportSizeConfigurations(in IBinder token, in reportSizeConfigurations() argument 63 boolean moveActivityTaskToBack(in IBinder token, boolean nonRoot); in moveActivityTaskToBack() argument [all …]
|
/frameworks/base/services/core/java/com/android/server/tv/ |
D | TvRemoteServiceInput.java | 46 public void openInputBridge(IBinder token, String name, int width, in openInputBridge() argument 49 Slog.d(TAG, "openInputBridge(), token: " + token in openInputBridge() 55 if (mBridgeMap.containsKey(token)) { in openInputBridge() 62 mBridgeMap.put(token, in openInputBridge() 63 new UinputBridge(token, name, width, height, maxPointers)); in openInputBridge() 64 token.linkToDeath(new IBinder.DeathRecipient() { in openInputBridge() 67 closeInputBridge(token); in openInputBridge() 75 closeInputBridge(token); in openInputBridge() 84 mProvider.onInputBridgeConnected(token); in openInputBridge() 91 public void openGamepadBridge(IBinder token, String name) throws RemoteException { in openGamepadBridge() argument [all …]
|
D | UinputBridge.java | 67 public UinputBridge(IBinder token, String name, int width, int height, int maxPointers) in UinputBridge() argument 75 if (token == null) { in UinputBridge() 78 mPtr = nativeOpen(name, token.toString(), width, height, maxPointers); in UinputBridge() 82 mToken = token; in UinputBridge() 87 private UinputBridge(IBinder token, long ptr) { in UinputBridge() argument 89 mToken = token; in UinputBridge() 94 public static UinputBridge openGamepad(IBinder token, String name) in openGamepad() argument 96 if (token == null) { in openGamepad() 99 long ptr = nativeGamepadOpen(name, token.toString()); in openGamepad() 104 return new UinputBridge(token, ptr); in openGamepad() [all …]
|
/frameworks/base/media/lib/tvremote/java/com/android/media/tv/remoteprovider/ |
D | TvRemoteProvider.java | 162 public void onInputBridgeConnected(@NonNull IBinder token) { in onInputBridgeConnected() argument 194 @NonNull IBinder token, @NonNull String name, int width, int height, int maxPointers) in openRemoteInputBridge() 196 final IBinder finalToken = Objects.requireNonNull(token); in openRemoteInputBridge() 237 public void openGamepadBridge(@NonNull IBinder token, @NonNull String name) in openGamepadBridge() argument 239 final IBinder finalToken = Objects.requireNonNull(token); in openGamepadBridge() 258 mRemoteServiceInput.openGamepadBridge(token, finalName); in openGamepadBridge() 271 public void closeInputBridge(@NonNull IBinder token) throws RuntimeException { in closeInputBridge() argument 272 Objects.requireNonNull(token); in closeInputBridge() 274 mRemoteServiceInput.closeInputBridge(token); in closeInputBridge() 288 public void clearInputBridge(@NonNull IBinder token) throws RuntimeException { in clearInputBridge() 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/tests/wmtests/src/com/android/server/wm/ |
D | WindowTokenTests.java | 66 final TestWindowToken token = createTestWindowToken(0, mDisplayContent); in testAddWindow() local 68 assertEquals(0, token.getWindowsCount()); in testAddWindow() 70 final WindowState window1 = createWindow(null, TYPE_APPLICATION, token, "window1"); in testAddWindow() 71 final WindowState window11 = createWindow(window1, FIRST_SUB_WINDOW, token, "window11"); in testAddWindow() 72 final WindowState window12 = createWindow(window1, FIRST_SUB_WINDOW, token, "window12"); in testAddWindow() 73 final WindowState window2 = createWindow(null, TYPE_APPLICATION, token, "window2"); in testAddWindow() 74 final WindowState window3 = createWindow(null, TYPE_APPLICATION, token, "window3"); in testAddWindow() 76 token.addWindow(window1); in testAddWindow() 79 token.addWindow(window11); in testAddWindow() 80 token.addWindow(window12); in testAddWindow() [all …]
|
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/common/ |
D | LaunchAdjacentControllerTest.kt | 57 val token = MockToken().token() in <lambda>() constant 58 controller.setLaunchAdjacentRoot(token) in <lambda>() 60 assertThat(wct.getSetLaunchAdjacentFlagRootContainer()).isEqualTo(token.asBinder()) in <lambda>() 65 val token = MockToken().token() in <lambda>() constant 67 controller.setLaunchAdjacentRoot(token) in <lambda>() 73 val token = MockToken().token() in <lambda>() constant 74 controller.setLaunchAdjacentRoot(token) in <lambda>() 77 assertThat(wct.getClearLaunchAdjacentFlagRootContainer()).isEqualTo(token.asBinder()) in <lambda>() 82 val token = MockToken().token() in <lambda>() constant 83 controller.setLaunchAdjacentRoot(token) in <lambda>() [all …]
|
/frameworks/base/core/jni/ |
D | android_util_XmlBlock.cpp | 66 jlong token) in android_content_XmlBlock_nativeGetStringBlock() argument 68 ResXMLTree* osb = reinterpret_cast<ResXMLTree*>(token); in android_content_XmlBlock_nativeGetStringBlock() 78 jlong token, jint res_id) in android_content_XmlBlock_nativeCreateParseState() argument 80 ResXMLTree* osb = reinterpret_cast<ResXMLTree*>(token); in android_content_XmlBlock_nativeCreateParseState() 98 static jint android_content_XmlBlock_nativeNext(CRITICAL_JNI_PARAMS_COMMA jlong token) { in android_content_XmlBlock_nativeNext() argument 99 ResXMLParser* st = reinterpret_cast<ResXMLParser*>(token); in android_content_XmlBlock_nativeNext() 128 static jint android_content_XmlBlock_nativeGetNamespace(CRITICAL_JNI_PARAMS_COMMA jlong token) { in android_content_XmlBlock_nativeGetNamespace() argument 129 ResXMLParser* st = reinterpret_cast<ResXMLParser*>(token); in android_content_XmlBlock_nativeGetNamespace() 137 static jint android_content_XmlBlock_nativeGetName(CRITICAL_JNI_PARAMS_COMMA jlong token) { in android_content_XmlBlock_nativeGetName() argument 138 ResXMLParser* st = reinterpret_cast<ResXMLParser*>(token); in android_content_XmlBlock_nativeGetName() [all …]
|
/frameworks/base/core/tests/coretests/src/android/os/ |
D | CancellationSignalBeamerTest.java | 51 try (var token = mSender.beam(null)) { in testBeam_null() argument 52 assertThat(token).isNull(); in testBeam_null() 53 invokeGenericService(token); in testBeam_null() 60 try (var token = mSender.beam(mSenderSignal)) { in testBeam_nonNull() argument 61 assertThat(token).isNotNull(); in testBeam_nonNull() 62 invokeGenericService(token); in testBeam_nonNull() 70 try (var token = mSender.beam(mSenderSignal)) { in testBeam_async() argument 71 assertThat(token).isNotNull(); in testBeam_async() 72 outerToken = token; in testBeam_async() 80 try (var token = mSender.beam(mSenderSignal)) { in testCancelOnSentSignal_cancelsReceivedSignal() 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 44 void openGamepadBridge(IBinder token, String name); in openGamepadBridge() argument [all …]
|
/frameworks/base/core/java/android/os/ |
D | CancellationSignalBeamer.java | 141 public abstract void onCancel(@NonNull IBinder token); in onCancel() argument 149 public abstract void onForget(@NonNull IBinder token); in onForget() argument 198 var token = state.first.beam(cs); in beamFromScope() local 199 state.second.add(token); in beamFromScope() 200 return token; in beamFromScope() 234 private Preparer(Sender sender, CancellationSignal signal, Token token) { in Preparer() argument 237 mToken = token; in Preparer() 298 public CancellationSignal unbeam(@Nullable IBinder token) { in unbeam() argument 299 if (token == null) { in unbeam() 303 CancellationSignal cs = mTokenMap.get(token); in unbeam() [all …]
|
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/content/pm/ |
D | KeySet.java | 32 private IBinder token; field in KeySet 35 public KeySet(IBinder token) { in KeySet() argument 36 if (token == null) { in KeySet() 39 this.token = token; in KeySet() 44 return token; in getToken() 52 return token == ks.token; in equals() 60 return token.hashCode(); in hashCode() 91 IBinder token = in.readStrongBinder(); in readFromParcel() local 92 return new KeySet(token); in readFromParcel() 100 out.writeStrongBinder(token); in writeToParcel()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | ActivityClientController.java | 161 public void activityIdle(IBinder token, Configuration config, boolean stopProfiling) { in activityIdle() argument 166 final ActivityRecord r = ActivityRecord.forTokenLocked(token); in activityIdle() 183 public void activityResumed(IBinder token, boolean handleSplashScreenExit) { in activityResumed() argument 186 ActivityRecord.activityResumedLocked(token, handleSplashScreenExit); in activityResumed() 192 public void activityRefreshed(IBinder token) { in activityRefreshed() argument 195 ActivityRecord.activityRefreshedLocked(token); in activityRefreshed() 210 public void activityPaused(IBinder token) { in activityPaused() argument 214 final ActivityRecord r = ActivityRecord.forTokenLocked(token); in activityPaused() 224 public void activityStopped(IBinder token, Bundle icicle, PersistableBundle persistentState, in activityStopped() argument 226 if (DEBUG_ALL) Slog.v(TAG, "Activity stopped: token=" + token); in activityStopped() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/controller/ |
D | StatefulControlSubscriberTest.kt | 55 private val token = Binder() constant 69 `when`(provider.token).thenReturn(token) in setUp() 75 scs.onSubscribe(token, subscription) in testOnSubscribe() 91 scs.onSubscribe(token, subscription) in testOnNext() 92 scs.onNext(token, control) in testOnNext() 100 scs.onSubscribe(token, subscription) in testOnNext_multiple() 101 scs.onNext(token, control) in testOnNext_multiple() 102 scs.onNext(token, control) in testOnNext_multiple() 103 scs.onNext(token, control) in testOnNext_multiple() 111 scs.onNext(token, control) in testOnNext_noRefreshBeforeSubscribe() [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/services/backup/java/com/android/server/backup/internal/ |
D | LifecycleOperationStorage.java | 91 public void registerOperation(int token, @OpState int initialState, in registerOperation() argument 93 registerOperationForPackages(token, initialState, Sets.newHashSet(), task, type); in registerOperation() 98 public void registerOperationForPackages(int token, @OpState int initialState, in registerOperationForPackages() argument 101 mOperations.put(token, new Operation(initialState, task, type)); in registerOperationForPackages() 107 tokens.add(token); in registerOperationForPackages() 115 public void removeOperation(int token) { in removeOperation() argument 117 mOperations.remove(token); in removeOperation() 124 tokens.remove(token); in removeOperation() 172 final int token = mOperations.keyAt(i); in operationTokensForOpType() local 174 tokens.add(token); in operationTokensForOpType() [all …]
|
/frameworks/base/telephony/java/android/telephony/ims/stub/ |
D | ImsSmsImplBase.java | 178 public void sendSms(int token, @IntRange(from = 0, to = 65535) int messageRef, in sendSms() argument 183 onSendSmsResult(token, messageRef, SEND_STATUS_ERROR, in sendSms() 202 public void onMemoryAvailable(int token) { in onMemoryAvailable() argument 220 public void acknowledgeSms(int token, @IntRange(from = 0, to = 65535) int messageRef, in acknowledgeSms() argument 240 public void acknowledgeSms(int token, @IntRange(from = 0, to = 65535) int messageRef, in acknowledgeSms() argument 243 acknowledgeSms(token, messageRef, result); in acknowledgeSms() 259 public void acknowledgeSmsReport(int token, @IntRange(from = 0, to = 65535) int messageRef, in acknowledgeSmsReport() argument 278 public final void onSmsReceived(int token, @SmsMessage.Format String format, byte[] pdu) in onSmsReceived() argument 289 listener.onSmsReceived(token, format, pdu); in onSmsReceived() 294 acknowledgeSms(token, message.mWrappedSmsMessage.mMessageRef, in onSmsReceived() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/controller/ |
D | StatefulControlSubscriber.kt | 44 private fun run(token: IBinder, f: () -> Unit) { in run() 45 if (provider.token == token) { in run() 50 override fun onSubscribe(token: IBinder, subs: IControlsSubscription) { in onSubscribe() 51 run(token) { in onSubscribe() 58 override fun onNext(token: IBinder, control: Control) { in onNext() 59 run(token) { in onNext() 61 Log.w(TAG, "Refresh outside of window for token:$token") in onNext() 67 override fun onError(token: IBinder, error: String) { in onError() 68 run(token) { in onError() 76 override fun onComplete(token: IBinder) { in onComplete() [all …]
|
/frameworks/base/core/java/android/util/proto/ |
D | ProtoStream.java | 560 public static int getTagSizeFromToken(long token) { in getTagSizeFromToken() argument 561 return (int) (0x7 & (token >> 61)); in getTagSizeFromToken() 569 public static boolean getRepeatedFromToken(long token) { in getRepeatedFromToken() argument 570 return (0x1 & (token >> 60)) != 0; in getRepeatedFromToken() 578 public static int getDepthFromToken(long token) { in getDepthFromToken() argument 579 return (int) (0x01ff & (token >> 51)); in getDepthFromToken() 591 public static int getObjectIdFromToken(long token) { in getObjectIdFromToken() argument 592 return (int) (0x07ffff & (token >> 32)); in getObjectIdFromToken() 600 public static int getOffsetFromToken(long token) { in getOffsetFromToken() argument 601 return (int) token; in getOffsetFromToken() [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/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | ImsSmsDispatcherTest.java | 112 int token = mImsSmsDispatcher.mNextToken.get(); in testOnMemoryAvailable() local 115 assertEquals(token + 1, mImsSmsDispatcher.mNextToken.get()); in testOnMemoryAvailable() 116 verify(mImsManager).onMemoryAvailable(eq(token + 1)); in testOnMemoryAvailable() 126 int token = mImsSmsDispatcher.mNextToken.get(); in testOnMemoryAvailableResultErrorRetry() local 129 assertEquals(token + 1, mImsSmsDispatcher.mNextToken.get()); in testOnMemoryAvailableResultErrorRetry() 130 verify(mImsManager).onMemoryAvailable(eq(token + 1)); in testOnMemoryAvailableResultErrorRetry() 132 mImsSmsDispatcher.getSmsListener().onMemoryAvailableResult(token + 1, in testOnMemoryAvailableResultErrorRetry() 136 verify(mImsManager).onMemoryAvailable(eq(token + 2)); in testOnMemoryAvailableResultErrorRetry() 138 mImsSmsDispatcher.getSmsListener().onMemoryAvailableResult(token + 2, in testOnMemoryAvailableResultErrorRetry() 142 verify(mImsManager, times(0)).onMemoryAvailable(eq(token + 3)); in testOnMemoryAvailableResultErrorRetry() [all …]
|
/frameworks/base/core/java/android/companion/virtual/ |
D | IVirtualDevice.aidl | 84 void createVirtualDpad(in VirtualDpadConfig config, IBinder token); in createVirtualDpad() argument 90 void createVirtualKeyboard(in VirtualKeyboardConfig config, IBinder token); in createVirtualKeyboard() argument 96 void createVirtualMouse(in VirtualMouseConfig config, IBinder token); in createVirtualMouse() argument 102 void createVirtualTouchscreen(in VirtualTouchscreenConfig config, IBinder token); in createVirtualTouchscreen() argument 109 void createVirtualNavigationTouchpad(in VirtualNavigationTouchpadConfig config, IBinder token); in createVirtualNavigationTouchpad() argument 115 void unregisterInputDevice(IBinder token); in unregisterInputDevice() argument 121 int getInputDeviceId(IBinder token); in getInputDeviceId() argument 127 boolean sendDpadKeyEvent(IBinder token, in VirtualKeyEvent event); in sendDpadKeyEvent() argument 133 boolean sendKeyEvent(IBinder token, in VirtualKeyEvent event); in sendKeyEvent() argument 139 boolean sendButtonEvent(IBinder token, in VirtualMouseButtonEvent event); in sendButtonEvent() argument [all …]
|