Home
last modified time | relevance | path

Searched refs:seq (Results 1 – 25 of 87) sorted by relevance

1234

/frameworks/base/media/apex/java/android/media/
DController2Link.java89 public void notifyConnected(int seq, Bundle connectionResult) { in notifyConnected() argument
91 mIController.notifyConnected(seq, connectionResult); in notifyConnected()
98 public void notifyDisconnected(int seq) { in notifyDisconnected() argument
100 mIController.notifyDisconnected(seq); in notifyDisconnected()
107 public void notifyPlaybackActiveChanged(int seq, boolean playbackActive) { in notifyPlaybackActiveChanged() argument
109 mIController.notifyPlaybackActiveChanged(seq, playbackActive); in notifyPlaybackActiveChanged()
116 public void sendSessionCommand(int seq, Session2Command command, Bundle args, in sendSessionCommand() argument
119 mIController.sendSessionCommand(seq, command, args, resultReceiver); in sendSessionCommand()
126 public void cancelSessionCommand(int seq) { in cancelSessionCommand() argument
128 mIController.cancelSessionCommand(seq); in cancelSessionCommand()
[all …]
DSession2Link.java112 public void connect(final Controller2Link caller, int seq, Bundle connectionRequest) { in connect() argument
114 mISession.connect(caller, seq, connectionRequest); in connect()
121 public void disconnect(final Controller2Link caller, int seq) { in disconnect() argument
123 mISession.disconnect(caller, seq); in disconnect()
130 public void sendSessionCommand(final Controller2Link caller, final int seq, in sendSessionCommand() argument
133 mISession.sendSessionCommand(caller, seq, command, args, resultReceiver); in sendSessionCommand()
140 public void cancelSessionCommand(final Controller2Link caller, final int seq) { in cancelSessionCommand() argument
142 mISession.cancelSessionCommand(caller, seq); in cancelSessionCommand()
149 public void onConnect(final Controller2Link caller, int pid, int uid, int seq, in onConnect() argument
151 mSession.onConnect(caller, pid, uid, seq, connectionRequest); in onConnect()
[all …]
DIMediaController2.aidl32 void notifyConnected(int seq, in Bundle connectionResult) = 0; in notifyConnected() argument
33 void notifyDisconnected(int seq) = 1; in notifyDisconnected() argument
34 void notifyPlaybackActiveChanged(int seq, boolean playbackActive) = 2; in notifyPlaybackActiveChanged() argument
35 void sendSessionCommand(int seq, in Session2Command command, in Bundle args, in sendSessionCommand() argument
37 void cancelSessionCommand(int seq) = 4; in cancelSessionCommand() argument
DIMediaSession2.aidl33 void connect(in Controller2Link caller, int seq, in Bundle connectionRequest) = 0; in connect() argument
34 void disconnect(in Controller2Link caller, int seq) = 1; in disconnect() argument
35 void sendSessionCommand(in Controller2Link caller, int seq, in Session2Command sessionCommand, in sendSessionCommand() argument
37 void cancelSessionCommand(in Controller2Link caller, int seq) = 3; in cancelSessionCommand() argument
DMediaController2.java224 int seq = getNextSeqNumber(); in sendSessionCommand() local
225 mPendingCommands.put(resultReceiver, seq); in sendSessionCommand()
227 mSessionBinder.sendSessionCommand(mControllerStub, seq, command, args, in sendSessionCommand()
249 Integer seq = mPendingCommands.remove(token); in cancelSessionCommand()
250 if (seq != null) { in cancelSessionCommand()
251 mSessionBinder.cancelSessionCommand(mControllerStub, seq); in cancelSessionCommand()
257 void onConnected(int seq, Bundle connectionResult) { in onConnected() argument
298 void onDisconnected(int seq) { in onDisconnected() argument
304 void onPlaybackActiveChanged(int seq, boolean playbackActive) { in onPlaybackActiveChanged() argument
314 void onSessionCommand(int seq, Session2Command command, Bundle args, in onSessionCommand() argument
[all …]
DMediaSession2.java333 void onConnect(final Controller2Link controller, int callingPid, int callingUid, int seq, in onConnect() argument
422 void onDisconnect(@NonNull final Controller2Link controller, int seq) { in onDisconnect() argument
436 void onSessionCommand(@NonNull final Controller2Link controller, final int seq, in onSessionCommand() argument
452 controllerInfo.addRequestedCommandSeqNumber(seq); in onSessionCommand()
455 if (!controllerInfo.removeRequestedCommandSeqNumber(seq)) { in onSessionCommand()
472 void onCancelCommand(@NonNull final Controller2Link controller, final int seq) { in onCancelCommand() argument
480 controllerInfo.removeRequestedCommandSeqNumber(seq); in onCancelCommand()
767 int seq = getNextSeqNumber(); in sendSessionCommand() local
769 mPendingCommands.put(resultReceiver, seq); in sendSessionCommand()
771 mControllerBinder.sendSessionCommand(seq, command, args, resultReceiver); in sendSessionCommand()
[all …]
/frameworks/base/media/java/android/media/tv/
DITvInputClient.aidl32 void onSessionCreated(in String inputId, IBinder token, in InputChannel channel, int seq); in onSessionCreated() argument
33 void onSessionReleased(int seq); in onSessionReleased() argument
34 void onSessionEvent(in String name, in Bundle args, int seq); in onSessionEvent() argument
35 void onChannelRetuned(in Uri channelUri, int seq); in onChannelRetuned() argument
36 void onTracksChanged(in List<TvTrackInfo> tracks, int seq); in onTracksChanged() argument
37 void onTrackSelected(int type, in String trackId, int seq); in onTrackSelected() argument
38 void onVideoAvailable(int seq); in onVideoAvailable() argument
39 void onVideoUnavailable(int reason, int seq); in onVideoUnavailable() argument
40 void onContentAllowed(int seq); in onContentAllowed() argument
41 void onContentBlocked(in String rating, int seq); in onContentBlocked() argument
[all …]
DTvInputManager.java893 int seq) { in TvInputManager()
895 SessionCallbackRecord record = mSessionCallbackRecordMap.get(seq); in TvInputManager()
902 session = new Session(token, channel, mService, mUserId, seq, in TvInputManager()
905 mSessionCallbackRecordMap.delete(seq); in TvInputManager()
912 public void onSessionReleased(int seq) { in TvInputManager()
914 SessionCallbackRecord record = mSessionCallbackRecordMap.get(seq); in TvInputManager()
915 mSessionCallbackRecordMap.delete(seq); in TvInputManager()
917 Log.e(TAG, "Callback not found for seq:" + seq); in TvInputManager()
926 public void onChannelRetuned(Uri channelUri, int seq) { in TvInputManager()
928 SessionCallbackRecord record = mSessionCallbackRecordMap.get(seq); in TvInputManager()
[all …]
/frameworks/base/core/java/com/android/internal/view/
DIInputContextCallback.aidl25 void setTextBeforeCursor(CharSequence textBeforeCursor, int seq); in setTextBeforeCursor() argument
26 void setTextAfterCursor(CharSequence textAfterCursor, int seq); in setTextAfterCursor() argument
27 void setCursorCapsMode(int capsMode, int seq); in setCursorCapsMode() argument
28 void setExtractedText(in ExtractedText extractedText, int seq); in setExtractedText() argument
29 void setSelectedText(CharSequence selectedText, int seq); in setSelectedText() argument
30 void setRequestUpdateCursorAnchorInfoResult(boolean result, int seq); in setRequestUpdateCursorAnchorInfoResult() argument
31 void setCommitContentResult(boolean result, int seq); in setCommitContentResult() argument
DInputConnectionWrapper.java123 public void setTextBeforeCursor(CharSequence textBeforeCursor, int seq) { in setTextBeforeCursor() argument
125 if (seq == mSeq) { in setTextBeforeCursor()
130 Log.i(TAG, "Got out-of-sequence callback " + seq + " (expected " + mSeq in setTextBeforeCursor()
137 public void setTextAfterCursor(CharSequence textAfterCursor, int seq) { in setTextAfterCursor() argument
139 if (seq == mSeq) { in setTextAfterCursor()
144 Log.i(TAG, "Got out-of-sequence callback " + seq + " (expected " + mSeq in setTextAfterCursor()
151 public void setSelectedText(CharSequence selectedText, int seq) { in setSelectedText() argument
153 if (seq == mSeq) { in setSelectedText()
158 Log.i(TAG, "Got out-of-sequence callback " + seq + " (expected " + mSeq in setSelectedText()
165 public void setCursorCapsMode(int capsMode, int seq) { in setCursorCapsMode() argument
[all …]
DIInputContext.aidl34 void getTextBeforeCursor(int length, int flags, int seq, IInputContextCallback callback); in getTextBeforeCursor() argument
36 void getTextAfterCursor(int length, int flags, int seq, IInputContextCallback callback); in getTextAfterCursor() argument
38 void getCursorCapsMode(int reqModes, int seq, IInputContextCallback callback); in getCursorCapsMode() argument
40 void getExtractedText(in ExtractedTextRequest request, int flags, int seq, in getExtractedText() argument
74 void getSelectedText(int flags, int seq, IInputContextCallback callback); in getSelectedText() argument
76 void requestUpdateCursorAnchorInfo(int cursorUpdateMode, int seq, in requestUpdateCursorAnchorInfo() argument
DIInputConnectionWrapper.java114 public void getTextAfterCursor(int length, int flags, int seq, IInputContextCallback callback) { in getTextAfterCursor() argument
115 dispatchMessage(obtainMessageIISC(DO_GET_TEXT_AFTER_CURSOR, length, flags, seq, callback)); in getTextAfterCursor()
118 … public void getTextBeforeCursor(int length, int flags, int seq, IInputContextCallback callback) { in getTextBeforeCursor() argument
119 dispatchMessage(obtainMessageIISC(DO_GET_TEXT_BEFORE_CURSOR, length, flags, seq, callback)); in getTextBeforeCursor()
122 public void getSelectedText(int flags, int seq, IInputContextCallback callback) { in getSelectedText() argument
123 dispatchMessage(obtainMessageISC(DO_GET_SELECTED_TEXT, flags, seq, callback)); in getSelectedText()
126 public void getCursorCapsMode(int reqModes, int seq, IInputContextCallback callback) { in getCursorCapsMode() argument
127 dispatchMessage(obtainMessageISC(DO_GET_CURSOR_CAPS_MODE, reqModes, seq, callback)); in getCursorCapsMode()
131 int flags, int seq, IInputContextCallback callback) { in getExtractedText() argument
133 request, seq, callback)); in getExtractedText()
[all …]
/frameworks/base/core/java/android/view/
DInputEventSender.java47 private static native boolean nativeSendKeyEvent(long senderPtr, int seq, KeyEvent event); in nativeSendKeyEvent() argument
48 private static native boolean nativeSendMotionEvent(long senderPtr, int seq, MotionEvent event); in nativeSendMotionEvent() argument
110 public void onInputEventFinished(int seq, boolean handled) { in onInputEventFinished() argument
122 public final boolean sendInputEvent(int seq, InputEvent event) { in sendInputEvent() argument
133 return nativeSendKeyEvent(mSenderPtr, seq, (KeyEvent)event); in sendInputEvent()
135 return nativeSendMotionEvent(mSenderPtr, seq, (MotionEvent)event); in sendInputEvent()
142 private void dispatchInputEventFinished(int seq, boolean handled) { in dispatchInputEventFinished() argument
143 onInputEventFinished(seq, handled); in dispatchInputEventFinished()
DInputEventReceiver.java51 private static native void nativeFinishInputEvent(long receiverPtr, int seq, boolean handled); in nativeFinishInputEvent() argument
153 int seq = mSeqMap.valueAt(index); in finishInputEvent() local
155 nativeFinishInputEvent(mReceiverPtr, seq, handled); in finishInputEvent()
186 private void dispatchInputEvent(int seq, InputEvent event) { in dispatchInputEvent() argument
187 mSeqMap.put(event.getSequenceNumber(), seq); in dispatchInputEvent() local
/frameworks/base/core/jni/
Dandroid_view_InputEventSender.cpp57 status_t sendKeyEvent(uint32_t seq, const KeyEvent* event);
58 status_t sendMotionEvent(uint32_t seq, const MotionEvent* event);
110 status_t NativeInputEventSender::sendKeyEvent(uint32_t seq, const KeyEvent* event) { in sendKeyEvent() argument
112 ALOGD("channel '%s' ~ Sending key event, seq=%u.", getInputChannelName().c_str(), seq); in sendKeyEvent()
125 mPublishedSeqMap.emplace(publishedSeq, seq); in sendKeyEvent()
129 status_t NativeInputEventSender::sendMotionEvent(uint32_t seq, const MotionEvent* event) { in sendMotionEvent() argument
131 ALOGD("channel '%s' ~ Sending motion event, seq=%u.", getInputChannelName().c_str(), seq); in sendMotionEvent()
153 mPublishedSeqMap.emplace(publishedSeq, seq); in sendMotionEvent()
207 uint32_t seq = it->second; in receiveFinishedSignals() local
213 getInputChannelName().c_str(), seq, handled ? "true" : "false", in receiveFinishedSignals()
[all …]
Dandroid_view_InputEventReceiver.cpp59 status_t finishInputEvent(uint32_t seq, bool handled);
68 uint32_t seq; member
119 status_t NativeInputEventReceiver::finishInputEvent(uint32_t seq, bool handled) { in finishInputEvent() argument
124 status_t status = mInputConsumer.sendFinishedSignal(seq, handled); in finishInputEvent()
132 finish.seq = seq; in finishInputEvent()
180 status_t status = mInputConsumer.sendFinishedSignal(finish.seq, finish.handled); in handleEvent()
236 uint32_t seq; in consumeEvents() local
239 consumeBatches, frameTime, &seq, &inputEvent); in consumeEvents()
316 gInputEventReceiverClassInfo.dispatchInputEvent, seq, inputEventObj); in consumeEvents()
330 mInputConsumer.sendFinishedSignal(seq, false); in consumeEvents()
[all …]
/frameworks/base/core/tests/coretests/src/android/app/activity/
DActivityThreadTest.java215 final int seq = applyConfigurationChange(activity, BASE_SEQ); in testHandleActivityConfigurationChanged_ApplyNewConfigurations() local
221 applyConfigurationChange(activity, seq + 1); in testHandleActivityConfigurationChanged_ApplyNewConfigurations()
233 final int seq = applyConfigurationChange(activity, BASE_SEQ); in testHandleActivityConfigurationChanged_PickNewerPendingConfiguration() local
244 pendingConfig.seq = seq + 2; in testHandleActivityConfigurationChanged_PickNewerPendingConfiguration()
250 newConfig.seq = seq + 1; in testHandleActivityConfigurationChanged_PickNewerPendingConfiguration()
267 config.seq = BASE_SEQ; in testHandleActivityConfigurationChanged_OnlyAppliesNewestConfiguration()
281 config.seq = BASE_SEQ + 1; in testHandleActivityConfigurationChanged_OnlyAppliesNewestConfiguration()
291 config.seq = BASE_SEQ + 2; in testHandleActivityConfigurationChanged_OnlyAppliesNewestConfiguration()
296 config.seq = BASE_SEQ + 3; in testHandleActivityConfigurationChanged_OnlyAppliesNewestConfiguration()
301 config.seq = BASE_SEQ + 4; in testHandleActivityConfigurationChanged_OnlyAppliesNewestConfiguration()
[all …]
/frameworks/base/core/java/android/inputmethodservice/
DAbstractInputMethodService.java142 public void dispatchKeyEvent(int seq, KeyEvent event, EventCallback callback) { in dispatchKeyEvent() argument
146 callback.finishedEvent(seq, handled); in dispatchKeyEvent()
155 public void dispatchTrackballEvent(int seq, MotionEvent event, EventCallback callback) { in dispatchTrackballEvent() argument
158 callback.finishedEvent(seq, handled); in dispatchTrackballEvent()
167 public void dispatchGenericMotionEvent(int seq, MotionEvent event, EventCallback callback) { in dispatchGenericMotionEvent() argument
170 callback.finishedEvent(seq, handled); in dispatchGenericMotionEvent()
DIInputMethodSessionWrapper.java231 final int seq = event.getSequenceNumber(); in onInputEvent() local
232 mPendingEvents.put(seq, event); in onInputEvent()
235 mInputMethodSession.dispatchKeyEvent(seq, keyEvent, this); in onInputEvent()
239 mInputMethodSession.dispatchTrackballEvent(seq, motionEvent, this); in onInputEvent()
241 mInputMethodSession.dispatchGenericMotionEvent(seq, motionEvent, this); in onInputEvent()
247 public void finishedEvent(int seq, boolean handled) { in finishedEvent() argument
248 int index = mPendingEvents.indexOfKey(seq); in finishedEvent()
/frameworks/base/core/java/android/view/inputmethod/
DInputMethodSession.java35 void finishedEvent(int seq, boolean handled); in finishedEvent() argument
122 public void dispatchKeyEvent(int seq, KeyEvent event, EventCallback callback); in dispatchKeyEvent() argument
137 public void dispatchTrackballEvent(int seq, MotionEvent event, EventCallback callback); in dispatchTrackballEvent() argument
152 public void dispatchGenericMotionEvent(int seq, MotionEvent event, EventCallback callback); in dispatchGenericMotionEvent() argument
/frameworks/base/tests/net/java/android/net/
DTcpKeepalivePacketDataTest.java45 final int seq = 0x11111111; in testV4TcpKeepalivePacket() local
57 testInfo.seq = seq; in testV4TcpKeepalivePacket()
73 assertEquals(testInfo.seq, resultData.tcpSeq); in testV4TcpKeepalivePacket()
105 assertEquals(buf.getInt(), seq); in testV4TcpKeepalivePacket() local
130 testInfo.seq = sequence; in testParcel()
144 assertEquals(resultData.seq, sequence); in testParcel()
/frameworks/native/libs/input/
DInputTransport.cpp134 msg->body.key.seq = body.key.seq; in getSanitizedCopy()
161 msg->body.motion.seq = body.motion.seq; in getSanitizedCopy()
212 msg->body.finished.seq = body.finished.seq; in getSanitizedCopy()
419 uint32_t seq, in publishKeyEvent() argument
440 mChannel->getName().c_str(), seq, in publishKeyEvent()
445 if (!seq) { in publishKeyEvent()
452 msg.body.key.seq = seq; in publishKeyEvent()
468 uint32_t seq, in publishMotionEvent() argument
501 mChannel->getName().c_str(), seq, in publishMotionEvent()
507 if (!seq) { in publishMotionEvent()
[all …]
/frameworks/native/services/inputflinger/dispatcher/
DConnection.cpp55 DispatchEntry* Connection::findWaitQueueEntry(uint32_t seq) { in findWaitQueueEntry() argument
57 if (entry->seq == seq) { in findWaitQueueEntry()
/frameworks/native/libs/input/tests/
DInputPublisherAndConsumer_test.cpp73 constexpr uint32_t seq = 15; in PublishAndConsumeKeyEvent() local
86 status = mPublisher->publishKeyEvent(seq, deviceId, source, displayId, action, flags, in PublishAndConsumeKeyEvent()
103 EXPECT_EQ(seq, consumeSeq); in PublishAndConsumeKeyEvent()
116 status = mConsumer->sendFinishedSignal(seq, true); in PublishAndConsumeKeyEvent()
125 ASSERT_EQ(seq, finishedSeq) in PublishAndConsumeKeyEvent()
134 constexpr uint32_t seq = 15; in PublishAndConsumeMotionEvent() local
171 status = mPublisher->publishMotionEvent(seq, deviceId, source, displayId, action, actionButton, in PublishAndConsumeMotionEvent()
190 EXPECT_EQ(seq, consumeSeq); in PublishAndConsumeMotionEvent()
236 status = mConsumer->sendFinishedSignal(seq, false); in PublishAndConsumeMotionEvent()
245 ASSERT_EQ(seq, finishedSeq) in PublishAndConsumeMotionEvent()
/frameworks/base/services/core/java/com/android/server/storage/
DDeviceStorageMonitorService.java175 final int seq = mSeq.get(); in check() local
230 updateBroadcasts(vol, oldLevel, newLevel, seq); in check()
361 int seq = mSeq.incrementAndGet(); in onShellCommand() local
365 pw.println(seq); in onShellCommand()
373 int seq = mSeq.incrementAndGet(); in onShellCommand() local
377 pw.println(seq); in onShellCommand()
385 int seq = mSeq.incrementAndGet(); in onShellCommand() local
389 pw.println(seq); in onShellCommand()
494 private void updateBroadcasts(VolumeInfo vol, int oldLevel, int newLevel, int seq) { in updateBroadcasts() argument
504 .putExtra(EXTRA_SEQUENCE, seq); in updateBroadcasts()
[all …]

1234