Home
last modified time | relevance | path

Searched refs:mCallback (Results 1 – 19 of 19) sorted by relevance

/cts/tests/tests/media/src/android/media/cts/
DMediaControllerTest.java44 private MediaSessionCallback mCallback = new MediaSessionCallback(); field in MediaControllerTest
51 mSession.setCallback(mCallback, mHandler); in setUp()
57 mCallback.reset(); in testSendCommand()
63 assertTrue(mCallback.mOnCommandCalled); in testSendCommand()
64 assertNotNull(mCallback.mCommandCallback); in testSendCommand()
65 assertEquals(command, mCallback.mCommand); in testSendCommand()
66 assertEquals(EXTRAS_VALUE, mCallback.mExtras.getString(EXTRAS_KEY)); in testSendCommand()
117 mCallback.reset(); in testTransportControlsAndMediaSessionCallback()
120 assertTrue(mCallback.mOnPlayCalled); in testTransportControlsAndMediaSessionCallback()
122 mCallback.reset(); in testTransportControlsAndMediaSessionCallback()
[all …]
DMediaSessionTest.java58 private MediaControllerCallback mCallback = new MediaControllerCallback(); field in MediaSessionTest
113 controller.registerCallback(mCallback, mHandler); in testConfigureSession()
117 mCallback.resetLocked(); in testConfigureSession()
122 assertTrue(mCallback.mOnExtraChangedCalled); in testConfigureSession()
124 Bundle extrasOut = mCallback.mExtras; in testConfigureSession()
137 mCallback.resetLocked(); in testConfigureSession()
142 assertTrue(mCallback.mOnMetadataChangedCalled); in testConfigureSession()
144 MediaMetadata metadataOut = mCallback.mMediaMetadata; in testConfigureSession()
153 mCallback.resetLocked(); in testConfigureSession()
157 assertTrue(mCallback.mOnPlaybackStateChangedCalled); in testConfigureSession()
[all …]
DResourceManagerTestActivityBase.java66 private MediaCodec.Callback mCallback = new TestCodecCallback(); field in ResourceManagerTestActivityBase
166 codec.setCallback(mCallback); in allocateCodecs()
DVp8CodecTestBase.java838 private MediaCodec.Callback mCallback = new MediaCodec.Callback() { field in Vp8CodecTestBase.MediaEncoderAsync
1020 mCodec.setCallback(mCallback); in createCodecInternal()
/cts/tests/tests/tv/src/android/media/tv/cts/
DTvInputManagerTest.java54 private LoggingCallback mCallback = new LoggingCallback(); field in TvInputManagerTest
142 mManager.registerCallback(mCallback, new Handler()); in testRegisterUnregisterCallback()
143 mManager.unregisterCallback(mCallback); in testRegisterUnregisterCallback()
159 mManager.registerCallback(mCallback, new Handler()); in testInputAddedAndRemoved()
165 mCallback.resetLogs(); in testInputAddedAndRemoved()
175 return mCallback.isInputRemoved(mStubId); in testInputAddedAndRemoved()
180 mCallback.resetLogs(); in testInputAddedAndRemoved()
188 return mCallback.isInputAdded(mStubId); in testInputAddedAndRemoved()
195 mManager.unregisterCallback(mCallback); in testInputAddedAndRemoved()
208 mManager.registerCallback(mCallback, new Handler()); in testTvInputInfoUpdated()
[all …]
DBundledTvInputServiceTest.java50 private final MockCallback mCallback = new MockCallback(); field in BundledTvInputServiceTest
108 mTvView.setCallback(mCallback); in setUp()
147 Integer reason = mCallback.getVideoUnavailableReason(info.getId()); in testTune()
179 Integer reason = mCallback.getVideoUnavailableReason(info.getId()); in testTuneStress()
DTvViewTest.java59 private final MockCallback mCallback = new MockCallback(); field in TvViewTest
187 mTvView.setCallback(mCallback); in setUp()
243 return mCallback.isVideoAvailable(mStubInfo.getId()); in tryTuneAllChannels()
273 final int previousGeneration = mCallback.getSelectedTrackGeneration( in selectTrackAndVerify()
283 return mCallback.getSelectedTrackGeneration( in selectTrackAndVerify()
419 return mCallback.isVideoAvailable(mStubInfo.getId()); in testOnUnhandledInputEventListener()
441 mCallback.resetCount(); in testConnectionFailed()
447 return mCallback.getConnectionFailedCount() > 0; in testConnectionFailed()
456 mCallback.resetCount(); in testDisconnected()
462 return mCallback.getDisconnectedCount() > 0; in testDisconnected()
DTvInputServiceTest.java74 private final StubCallback mCallback = new StubCallback(); field in TvInputServiceTest
220 mTvView.setCallback(mCallback); in setUp()
793 return mCallback.mChannelRetunedCount > 0 in verifyCallbackChannelRetuned()
794 && Objects.equals(mCallback.mChannelRetunedUri, fakeChannelUri); in verifyCallbackChannelRetuned()
807 return mCallback.mVideoAvailableCount > 0; in verifyCallbackVideoAvailable()
822 return mCallback.mVideoUnavailableCount > 0 in verifyCallbackVideoUnavailable()
823 && mCallback.mVideoUnavailableReason == reason; in verifyCallbackVideoUnavailable()
839 return mCallback.mTrackChangedCount > 0 in verifyCallbackTracksChanged()
840 && Objects.equals(mCallback.mTracksChangedTrackList, tracks); in verifyCallbackTracksChanged()
855 return mCallback.mVideoSizeChanged > 0; in verifyCallbackVideoSizeChanged()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DDynamicSensorDiscoveryTestActivity.java51 private Callback mCallback; field in DynamicSensorDiscoveryTestActivity
80 mCallback = new Callback(); in activitySetUp()
81 mSensorManager.registerDynamicSensorCallback(mCallback); in activitySetUp()
91 Assert.assertTrue("Cannot detect sensor connection.", mCallback.waitForConnection()); in test0_OnConnect()
93 mSensorId = mCallback.getSensorId(); in test0_OnConnect()
106 mCallback.isSensorInList()); in test1_DynamicSensorList()
109 mCallback.isSensorInListOfSpecificType()); in test1_DynamicSensorList()
122 Assert.assertTrue("Failed to receive sensor events", mCallback.waitForSensorEvent()); in test2_SensorOperation()
133 Assert.assertTrue("Cannot detect sensor disconnection.", mCallback.waitForDisconnection()); in test3_OnDisconnect()
146 Assert.assertTrue("Cannot detect sensor reconnection.", mCallback.waitForConnection()); in test4_OnReconnect()
[all …]
/cts/libs/deviceutil/src/android/cts/util/
DWatchDog.java35 private TimeoutCallback mCallback = null; field in WatchDog
43 mCallback = callback; in WatchDog()
84 if (mCallback == null) { in run()
87 mCallback.onTimeout(); in run()
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DWatchDog.java34 private TimeoutCallback mCallback = null; field in WatchDog
42 mCallback = callback; in WatchDog()
83 if (mCallback == null) { in run()
86 mCallback.onTimeout(); in run()
/cts/hostsidetests/devicepolicy/app/LauncherTestsSupport/src/com/android/cts/launchertests/support/
DLauncherCallbackTestsService.java70 private TestCallback mCallback; field in LauncherCallbackTestsService
144 if (mCallback != null) { in setup()
145 launcherApps.unregisterCallback(mCallback); in setup()
150 mCallback = new TestCallback(); in setup()
151 launcherApps.registerCallback(mCallback, new Handler(mCallbackThread.getLooper())); in setup()
160 if (mCallback != null) { in teardown()
161 launcherApps.unregisterCallback(mCallback); in teardown()
163 mCallback = null; in teardown()
/cts/hostsidetests/tv/app2/src/com/android/cts/tv/hostside/app2/
DTvViewMonitorActivity.java32 private LoggingCallback mCallback = new LoggingCallback(); field in TvViewMonitorActivity
43 mManager.registerCallback(mCallback, new Handler()); in onCreate()
51 mManager.unregisterCallback(mCallback); in onDestroy()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/
DBleScannerService.java83 private ScanCallback mCallback; field in BleScannerService
91 mCallback = new BLEScanCallback(); in onCreate()
119 mScanner.stopScan(mCallback); in onStartCommand()
129 mScanner.stopScan(mCallback); in onStartCommand()
134 mScanner.startScan(filters, settingBuilder.build(), mCallback); in onStartCommand()
147 mScanner.stopScan(mCallback); in onDestroy()
DBleAdvertiserService.java104 private AdvertiseCallback mCallback; field in BleAdvertiserService
126 mCallback = new BLEAdvertiseCallback(); in onCreate()
165 mAdvertiser.stopAdvertising(mCallback); in stopAdvertiser()
219 mAdvertiser.startAdvertising(setting, data, response, mCallback); in handleIntent()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityGestureDispatchTest.java48 MyGestureCallback mCallback; field in AccessibilityGestureDispatchTest
84 mCallback = new MyGestureCallback(); in setUp()
108 mService.runOnServiceSync(() -> mService.doDispatchGesture(click, mCallback, null)); in testClickAt_producesDownThenUp()
109 mCallback.assertGestureCompletes(GESTURE_COMPLETION_TIMEOUT); in testClickAt_producesDownThenUp()
148 mService.runOnServiceSync(() -> mService.doDispatchGesture(longClick, mCallback, null)); in testLongClickAt_producesEventsWithLongClickTiming()
149 mCallback.assertGestureCompletes( in testLongClickAt_producesEventsWithLongClickTiming()
186 mService.runOnServiceSync(() -> mService.doDispatchGesture(swipe, mCallback, null)); in testSwipe_shouldContainPointsInALine()
187 mCallback.assertGestureCompletes(gestureTime + GESTURE_COMPLETION_TIMEOUT); in testSwipe_shouldContainPointsInALine()
233 mService.runOnServiceSync(() -> mService.doDispatchGesture(swipe, mCallback, null)); in testSlowSwipe_shouldNotContainMovesForTinyMovement()
234 mCallback.assertGestureCompletes(gestureTime + GESTURE_COMPLETION_TIMEOUT); in testSlowSwipe_shouldNotContainMovesForTinyMovement()
[all …]
/cts/hostsidetests/net/app/src/com/android/cts/net/hostside/
DVpnTest.java102 NetworkCallback mCallback; field in VpnTest
117 mCallback = null; in setUp()
132 if (mCallback != null) { in tearDown()
133 mCM.unregisterNetworkCallback(mCallback); in tearDown()
204 mCallback = new NetworkCallback() { in startVpn()
213 mCM.registerNetworkCallback(request, mCallback); // Unregistered in tearDown. in startVpn()
247 mCallback = new NetworkCallback() { in stopVpn()
257 mCM.registerNetworkCallback(request, mCallback); // Unregistered in tearDown. in stopVpn()
/cts/tests/tests/graphics/src/android/opengl/cts/
DEglConfigGLSurfaceView.java43 private final Runnable mCallback; field in EglConfigGLSurfaceView
49 mCallback = callback; in EglConfigGLSurfaceView()
107 post(mCallback); in onDrawFrame()
233 post(mCallback); in onDrawFrame()
/cts/tools/dex-tools/dex/
Dclasses.out.dex12670 private final java.lang.Runnable mCallback
15546 private final android.app.TimePickerDialog$OnTimeSetListener mCallback
15779 private android.os.Handler mCallback
34871 android.graphics.drawable.Drawable$Callback mCallback
58348 final android.os.IInterface mCallback
70223 private android.os.IParentalControlCallback mCallback
89045 private android.view.Window$Callback mCallback
132726 private com.android.internal.view.menu.MenuBuilder$Callback mCallback
140673 private com.google.android.net.ParentalControl$Callback mCallback