/cts/tests/tests/media/src/android/media/cts/ |
D | MediaControllerTest.java | 44 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 …]
|
D | MediaSessionTest.java | 58 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 …]
|
D | ResourceManagerTestActivityBase.java | 66 private MediaCodec.Callback mCallback = new TestCodecCallback(); field in ResourceManagerTestActivityBase 166 codec.setCallback(mCallback); in allocateCodecs()
|
D | Vp8CodecTestBase.java | 838 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/ |
D | TvInputManagerTest.java | 54 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 …]
|
D | BundledTvInputServiceTest.java | 50 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()
|
D | TvViewTest.java | 59 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()
|
D | TvInputServiceTest.java | 74 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/ |
D | DynamicSensorDiscoveryTestActivity.java | 51 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/ |
D | WatchDog.java | 35 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/ |
D | WatchDog.java | 34 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/ |
D | LauncherCallbackTestsService.java | 70 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/ |
D | TvViewMonitorActivity.java | 32 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/ |
D | BleScannerService.java | 83 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()
|
D | BleAdvertiserService.java | 104 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/ |
D | AccessibilityGestureDispatchTest.java | 48 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/ |
D | VpnTest.java | 102 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/ |
D | EglConfigGLSurfaceView.java | 43 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/ |
D | classes.out.dex | 12670 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
|