Home
last modified time | relevance | path

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

/cts/tests/tests/telephony/src/android/telephony/cts/
DPhoneStateListenerTest.java46 private PhoneStateListener mListener; field in PhoneStateListenerTest
62 if (mListener != null) { in tearDown()
64 mTelephonyManager.listen(mListener, PhoneStateListener.LISTEN_NONE); in tearDown()
93 mListener = new PhoneStateListener() { in testOnServiceStateChanged()
102 mTelephonyManager.listen(mListener, PhoneStateListener.LISTEN_SERVICE_STATE); in testOnServiceStateChanged()
130 mListener = new PhoneStateListener() { in testOnSignalStrengthChanged()
139 mTelephonyManager.listen(mListener, PhoneStateListener.LISTEN_SIGNAL_STRENGTH); in testOnSignalStrengthChanged()
167 mListener = new PhoneStateListener() { in testOnSignalStrengthsChanged()
176 mTelephonyManager.listen(mListener, PhoneStateListener.LISTEN_SIGNAL_STRENGTHS); in testOnSignalStrengthsChanged()
215 mListener = new PhoneStateListener() { in testOnMessageWaitingIndicatorChanged()
[all …]
DCellLocationTest.java36 private PhoneStateListener mListener; field in CellLocationTest
50 if (mListener != null) { in tearDown()
52 mTelephonyManager.listen(mListener, PhoneStateListener.LISTEN_NONE); in tearDown()
82 mListener = new PhoneStateListener() { in testCellLocation()
91 mTelephonyManager.listen(mListener, PhoneStateListener.LISTEN_CELL_LOCATION); in testCellLocation()
DSubscriptionManagerTest.java33 private SubscriptionManager.OnSubscriptionsChangedListener mListener; field in SubscriptionManagerTest
48 if (mListener != null) { in tearDown()
50 mSubscriptionManager.removeOnSubscriptionsChangedListener(mListener); in tearDown()
DTelephonyManagerTest.java44 private PhoneStateListener mListener; field in TelephonyManagerTest
58 if (mListener != null) { in tearDown()
60 mTelephonyManager.listen(mListener, PhoneStateListener.LISTEN_NONE); in tearDown()
81 mListener = new PhoneStateListener() { in testListen()
92 mTelephonyManager.listen(mListener, PhoneStateListener.LISTEN_CELL_LOCATION); in testListen()
110 mTelephonyManager.listen(mListener, PhoneStateListener.LISTEN_NONE); in testListen()
113 mTelephonyManager.listen(mListener, PhoneStateListener.LISTEN_NONE); in testListen()
/cts/tests/tests/content/src/android/content/cts/
DClipboardManagerListenerTest.java31 private CountingClipChangedListener mListener; field in ClipboardManagerListenerTest
41 mListener = new CountingClipChangedListener(); in setUp()
45 mActivity.addPrimaryClipChangedListener(mListener); in testListener()
54 mActivity.removePrimaryClipChangedListener(mListener); in testListener()
63 return expectedCount == mListener.getCount(); in assertClipChangedCount()
70 assertEquals(expectedCount, mListener.getCount()); in assertNoClipChange()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/p2p/testcase/
DTestCase.java59 private TestCaseListener mListener; field in TestCase
79 mListener = listener; in start()
85 mListener.onTestStarted(); in start()
89 mListener.onTestFailed(mContext.getString(R.string.p2p_setup_error)); in start()
95 mListener.onTestSuccess(); in start()
97 mListener.onTestFailed(getReason()); in start()
101 mListener.onTestFailed( in start()
166 mListener.onTestMsgReceived(mContext.getString(id)); in notifyTestMsg()
/cts/tests/tests/view/src/android/view/cts/
DGestureDetectorTest.java39 private MockOnGestureListener mListener; field in GestureDetectorTest
56 mListener = mActivity.getListener(); in setUp()
110 mGestureDetector.setContextClickListener(mListener); in testOnSetContextClickListener()
113 assertSame(mButtonPressPrimaryMotionEvent, mListener.getPreviousContextClickEvent()); in testOnSetContextClickListener()
118 mListener.onContextClick(mButtonPressPrimaryMotionEvent); in testOnContextClick()
120 assertSame(mButtonPressPrimaryMotionEvent, mListener.getPreviousContextClickEvent()); in testOnContextClick()
125 assertSame(mButtonPressSecondaryMotionEvent, mListener.getPreviousContextClickEvent()); in testOnContextClick()
132 assertSame(mButtonPressPrimaryMotionEvent, mListener.getPreviousContextClickEvent()); in testOnGenericMotionEvent()
/cts/tests/tests/mediastress/src/android/mediastress/cts/
DSurfaceTextureGLSurfaceView.java30 private final OnSurfaceChangedListener mListener; field in SurfaceTextureGLSurfaceView
39 mListener = listener; in SurfaceTextureGLSurfaceView()
56 if (mListener != null) { in surfaceDestroyed()
58 mListener.onSurfaceDestroyed(); in surfaceDestroyed()
DSurfaceTextureRenderer.java90 private final OnSurfaceChangedListener mListener; field in SurfaceTextureRenderer
93 mListener = listener; in SurfaceTextureRenderer()
231 if (mListener != null) { in onSurfaceCreated()
232 mListener.onSurfaceCreated(); in onSurfaceCreated()
/cts/tests/tests/hardware/src/android/hardware/camera2/cts/rs/
DBlockingInputAllocation.java41 private final OnBufferAvailableListener mListener; field in BlockingInputAllocation
95 mListener.waitForBuffer(); in waitForBufferAndReceive()
114 while (mListener.isBufferPending()) { in receiveLatestAvailableBuffers()
115 mListener.waitForBuffer(); in receiveLatestAvailableBuffers()
159 mListener = new OnBufferAvailableListener(); in BlockingInputAllocation()
160 mAllocation.setOnBufferAvailableListener(mListener); in BlockingInputAllocation()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DAccelerometerTestActivity.java43 private SensorEventListener mListener; field in AccelerometerTestActivity
53 mListener = renderer; in onCreate()
65 mSensorManager.unregisterListener(mListener); in onPause()
73 mSensorManager.registerListener(mListener, mSensorManager.getSensorList( in onResume()
DRotationVectorTestActivity.java53 private SensorEventListener mListener; field in RotationVectorTestActivity
179 mListener = renderer; in onCreate()
187 mSensorManager.unregisterListener(mListener); in onPause()
201 .registerListener(mListener, sensor, SensorManager.SENSOR_DELAY_GAME); in onResume()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DIconTest.java49 MockOnDrawableLoadedListener mListener; field in IconTest
99 mListener = new MockOnDrawableLoadedListener(); in testLoadDrawableAsync()
103 mIcon.loadDrawableAsync(mActivity, mListener, new Handler()); in testLoadDrawableAsync()
108 assertEquals(1, mListener.getLoadedCount()); in testLoadDrawableAsync()
/cts/tests/tests/os/src/android/os/cts/
DParcelFileDescriptorPeer.java50 private FutureCloseListener mListener; field in ParcelFileDescriptorPeer
93 mListener = new FutureCloseListener(); in setupFile()
97 ParcelFileDescriptor.MODE_READ_WRITE, handler, mListener); in setupFile()
195 return String.valueOf(mListener.get()); in checkListener()
/cts/tests/tests/hardware/src/android/hardware/camera2/cts/
DCameraManagerTest.java58 private NoopCameraListener mListener; field in CameraManagerTest
71 mListener = new NoopCameraListener(); in setContext()
470 mCameraManager.unregisterAvailabilityCallback(mListener); in testCameraManagerListener()
471 mCameraManager.registerAvailabilityCallback(mListener, mHandler); in testCameraManagerListener()
472 mCameraManager.registerAvailabilityCallback(mListener, mHandler); in testCameraManagerListener()
473 mCameraManager.unregisterAvailabilityCallback(mListener); in testCameraManagerListener()
474 mCameraManager.unregisterAvailabilityCallback(mListener); in testCameraManagerListener()
DImageReaderTest.java82 private SimpleImageListener mListener; field in ImageReaderTest
669 mListener = new SimpleImageListener(); in invalidAccessTestAfterClose()
670 createDefaultImageReader(availableSizes[0], FORMAT, MAX_NUM_IMAGES, mListener); in invalidAccessTestAfterClose()
677 mListener.waitForAnyImageAvailable(CAPTURE_WAIT_TIMEOUT_MS); in invalidAccessTestAfterClose()
700 mListener = new SimpleImageListener(); in bufferFormatTestByCamera()
701 createDefaultImageReader(sz, format, MAX_NUM_IMAGES, mListener); in bufferFormatTestByCamera()
745 mListener = new SimpleImageListener(); in bufferFormatLongProcessingTimeTestByCamera()
746 createDefaultImageReader(sz, format, MAX_NUM_IMAGES, mListener); in bufferFormatLongProcessingTimeTestByCamera()
769 mListener.waitForAnyImageAvailable(CAPTURE_WAIT_TIMEOUT_MS); in bufferFormatLongProcessingTimeTestByCamera()
886 assertNotNull("Image listener is null", mListener); in validateImage()
[all …]
/cts/tests/tests/openglperf/src/android/openglperf/cts/
DPlanetsRenderer.java50 private final RenderCompletionListener mListener; field in PlanetsRenderer
128 mListener = listener; in PlanetsRenderer()
246 if (mListener != null) { in onEglSwapBuffers()
247 mListener.onRenderCompletion(fps, numTriangles, mFrameInterval); in onEglSwapBuffers()
/cts/tools/tradefed-host/src/com/android/cts/tradefed/testtype/
DDeqpTestRunner.java563 private TestInstanceResultListener mListener; field in DeqpTestRunner.InstrumentationParser
573 mListener = listener; in InstrumentationParser()
592 mListener.handleStatus(mValues); in processNewLines()
635 mListener.handleStatus(mValues); in done()
/cts/apps/CtsVerifier/libs/
Dopencv-android.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/opencv/ org/ ...