Home
last modified time | relevance | path

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

12

/frameworks/base/telecomm/java/com/android/internal/telecom/
DIConnectionService.aidl39 in Session.Info sessionInfo); in addConnectionServiceAdapter() argument
42 in Session.Info sessionInfo); in removeConnectionServiceAdapter() argument
50 in Session.Info sessionInfo); in createConnection() argument
52 void createConnectionComplete(String callId, in Session.Info sessionInfo); in createConnectionComplete() argument
55 in ConnectionRequest request, boolean isIncoming, in Session.Info sessionInfo); in createConnectionFailed() argument
63 in Session.Info sessionInfo); in createConference() argument
65 void createConferenceComplete(String callId, in Session.Info sessionInfo); in createConferenceComplete() argument
68 in ConnectionRequest request, boolean isIncoming, in Session.Info sessionInfo); in createConferenceFailed() argument
71 void abort(String callId, in Session.Info sessionInfo); in abort() argument
73 void answerVideo(String callId, int videoState, in Session.Info sessionInfo); in answerVideo() argument
[all …]
DIConnectionServiceAdapter.aidl45 in Session.Info sessionInfo); in handleCreateConnectionComplete() argument
51 in Session.Info sessionInfo); in handleCreateConferenceComplete() argument
53 void setActive(String callId, in Session.Info sessionInfo); in setActive() argument
55 void setRinging(String callId, in Session.Info sessionInfo); in setRinging() argument
57 void setDialing(String callId, in Session.Info sessionInfo); in setDialing() argument
59 void setPulling(String callId, in Session.Info sessionInfo); in setPulling() argument
62 in Session.Info sessionInfo); in setDisconnected() argument
64 void setOnHold(String callId, in Session.Info sessionInfo); in setOnHold() argument
66 void setRingbackRequested(String callId, boolean ringing, in Session.Info sessionInfo); in setRingbackRequested() argument
69 in Session.Info sessionInfo); in setConnectionCapabilities() argument
[all …]
/frameworks/base/media/java/android/media/
DMediaRouter2Manager.java217 @NonNull RoutingSessionInfo sessionInfo) { in getMediaControllerForRoutingSession()
219 if (areSessionsMatched(controller, sessionInfo)) { in getMediaControllerForRoutingSession()
261 public List<MediaRoute2Info> getAvailableRoutes(@NonNull RoutingSessionInfo sessionInfo) { in getAvailableRoutes() argument
262 return getFilteredRoutes(sessionInfo, /*includeSelectedRoutes=*/true, in getAvailableRoutes()
278 public List<MediaRoute2Info> getTransferableRoutes(@NonNull RoutingSessionInfo sessionInfo) { in getTransferableRoutes() argument
279 return getFilteredRoutes(sessionInfo, /*includeSelectedRoutes=*/false, in getTransferableRoutes()
280 (route) -> sessionInfo.isSystemSession() ^ route.isSystemRoute()); in getTransferableRoutes()
305 private List<MediaRoute2Info> getFilteredRoutes(@NonNull RoutingSessionInfo sessionInfo, in getFilteredRoutes() argument
308 Objects.requireNonNull(sessionInfo, "sessionInfo must not be null"); in getFilteredRoutes()
313 String packageName = sessionInfo.getClientPackageName(); in getFilteredRoutes()
[all …]
DMediaRoute2ProviderService.java240 @NonNull RoutingSessionInfo sessionInfo) { in notifySessionCreated() argument
241 Objects.requireNonNull(sessionInfo, "sessionInfo must not be null"); in notifySessionCreated()
245 + ", sessionInfo=" + sessionInfo); in notifySessionCreated()
253 String sessionId = sessionInfo.getId(); in notifySessionCreated()
259 mSessionInfo.put(sessionInfo.getId(), sessionInfo); in notifySessionCreated() local
265 mRemoteCallback.notifySessionCreated(requestId, sessionInfo); in notifySessionCreated()
276 public final void notifySessionUpdated(@NonNull RoutingSessionInfo sessionInfo) { in notifySessionUpdated() argument
277 Objects.requireNonNull(sessionInfo, "sessionInfo must not be null"); in notifySessionUpdated()
280 Log.d(TAG, "notifySessionUpdated: Updating session id=" + sessionInfo); in notifySessionUpdated()
283 String sessionId = sessionInfo.getId(); in notifySessionUpdated()
[all …]
DRoutingSessionInfo.java420 public Builder(@NonNull RoutingSessionInfo sessionInfo) { in Builder() argument
421 Objects.requireNonNull(sessionInfo, "sessionInfo must not be null"); in Builder()
423 mId = sessionInfo.mId; in Builder()
424 mName = sessionInfo.mName; in Builder()
425 mClientPackageName = sessionInfo.mClientPackageName; in Builder()
426 mProviderId = sessionInfo.mProviderId; in Builder()
428 mSelectedRoutes = new ArrayList<>(sessionInfo.mSelectedRoutes); in Builder()
429 mSelectableRoutes = new ArrayList<>(sessionInfo.mSelectableRoutes); in Builder()
430 mDeselectableRoutes = new ArrayList<>(sessionInfo.mDeselectableRoutes); in Builder()
431 mTransferableRoutes = new ArrayList<>(sessionInfo.mTransferableRoutes); in Builder()
[all …]
DMediaRouter2.java892 void createControllerOnHandler(int requestId, @Nullable RoutingSessionInfo sessionInfo) { in createControllerOnHandler() argument
910 if (sessionInfo == null) { in createControllerOnHandler()
913 } else if (!TextUtils.equals(requestedRoute.getProviderId(), sessionInfo.getProviderId())) { in createControllerOnHandler()
920 + sessionInfo.getProviderId() in createControllerOnHandler()
936 if (!sessionInfo.isSystemSession()) { in createControllerOnHandler()
937 new RoutingController(sessionInfo).release(); in createControllerOnHandler()
944 if (sessionInfo.isSystemSession()) { in createControllerOnHandler()
946 newController.setRoutingSessionInfo(sessionInfo); in createControllerOnHandler()
948 newController = new RoutingController(sessionInfo); in createControllerOnHandler()
957 void updateControllerOnHandler(RoutingSessionInfo sessionInfo) { in updateControllerOnHandler() argument
[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
DIMediaRouter2.aidl32 void notifySessionCreated(int requestId, in @nullable RoutingSessionInfo sessionInfo); in notifySessionCreated() argument
33 void notifySessionInfoChanged(in RoutingSessionInfo sessionInfo); in notifySessionInfoChanged() argument
34 void notifySessionReleased(in RoutingSessionInfo sessionInfo); in notifySessionReleased() argument
/frameworks/base/services/appprediction/java/com/android/server/appprediction/
DAppPredictionPerUserService.java131 final AppPredictionSessionInfo sessionInfo = new AppPredictionSessionInfo( in onCreatePredictionSessionLocked() local
137 if (sessionInfo.linkToDeath()) { in onCreatePredictionSessionLocked()
138 mSessionInfos.put(sessionId, sessionInfo); in onCreatePredictionSessionLocked()
152 final AppPredictionSessionInfo sessionInfo = mSessionInfos.get(sessionId); in notifyAppTargetEventLocked() local
153 if (sessionInfo == null) return; in notifyAppTargetEventLocked()
154 resolveService(sessionId, false, sessionInfo.mUsesPeopleService, in notifyAppTargetEventLocked()
164 final AppPredictionSessionInfo sessionInfo = mSessionInfos.get(sessionId); in notifyLaunchLocationShownLocked() local
165 if (sessionInfo == null) return; in notifyLaunchLocationShownLocked()
166 resolveService(sessionId, false, sessionInfo.mUsesPeopleService, in notifyLaunchLocationShownLocked()
176 final AppPredictionSessionInfo sessionInfo = mSessionInfos.get(sessionId); in sortAppTargetsLocked() local
[all …]
/frameworks/base/telecomm/java/android/telecom/
DConnectionServiceAdapterServant.java386 Session.Info sessionInfo) {
399 Session.Info sessionInfo) {
409 public void setActive(String connectionId, Session.Info sessionInfo) {
414 public void setRinging(String connectionId, Session.Info sessionInfo) {
419 public void setDialing(String connectionId, Session.Info sessionInfo) {
424 public void setPulling(String connectionId, Session.Info sessionInfo) {
430 Session.Info sessionInfo) {
438 public void setOnHold(String connectionId, Session.Info sessionInfo) {
444 Session.Info sessionInfo) {
451 Session.Info sessionInfo) {
[all …]
DRemoteConnectionService.java112 public void setActive(String callId, Session.Info sessionInfo) {
123 public void setRinging(String callId, Session.Info sessionInfo) {
129 public void setDialing(String callId, Session.Info sessionInfo) {
135 public void setPulling(String callId, Session.Info sessionInfo) {
142 Session.Info sessionInfo) {
153 public void setOnHold(String callId, Session.Info sessionInfo) {
164 public void setRingbackRequested(String callId, boolean ringing, Session.Info sessionInfo) {
171 Session.Info sessionInfo) {
183 Session.Info sessionInfo) {
195 Session.Info sessionInfo) {
[all …]
DConnectionService.java231 Session.Info sessionInfo) {
232 Log.startSession(sessionInfo, SESSION_ADD_CS_ADAPTER);
244 Session.Info sessionInfo) {
245 Log.startSession(sessionInfo, SESSION_REMOVE_CS_ADAPTER);
263 Session.Info sessionInfo) {
264 Log.startSession(sessionInfo, SESSION_CREATE_CONN);
280 public void createConnectionComplete(String id, Session.Info sessionInfo) {
281 Log.startSession(sessionInfo, SESSION_CREATE_CONN_COMPLETE);
298 Session.Info sessionInfo) {
299 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.java211 RoutingSessionInfo sessionInfo = getSessionInfo(sessionId); in onSetSessionVolume() local
212 if (sessionInfo == null) { in onSetSessionVolume()
215 volume = Math.max(0, Math.min(volume, sessionInfo.getVolumeMax())); in onSetSessionVolume()
216 RoutingSessionInfo newSessionInfo = new RoutingSessionInfo.Builder(sessionInfo) in onSetSessionVolume()
244 RoutingSessionInfo sessionInfo = new RoutingSessionInfo.Builder(sessionId, packageName) in onCreateSession() local
254 notifySessionCreated(requestId, sessionInfo); in onCreateSession()
265 RoutingSessionInfo sessionInfo = getSessionInfo(sessionId); in onReleaseSession() local
266 if (sessionInfo == null) { in onReleaseSession()
270 for (String routeId : sessionInfo.getSelectedRoutes()) { in onReleaseSession()
285 RoutingSessionInfo sessionInfo = getSessionInfo(sessionId); in onSelectRoute() local
[all …]
DRoutingSessionInfoTest.java51 RoutingSessionInfo sessionInfo = new RoutingSessionInfo.Builder( in testProviderId() local
60 RoutingSessionInfo sessionInfoWithProviderId = new RoutingSessionInfo.Builder(sessionInfo) in testProviderId()
63 assertNotEquals(sessionInfo.getSelectedRoutes(), in testProviderId()
65 assertNotEquals(sessionInfo.getSelectableRoutes(), in testProviderId()
67 assertNotEquals(sessionInfo.getDeselectableRoutes(), in testProviderId()
69 assertNotEquals(sessionInfo.getTransferableRoutes(), in testProviderId()
/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/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()
159 final SearchSessionInfo sessionInfo = mSessionInfos.remove(sessionId); in onDestroyLocked() local
160 if (sessionInfo == null) return; in onDestroyLocked()
163 sessionInfo.destroy(); in onDestroyLocked()
[all …]
/frameworks/base/services/people/java/com/android/server/people/
DPeopleService.java401 sessionInfo -> sessionInfo.getPredictor().onAppTargetEvent(event)); in notifyAppTargetEvent()
408 sessionInfo -> sessionInfo.getPredictor().onLaunchLocationShown( in notifyLaunchLocationShown()
416 sessionInfo -> sessionInfo.getPredictor().onSortAppTargets( in sortAppTargets()
424 runForSession(sessionId, sessionInfo -> sessionInfo.addCallback(callback)); in registerPredictionUpdates()
430 runForSession(sessionId, sessionInfo -> sessionInfo.removeCallback(callback)); in unregisterPredictionUpdates()
436 sessionInfo -> sessionInfo.getPredictor().onRequestPredictionUpdate()); in requestPredictionUpdate()
441 runForSession(sessionId, sessionInfo -> { in onDestroyPredictionSession()
442 sessionInfo.onDestroy(); in onDestroyPredictionSession()
469 SessionInfo sessionInfo = mSessions.get(sessionId); in runForSession() local
470 if (sessionInfo == null) { in runForSession()
[all …]
/frameworks/base/services/core/java/com/android/server/media/
DMediaRoute2ProviderServiceProxy.java459 private RoutingSessionInfo assignProviderIdForSession(RoutingSessionInfo sessionInfo) { in assignProviderIdForSession() argument
460 return new RoutingSessionInfo.Builder(sessionInfo) in assignProviderIdForSession()
486 for (RoutingSessionInfo sessionInfo : mSessionInfos) { in disconnect()
487 mCallback.onSessionReleased(this, sessionInfo); in disconnect()
600 void postSessionCreated(long requestId, RoutingSessionInfo sessionInfo) { in postSessionCreated() argument
601 mHandler.post(() -> onSessionCreated(Connection.this, requestId, sessionInfo)); in postSessionCreated()
604 void postSessionsUpdated(List<RoutingSessionInfo> sessionInfo) { in postSessionsUpdated() argument
605 mHandler.post(() -> onSessionsUpdated(Connection.this, sessionInfo)); in postSessionsUpdated()
608 void postSessionReleased(RoutingSessionInfo sessionInfo) { in postSessionReleased() argument
609 mHandler.post(() -> onSessionReleased(Connection.this, sessionInfo)); in postSessionReleased()
[all …]
DMediaRouter2ServiceImpl.java1472 long uniqueRequestId, @NonNull RoutingSessionInfo sessionInfo) { in onSessionCreated() argument
1474 this, provider, uniqueRequestId, sessionInfo)); in onSessionCreated()
1479 @NonNull RoutingSessionInfo sessionInfo) { in onSessionUpdated() argument
1481 this, provider, sessionInfo)); in onSessionUpdated()
1486 @NonNull RoutingSessionInfo sessionInfo) { in onSessionReleased() argument
1488 this, provider, sessionInfo)); in onSessionReleased()
1838 long uniqueRequestId, @NonNull RoutingSessionInfo sessionInfo) { in onSessionCreatedOnHandler() argument
1853 notifySessionCreatedToManagers(managerRequestId, sessionInfo); in onSessionCreatedOnHandler()
1857 + "uniqueRequestId=" + uniqueRequestId + ", sessionInfo=" + sessionInfo); in onSessionCreatedOnHandler()
1873 if (sessionInfo.isSystemSession() in onSessionCreatedOnHandler()
[all …]
DMediaRoute2Provider.java114 long requestId, @Nullable RoutingSessionInfo sessionInfo); in onSessionCreated() argument
116 @NonNull RoutingSessionInfo sessionInfo); in onSessionUpdated() argument
118 @NonNull RoutingSessionInfo sessionInfo); in onSessionReleased() argument
/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/tests/robotests/src/com/android/settingslib/media/
DInfoMediaManagerTest.java97 final RoutingSessionInfo sessionInfo = mock(RoutingSessionInfo.class); in onRouteAdded_getAvailableRoutes_shouldAddMediaDevice() local
98 routingSessionInfos.add(sessionInfo); in onRouteAdded_getAvailableRoutes_shouldAddMediaDevice()
101 when(sessionInfo.getSelectedRoutes()).thenReturn(selectedRoutes); in onRouteAdded_getAvailableRoutes_shouldAddMediaDevice()
148 final RoutingSessionInfo sessionInfo = mock(RoutingSessionInfo.class); in onPreferredFeaturesChanged_samePackageName_shouldAddMediaDevice() local
149 routingSessionInfos.add(sessionInfo); in onPreferredFeaturesChanged_samePackageName_shouldAddMediaDevice()
152 when(sessionInfo.getSelectedRoutes()).thenReturn(selectedRoutes); in onPreferredFeaturesChanged_samePackageName_shouldAddMediaDevice()
184 final RoutingSessionInfo sessionInfo = mock(RoutingSessionInfo.class); in onRoutesChanged_getAvailableRoutes_shouldAddMediaDevice() local
185 routingSessionInfos.add(sessionInfo); in onRoutesChanged_getAvailableRoutes_shouldAddMediaDevice()
188 when(sessionInfo.getSelectedRoutes()).thenReturn(selectedRoutes); in onRoutesChanged_getAvailableRoutes_shouldAddMediaDevice()
248 final RoutingSessionInfo sessionInfo = mock(RoutingSessionInfo.class); in onRoutesRemoved_getAvailableRoutes_shouldAddMediaDevice() local
[all …]
/frameworks/base/packages/SettingsLib/tests/robotests/testutils/com/android/settingslib/testutils/shadow/
DShadowRouter2Manager.java82 public void setSystemRoutingSession(RoutingSessionInfo sessionInfo) { in setSystemRoutingSession() argument
83 mSystemRoutingSession = sessionInfo; in setSystemRoutingSession()
87 public List<MediaRoute2Info> getDeselectableRoutes(@NonNull RoutingSessionInfo sessionInfo) { in getDeselectableRoutes() argument
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/
DInstallStart.java74 PackageInstaller.SessionInfo sessionInfo = packageInstaller.getSessionInfo(sessionId); in onCreate() local
75 callingPackage = (sessionInfo != null) ? sessionInfo.getInstallerPackageName() : null; in onCreate()
77 (sessionInfo != null) ? sessionInfo.getInstallerAttributionTag() : null; in onCreate()

12