Home
last modified time | relevance | path

Searched refs:sHandlerExecutor (Results 1 – 4 of 4) sorted by relevance

/cts/tests/tests/media/src/android/media/cts/
DMediaSession2ServiceTest.java66 private static HandlerExecutor sHandlerExecutor; field in MediaSession2ServiceTest
74 if (sHandlerExecutor != null) { in setUpThread()
79 sHandlerExecutor = new HandlerExecutor(handlerThread.getLooper()); in setUpThread()
80 StubMediaSession2Service.setHandlerExecutor(sHandlerExecutor); in setUpThread()
87 if (sHandlerExecutor == null) { in cleanUpThread()
91 sHandlerExecutor.getLooper().quitSafely(); in cleanUpThread()
92 sHandlerExecutor = null; in cleanUpThread()
133 .setControllerCallback(sHandlerExecutor, in testOnGetSessionIsCalled()
157 .setSessionCallback(sHandlerExecutor, new SessionCallback() { in testOnGetSession_returnsSession()
183 .setControllerCallback(sHandlerExecutor, in testOnGetSession_returnsSession()
[all …]
DMediaSession2Test.java74 static Executor sHandlerExecutor; field in MediaSession2Test
88 sHandlerExecutor = (runnable) -> { in setUpThread()
112 sHandlerExecutor = null; in cleanUpThread()
238 .setSessionCallback(sHandlerExecutor, sessionCallback) in testGetConnectedControllers_newController()
243 .setControllerCallback(sHandlerExecutor, callback) in testGetConnectedControllers_newController()
264 .setSessionCallback(sHandlerExecutor, sessionCallback) in testGetConnectedControllers_closedController()
269 .setControllerCallback(sHandlerExecutor, callback) in testGetConnectedControllers_closedController()
320 .setSessionCallback(sHandlerExecutor, sessionCallback) in testBroadcastSessionCommand()
339 .setControllerCallback(sHandlerExecutor, callback1) in testBroadcastSessionCommand()
356 .setControllerCallback(sHandlerExecutor, callback2) in testBroadcastSessionCommand()
[all …]
DStubMediaSession2Service.java39 private static HandlerExecutor sHandlerExecutor; field in StubMediaSession2Service
47 sHandlerExecutor = handlerExecutor; in setHandlerExecutor()
109 .setSessionCallback(sHandlerExecutor, new MediaSession2.SessionCallback() { in onGetSession()
DMediaController2Test.java84 static Executor sHandlerExecutor; field in MediaController2Test
100 sHandlerExecutor = (runnable) -> { in setUpThread()
124 sHandlerExecutor = null; in cleanUpThread()
135 .setSessionCallback(sHandlerExecutor, mSessionCallback) in setUp()
199 .setSessionCallback(sHandlerExecutor, new MediaSession2.SessionCallback() { in testBuilder_setConnectionHints_withFrameworkParcelable()
267 .setControllerCallback(sHandlerExecutor, controllerCallback) in testGetConnectedToken() argument
288 .setControllerCallback(sHandlerExecutor, controllerCallback) in testCallback_onConnected_onDisconnected() argument
303 .setControllerCallback(sHandlerExecutor, controllerCallback) in testCallback_onSessionCommand() argument
336 .setControllerCallback(sHandlerExecutor, controllerCallback) in testCallback_onCommandResult() argument
369 .setControllerCallback(sHandlerExecutor, controllerCallback) in testCancelSessionCommand() argument