Home
last modified time | relevance | path

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

12

/cts/tests/tests/media/src/android/media/cts/
DMediaControllerTest.java53 private MediaSessionCallback mCallback = new MediaSessionCallback(); field in MediaControllerTest
63 mSession.setCallback(mCallback, mHandler); in setUp()
132 mCallback.reset(); in testSendCommand()
138 assertTrue(mCallback.mOnCommandCalled); in testSendCommand()
139 assertNotNull(mCallback.mCommandCallback); in testSendCommand()
140 assertEquals(command, mCallback.mCommand); in testSendCommand()
141 assertEquals(EXTRAS_VALUE, mCallback.mExtras.getString(EXTRAS_KEY)); in testSendCommand()
142 assertTrue(compareRemoteUserInfo(mControllerInfo, mCallback.mCallerInfo)); in testSendCommand()
148 mCallback.reset(); in testSetPlaybackSpeed()
154 assertTrue(mCallback.mOnSetPlaybackSpeedCalled); in testSetPlaybackSpeed()
[all …]
DMediaSessionTest.java73 private MediaControllerCallback mCallback = new MediaControllerCallback(); field in MediaSessionTest
131 controller.registerCallback(mCallback, mHandler); in testConfigureSession()
132 final MediaController.Callback callback = (MediaController.Callback) mCallback; in testConfigureSession()
136 mCallback.resetLocked(); in testConfigureSession()
141 assertTrue(mCallback.mOnExtraChangedCalled); in testConfigureSession()
143 callback.onExtrasChanged(mCallback.mExtras); in testConfigureSession()
145 Bundle extrasOut = mCallback.mExtras; in testConfigureSession()
158 mCallback.resetLocked(); in testConfigureSession()
163 assertTrue(mCallback.mOnMetadataChangedCalled); in testConfigureSession()
165 callback.onMetadataChanged(mCallback.mMediaMetadata); in testConfigureSession()
[all …]
DAudioTrackOffloadTest.java106 track.registerStreamEventCallback(mExec, mCallback); in testAudioTrackOffload()
129 assertTrue("onDataRequest not called", mCallback.mDataRequestCount > 0); in testAudioTrackOffload()
135 1, mCallback.mPresentationEndedCount); in testAudioTrackOffload()
142 track.unregisterStreamEventCallback(mCallback); in testAudioTrackOffload()
158 private EventCallback mCallback = new EventCallback(); field in AudioTrackOffloadTest
/cts/tests/tests/view/src/android/view/cts/
DKeyEventInjectionActivity.java26 private KeyEvent.Callback mCallback; field in KeyEventInjectionActivity
32 return mCallback.onKeyDown(keyCode, event); in onKeyDown()
37 return mCallback.onKeyUp(keyCode, event); in onKeyUp()
42 return mCallback.onKeyLongPress(keyCode, event); in onKeyLongPress()
48 return mCallback.onKeyMultiple(keyCode, count, event); in onKeyMultiple()
52 mCallback = callback; in setCallback()
/cts/tests/autofillservice/src/android/autofillservice/cts/
DAbstractAutoFillActivity.java46 private MyAutofillCallback mCallback; field in AbstractAutoFillActivity
114 assertWithMessage("already registered").that(mCallback).isNull(); in registerCallback()
115 mCallback = new MyAutofillCallback(); in registerCallback()
116 getAutofillManager().registerCallback(mCallback); in registerCallback()
117 return mCallback; in registerCallback()
127 assertWithMessage("not registered").that(mCallback).isNotNull(); in unregisterCallback()
141 getAutofillManager().unregisterCallback(mCallback); in unregisterNonNullCallback()
142 mCallback = null; in unregisterNonNullCallback()
171 if (mCallback != null) { in finishOnly()
/cts/tests/tests/tv/src/android/media/tv/cts/
DTvInputManagerTest.java55 private LoggingCallback mCallback = new LoggingCallback(); field in TvInputManagerTest
143 mManager.registerCallback(mCallback, new Handler()); in testRegisterUnregisterCallback()
144 mManager.unregisterCallback(mCallback); in testRegisterUnregisterCallback()
160 mManager.registerCallback(mCallback, new Handler()); in testInputAddedAndRemoved()
166 mCallback.resetLogs(); in testInputAddedAndRemoved()
176 return mCallback.isInputRemoved(mStubId); in testInputAddedAndRemoved()
181 mCallback.resetLogs(); in testInputAddedAndRemoved()
189 return mCallback.isInputAdded(mStubId); in testInputAddedAndRemoved()
196 mManager.unregisterCallback(mCallback); in testInputAddedAndRemoved()
209 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()
136 mCallback.mVideoUnavailableReasonMap.remove(info.getId()); in testTune()
148 Integer reason = mCallback.getVideoUnavailableReason(info.getId()); in testTune()
170 mCallback.mVideoUnavailableReasonMap.remove(info.getId()); in testTuneStress()
183 Integer reason = mCallback.getVideoUnavailableReason(info.getId()); in testTuneStress()
DTvViewTest.java60 private final MockCallback mCallback = new MockCallback(); field in TvViewTest
188 mTvView.setCallback(mCallback); in setUp()
244 return mCallback.isVideoAvailable(mStubInfo.getId()); in tryTuneAllChannels()
274 final int previousGeneration = mCallback.getSelectedTrackGeneration( in selectTrackAndVerify()
284 return mCallback.getSelectedTrackGeneration( in selectTrackAndVerify()
420 return mCallback.isVideoAvailable(mStubInfo.getId()); in testOnUnhandledInputEventListener()
442 mCallback.resetCount(); in testConnectionFailed()
448 return mCallback.getConnectionFailedCount() > 0; in testConnectionFailed()
457 mCallback.resetCount(); in testDisconnected()
463 return mCallback.getDisconnectedCount() > 0; in testDisconnected()
DTvInputServiceTest.java75 private final StubCallback mCallback = new StubCallback(); field in TvInputServiceTest
221 mTvView.setCallback(mCallback); in setUp()
794 return mCallback.mChannelRetunedCount > 0 in verifyCallbackChannelRetuned()
795 && Objects.equals(mCallback.mChannelRetunedUri, fakeChannelUri); in verifyCallbackChannelRetuned()
808 return mCallback.mVideoAvailableCount > 0; in verifyCallbackVideoAvailable()
823 return mCallback.mVideoUnavailableCount > 0 in verifyCallbackVideoUnavailable()
824 && mCallback.mVideoUnavailableReason == reason; in verifyCallbackVideoUnavailable()
840 return mCallback.mTrackChangedCount > 0 in verifyCallbackTracksChanged()
841 && Objects.equals(mCallback.mTracksChangedTrackList, tracks); in verifyCallbackTracksChanged()
856 return mCallback.mVideoSizeChanged > 0; in verifyCallbackVideoSizeChanged()
[all …]
/cts/tests/app/src/android/app/cts/
DActivityActionModeTest.java39 private ActionMode.Callback mCallback; field in ActivityActionModeTest
47 mCallback = mock(ActionMode.Callback.class); in setUp()
48 when(mCallback.onCreateActionMode(any(), any())).thenReturn(true); in setUp()
49 when(mCallback.onPrepareActionMode(any(), any())).thenReturn(true); in setUp()
60 mCallback, ActionMode.TYPE_PRIMARY); in testStartPrimaryActionMode()
74 mCallback, ActionMode.TYPE_FLOATING); in testStartFloatingActionMode()
87 final ActionMode mode = mActivityRule.getActivity().startActionMode(mCallback); in testStartTypelessActionMode()
/cts/tests/tests/telephony/current/src/android/telephony/euicc/cts/
DEuiccServiceTest.java75 private IMockEuiccServiceCallback mCallback; field in EuiccServiceTest
83 mCallback = new MockEuiccServiceCallback(); in setUp()
84 MockEuiccService.setCallback(mCallback); in setUp()
94 mCallback.reset(); in tearDown()
140 assertTrue(mCallback.isMethodCalled()); in testOnGetEid()
163 assertTrue(mCallback.isMethodCalled()); in testOnGetOtaStatus()
191 assertTrue(mCallback.isMethodCalled()); in testOnGetDownloadableSubscriptionMetadata()
214 assertTrue(mCallback.isMethodCalled()); in testOnStartOtaIfNecessary()
239 assertTrue(mCallback.isMethodCalled()); in testOnGetDefaultDownloadableSubscriptionList()
270 assertTrue(mCallback.isMethodCalled()); in testOnDownloadSubscription()
[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(null)); 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()
147 mCallback.waitForConnection(mSensorId)); in test4_OnReconnect()
[all …]
/cts/tests/tests/view/surfacevalidator/src/android/view/cts/surfacevalidator/
DSurfaceControlTestCase.java85 if (mViewFactory.mCallback instanceof ParentSurfaceHolder) { in start()
86 ParentSurfaceHolder psh = (ParentSurfaceHolder) mViewFactory.mCallback; in start()
112 private SurfaceHolder.Callback mCallback; field in SurfaceControlTestCase.SurfaceViewFactory
115 mCallback = callback; in SurfaceViewFactory()
120 if (mCallback instanceof ParentSurfaceHolder) { in createView()
129 surfaceView.getHolder().addCallback(mCallback); in createView()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/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.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/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/tests/tests/telephony/current/src/android/telephony/embms/cts/
DMbmsStreamingSessionTest.java38 mContext, mCallbackExecutor, mCallback); in testDuplicateSession()
52 (List<StreamingServiceInfo>) mCallback.waitOnStreamingServicesUpdated().arg1; in testRequestUpdateStreamingServices()
54 assertEquals(0, mCallback.getNumErrorCalls()); in testRequestUpdateStreamingServices()
92 mCallback.waitOnError().arg1); in testErrorDelivery()
DMbmsGroupCallSessionTest.java38 mContext, mCallbackExecutor, mCallback); in testDuplicateSession()
70 mCallback.waitOnError().arg1); in testErrorDelivery()
81 SomeArgs callbackResult = mCallback.waitOnAvailableSaisUpdatedCalls(); in testCallbacks()
88 callbackResult = mCallback.waitOnServiceInterfaceAvailableCalls(); in testCallbacks()
DMbmsStreamingTestBase.java118 TestCallback mCallback = new TestCallback(); field in MbmsStreamingTestBase
126 mCallback = new TestCallback(); in setUp()
140 mContext, mCallbackExecutor, mCallback); in setupStreamingSession()
142 assertTrue(mCallback.waitOnMiddlewareReady()); in setupStreamingSession()
143 assertEquals(0, mCallback.getNumErrorCalls()); in setupStreamingSession()
DMbmsDownloadTestBase.java130 TestCallback mCallback = new TestCallback(); field in MbmsDownloadTestBase
139 mCallback = new TestCallback(); in setUp()
160 mContext, mCallbackExecutor, mCallback); in setupDownloadSession()
162 assertTrue(mCallback.waitOnMiddlewareReady()); in setupDownloadSession()
163 assertEquals(0, mCallback.getNumErrorCalls()); in setupDownloadSession()
DMbmsGroupCallTestBase.java139 TestCallback mCallback = new TestCallback(); field in MbmsGroupCallTestBase
147 mCallback = new TestCallback(); in setUp()
161 mContext, mCallbackExecutor, mCallback); in setupGroupCallSession()
163 assertTrue(mCallback.waitOnMiddlewareReady()); in setupGroupCallSession()
164 assertEquals(0, mCallback.getNumErrorCalls()); in setupGroupCallSession()
DMbmsDownloadSessionTest.java44 mContext, mCallbackExecutor, mCallback); in testDuplicateSession()
58 (List<FileServiceInfo>) mCallback.waitOnFileServicesUpdated().arg1; in testRequestUpdateDownloadServices()
60 assertEquals(0, mCallback.getNumErrorCalls()); in testRequestUpdateDownloadServices()
214 assertNotNull(mCallback.waitOnError()); in testSetTempFileDirFailure()
234 mCallback.waitOnError().arg1); in testErrorDelivery()
/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.java81 private ScanCallback mCallback; field in BleScannerService
89 mCallback = new BLEScanCallback(); in onCreate()
117 mScanner.stopScan(mCallback); in onStartCommand()
127 mScanner.stopScan(mCallback); in onStartCommand()
132 mScanner.startScan(filters, settingBuilder.build(), mCallback); in onStartCommand()
146 mScanner.stopScan(mCallback); in onDestroy()
/cts/tests/tests/opengl/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()

12