Home
last modified time | relevance | path

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

123456

/frameworks/base/media/java/android/media/tv/
DITvInputClient.aidl37 void onSessionCreated(in String inputId, IBinder token, in InputChannel channel, int seq); in onSessionCreated() argument
38 void onSessionReleased(int seq); in onSessionReleased() argument
39 void onSessionEvent(in String name, in Bundle args, int seq); in onSessionEvent() argument
40 void onChannelRetuned(in Uri channelUri, int seq); in onChannelRetuned() argument
41 void onAudioPresentationsChanged(in List<AudioPresentation> AudioPresentations, int seq); in onAudioPresentationsChanged() argument
42 void onAudioPresentationSelected(int presentationId, int programId, int seq); in onAudioPresentationSelected() argument
43 void onTracksChanged(in List<TvTrackInfo> tracks, int seq); in onTracksChanged() argument
44 void onTrackSelected(int type, in String trackId, int seq); in onTrackSelected() argument
45 void onVideoAvailable(int seq); in onVideoAvailable() argument
46 void onVideoUnavailable(int reason, int seq); in onVideoUnavailable() argument
[all …]
DTvInputManager.java1677 int seq) { in TvInputManager()
1679 SessionCallbackRecord record = mSessionCallbackRecordMap.get(seq); in TvInputManager()
1686 session = new Session(token, channel, mService, mUserId, seq, in TvInputManager()
1689 mSessionCallbackRecordMap.delete(seq); in TvInputManager()
1696 public void onSessionReleased(int seq) { in TvInputManager()
1698 SessionCallbackRecord record = mSessionCallbackRecordMap.get(seq); in TvInputManager()
1699 mSessionCallbackRecordMap.delete(seq); in TvInputManager()
1701 Log.e(TAG, "Callback not found for seq:" + seq); in TvInputManager()
1710 public void onChannelRetuned(Uri channelUri, int seq) { in TvInputManager()
1712 SessionCallbackRecord record = mSessionCallbackRecordMap.get(seq); in TvInputManager()
[all …]
/frameworks/base/media/java/android/media/tv/interactive/
DITvInteractiveAppClient.aidl34 void onSessionCreated(in String iAppServiceId, IBinder token, in InputChannel channel, int seq); in onSessionCreated() argument
35 void onSessionReleased(int seq); in onSessionReleased() argument
36 void onLayoutSurface(int left, int top, int right, int bottom, int seq); in onLayoutSurface() argument
37 void onBroadcastInfoRequest(in BroadcastInfoRequest request, int seq); in onBroadcastInfoRequest() argument
38 void onRemoveBroadcastInfo(int id, int seq); in onRemoveBroadcastInfo() argument
39 void onSessionStateChanged(int state, int err, int seq); in onSessionStateChanged() argument
40 void onBiInteractiveAppCreated(in Uri biIAppUri, in String biIAppId, int seq); in onBiInteractiveAppCreated() argument
41 void onTeletextAppStateChanged(int state, int seq); in onTeletextAppStateChanged() argument
42 void onAdBufferReady(in AdBuffer buffer, int seq); in onAdBufferReady() argument
43 void onCommandRequest(in String cmdType, in Bundle parameters, int seq); in onCommandRequest() argument
[all …]
DTvInteractiveAppManager.java326 int seq) { in TvInteractiveAppManager()
328 SessionCallbackRecord record = mSessionCallbackRecordMap.get(seq); in TvInteractiveAppManager()
335 session = new Session(token, channel, mService, mUserId, seq, in TvInteractiveAppManager()
338 mSessionCallbackRecordMap.delete(seq); in TvInteractiveAppManager()
345 public void onSessionReleased(int seq) { in TvInteractiveAppManager()
347 SessionCallbackRecord record = mSessionCallbackRecordMap.get(seq); in TvInteractiveAppManager()
348 mSessionCallbackRecordMap.delete(seq); in TvInteractiveAppManager()
350 Log.e(TAG, "Callback not found for seq:" + seq); in TvInteractiveAppManager()
359 public void onLayoutSurface(int left, int top, int right, int bottom, int seq) { in TvInteractiveAppManager()
361 SessionCallbackRecord record = mSessionCallbackRecordMap.get(seq); in TvInteractiveAppManager()
[all …]
/frameworks/base/media/java/android/media/tv/ad/
DITvAdClient.aidl28 void onSessionCreated(in String serviceId, IBinder token, in InputChannel channel, int seq); in onSessionCreated() argument
29 void onSessionReleased(int seq); in onSessionReleased() argument
30 void onLayoutSurface(int left, int top, int right, int bottom, int seq); in onLayoutSurface() argument
31 void onRequestCurrentVideoBounds(int seq); in onRequestCurrentVideoBounds() argument
32 void onRequestCurrentChannelUri(int seq); in onRequestCurrentChannelUri() argument
33 void onRequestTrackInfoList(int seq); in onRequestTrackInfoList() argument
34 void onRequestCurrentTvInputId(int seq); in onRequestCurrentTvInputId() argument
36 in String id, in String algorithm, in String alias, in byte[] data, int seq); in onRequestSigning() argument
37 void onTvAdSessionData(in String type, in Bundle data, int seq); in onTvAdSessionData() argument
DTvAdManager.java334 int seq) { in TvAdManager()
336 SessionCallbackRecord record = mSessionCallbackRecordMap.get(seq); in TvAdManager()
343 session = new Session(token, channel, mService, mUserId, seq, in TvAdManager()
346 mSessionCallbackRecordMap.delete(seq); in TvAdManager()
353 public void onSessionReleased(int seq) { in TvAdManager()
355 SessionCallbackRecord record = mSessionCallbackRecordMap.get(seq); in TvAdManager()
356 mSessionCallbackRecordMap.delete(seq); in TvAdManager()
358 Log.e(TAG, "Callback not found for seq:" + seq); in TvAdManager()
367 public void onLayoutSurface(int left, int top, int right, int bottom, int seq) { in TvAdManager()
369 SessionCallbackRecord record = mSessionCallbackRecordMap.get(seq); in TvAdManager()
[all …]
/frameworks/base/tests/ActivityManagerPerfTests/stub-app/src/com/android/stubs/am/
DInitService.java104 public void sendCommand(int command, int seq, String sourcePackage, String targetPackage, in sendCommand() argument
107 Log.i(TAG, "Received command=" + command + ", seq=" + seq + ", from=" in sendCommand()
112 handleBindService(seq, targetPackage, flags, bundle); in sendCommand()
115 handleUnbindService(seq, targetPackage); in sendCommand()
118 acquireProvider(seq, bundle.getParcelable(Constants.EXTRA_URI)); in sendCommand()
121 releaseProvider(seq, bundle.getParcelable(Constants.EXTRA_URI)); in sendCommand()
124 sendBroadcast(seq, targetPackage); in sendCommand()
127 startActivity(seq, targetPackage); in sendCommand()
130 stopActivity(seq, targetPackage); in sendCommand()
135 private void handleBindService(int seq, String targetPackage, int flags, Bundle bundle) { in handleBindService() argument
[all …]
/frameworks/base/core/java/android/view/
DInputEventSender.java53 private static native boolean nativeSendKeyEvent(long senderPtr, int seq, KeyEvent event); in nativeSendKeyEvent() argument
54 private static native boolean nativeSendMotionEvent(long senderPtr, int seq, MotionEvent event); in nativeSendMotionEvent() argument
116 public void onInputEventFinished(int seq, boolean handled) { in onInputEventFinished() argument
138 public final boolean sendInputEvent(int seq, InputEvent event) { in sendInputEvent() argument
149 return sendInputEventInternal(seq, event); in sendInputEvent()
156 return sendInputEventInternal(seq, event); in sendInputEvent()
169 private boolean sendInputEventInternal(int seq, InputEvent event) { in sendInputEventInternal() argument
171 return nativeSendKeyEvent(mSenderPtr, seq, (KeyEvent)event); in sendInputEventInternal()
173 return nativeSendMotionEvent(mSenderPtr, seq, (MotionEvent)event); in sendInputEventInternal()
180 private void dispatchInputEventFinished(int seq, boolean handled) { in dispatchInputEventFinished() argument
[all …]
/frameworks/native/include/input/
DInputConsumerNoResampling.h32 virtual void onKeyEvent(std::unique_ptr<KeyEvent> event, uint32_t seq) = 0;
33 virtual void onMotionEvent(std::unique_ptr<MotionEvent> event, uint32_t seq) = 0;
41 virtual void onFocusEvent(std::unique_ptr<FocusEvent> event, uint32_t seq) = 0;
42 virtual void onCaptureEvent(std::unique_ptr<CaptureEvent> event, uint32_t seq) = 0;
43 virtual void onDragEvent(std::unique_ptr<DragEvent> event, uint32_t seq) = 0;
44 virtual void onTouchModeEvent(std::unique_ptr<TouchModeEvent> event, uint32_t seq) = 0;
74 void finishInputEvent(uint32_t seq, bool handled);
156 nsecs_t popConsumeTime(uint32_t seq);
DInputTransport.h80 uint32_t seq; member
355 status_t publishKeyEvent(uint32_t seq, int32_t eventId, int32_t deviceId, int32_t source,
369 status_t publishMotionEvent(uint32_t seq, int32_t eventId, int32_t deviceId, int32_t source,
387 status_t publishFocusEvent(uint32_t seq, int32_t eventId, bool hasFocus);
396 status_t publishCaptureEvent(uint32_t seq, int32_t eventId, bool pointerCaptureEnabled);
405 status_t publishDragEvent(uint32_t seq, int32_t eventId, float x, float y, bool isExiting);
414 status_t publishTouchModeEvent(uint32_t seq, int32_t eventId, bool isInTouchMode);
417 uint32_t seq; member
/frameworks/native/services/surfaceflinger/tests/unittests/
DVSyncDispatchTimerQueueTest.cpp275 Sequence seq; in TEST_F() local
276 EXPECT_CALL(mMockClock, alarmAt(_, 900)).InSequence(seq); in TEST_F()
277 EXPECT_CALL(mMockClock, alarmAt(_, 700)).InSequence(seq); in TEST_F()
427 Sequence seq; in TEST_F() local
428 EXPECT_CALL(mMockClock, alarmAt(_, 955)).InSequence(seq); in TEST_F()
429 EXPECT_CALL(mMockClock, alarmAt(_, 813)).InSequence(seq); in TEST_F()
430 EXPECT_CALL(mMockClock, alarmAt(_, 975)).InSequence(seq); in TEST_F()
455 Sequence seq; in TEST_F() local
456 EXPECT_CALL(mMockClock, alarmAt(_, 900)).InSequence(seq); in TEST_F()
457 EXPECT_CALL(mMockClock, alarmAt(_, 1900)).InSequence(seq); in TEST_F()
[all …]
/frameworks/base/native/android/
Dsurface_control_input_receiver.cpp54 void onKeyEvent(std::unique_ptr<KeyEvent> event, uint32_t seq) override { in onKeyEvent() argument
58 mInputConsumer.finishInputEvent(seq, handled); in onKeyEvent()
62 void onMotionEvent(std::unique_ptr<MotionEvent> event, uint32_t seq) override { in onMotionEvent() argument
67 mInputConsumer.finishInputEvent(seq, handled); in onMotionEvent()
71 void onFocusEvent(std::unique_ptr<FocusEvent>, uint32_t seq) override { in onFocusEvent() argument
72 mInputConsumer.finishInputEvent(seq, false); in onFocusEvent()
74 void onCaptureEvent(std::unique_ptr<CaptureEvent>, uint32_t seq) override { in onCaptureEvent() argument
75 mInputConsumer.finishInputEvent(seq, false); in onCaptureEvent()
77 void onDragEvent(std::unique_ptr<DragEvent>, uint32_t seq) override { in onDragEvent() argument
78 mInputConsumer.finishInputEvent(seq, false); in onDragEvent()
[all …]
/frameworks/native/libs/input/tests/
DInputPublisherAndConsumer_test.cpp47 const uint32_t seq; member
79 const uint32_t seq);
86 seq(inSeq), in PublishMotionArgs()
185 publisher.publishMotionEvent(a.seq, a.eventId, a.deviceId, a.source, a.displayId, in publishMotionEvent()
195 void sendAndVerifyFinishedSignal(InputConsumer& consumer, InputPublisher& publisher, uint32_t seq, in sendAndVerifyFinishedSignal() argument
197 status_t status = consumer.sendFinishedSignal(seq, false); in sendAndVerifyFinishedSignal()
203 ASSERT_EQ(seq, finish.seq) in sendAndVerifyFinishedSignal()
263 const uint32_t seq = mSeq++; in publishAndConsumeKeyEvent() local
281 status = mPublisher->publishKeyEvent(seq, eventId, deviceId, source, displayId, hmac, action, in publishAndConsumeKeyEvent()
301 EXPECT_EQ(seq, consumeSeq); in publishAndConsumeKeyEvent()
[all …]
DInputPublisherAndConsumerNoResampling_test.cpp54 const uint32_t seq; member
86 const uint32_t seq);
93 seq(inSeq), in PublishMotionArgs()
192 publisher.publishMotionEvent(a.seq, a.eventId, a.deviceId, a.source, a.displayId, in publishMotionEvent()
218 void verifyFinishedSignal(InputPublisher& publisher, uint32_t seq, nsecs_t publishTime) { in verifyFinishedSignal() argument
223 ASSERT_EQ(seq, finish.seq) in verifyFinishedSignal()
353 void onKeyEvent(std::unique_ptr<KeyEvent> event, uint32_t seq) override { in onKeyEvent() argument
355 mConsumer->finishInputEvent(seq, true); in onKeyEvent()
357 void onMotionEvent(std::unique_ptr<MotionEvent> event, uint32_t seq) override { in onMotionEvent() argument
359 mConsumer->finishInputEvent(seq, true); in onMotionEvent()
[all …]
/frameworks/base/core/jni/
Dandroid_view_InputEventSender.cpp61 status_t sendKeyEvent(uint32_t seq, const KeyEvent* event);
62 status_t sendMotionEvent(uint32_t seq, const MotionEvent* event);
118 status_t NativeInputEventSender::sendKeyEvent(uint32_t seq, const KeyEvent* event) { in sendKeyEvent() argument
120 LOG(DEBUG) << "channel '" << getInputChannelName() << "' ~ Sending key event, seq=" << seq; in sendKeyEvent()
136 mPublishedSeqMap.emplace(publishedSeq, seq); in sendKeyEvent()
140 status_t NativeInputEventSender::sendMotionEvent(uint32_t seq, const MotionEvent* event) { in sendMotionEvent() argument
143 << "' ~ Sending motion event, seq=" << seq; in sendMotionEvent()
174 mPublishedSeqMap.emplace(publishedSeq, seq); in sendMotionEvent()
286 auto it = mPublishedSeqMap.find(finished.seq); in notifyConsumerResponse()
288 LOG(WARNING) << "Received 'finished' signal for unknown seq number = " << finished.seq; in notifyConsumerResponse()
[all …]
Dandroid_view_InputEventReceiver.cpp94 status_t finishInputEvent(uint32_t seq, bool handled);
106 uint32_t seq; member
167 status_t NativeInputEventReceiver::finishInputEvent(uint32_t seq, bool handled) { in finishInputEvent() argument
173 .seq = seq, in finishInputEvent()
236 status = mInputConsumer.sendFinishedSignal(finish.seq, finish.handled); in processOutboundEvents()
334 uint32_t seq; in consumeEvents() local
338 consumeBatches, frameTime, &seq, &inputEvent); in consumeEvents()
420 finishInputEvent(seq, /*handled=*/true); in consumeEvents()
433 finishInputEvent(seq, /*handled=*/true); in consumeEvents()
445 finishInputEvent(seq, /*handled=*/true); in consumeEvents()
[all …]
/frameworks/native/libs/input/
DInputConsumerNoResampling.cpp130 outboundMsg.header.seq, in outboundMessageToString()
151 InputMessage createFinishedMessage(uint32_t seq, bool handled, nsecs_t consumeTime) { in createFinishedMessage() argument
154 msg.header.seq = seq; in createFinishedMessage()
164 msg.header.seq = 0; in createTimelineMessage()
241 ATRACE_ASYNC_END("InputConsumer processing", /*cookie=*/outboundMsg.header.seq); in processOutboundEvents()
263 void InputConsumerNoResampling::finishInputEvent(uint32_t seq, bool handled) { in finishInputEvent() argument
265 mOutboundQueue.push(createFinishedMessage(seq, handled, popConsumeTime(seq))); in finishInputEvent()
267 const auto it = mBatchedSequenceNumbers.find(seq); in finishInputEvent()
291 nsecs_t InputConsumerNoResampling::popConsumeTime(uint32_t seq) { in popConsumeTime() argument
292 auto it = mConsumeTimes.find(seq); in popConsumeTime()
[all …]
DInputConsumer.cpp241 mConsumeTimes.emplace(mMsg.header.seq, systemTime(SYSTEM_TIME_MONOTONIC)); in consume()
243 mMsg.header.seq); in consume()
246 ATRACE_ASYNC_BEGIN(mProcessingTraceTag.c_str(), /*cookie=*/mMsg.header.seq); in consume()
269 *outSeq = mMsg.header.seq; in consume()
293 sendFinishedSignal(msg.header.seq, false); in consume()
332 *outSeq = mMsg.header.seq; in consume()
355 *outSeq = mMsg.header.seq; in consume()
365 *outSeq = mMsg.header.seq; in consume()
375 *outSeq = mMsg.header.seq; in consume()
385 *outSeq = mMsg.header.seq; in consume()
[all …]
DInputTransport.cpp185 msg->header.seq = header.seq; in getSanitizedCopy()
391 name.c_str(), msg->header.seq, in sendMessage()
463 name.c_str(), msg->header.seq, in receiveMessage()
532 status_t InputPublisher::publishKeyEvent(uint32_t seq, int32_t eventId, int32_t deviceId, in publishKeyEvent() argument
546 mChannel->getName().c_str(), __func__, seq, eventId, deviceId, in publishKeyEvent()
550 if (!seq) { in publishKeyEvent()
557 msg.header.seq = seq; in publishKeyEvent()
575 uint32_t seq, int32_t eventId, int32_t deviceId, int32_t source, in publishMotionEvent() argument
604 mChannel->getName().c_str(), __func__, seq, eventId, deviceId, in publishMotionEvent()
611 if (!seq) { in publishMotionEvent()
[all …]
/frameworks/base/core/java/android/view/inputmethod/
DInputMethodSession.java38 void finishedEvent(int seq, boolean handled); in finishedEvent() argument
125 public void dispatchKeyEvent(int seq, KeyEvent event, EventCallback callback); in dispatchKeyEvent() argument
140 public void dispatchTrackballEvent(int seq, MotionEvent event, EventCallback callback); in dispatchTrackballEvent() argument
155 public void dispatchGenericMotionEvent(int seq, MotionEvent event, EventCallback callback); in dispatchGenericMotionEvent() argument
/frameworks/base/tests/ActivityManagerPerfTests/tests/src/com/android/frameworks/perftests/am/util/
DTargetPackageUtils.java206 private static void onPackageStartResult(int seq, Bundle bundle) { in onPackageStartResult() argument
211 releaseLatch(seq); in onPackageStartResult()
214 private static void onCommandResult(int seq, int result) { in onCommandResult() argument
215 Assert.assertTrue("Error in command seq " + seq, result == Constants.RESULT_NO_ERROR); in onCommandResult()
216 releaseLatch(seq); in onCommandResult()
240 int seq; in obtainLatch() local
242 seq = sSeqNum++; in obtainLatch()
243 sCommandLatches.put(seq, latch); in obtainLatch()
245 return new Pair<>(seq, latch); in obtainLatch()
248 private static void releaseLatch(int seq) { in releaseLatch() argument
[all …]
/frameworks/base/core/java/android/inputmethodservice/
DAbstractInputMethodService.java183 public void dispatchKeyEvent(int seq, KeyEvent event, EventCallback callback) { in dispatchKeyEvent() argument
187 callback.finishedEvent(seq, handled); in dispatchKeyEvent()
196 public void dispatchTrackballEvent(int seq, MotionEvent event, EventCallback callback) { in dispatchTrackballEvent() argument
199 callback.finishedEvent(seq, handled); in dispatchTrackballEvent()
208 public void dispatchGenericMotionEvent(int seq, MotionEvent event, EventCallback callback) { in dispatchGenericMotionEvent() argument
211 callback.finishedEvent(seq, handled); in dispatchGenericMotionEvent()
DIInputMethodSessionWrapper.java250 final int seq = event.getSequenceNumber(); in onInputEvent() local
251 mPendingEvents.put(seq, event); in onInputEvent()
254 mInputMethodSession.dispatchKeyEvent(seq, keyEvent, this); in onInputEvent()
258 mInputMethodSession.dispatchTrackballEvent(seq, motionEvent, this); in onInputEvent()
260 mInputMethodSession.dispatchGenericMotionEvent(seq, motionEvent, this); in onInputEvent()
266 public void finishedEvent(int seq, boolean handled) { in finishedEvent() argument
267 int index = mPendingEvents.indexOfKey(seq); in finishedEvent()
/frameworks/base/tests/Input/src/com/android/test/input/
DInputEventSenderAndReceiverTest.kt86 val seq = 10 in testSendAndReceiveKey() constant
87 mSender.sendInputEvent(seq, key) in testSendAndReceiveKey()
95 assertEquals(SpyInputEventSender.FinishedSignal(seq, handled = true), finishedSignal) in testSendAndReceiveKey()
149 val seq = 11 in testCrashingReceiverDoesNotCrash() constant
150 sender.sendInputEvent(seq, key) in testCrashingReceiverDoesNotCrash()
152 assertEquals(SpyInputEventSender.FinishedSignal(seq, handled = true), finishedSignal) in testCrashingReceiverDoesNotCrash()
/frameworks/base/core/tests/coretests/src/android/app/activity/
DActivityThreadTest.java248 newConfig.seq = BASE_SEQ + 1; in testOverrideScale()
271 newConfig.seq++; in testOverrideScale()
386 final int seq = applyConfigurationChange(activity, BASE_SEQ); in testHandleActivityConfigurationChanged_ApplyNewConfigurations() local
392 applyConfigurationChange(activity, seq + 1); in testHandleActivityConfigurationChanged_ApplyNewConfigurations()
404 final int seq = applyConfigurationChange(activity, BASE_SEQ); in testHandleActivityConfigurationChanged_SkipWhenNewerConfigurationPending() local
414 newerConfig.seq = seq + 2; in testHandleActivityConfigurationChanged_SkipWhenNewerConfigurationPending()
420 olderConfig.seq = seq + 1; in testHandleActivityConfigurationChanged_SkipWhenNewerConfigurationPending()
443 config.seq = BASE_SEQ; in testHandleActivityConfigurationChanged_EnsureUpdatesProcessedInOrder()
456 processConfigLandscape.seq = BASE_SEQ + 1; in testHandleActivityConfigurationChanged_EnsureUpdatesProcessedInOrder()
461 activityConfigLandscape.seq = BASE_SEQ + 2; in testHandleActivityConfigurationChanged_EnsureUpdatesProcessedInOrder()
[all …]

123456