Home
last modified time | relevance | path

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

12345678910>>...59

/frameworks/base/core/java/android/app/
DActivityClient.java50 public void activityIdle(IBinder token, Configuration config, boolean stopProfiling) { in activityIdle() argument
52 getActivityClientController().activityIdle(token, config, stopProfiling); in activityIdle()
59 public void activityResumed(IBinder token, boolean handleSplashScreenExit) { in activityResumed() argument
61 getActivityClientController().activityResumed(token, handleSplashScreenExit); in activityResumed()
68 public void activityRefreshed(IBinder token) { in activityRefreshed() argument
70 getActivityClientController().activityRefreshed(token); in activityRefreshed()
89 public void activityPaused(IBinder token) { in activityPaused() argument
91 getActivityClientController().activityPaused(token); in activityPaused()
98 public void activityStopped(IBinder token, Bundle state, PersistableBundle persistentState, in activityStopped() argument
101 getActivityClientController().activityStopped(token, state, persistentState, in activityStopped()
[all …]
DIActivityClientController.aidl41 oneway void activityIdle(in IBinder token, in Configuration config, in boolean stopProfiling); in activityIdle() argument
42 oneway void activityResumed(in IBinder token, in boolean handleSplashScreenExit); in activityResumed() argument
43 oneway void activityRefreshed(in IBinder token); in activityRefreshed() argument
55 void activityPaused(in IBinder token); in activityPaused() argument
56 oneway void activityStopped(in IBinder token, in Bundle state, in activityStopped() argument
58 oneway void activityDestroyed(in IBinder token); in activityDestroyed() argument
59 oneway void activityLocalRelaunch(in IBinder token); in activityLocalRelaunch() argument
60 oneway void activityRelaunched(in IBinder token); in activityRelaunched() argument
62 oneway void reportSizeConfigurations(in IBinder token, in reportSizeConfigurations() argument
64 boolean moveActivityTaskToBack(in IBinder token, boolean nonRoot); in moveActivityTaskToBack() argument
[all …]
/frameworks/base/services/core/java/com/android/server/tv/
DTvRemoteServiceInput.java46 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 …]
DUinputBridge.java67 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/
DTvRemoteProvider.java162 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/
DScriptScanner.ll19 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 …]
DScriptParser.yy82 %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/
DWindowTokenTests.java66 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/
DLaunchAdjacentControllerTest.kt57 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/
Dandroid_util_XmlBlock.cpp66 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/media/java/android/media/tv/
DITvRemoteServiceInput.aidl25 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/tests/coretests/src/android/os/
DCancellationSignalBeamerTest.java64 try (var token = mSender.beam(null)) { in testBeam_null() argument
65 assertThat(token).isNull(); in testBeam_null()
66 invokeGenericService(token); in testBeam_null()
73 try (var token = mSender.beam(mSenderSignal)) { in testBeam_nonNull() argument
74 assertThat(token).isNotNull(); in testBeam_nonNull()
75 invokeGenericService(token); in testBeam_nonNull()
83 try (var token = mSender.beam(mSenderSignal)) { in testBeam_async() argument
84 assertThat(token).isNotNull(); in testBeam_async()
85 outerToken = token; in testBeam_async()
93 try (var token = mSender.beam(mSenderSignal)) { in testCancelOnSentSignal_cancelsReceivedSignal() argument
[all …]
/frameworks/base/core/java/android/os/
DCancellationSignalBeamer.java141 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 …]
DTokenWatcher.java78 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/services/core/java/com/android/server/wm/
DActivityClientController.java176 public void activityIdle(IBinder token, Configuration config, boolean stopProfiling) { in activityIdle() argument
181 final ActivityRecord r = ActivityRecord.forTokenLocked(token); in activityIdle()
198 public void activityResumed(IBinder token, boolean handleSplashScreenExit) { in activityResumed() argument
201 ActivityRecord.activityResumedLocked(token, handleSplashScreenExit); in activityResumed()
207 public void activityRefreshed(IBinder token) { in activityRefreshed() argument
210 ActivityRecord.activityRefreshedLocked(token); in activityRefreshed()
225 public void activityPaused(IBinder token) { in activityPaused() argument
229 final ActivityRecord r = ActivityRecord.forTokenLocked(token); in activityPaused()
239 public void activityStopped(IBinder token, Bundle icicle, PersistableBundle persistentState, in activityStopped() argument
241 if (DEBUG_ALL) Slog.v(TAG, "Activity stopped: token=" + token); in activityStopped()
[all …]
/frameworks/base/core/java/android/content/pm/
DKeySet.java32 private final 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/packages/SystemUI/tests/src/com/android/systemui/controls/controller/
DStatefulControlSubscriberTest.kt55 private val token = Binder() constant in com.android.systemui.controls.controller.StatefulControlSubscriberTest
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/services/backup/java/com/android/server/backup/internal/
DLifecycleOperationStorage.java91 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/nfc/java/android/nfc/
DNfcActivityManager.java113 Binder token; field in NfcActivityManager.NfcActivityState
127 this.token = new Binder(); in NfcActivityState()
137 token = null; in destroy()
197 Binder token; in enableReaderMode() local
206 token = state.token; in enableReaderMode()
215 setReaderMode(token, flags, extras); in enableReaderMode()
222 Binder token; in disableReaderMode() local
228 token = state.token; in disableReaderMode()
232 setReaderMode(token, 0, null); in disableReaderMode()
237 public void setReaderMode(Binder token, int flags, Bundle extras) { in setReaderMode() argument
[all …]
/frameworks/base/telephony/java/android/telephony/ims/stub/
DImsSmsImplBase.java178 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/core/java/android/util/
DJsonReader.java217 private JsonToken token; field in JsonReader
312 if (token != expected) { in expect()
323 return token != JsonToken.END_OBJECT && token != JsonToken.END_ARRAY; in hasNext()
330 if (token != null) { in peek()
331 return token; in peek()
338 if (!lenient && token != JsonToken.BEGIN_ARRAY && token != JsonToken.BEGIN_OBJECT) { in peek()
340 "Expected JSON document to start with '[' or '{' but was " + token); in peek()
355 JsonToken token = nextValue(); in peek() local
357 return token; in peek()
361 return token = JsonToken.END_DOCUMENT; // TODO: avoid throwing here? in peek()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/controller/
DStatefulControlSubscriber.kt44 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/packages/CredentialManager/shared/src/com/android/credentialmanager/model/
DRequest.kt27 open val token: IBinder?, constant in com.android.credentialmanager.model.Request
36 override val token: IBinder?, constant in com.android.credentialmanager.model.Request.Close
37 ) : Request(token)
44 override val token: IBinder?, constant in com.android.credentialmanager.model.Request.Cancel
45 ) : Request(token)
51 override val token: IBinder?, constant in com.android.credentialmanager.model.Request.Get
54 ) : Request(token, resultReceiver)
59 override val token: IBinder?, constant in com.android.credentialmanager.model.Request.Create
60 ) : Request(token)
/frameworks/base/core/java/android/util/proto/
DProtoStream.java561 public static int getTagSizeFromToken(long token) { in getTagSizeFromToken() argument
562 return (int) (0x7 & (token >> 61)); in getTagSizeFromToken()
570 public static boolean getRepeatedFromToken(long token) { in getRepeatedFromToken() argument
571 return (0x1 & (token >> 60)) != 0; in getRepeatedFromToken()
579 public static int getDepthFromToken(long token) { in getDepthFromToken() argument
580 return (int) (0x01ff & (token >> 51)); in getDepthFromToken()
592 public static int getObjectIdFromToken(long token) { in getObjectIdFromToken() argument
593 return (int) (0x07ffff & (token >> 32)); in getObjectIdFromToken()
601 public static int getOffsetFromToken(long token) { in getOffsetFromToken() argument
602 return (int) token; in getOffsetFromToken()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DImsSmsDispatcherTest.java113 int token = mImsSmsDispatcher.mNextToken.get(); in testOnMemoryAvailable() local
116 assertEquals(token + 1, mImsSmsDispatcher.mNextToken.get()); in testOnMemoryAvailable()
117 verify(mImsManager).onMemoryAvailable(eq(token + 1)); in testOnMemoryAvailable()
127 int token = mImsSmsDispatcher.mNextToken.get(); in testOnMemoryAvailableResultErrorRetry() local
130 assertEquals(token + 1, mImsSmsDispatcher.mNextToken.get()); in testOnMemoryAvailableResultErrorRetry()
131 verify(mImsManager).onMemoryAvailable(eq(token + 1)); in testOnMemoryAvailableResultErrorRetry()
133 mImsSmsDispatcher.getSmsListener().onMemoryAvailableResult(token + 1, in testOnMemoryAvailableResultErrorRetry()
137 verify(mImsManager).onMemoryAvailable(eq(token + 2)); in testOnMemoryAvailableResultErrorRetry()
139 mImsSmsDispatcher.getSmsListener().onMemoryAvailableResult(token + 2, in testOnMemoryAvailableResultErrorRetry()
143 verify(mImsManager, times(0)).onMemoryAvailable(eq(token + 3)); in testOnMemoryAvailableResultErrorRetry()
[all …]

12345678910>>...59