Home
last modified time | relevance | path

Searched refs:sessionInfo (Results 1 – 25 of 58) sorted by relevance

123

/frameworks/base/telecomm/java/com/android/internal/telecom/
DIConnectionService.aidl40 in Session.Info sessionInfo); in addConnectionServiceAdapter() argument
43 in Session.Info sessionInfo); in removeConnectionServiceAdapter() argument
51 in Session.Info sessionInfo); in createConnection() argument
53 void createConnectionComplete(String callId, in Session.Info sessionInfo); in createConnectionComplete() argument
56 in ConnectionRequest request, boolean isIncoming, in Session.Info sessionInfo); in createConnectionFailed() argument
64 in Session.Info sessionInfo); in createConference() argument
66 void createConferenceComplete(String callId, in Session.Info sessionInfo); in createConferenceComplete() argument
69 in ConnectionRequest request, boolean isIncoming, in Session.Info sessionInfo); in createConferenceFailed() argument
72 void abort(String callId, in Session.Info sessionInfo); in abort() argument
74 void answerVideo(String callId, int videoState, in Session.Info sessionInfo); in answerVideo() argument
[all …]
DIConnectionServiceAdapter.aidl47 in Session.Info sessionInfo); in handleCreateConnectionComplete() argument
53 in Session.Info sessionInfo); in handleCreateConferenceComplete() argument
55 void setActive(String callId, in Session.Info sessionInfo); in setActive() argument
57 void setRinging(String callId, in Session.Info sessionInfo); in setRinging() argument
59 void setDialing(String callId, in Session.Info sessionInfo); in setDialing() argument
61 void setPulling(String callId, in Session.Info sessionInfo); in setPulling() argument
64 in Session.Info sessionInfo); in setDisconnected() argument
66 void setOnHold(String callId, in Session.Info sessionInfo); in setOnHold() argument
68 void setRingbackRequested(String callId, boolean ringing, in Session.Info sessionInfo); in setRingbackRequested() argument
71 in Session.Info sessionInfo); in setConnectionCapabilities() argument
[all …]
/frameworks/base/media/java/android/media/
DMediaRouter2Manager.java223 @NonNull RoutingSessionInfo sessionInfo) { in getMediaControllerForRoutingSession()
225 if (areSessionsMatched(controller, sessionInfo)) { in getMediaControllerForRoutingSession()
266 public List<MediaRoute2Info> getAvailableRoutes(@NonNull RoutingSessionInfo sessionInfo) { in getAvailableRoutes() argument
267 return getFilteredRoutes(sessionInfo, /*includeSelectedRoutes=*/true, in getAvailableRoutes()
283 public List<MediaRoute2Info> getTransferableRoutes(@NonNull RoutingSessionInfo sessionInfo) { in getTransferableRoutes() argument
284 return getFilteredRoutes(sessionInfo, /*includeSelectedRoutes=*/false, in getTransferableRoutes()
285 (route) -> sessionInfo.isSystemSession() ^ route.isSystemRoute()); in getTransferableRoutes()
310 private List<MediaRoute2Info> getFilteredRoutes(@NonNull RoutingSessionInfo sessionInfo, in getFilteredRoutes() argument
313 Objects.requireNonNull(sessionInfo, "sessionInfo must not be null"); in getFilteredRoutes()
318 String packageName = sessionInfo.getClientPackageName(); in getFilteredRoutes()
[all …]
DMediaRouter2.java1247 void createControllerOnHandler(int requestId, @Nullable RoutingSessionInfo sessionInfo) { in createControllerOnHandler() argument
1265 if (sessionInfo == null) { in createControllerOnHandler()
1268 } else if (!TextUtils.equals(requestedRoute.getProviderId(), sessionInfo.getProviderId())) { in createControllerOnHandler()
1275 + sessionInfo.getProviderId() in createControllerOnHandler()
1291 if (!sessionInfo.isSystemSession()) { in createControllerOnHandler()
1292 new RoutingController(sessionInfo).release(); in createControllerOnHandler()
1298 RoutingController newController = addRoutingController(sessionInfo); in createControllerOnHandler()
1318 void updateControllerOnHandler(RoutingSessionInfo sessionInfo) { in updateControllerOnHandler() argument
1319 if (sessionInfo == null) { in updateControllerOnHandler()
1325 getMatchingController(sessionInfo, /* logPrefix */ "updateControllerOnHandler"); in updateControllerOnHandler()
[all …]
DMediaRoute2ProviderService.java252 @NonNull RoutingSessionInfo sessionInfo) { in notifySessionCreated() argument
253 Objects.requireNonNull(sessionInfo, "sessionInfo must not be null"); in notifySessionCreated()
257 + ", sessionInfo=" + sessionInfo); in notifySessionCreated()
265 String sessionId = sessionInfo.getId(); in notifySessionCreated()
271 mSessionInfos.put(sessionInfo.getId(), sessionInfo); in notifySessionCreated() local
277 mRemoteCallback.notifySessionCreated(requestId, sessionInfo); in notifySessionCreated()
288 public final void notifySessionUpdated(@NonNull RoutingSessionInfo sessionInfo) { in notifySessionUpdated() argument
289 Objects.requireNonNull(sessionInfo, "sessionInfo must not be null"); in notifySessionUpdated()
292 Log.d(TAG, "notifySessionUpdated: Updating session id=" + sessionInfo); in notifySessionUpdated()
295 String sessionId = sessionInfo.getId(); in notifySessionUpdated()
[all …]
DIMediaRoute2ProviderServiceCallback.aidl30 void notifySessionCreated(long requestId, in RoutingSessionInfo sessionInfo); in notifySessionCreated() argument
31 void notifySessionsUpdated(in List<RoutingSessionInfo> sessionInfo); in notifySessionsUpdated() argument
32 void notifySessionReleased(in RoutingSessionInfo sessionInfo); in notifySessionReleased() argument
DRoutingSessionInfo.java627 public Builder(@NonNull RoutingSessionInfo sessionInfo) { in Builder() argument
628 Objects.requireNonNull(sessionInfo, "sessionInfo must not be null"); in Builder()
630 mId = sessionInfo.mId; in Builder()
631 mName = sessionInfo.mName; in Builder()
632 mClientPackageName = sessionInfo.mClientPackageName; in Builder()
633 mProviderId = sessionInfo.mProviderId; in Builder()
635 mSelectedRoutes = new ArrayList<>(sessionInfo.mSelectedRoutes); in Builder()
636 mSelectableRoutes = new ArrayList<>(sessionInfo.mSelectableRoutes); in Builder()
637 mDeselectableRoutes = new ArrayList<>(sessionInfo.mDeselectableRoutes); in Builder()
638 mTransferableRoutes = new ArrayList<>(sessionInfo.mTransferableRoutes); in Builder()
[all …]
DIMediaRouter2.aidl31 void notifySessionCreated(int requestId, in @nullable RoutingSessionInfo sessionInfo); in notifySessionCreated() argument
32 void notifySessionInfoChanged(in RoutingSessionInfo sessionInfo); in notifySessionInfoChanged() argument
33 void notifySessionReleased(in RoutingSessionInfo sessionInfo); in notifySessionReleased() argument
/frameworks/base/services/appprediction/java/com/android/server/appprediction/
DAppPredictionPerUserService.java132 final AppPredictionSessionInfo sessionInfo = new AppPredictionSessionInfo( in onCreatePredictionSessionLocked() local
138 if (sessionInfo.linkToDeath()) { in onCreatePredictionSessionLocked()
139 mSessionInfos.put(sessionId, sessionInfo); in onCreatePredictionSessionLocked()
153 final AppPredictionSessionInfo sessionInfo = mSessionInfos.get(sessionId); in notifyAppTargetEventLocked() local
154 if (sessionInfo == null) return; in notifyAppTargetEventLocked()
155 resolveService(sessionId, false, sessionInfo.mUsesPeopleService, in notifyAppTargetEventLocked()
165 final AppPredictionSessionInfo sessionInfo = mSessionInfos.get(sessionId); in notifyLaunchLocationShownLocked() local
166 if (sessionInfo == null) return; in notifyLaunchLocationShownLocked()
167 resolveService(sessionId, false, sessionInfo.mUsesPeopleService, in notifyLaunchLocationShownLocked()
177 final AppPredictionSessionInfo sessionInfo = mSessionInfos.get(sessionId); in sortAppTargetsLocked() local
[all …]
/frameworks/base/telecomm/java/android/telecom/
DRemoteConnectionService.java115 public void setActive(String callId, Session.Info sessionInfo) {
126 public void setRinging(String callId, Session.Info sessionInfo) {
132 public void setDialing(String callId, Session.Info sessionInfo) {
138 public void setPulling(String callId, Session.Info sessionInfo) {
145 Session.Info sessionInfo) {
156 public void setOnHold(String callId, Session.Info sessionInfo) {
167 public void setRingbackRequested(String callId, boolean ringing, Session.Info sessionInfo) {
174 Session.Info sessionInfo) {
186 Session.Info sessionInfo) {
198 Session.Info sessionInfo) {
[all …]
DConnectionServiceAdapterServant.java400 Session.Info sessionInfo) {
413 Session.Info sessionInfo) {
423 public void setActive(String connectionId, Session.Info sessionInfo) {
428 public void setRinging(String connectionId, Session.Info sessionInfo) {
433 public void setDialing(String connectionId, Session.Info sessionInfo) {
438 public void setPulling(String connectionId, Session.Info sessionInfo) {
444 Session.Info sessionInfo) {
452 public void setOnHold(String connectionId, Session.Info sessionInfo) {
458 Session.Info sessionInfo) {
465 Session.Info sessionInfo) {
[all …]
DConnectionService.java464 Session.Info sessionInfo) {
465 Log.startSession(sessionInfo, SESSION_ADD_CS_ADAPTER);
477 Session.Info sessionInfo) {
478 Log.startSession(sessionInfo, SESSION_REMOVE_CS_ADAPTER);
496 Session.Info sessionInfo) {
497 Log.startSession(sessionInfo, SESSION_CREATE_CONN);
513 public void createConnectionComplete(String id, Session.Info sessionInfo) {
514 Log.startSession(sessionInfo, SESSION_CREATE_CONN_COMPLETE);
531 Session.Info sessionInfo) {
532 Log.startSession(sessionInfo, SESSION_CREATE_CONN_FAILED);
[all …]
/frameworks/base/services/smartspace/java/com/android/server/smartspace/
DSmartspacePerUserService.java111 final SmartspaceSessionInfo sessionInfo = new SmartspaceSessionInfo( in onCreateSmartspaceSessionLocked() local
117 if (sessionInfo.linkToDeath()) { in onCreateSmartspaceSessionLocked()
118 mSessionInfos.put(sessionId, sessionInfo); in onCreateSmartspaceSessionLocked()
132 final SmartspaceSessionInfo sessionInfo = mSessionInfos.get(sessionId); in notifySmartspaceEventLocked() local
133 if (sessionInfo == null) return; in notifySmartspaceEventLocked()
142 final SmartspaceSessionInfo sessionInfo = mSessionInfos.get(sessionId); in requestSmartspaceUpdateLocked() local
143 if (sessionInfo == null) return; in requestSmartspaceUpdateLocked()
154 final SmartspaceSessionInfo sessionInfo = mSessionInfos.get(sessionId); in registerSmartspaceUpdatesLocked() local
155 if (sessionInfo == null) return; in registerSmartspaceUpdatesLocked()
159 sessionInfo.addCallbackLocked(callback); in registerSmartspaceUpdatesLocked()
[all …]
/frameworks/base/media/tests/MediaRouter/src/com/android/mediaroutertest/
DStubMediaRoute2ProviderService.java238 RoutingSessionInfo sessionInfo = getSessionInfo(sessionId); in onSetSessionVolume() local
239 if (sessionInfo == null) { in onSetSessionVolume()
242 volume = Math.max(0, Math.min(volume, sessionInfo.getVolumeMax())); in onSetSessionVolume()
243 RoutingSessionInfo newSessionInfo = new RoutingSessionInfo.Builder(sessionInfo) in onSetSessionVolume()
271 RoutingSessionInfo sessionInfo = new RoutingSessionInfo.Builder(sessionId, packageName) in onCreateSession() local
281 notifySessionCreated(requestId, sessionInfo); in onCreateSession()
292 RoutingSessionInfo sessionInfo = getSessionInfo(sessionId); in onReleaseSession() local
293 if (sessionInfo == null) { in onReleaseSession()
297 for (String routeId : sessionInfo.getSelectedRoutes()) { in onReleaseSession()
312 RoutingSessionInfo sessionInfo = getSessionInfo(sessionId); in onSelectRoute() local
[all …]
DRoutingSessionInfoTest.java52 RoutingSessionInfo sessionInfo = new RoutingSessionInfo.Builder( in testProviderId() local
61 RoutingSessionInfo sessionInfoWithProviderId = new RoutingSessionInfo.Builder(sessionInfo) in testProviderId()
65 .isNotEqualTo(sessionInfo.getSelectedRoutes()); in testProviderId()
67 .isNotEqualTo(sessionInfo.getSelectableRoutes()); in testProviderId()
69 .isNotEqualTo(sessionInfo.getDeselectableRoutes()); in testProviderId()
71 .isNotEqualTo(sessionInfo.getTransferableRoutes()); in testProviderId()
101 RoutingSessionInfo sessionInfo = new RoutingSessionInfo.Builder( in testGetVolumeHandlingGroupSession() local
116 assertThat(sessionInfo.getVolumeHandling()).isEqualTo(expectedResult); in testGetVolumeHandlingGroupSession()
/frameworks/base/services/searchui/java/com/android/server/searchui/
DSearchUiPerUserService.java112 final SearchSessionInfo sessionInfo = new SearchSessionInfo( in onCreateSearchSessionLocked() local
118 if (sessionInfo.linkToDeath()) { in onCreateSearchSessionLocked()
119 mSessionInfos.put(sessionId, sessionInfo); in onCreateSearchSessionLocked()
133 final SearchSessionInfo sessionInfo = mSessionInfos.get(sessionId); in notifyLocked() local
134 if (sessionInfo == null) return; in notifyLocked()
145 final SearchSessionInfo sessionInfo = mSessionInfos.get(sessionId); in queryLocked() local
146 if (sessionInfo == null) return; in queryLocked()
158 final SearchSessionInfo sessionInfo = mSessionInfos.get(sessionId); in registerEmptyQueryResultUpdateCallbackLocked() local
159 if (sessionInfo == null) return; in registerEmptyQueryResultUpdateCallbackLocked()
163 sessionInfo.addCallbackLocked(callback); in registerEmptyQueryResultUpdateCallbackLocked()
[all …]
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/wear/
DPackageInstallerImpl.java63 PackageInstaller.SessionInfo sessionInfo = mySessions.get(i); in PackageInstallerImpl() local
64 String packageName = sessionInfo.getAppPackageName(); in PackageInstallerImpl()
65 PackageInstaller.SessionInfo oldInfo = mSessionInfoMap.put(packageName, sessionInfo); in PackageInstallerImpl()
113 PackageInstaller.SessionInfo sessionInfo = mSessionInfoMap.get(packageName); in install() local
114 if (sessionInfo != null) { in install()
130 sessionInfo = mSessionInfoMap.get(packageName); in install()
132 session = mPackageInstaller.openSession(sessionInfo.getSessionId()); in install()
146 getCommitCallback(packageName, sessionInfo.getSessionId(), callback)); in install()
149 cancelSession(sessionInfo.getSessionId(), packageName); in install()
180 PackageInstaller.SessionInfo sessionInfo = mSessionInfoMap.get(packageName); in getSession() local
[all …]
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/v2/model/
DSessionStager.kt46 var sessionInfo: PackageInstaller.SessionInfo? in <lambda>() variable
78 sessionInfo = pi.getSessionInfo(stagedSessionId) in <lambda>()
82 sessionInfo = null in <lambda>()
85 return@withContext if (sessionInfo == null in <lambda>()
86 || !sessionInfo?.isActive!! in <lambda>()
87 || sessionInfo?.resolvedBaseApkPath == null in <lambda>()
89 Log.w(LOG_TAG, "Session info is invalid: $sessionInfo") in <lambda>()
/frameworks/base/services/people/java/com/android/server/people/
DPeopleService.java416 sessionInfo -> sessionInfo.getPredictor().onAppTargetEvent(event)); in notifyAppTargetEvent()
423 sessionInfo -> sessionInfo.getPredictor().onLaunchLocationShown( in notifyLaunchLocationShown()
431 sessionInfo -> sessionInfo.getPredictor().onSortAppTargets( in sortAppTargets()
439 runForSession(sessionId, sessionInfo -> sessionInfo.addCallback(callback)); in registerPredictionUpdates()
445 runForSession(sessionId, sessionInfo -> sessionInfo.removeCallback(callback)); in unregisterPredictionUpdates()
451 sessionInfo -> sessionInfo.getPredictor().onRequestPredictionUpdate()); in requestPredictionUpdate()
456 runForSession(sessionId, sessionInfo -> { in onDestroyPredictionSession()
457 sessionInfo.onDestroy(); in onDestroyPredictionSession()
488 SessionInfo sessionInfo = mSessions.get(sessionId); in runForSession() local
489 if (sessionInfo == null) { in runForSession()
[all …]
/frameworks/base/core/java/android/hardware/display/
DWifiDisplayStatus.java89 WifiDisplaySessionInfo sessionInfo =
93 activeDisplay, displays, sessionInfo);
107 WifiDisplay activeDisplay, WifiDisplay[] displays, WifiDisplaySessionInfo sessionInfo) { in WifiDisplayStatus() argument
118 mSessionInfo = (sessionInfo != null) ? sessionInfo : new WifiDisplaySessionInfo(); in WifiDisplayStatus()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/media/
DManagerInfoMediaManager.java108 protected void releaseSession(@NonNull RoutingSessionInfo sessionInfo) { in releaseSession() argument
109 mRouterManager.releaseSession(sessionInfo); in releaseSession()
161 for (RoutingSessionInfo sessionInfo : getRemoteSessions()) { in getRoutingSessionById()
162 if (TextUtils.equals(sessionInfo.getId(), sessionId)) { in getRoutingSessionById()
163 return sessionInfo; in getRoutingSessionById()
226 public void onSessionUpdated(RoutingSessionInfo sessionInfo) { in onSessionUpdated() argument
DRouterInfoMediaManager.java162 protected void releaseSession(@NonNull RoutingSessionInfo sessionInfo) { in releaseSession() argument
163 RoutingController controller = getControllerForSession(sessionInfo); in releaseSession()
245 for (RoutingSessionInfo sessionInfo : getRemoteSessions()) { in getRoutingSessionById()
246 if (TextUtils.equals(sessionInfo.getId(), sessionId)) { in getRoutingSessionById()
247 return sessionInfo; in getRoutingSessionById()
286 private RoutingController getControllerForSession(@NonNull RoutingSessionInfo sessionInfo) { in getControllerForSession() argument
287 return mRouter.getController(sessionInfo.getId()); in getControllerForSession()
/frameworks/base/services/core/java/com/android/server/media/
DMediaRoute2ProviderServiceProxy.java601 private RoutingSessionInfo assignProviderIdForSession(RoutingSessionInfo sessionInfo) { in assignProviderIdForSession() argument
602 return new RoutingSessionInfo.Builder(sessionInfo) in assignProviderIdForSession()
633 for (RoutingSessionInfo sessionInfo : mSessionInfos) { in disconnect()
634 mCallback.onSessionReleased(this, sessionInfo); in disconnect()
794 void postSessionCreated(long requestId, RoutingSessionInfo sessionInfo) { in postSessionCreated() argument
795 mHandler.post(() -> onSessionCreated(Connection.this, requestId, sessionInfo)); in postSessionCreated()
798 void postSessionsUpdated(List<RoutingSessionInfo> sessionInfo) { in postSessionsUpdated() argument
799 mHandler.post(() -> onSessionsUpdated(Connection.this, sessionInfo)); in postSessionsUpdated()
802 void postSessionReleased(RoutingSessionInfo sessionInfo) { in postSessionReleased() argument
803 mHandler.post(() -> onSessionReleased(Connection.this, sessionInfo)); in postSessionReleased()
[all …]
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/
DInstallStart.java108 PackageInstaller.SessionInfo sessionInfo = mPackageInstaller.getSessionInfo(sessionId); in onCreate() local
109 if (sessionInfo != null) { in onCreate()
110 callingAttributionTag = sessionInfo.getInstallerAttributionTag(); in onCreate()
111 if (sessionInfo.getOriginatingUid() != Process.INVALID_UID) { in onCreate()
112 originatingUid = sessionInfo.getOriginatingUid(); in onCreate()
300 PackageInstaller.SessionInfo sessionInfo = mPackageInstaller.getSessionInfo(sessionId); in isCallerSessionOwner() local
301 if (sessionInfo == null) { in isCallerSessionOwner()
304 int installerUid = sessionInfo.getInstallerUid(); in isCallerSessionOwner()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/media/
DInfoMediaManagerTest.java168 RoutingSessionInfo sessionInfo = mock(RoutingSessionInfo.class); in stopScan_startFirst_callsUnregister() local
185 final RoutingSessionInfo sessionInfo = mock(RoutingSessionInfo.class); in onRouteAdded_getAvailableRoutes_shouldAddMediaDevice() local
186 routingSessionInfos.add(sessionInfo); in onRouteAdded_getAvailableRoutes_shouldAddMediaDevice()
189 when(sessionInfo.getSelectedRoutes()).thenReturn(selectedRoutes); in onRouteAdded_getAvailableRoutes_shouldAddMediaDevice()
240 final RoutingSessionInfo sessionInfo = mock(RoutingSessionInfo.class); in onPreferredFeaturesChanged_samePackageName_shouldAddMediaDevice() local
241 routingSessionInfos.add(sessionInfo); in onPreferredFeaturesChanged_samePackageName_shouldAddMediaDevice()
244 when(sessionInfo.getSelectedRoutes()).thenReturn(selectedRoutes); in onPreferredFeaturesChanged_samePackageName_shouldAddMediaDevice()
277 final RoutingSessionInfo sessionInfo = mock(RoutingSessionInfo.class); in onRoutesChanged_getAvailableRoutes_shouldAddMediaDevice() local
278 routingSessionInfos.add(sessionInfo); in onRoutesChanged_getAvailableRoutes_shouldAddMediaDevice()
281 when(sessionInfo.getSelectedRoutes()).thenReturn(selectedRoutes); in onRoutesChanged_getAvailableRoutes_shouldAddMediaDevice()
[all …]

123