/cts/tests/tests/media/src/android/media/cts/ |
D | RoutingSessionInfoTest.java | 175 RoutingSessionInfo sessionInfo = new RoutingSessionInfo.Builder( in testBuilderAndGettersOfRoutingSessionInfo() local 192 assertEquals(TEST_ID, sessionInfo.getId()); in testBuilderAndGettersOfRoutingSessionInfo() 193 assertEquals(TEST_CLIENT_PACKAGE_NAME, sessionInfo.getClientPackageName()); in testBuilderAndGettersOfRoutingSessionInfo() 194 assertEquals(TEST_NAME, sessionInfo.getName()); in testBuilderAndGettersOfRoutingSessionInfo() 196 assertEquals(2, sessionInfo.getSelectedRoutes().size()); in testBuilderAndGettersOfRoutingSessionInfo() 197 assertEquals(TEST_ROUTE_ID_0, sessionInfo.getSelectedRoutes().get(0)); in testBuilderAndGettersOfRoutingSessionInfo() 198 assertEquals(TEST_ROUTE_ID_1, sessionInfo.getSelectedRoutes().get(1)); in testBuilderAndGettersOfRoutingSessionInfo() 200 assertEquals(2, sessionInfo.getSelectableRoutes().size()); in testBuilderAndGettersOfRoutingSessionInfo() 201 assertEquals(TEST_ROUTE_ID_2, sessionInfo.getSelectableRoutes().get(0)); in testBuilderAndGettersOfRoutingSessionInfo() 202 assertEquals(TEST_ROUTE_ID_3, sessionInfo.getSelectableRoutes().get(1)); in testBuilderAndGettersOfRoutingSessionInfo() [all …]
|
D | StubMediaRoute2ProviderService.java | 151 for (RoutingSessionInfo sessionInfo : getAllSessionInfo()) { in clear() 152 notifySessionReleased(sessionInfo.getId()); in clear() 198 RoutingSessionInfo sessionInfo = getSessionInfo(sessionId); in onSetSessionVolume() local 199 if (sessionInfo == null) { in onSetSessionVolume() 202 volume = Math.max(0, Math.min(volume, sessionInfo.getVolumeMax())); in onSetSessionVolume() 203 RoutingSessionInfo newSessionInfo = new RoutingSessionInfo.Builder(sessionInfo) in onSetSessionVolume() 233 RoutingSessionInfo sessionInfo = new RoutingSessionInfo.Builder(sessionId, packageName) in onCreateSession() local 243 notifySessionCreated(requestId, sessionInfo); in onCreateSession() 255 RoutingSessionInfo sessionInfo = getSessionInfo(sessionId); in onReleaseSession() local 256 if (sessionInfo == null) { in onReleaseSession() [all …]
|
D | MediaSessionTest.java | 794 Bundle sessionInfo = new Bundle(); in testSessionInfoWithFrameworkParcelable() local 795 sessionInfo.putParcelable(testKey, frameworkParcelable); in testSessionInfoWithFrameworkParcelable() 800 mContext, "testSessionInfoWithFrameworkParcelable", sessionInfo); in testSessionInfoWithFrameworkParcelable() 817 Bundle sessionInfo = new Bundle(); in testSessionInfoWithCustomParcelable() local 818 sessionInfo.putParcelable(testKey, customParcelable); in testSessionInfoWithCustomParcelable() 823 mContext, "testSessionInfoWithCustomParcelable", sessionInfo); in testSessionInfoWithCustomParcelable()
|
D | MediaControllerTest.java | 140 Bundle sessionInfo = mController.getSessionInfo(); in testGetSessionInfo() local 141 assertNotNull(sessionInfo); in testGetSessionInfo() 142 assertEquals(EXTRAS_VALUE, sessionInfo.getString(EXTRAS_KEY)); in testGetSessionInfo()
|
/cts/hostsidetests/install/app/src/android/cts/install/ |
D | InstallRule.java | 82 .filter(sessionInfo -> !sessionInfo.hasParentSessionId()) in cleanUp() 83 .forEach(sessionInfo -> { in cleanUp() 85 Log.i(TAG, "abandoning session " + sessionInfo.getSessionId()); in cleanUp() 86 packageInstaller.abandonSession(sessionInfo.getSessionId()); in cleanUp() 88 Log.e(TAG, "Failed to abandon session " + sessionInfo.getSessionId(), e); in cleanUp()
|
/cts/hostsidetests/stagedinstall/app/src/com/android/tests/stagedinstall/ |
D | StagedInstallTest.java | 201 for (PackageInstaller.SessionInfo sessionInfo : stagedSessions) { in cleanUp() 202 if (sessionInfo.getParentSessionId() != PackageInstaller.SessionInfo.INVALID_ID in cleanUp() 203 || sessionInfo.isStagedSessionApplied() in cleanUp() 204 || sessionInfo.isStagedSessionFailed()) { in cleanUp() 209 Log.i(TAG, "abandoning session " + sessionInfo.getSessionId()); in cleanUp() 210 packageInstaller.abandonSession(sessionInfo.getSessionId()); in cleanUp() 212 Log.e(TAG, "Failed to abandon session " + sessionInfo.getSessionId(), e); in cleanUp() 438 PackageInstaller.SessionInfo sessionInfo = waitForBroadcast(sessionId); in testStagedInstallDowngrade_DowngradeNotRequested_Fails_Commit() local 439 assertThat(sessionInfo).isStagedSessionFailed(); in testStagedInstallDowngrade_DowngradeNotRequested_Fails_Commit() 459 PackageInstaller.SessionInfo sessionInfo = waitForBroadcast(sessionId); in testStagedInstallDowngrade_DowngradeRequested_Fails_Commit() local [all …]
|
/cts/hostsidetests/appsecurity/test-apps/SessionInspector/src/com/android/cts/sessioninspector/ |
D | SessionInspectorActivity.java | 54 final SessionInfo sessionInfo = in onCreate() local 56 result.putParcelable(EXTRA_SESSION, sessionInfo); in onCreate()
|
/cts/tests/tests/content/src/android/content/pm/cts/ |
D | InstallSessionTransferTest.java | 79 for (SessionInfo sessionInfo : mySessionInfos) { in getSessionInfo() 80 if (sessionInfo.sessionId == sessionId) { in getSessionInfo() 81 return sessionInfo; in getSessionInfo()
|
D | InstallSessionParamsUnitTest.java | 204 for (SessionInfo sessionInfo : mySessionInfos) { in getSessionInfo() 205 if (sessionInfo.getSessionId() == sessionId) { in getSessionInfo() 206 return sessionInfo; in getSessionInfo()
|
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/ |
D | CommandSession.java | 129 final Bundle sessionInfo = new Bundle(data); in handleForward() local 130 sessionInfo.remove(KEY_FORWARD); in handleForward() 131 for (String key : sessionInfo.keySet()) { in handleForward() 133 sessionInfo.remove(key); in handleForward() 140 intent.putExtras(sessionInfo); in handleForward()
|
/cts/tests/tests/wifi/src/android/net/wifi/cts/ |
D | ConnectedNetworkScorerTest.java | 454 public void onStart(WifiConnectedSessionInfo sessionInfo) { in onStart() argument 456 this.startSessionId = sessionInfo.getSessionId(); in onStart() 457 this.isUserSelected = sessionInfo.isUserSelected(); in onStart()
|
/cts/tests/uwb/src/android/uwb/cts/ |
D | UwbManagerTest.java | 150 public void onStarted(@NonNull PersistableBundle sessionInfo) { } in onStarted() argument
|