/cts/tests/tests/media/bettertogether/src/android/media/bettertogether/cts/ |
D | MediaSession2Test.java | 223 Session2Callback sessionCallback = new Session2Callback(); in testGetConnectedControllers_newController() local 225 .setSessionCallback(sHandlerExecutor, sessionCallback) in testGetConnectedControllers_newController() 237 if (Objects.equals(sessionCallback.mController, controllerInfo)) { in testGetConnectedControllers_newController() 249 Session2Callback sessionCallback = new Session2Callback(); in testGetConnectedControllers_closedController() local 251 .setSessionCallback(sHandlerExecutor, sessionCallback) in testGetConnectedControllers_closedController() 260 assertThat(sessionCallback.awaitOnDisconnect(WAIT_TIME_MS)).isTrue(); in testGetConnectedControllers_closedController() 263 assertThat(controllers).doesNotContain(sessionCallback.mController); in testGetConnectedControllers_closedController() 296 Session2Callback sessionCallback = new Session2Callback(); in testBroadcastSessionCommand() local 305 .setSessionCallback(sHandlerExecutor, sessionCallback) in testBroadcastSessionCommand() 358 Session2Callback sessionCallback = new Session2Callback(); in testCallback_onConnect_onDisconnect() local [all …]
|
D | MediaSessionTest.java | 715 MediaSessionCallback sessionCallback = new MediaSessionCallback(); in testCallbackOnMediaButtonEvent() local 716 mSession.setCallback(sessionCallback, new Handler(Looper.getMainLooper())); in testCallbackOnMediaButtonEvent() 726 sessionCallback.reset(1); in testCallbackOnMediaButtonEvent() 728 assertThat(sessionCallback.await(TIME_OUT_MS)).isTrue(); in testCallbackOnMediaButtonEvent() 729 assertThat(sessionCallback.mOnPlayCalledCount).isEqualTo(1); in testCallbackOnMediaButtonEvent() 730 assertThat(compareRemoteUserInfo(mKeyDispatcherInfo, sessionCallback.mCallerInfo)).isTrue(); in testCallbackOnMediaButtonEvent() 732 sessionCallback.reset(1); in testCallbackOnMediaButtonEvent() 734 assertThat(sessionCallback.await(TIME_OUT_MS)).isTrue(); in testCallbackOnMediaButtonEvent() 735 assertThat(sessionCallback.mOnPauseCalled).isTrue(); in testCallbackOnMediaButtonEvent() 736 assertThat(compareRemoteUserInfo(mKeyDispatcherInfo, sessionCallback.mCallerInfo)).isTrue(); in testCallbackOnMediaButtonEvent() [all …]
|
D | MediaCommunicationManagerTest.java | 92 Session2Callback sessionCallback = new Session2Callback(); in testGetSession2Tokens() local 97 .setSessionCallback(executor, sessionCallback) in testGetSession2Tokens() 133 Session2Callback sessionCallback = new Session2Callback(); in testManagerSessionCallback() local 139 .setSessionCallback(executor, sessionCallback) in testManagerSessionCallback() 152 .setSessionCallback(executor, sessionCallback).build(); in testManagerSessionCallback()
|
D | MediaSessionManagerTest.java | 482 Session2Callback sessionCallback = new Session2Callback(); in testGetSession2Tokens() local 484 .setSessionCallback(handlerExecutor, sessionCallback) in testGetSession2Tokens() 486 assertThat(sessionCallback.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)) in testGetSession2Tokens() 556 Session2Callback sessionCallback = new Session2Callback(); in testAddAndRemoveSession2TokensListener() local 558 .setSessionCallback(handlerExecutor, sessionCallback) in testAddAndRemoveSession2TokensListener()
|
/cts/tests/tests/packageinstaller/atomicinstall/src/com/android/tests/atomicinstall/ |
D | SessionAbandonBehaviorTest.java | 163 for (PackageInstaller.SessionCallback sessionCallback : mSessionCallbacks) { in tearDown() 164 InstallUtils.getPackageInstaller().unregisterSessionCallback(sessionCallback); in tearDown() 182 @NonNull PackageInstaller.SessionCallback sessionCallback) { in registerSessionCallbacks() 183 Preconditions.checkNotNull(sessionCallback); in registerSessionCallbacks() 184 Preconditions.checkArgument(!mSessionCallbacks.contains(sessionCallback), in registerSessionCallbacks() 193 InstallUtils.getPackageInstaller().registerSessionCallback(sessionCallback, mHandler); in registerSessionCallbacks() 194 mSessionCallbacks.add(sessionCallback); in registerSessionCallbacks()
|
/cts/tests/tests/tv/src/android/media/tv/cts/ |
D | TvInputManagerTest.java | 791 final SessionCallback sessionCallback = new SessionCallback(); in testGetClientPriority() local 792 mManager.createSession(mStubId, mContext.getAttributionSource(), sessionCallback, handler); in testGetClientPriority() 793 PollingCheck.waitFor(TIME_OUT_MS, () -> sessionCallback.getSession() != null); in testGetClientPriority() 794 Session session = sessionCallback.getSession(); in testGetClientPriority() 832 final SessionCallback sessionCallback = new SessionCallback(); in testGetClientPid() local 833 mManager.createSession(mStubId, mContext.getAttributionSource(), sessionCallback, handler); in testGetClientPid() 834 PollingCheck.waitFor(TIME_OUT_MS, () -> sessionCallback.getSession() != null); in testGetClientPid() 835 Session session = sessionCallback.getSession(); in testGetClientPid()
|
/cts/tests/camera/src/android/hardware/camera2/cts/ |
D | ReadoutTimestampTest.java | 132 BlockingSessionCallback sessionCallback = new BlockingSessionCallback(); in testReadoutTimestamp() local 134 sessionCallback, mHandler); in testReadoutTimestamp()
|
/cts/tests/tests/appenumeration/src/android/appenumeration/cts/ |
D | LauncherAppsEnumerationTests.java | 320 sessionCallback = new PackageInstaller.SessionCallback() { in sessionCallback_sessionOwner_canSeeSession() local 354 sessionCallback); in sessionCallback_sessionOwner_canSeeSession() local
|
/cts/tests/tests/appenumeration/lib/src/android/appenumeration/cts/ |
D | TestActivity.java | 1091 final SessionCallback sessionCallback = new SessionCallback() { in awaitLauncherAppsSessionCallback() local 1129 sessionCallback); in awaitLauncherAppsSessionCallback() local 1135 launcherApps.unregisterPackageInstallerSessionCallback(sessionCallback); in awaitLauncherAppsSessionCallback()
|