Home
last modified time | relevance | path

Searched refs:session (Results 1 – 25 of 442) sorted by relevance

12345678910>>...18

/packages/modules/ImsMedia/tests/native/service/src/com/android/telephony/imsmedia/lib/libimsmedia/core/audio/
DAudioSessionTest.cpp64 AudioSession* session; member in AudioSessionTest
74 session = nullptr; in AudioSessionTest()
116 session = new AudioSession(); in SetUp()
128 if (session != nullptr) in TearDown()
130 delete session; in TearDown()
147 EXPECT_EQ(session->getState(), kSessionStateOpened); in TEST_F()
148 EXPECT_EQ(session->getLocalRtpFd(), -1); in TEST_F()
149 EXPECT_EQ(session->getLocalRtcpFd(), -1); in TEST_F()
151 session->setLocalEndPoint(socketRtpFd, socketRtcpFd); in TEST_F()
152 EXPECT_EQ(session->getLocalRtpFd(), socketRtpFd); in TEST_F()
[all …]
/packages/modules/Uwb/framework/tests/src/android/uwb/
DRangingSessionTest.java80 RangingSession session = new RangingSession(EXECUTOR, callback, adapter, handle); in testOnRangingOpened_OnOpenSuccessCalled() local
81 verifyOpenState(session, false); in testOnRangingOpened_OnOpenSuccessCalled()
83 session.onRangingOpened(); in testOnRangingOpened_OnOpenSuccessCalled()
84 verifyOpenState(session, true); in testOnRangingOpened_OnOpenSuccessCalled()
87 verify(callback, times(1)).onOpened(eq(session)); in testOnRangingOpened_OnOpenSuccessCalled()
96 RangingSession session = new RangingSession(EXECUTOR, callback, adapter, handle); in testOnRangingOpened_OnServiceDiscoveredConnectedCalled() local
97 verifyOpenState(session, false); in testOnRangingOpened_OnServiceDiscoveredConnectedCalled()
99 session.onRangingOpened(); in testOnRangingOpened_OnServiceDiscoveredConnectedCalled()
100 verifyOpenState(session, true); in testOnRangingOpened_OnServiceDiscoveredConnectedCalled()
103 verify(callback, times(1)).onOpened(eq(session)); in testOnRangingOpened_OnServiceDiscoveredConnectedCalled()
[all …]
/packages/modules/Uwb/tests/cts/hostsidetests/multidevices/uwb/lib/
Duwb_ranging_decorator.py47 session: int = 0,
59 handler = self._event_handlers[session]
69 self.clear_ranging_session_callback_events(session)
79 session: int = 0,
88 callback_key = "fira_session_%s" % session
90 self._event_handlers[session] = handler
92 self.verify_callback_received("Opened", session)
93 self._callback_keys[session] = callback_key
95 self.verify_callback_received("OpenFailed", session)
97 def start_fira_ranging(self, session: int = 0):
[all …]
/packages/modules/Uwb/service/java/com/android/server/uwb/
DUwbMetrics.java360 RangingSessionStats session = new RangingSessionStats(uwbSession.getSessionId(), in logRangingInitEvent() local
362 session.parseParams(uwbSession.getParams()); in logRangingInitEvent()
363 session.convertInitStatus(status); in logRangingInitEvent()
364 mRangingSessionList.add(session); in logRangingInitEvent()
365 mOpenedSessionMap.put(uwbSession.getSessionId(), session); in logRangingInitEvent() local
370 session.mStsType, session.mIsInitiator, in logRangingInitEvent()
371 session.mIsController, session.mIsDiscoveredByFramework, session.mIsOutOfBand, in logRangingInitEvent()
372 session.mChannel, session.mInitStatus, in logRangingInitEvent()
373 session.mInitLatencyMs, session.mInitLatencyMs / 20, in logRangingInitEvent()
374 uwbSession.getAttributionSource().getUid(), session.mRangingIntervalMs, in logRangingInitEvent()
[all …]
/packages/modules/Uwb/framework/java/android/uwb/
DRangingManager.java81 RangingSession session = in openSession() local
84 mRangingSessionTable.put(sessionHandle, session); in openSession()
96 cancellationSignal.setOnCancelListener(() -> session.close()); in openSession()
114 RangingSession session = mRangingSessionTable.get(sessionHandle); in onRangingOpened() local
115 session.onRangingOpened(); in onRangingOpened()
130 RangingSession session = mRangingSessionTable.get(sessionHandle); in onRangingOpenFailed() local
131 session.onRangingOpenFailed(convertToReason(reason), parameters); in onRangingOpenFailed()
146 RangingSession session = mRangingSessionTable.get(sessionHandle); in onRangingReconfigured() local
147 session.onRangingReconfigured(parameters); in onRangingReconfigured()
161 RangingSession session = mRangingSessionTable.get(sessionHandle); in onRangingReconfigureFailed() local
[all …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiWakeMetricsTest.java89 WifiWakeStats.Session session = wifiWakeStats.sessions[i]; in buildsMultiSessionProto_greaterThanMax() local
90 assertNotNull(session); in buildsMultiSessionProto_greaterThanMax()
91 assertEquals(session.lockedNetworksAtStart, i); in buildsMultiSessionProto_greaterThanMax()
92 assertEquals(session.lockedNetworksAtInitialize, i); in buildsMultiSessionProto_greaterThanMax()
183 WifiWakeStats.Session session = wifiWakeStats.sessions[0]; in ignoresEventsAfterResetAndBeforeStartCalled() local
184 assertNotNull(session.wakeupEvent); in ignoresEventsAfterResetAndBeforeStartCalled()
185 assertEquals(session.wakeupEvent.elapsedScans, 1); in ignoresEventsAfterResetAndBeforeStartCalled()
239 WifiWakeMetrics.Session session = in session_buildsEmptyProto() local
242 WifiWakeStats.Session sessionProto = session.buildProto(); in session_buildsEmptyProto()
253 WifiWakeMetrics.Session session = in session_recordsEvents() local
[all …]
/packages/apps/DevCamera/src/com/android/devcamera/
DLoggingCallbacks.java65 public void onConfigured(CameraCaptureSession session) { in onConfigured() argument
67 Log.v(TAG, "Capture session callback onConfigured("+session+")"); in onConfigured()
72 public void onConfigureFailed(CameraCaptureSession session) { in onConfigureFailed() argument
73 Log.v(TAG, "Capture session callback onConfigureFailed("+session+")"); in onConfigureFailed()
74 super.onReady(session); in onConfigureFailed()
78 public void onReady(CameraCaptureSession session) { in onReady() argument
80 Log.v(TAG, "Capture session callback onReady("+session+")"); in onReady()
82 super.onReady(session); in onReady()
86 public void onActive(CameraCaptureSession session) { in onActive() argument
88 Log.v(TAG, "Capture session callback onActive("+session+")"); in onActive()
[all …]
/packages/modules/Media/apex/framework/java/android/media/
DMediaSession2Service.java32 import android.media.session.MediaSessionManager;
33 import android.media.session.MediaSessionManager.RemoteUserInfo;
66 public void onPlaybackActiveChanged(MediaSession2 session, boolean playbackActive) {
67 MediaSession2Service.this.onPlaybackActiveChanged(session, playbackActive);
71 public void onSessionClosed(MediaSession2 session) {
72 removeSession(session);
135 for (MediaSession2 session : sessions) { in onDestroy()
136 removeSession(session); in onDestroy()
179 public abstract MediaNotification onUpdateNotification(@NonNull MediaSession2 session); in onUpdateNotification() argument
190 public final void addSession(@NonNull MediaSession2 session) { in addSession() argument
[all …]
DMediaTranscodingManager.java118 void onTranscodingFinished(@NonNull TranscodingSession session); in onTranscodingFinished() argument
137 final TranscodingSession session = mPendingTranscodingSessions.remove(sessionId); in handleTranscodingFinished() local
139 if (session == null) { in handleTranscodingFinished()
146 session.updateStatusAndResult(TranscodingSession.STATUS_FINISHED, in handleTranscodingFinished()
151 if (session.mListener != null && session.mListenerExecutor != null) { in handleTranscodingFinished()
152 session.mListenerExecutor.execute( in handleTranscodingFinished()
153 () -> session.mListener.onTranscodingFinished(session)); in handleTranscodingFinished()
162 final TranscodingSession session = mPendingTranscodingSessions.remove(sessionId); in handleTranscodingFailed() local
164 if (session == null) { in handleTranscodingFailed()
171 session.updateStatusAndResult(TranscodingSession.STATUS_FINISHED, in handleTranscodingFailed()
[all …]
/packages/apps/TV/src/com/android/tv/
DInputSessionManager.java97 TvViewSession session = new TvViewSession(tvView, tunableTvView, callback); in createTvViewSession() local
98 mTvViewSessions.add(session); in createTvViewSession()
99 if (DEBUG) Log.d(TAG, "TvView session created: " + session); in createTvViewSession()
100 return session; in createTvViewSession()
105 public void releaseTvViewSession(TvViewSession session) { in releaseTvViewSession() argument
106 mTvViewSessions.remove(session); in releaseTvViewSession()
107 session.reset(); in releaseTvViewSession()
108 if (DEBUG) Log.d(TAG, "TvView session released: " + session); in releaseTvViewSession()
119 RecordingSession session = new RecordingSession(inputId, tag, callback, handler, endTimeMs); in createRecordingSession() local
120 mRecordingSessions.add(session); in createRecordingSession()
[all …]
/packages/modules/ImsMedia/service/src/com/android/telephony/imsmedia/lib/libimsmedia/core/audio/
DAudioManager.cpp51 auto session = mSessions.find(sessionId); in getState() local
52 if (session != mSessions.end()) in getState()
54 return (session->second)->getState(); in getState()
73 std::unique_ptr<AudioSession> session(new AudioSession()); in openSession() local
74 session->setSessionId(sessionId); in openSession()
75 session->setLocalEndPoint(rtpFd, rtcpFd); in openSession()
77 if (session->startGraph(config) != RESULT_SUCCESS) in openSession()
82 mSessions.insert(std::make_pair(sessionId, std::move(session))); in openSession()
105 auto session = mSessions.find(sessionId); in modifySession() local
107 if (session != mSessions.end()) in modifySession()
[all …]
/packages/modules/Media/apex/service/java/com/android/server/media/
DSessionPriorityList.java73 for (Session2Record session : mSessions) { in destroyAllSessions()
74 session.close(); in destroyAllSessions()
84 Session2Record session = mSessions.get(i); in destroySessionsByUserId() local
85 if (session.getUserId() == userId) { in destroySessionsByUserId()
87 session.close(); in destroySessionsByUserId()
98 for (Session2Record session : mSessions) { in getAllTokens()
99 sessions.add(session.getSessionToken()); in getAllTokens()
108 for (Session2Record session : mSessions) { in getTokensByUserId()
109 if (session.getUserId() == userId) { in getTokensByUserId()
110 sessions.add(session.getSessionToken()); in getTokensByUserId()
[all …]
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/ui/remotepreview/
DRemotePreviewHandler.java91 final RemotePreviewSession session = createRemotePreviewSession(item, viewHolder); in onViewAttachedToWindow() local
94 mSessionMap.put(holder, session); in onViewAttachedToWindow()
118 RemotePreviewSession session = getSessionForItem(item); in onHandlePageSelected() local
119 if (session == null) { in onHandlePageSelected()
125 mCurrentPreviewState.viewHolder = session.getPreviewVideoHolder(); in onHandlePageSelected()
127 session.requestPlayMedia(); in onHandlePageSelected()
163 RemotePreviewSession session = createRemotePreviewSession(mCurrentPreviewState.item, in restorePreviewState() local
165 if (session == null) { in restorePreviewState()
169 mSessionMap.put(holder, session); in restorePreviewState()
170 session.surfaceCreated(); in restorePreviewState()
[all …]
/packages/modules/ImsMedia/service/src/com/android/telephony/imsmedia/lib/libimsmedia/core/video/
DVideoManager.cpp49 auto session = mSessions.find(sessionId); in getState() local
51 if (session != mSessions.end()) in getState()
53 return (session->second)->getState(); in getState()
73 std::unique_ptr<VideoSession> session(new VideoSession()); in openSession() local
74 session->setSessionId(sessionId); in openSession()
75 session->setLocalEndPoint(rtpFd, rtcpFd); in openSession()
77 if (session->startGraph(config) != RESULT_SUCCESS) in openSession()
82 mSessions.insert(std::make_pair(sessionId, std::move(session))); in openSession()
107 auto session = mSessions.find(sessionId); in setPreviewSurfaceToSession() local
110 if (session != mSessions.end()) in setPreviewSurfaceToSession()
[all …]
/packages/modules/ImsMedia/service/src/com/android/telephony/imsmedia/
DImsMediaController.java61 IMediaSession session; in openSession() local
67 session = new AudioSession(sessionId, in openSession()
72 session = new VideoSession(sessionId, in openSession()
76 session = new TextSession(sessionId, in openSession()
80 session = null; in openSession()
83 if (session != null) { in openSession()
84 mSessions.append(sessionId, session); in openSession()
85 session.openSession(new OpenSessionParams(rtpFd, rtcpFd, rtpConfig, in openSession()
93 public void closeSession(IBinder session) { in closeSession() argument
94 Log.d(TAG, "closeSession: " + session); in closeSession()
[all …]
/packages/modules/ImsMedia/service/src/com/android/telephony/imsmedia/lib/libimsmedia/core/text/
DTextManager.cpp49 auto session = mSessions.find(sessionId); in getState() local
51 if (session != mSessions.end()) in getState()
53 return (session->second)->getState(); in getState()
73 std::unique_ptr<TextSession> session(new TextSession()); in openSession() local
74 session->setSessionId(sessionId); in openSession()
75 session->setLocalEndPoint(rtpFd, rtcpFd); in openSession()
77 if (session->startGraph(config) != RESULT_SUCCESS) in openSession()
82 mSessions.insert(std::make_pair(sessionId, std::move(session))); in openSession()
107 auto session = mSessions.find(sessionId); in modifySession() local
110 if (session != mSessions.end()) in modifySession()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DBinaryDictionary.java276 final DicTraverseSession session = getTraverseSession(sessionId); in getSuggestions() local
277 Arrays.fill(session.mInputCodePoints, Constants.NOT_A_CODE); in getSuggestions()
278 ngramContext.outputToArray(session.mPrevWordCodePointArrays, in getSuggestions()
279 session.mIsBeginningOfSentenceArray); in getSuggestions()
286 session.mInputCodePoints); in getSuggestions()
293 session.mNativeSuggestOptions.setUseFullEditDistance(mUseFullEditDistance); in getSuggestions()
294 session.mNativeSuggestOptions.setIsGesture(isGesture); in getSuggestions()
295 session.mNativeSuggestOptions.setBlockOffensiveWords( in getSuggestions()
297 session.mNativeSuggestOptions.setWeightForLocale(weightForLocale); in getSuggestions()
299 session.mInputOutputWeightOfLangModelVsSpatialModel[0] = in getSuggestions()
[all …]
/packages/modules/HealthFitness/tests/unittests/src/android/healthconnect/internal/datatypes/
DSleepSessionInternalTest.java33 SleepSessionRecordInternal session = TestUtils.buildSleepSessionInternal(); in testSessionConvertToExternal_convertToExternal_fieldsIsEqual() local
34 SleepSessionRecord externalSession = session.toExternalRecord(); in testSessionConvertToExternal_convertToExternal_fieldsIsEqual()
35 assertFieldsAreEqual(externalSession, session); in testSessionConvertToExternal_convertToExternal_fieldsIsEqual()
40 SleepSessionRecordInternal session = TestUtils.buildSleepSessionInternalNoExtraFields(); in testSessionConvertToExternal_convertToExternalNoExtra_fieldsIsEqual() local
41 SleepSessionRecord externalSession = session.toExternalRecord(); in testSessionConvertToExternal_convertToExternalNoExtra_fieldsIsEqual()
42 assertFieldsAreEqual(externalSession, session); in testSessionConvertToExternal_convertToExternalNoExtra_fieldsIsEqual()
47 SleepSessionRecordInternal session = TestUtils.buildSleepSessionInternal(); in testSessionWriteToParcel_populateToParcelAndFrom_restoredFieldsAreIdentical() local
48 SleepSessionRecordInternal restoredSession = writeAndRestoreFromParcel(session); in testSessionWriteToParcel_populateToParcelAndFrom_restoredFieldsAreIdentical()
49 assertFieldsAreEqual(session, restoredSession); in testSessionWriteToParcel_populateToParcelAndFrom_restoredFieldsAreIdentical()
55 SleepSessionRecordInternal session = TestUtils.buildSleepSessionInternalNoExtraFields(); in testSessionWriteToParcel_populateToParcelAndFromNoExtra_restoredFieldsAreIdentical() local
[all …]
/packages/apps/Camera2/src/com/android/camera/one/v2/camera2proxy/
DCameraCaptureSessionProxy.java40 public void onCaptureCompleted(CameraCaptureSessionProxy session, CaptureRequest request, in onCaptureCompleted() argument
43 public void onCaptureFailed(CameraCaptureSessionProxy session, CaptureRequest request, in onCaptureFailed() argument
46 public void onCaptureProgressed(CameraCaptureSessionProxy session, CaptureRequest request, in onCaptureProgressed() argument
49 public void onCaptureSequenceAborted(CameraCaptureSessionProxy session, int sequenceId); in onCaptureSequenceAborted() argument
51 public void onCaptureSequenceCompleted(CameraCaptureSessionProxy session, int sequenceId, in onCaptureSequenceCompleted() argument
54 public void onCaptureStarted(CameraCaptureSessionProxy session, CaptureRequest request, in onCaptureStarted() argument
59 public void onActive(CameraCaptureSessionProxy session); in onActive() argument
61 public void onClosed(CameraCaptureSessionProxy session); in onClosed() argument
63 public void onConfigureFailed(CameraCaptureSessionProxy session); in onConfigureFailed() argument
65 public void onConfigured(CameraCaptureSessionProxy session); in onConfigured() argument
[all …]
DAndroidCameraDeviceProxy.java43 public void onConfigured(CameraCaptureSession session) { in onConfigured() argument
44 mStateCallback.onConfigured(new AndroidCameraCaptureSessionProxy(session)); in onConfigured()
48 public void onConfigureFailed(CameraCaptureSession session) { in onConfigureFailed() argument
49 mStateCallback.onConfigureFailed(new AndroidCameraCaptureSessionProxy(session)); in onConfigureFailed()
53 public void onReady(CameraCaptureSession session) { in onReady() argument
54 mStateCallback.onReady(new AndroidCameraCaptureSessionProxy(session)); in onReady()
58 public void onActive(CameraCaptureSession session) { in onActive() argument
59 mStateCallback.onActive(new AndroidCameraCaptureSessionProxy(session)); in onActive()
63 public void onClosed(CameraCaptureSession session) { in onClosed() argument
64 mStateCallback.onClosed(new AndroidCameraCaptureSessionProxy(session)); in onClosed()
/packages/services/Telephony/testapps/TestRcsApp/aosp_test_rcsclient/src/com/android/libraries/rcs/simpleclient/service/chat/
DMinimalCpmChatService.java109 SimpleChatSession session = new SimpleChatSession(mContext, this, mMsrpManager); in startOriginatingChatSession() local
111 session.start(telUriContact), v -> session, MoreExecutors.directExecutor()); in startOriginatingChatSession()
114 ListenableFuture<Boolean> sendSipRequest(SIPRequest msg, SimpleChatSession session) { in sendSipRequest() argument
117 mTransactions.put(msg.getTransactionId(), session); in sendSipRequest() local
128 ListenableFuture<Boolean> sendSipResponse(SIPResponse msg, SimpleChatSession session) { in sendSipResponse() argument
135 mDialogs.put(msg.getDialogId(/* isServer= */ true), session); in sendSipResponse() local
145 SimpleChatSession session = mDialogs.get(dialogId); in handleRequest() local
146 session.receiveMessage(request); in handleRequest()
148 SimpleChatSession session = new SimpleChatSession(mContext, this, mMsrpManager); in handleRequest() local
149 session in handleRequest()
[all …]
/packages/apps/TV/tuner/src/com/android/tv/tuner/tvinput/
DBaseTunerTvInputService.java123 RecordingSession session = in onCreateRecordingSession() local
126 mTunerRecordingSession.add(session); in onCreateRecordingSession()
127 return session; in onCreateRecordingSession()
140 final Session session = in onCreateSession() local
145 mTunerSessions.add(session); in onCreateSession()
146 session.setOverlayViewEnabled(true); in onCreateSession()
147 return session; in onCreateSession()
156 for (RecordingSession session : mTunerRecordingSession) { in getRecordingUri()
158 TunerRecordingSessionExoV2 tunerSession = (TunerRecordingSessionExoV2) session; in getRecordingUri()
163 TunerRecordingSession tunerSession = (TunerRecordingSession) session; in getRecordingUri()
[all …]
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/
DExerciseDurationAggregationTest.java80 ExerciseSessionRecord session = in testSimpleAggregation_oneSession_returnsItsDuration() local
89 TestUtils.getAggregateResponse(mAggregateAllRecordsRequest, List.of(session)); in testSimpleAggregation_oneSession_returnsItsDuration()
94 session.getEndTime().toEpochMilli() in testSimpleAggregation_oneSession_returnsItsDuration()
95 - session.getStartTime().toEpochMilli()); in testSimpleAggregation_oneSession_returnsItsDuration()
103 ExerciseSessionRecord session = in testSimpleAggregation_oneSessionStartEarlierThanWindow_returnsOverlapDuration() local
112 TestUtils.getAggregateResponse(mAggregateInSmallWindow, List.of(session)); in testSimpleAggregation_oneSessionStartEarlierThanWindow_returnsOverlapDuration()
124 ExerciseSessionRecord session = in testSimpleAggregation_oneSessionBiggerThanWindow_returnsOverlapDuration() local
133 TestUtils.getAggregateResponse(mAggregateInSmallWindow, List.of(session)); in testSimpleAggregation_oneSessionBiggerThanWindow_returnsOverlapDuration()
151 ExerciseSessionRecord session = in testSimpleAggregation_oneSessionWithRest_returnsDurationMinusRest() local
169 TestUtils.getAggregateResponse(mAggregateAllRecordsRequest, List.of(session)); in testSimpleAggregation_oneSessionWithRest_returnsDurationMinusRest()
[all …]
/packages/modules/Bluetooth/system/common/
Dmetrics_unittest.cc111 A2DPSession* session = new A2DPSession(); in MakeA2DPSession() local
112 session->set_media_timer_min_millis(metrics.media_timer_min_ms); in MakeA2DPSession()
113 session->set_media_timer_max_millis(metrics.media_timer_max_ms); in MakeA2DPSession()
114 session->set_media_timer_avg_millis(metrics.media_timer_avg_ms); in MakeA2DPSession()
115 session->set_buffer_overruns_max_count(metrics.buffer_overruns_max_count); in MakeA2DPSession()
116 session->set_buffer_overruns_total(metrics.buffer_overruns_total); in MakeA2DPSession()
117 session->set_buffer_underruns_average(metrics.buffer_underruns_average); in MakeA2DPSession()
118 session->set_buffer_underruns_count(metrics.buffer_underruns_count); in MakeA2DPSession()
119 session->set_audio_duration_millis(metrics.audio_duration_ms); in MakeA2DPSession()
120 session->set_source_codec(source_codec); in MakeA2DPSession()
[all …]
/packages/apps/Camera2/src/com/android/camera/one/v2/photo/
DConvergedImageCaptureCommand.java153 try (FrameServer.Session session = mFrameServer.createExclusiveSession()) { in run() argument
156 waitForAFConvergence(session); in run()
159 waitForAEConvergence(session); in run()
161 captureBurst(session, imageStream, imageExposureUpdatable, imageSaver); in run()
167 resetRepeating(session); in run()
174 private void waitForAFConvergence(FrameServer.Session session) throws CameraAccessException, in waitForAFConvergence() argument
187 session.submitRequest(Arrays.asList(idleBuilder.build()), in waitForAFConvergence()
190 session.submitRequest(Arrays.asList(triggerBuilder.build()), in waitForAFConvergence()
197 private void waitForAEConvergence(FrameServer.Session session) throws CameraAccessException, in waitForAEConvergence() argument
210 session.submitRequest(Arrays.asList(idleBuilder.build()), in waitForAEConvergence()
[all …]

12345678910>>...18