Home
last modified time | relevance | path

Searched refs:mChannel (Results 1 – 22 of 22) sorted by relevance

/cts/apps/CtsVerifier/src/com/android/cts/verifier/p2p/testcase/
DServReqRemoveRequestTestCase.java55 mP2pMgr.addServiceRequest(mChannel, upnpReq1, actionListener); in executeTest()
60 mP2pMgr.addServiceRequest(mChannel, upnpReq2, actionListener); in executeTest()
65 mP2pMgr.addServiceRequest(mChannel, bonjourReq1, actionListener); in executeTest()
70 mP2pMgr.addServiceRequest(mChannel, bonjourReq2, actionListener); in executeTest()
79 mP2pMgr.removeServiceRequest(mChannel, upnpReq1, actionListener); in executeTest()
84 mP2pMgr.removeServiceRequest(mChannel, bonjourReq1, actionListener); in executeTest()
89 mP2pMgr.removeServiceRequest(mChannel, bonjourReq2, actionListener); in executeTest()
105 mP2pMgr.setUpnpServiceResponseListener(mChannel, upnpListener); in executeTest()
106 mP2pMgr.setDnsSdResponseListeners(mChannel, dnsSdListener, txtListener); in executeTest()
111 mP2pMgr.discoverServices(mChannel, actionListener); in executeTest()
DGoTestCase.java40 mReceiverTest.init(mChannel); in setUp()
51 mP2pMgr.addLocalService(mChannel, LocalServices.createRendererService(), in executeTest()
61 mP2pMgr.addLocalService(mChannel, LocalServices.createIppService(), in executeTest()
71 mP2pMgr.addLocalService(mChannel, LocalServices.createAfpService(), in executeTest()
81 mP2pMgr.createGroup(mChannel, listener); in executeTest()
113 mP2pMgr.cancelConnect(mChannel, null); in tearDown()
114 mP2pMgr.removeGroup(mChannel, null); in tearDown()
DServReqClearRequestTestCase.java55 mP2pMgr.addServiceRequest(mChannel, upnpReq1, actionListener); in executeTest()
60 mP2pMgr.addServiceRequest(mChannel, upnpReq2, actionListener); in executeTest()
65 mP2pMgr.addServiceRequest(mChannel, bonjourReq1, actionListener); in executeTest()
70 mP2pMgr.addServiceRequest(mChannel, bonjourReq2, actionListener); in executeTest()
79 mP2pMgr.clearServiceRequests(mChannel, actionListener); in executeTest()
88 mP2pMgr.discoverServices(mChannel, actionListener); in executeTest()
DGoNegRespTestCase.java50 mP2pMgr.discoverPeers(mChannel, null); in executeTest()
68 mP2pMgr.cancelConnect(mChannel, null); in tearDown()
69 mP2pMgr.removeGroup(mChannel, null); in tearDown()
96 mP2pMgr.removeGroup(mChannel, null); in onReceive()
101 mP2pMgr.discoverPeers(mChannel, null); in onReceive()
DGoWithConfigTestCase.java66 mReceiverTest.init(mChannel); in setUp()
77 mP2pMgr.addLocalService(mChannel, LocalServices.createRendererService(), in executeTest()
87 mP2pMgr.addLocalService(mChannel, LocalServices.createIppService(), in executeTest()
97 mP2pMgr.addLocalService(mChannel, LocalServices.createAfpService(), in executeTest()
116 mP2pMgr.createGroup(mChannel, config, listener); in executeTest()
148 mP2pMgr.cancelConnect(mChannel, null); in tearDown()
149 mP2pMgr.removeGroup(mChannel, null); in tearDown()
DServRespTestCase.java53 mP2pMgr.addLocalService(mChannel, LocalServices.createRendererService(), in executeTest()
63 mP2pMgr.addLocalService(mChannel, LocalServices.createIppService(), in executeTest()
73 mP2pMgr.addLocalService(mChannel, LocalServices.createAfpService(), in executeTest()
83 mP2pMgr.discoverPeers(mChannel, listenerTest); in executeTest()
95 mP2pMgr.discoverPeers(mChannel, null); in executeTest()
DConnectReqTestCase.java48 mReceiverTest.init(mChannel); in setUp()
56 methods[i].invoke(mP2pMgr, mChannel, netid, null); in setUp()
76 mP2pMgr.cancelConnect(mChannel, null); in tearDown()
77 mP2pMgr.removeGroup(mChannel, null); in tearDown()
95 mP2pMgr.discoverPeers(mChannel, actionListener); in connectTest()
129 mP2pMgr.connect(mChannel, config, actionListener); in connectTest()
156 mP2pMgr.removeGroup(mChannel, actionListener); in connectTest()
196 mP2pMgr.discoverPeers(mChannel, actionListener); in connectTest()
205 mP2pMgr.connect(mChannel, config, actionListener); in connectTest()
240 mP2pMgr.removeGroup(mChannel, actionListener); in connectTest()
DTestCase.java54 protected Channel mChannel; field in TestCase
147 mChannel = mP2pMgr.initialize(mContext, mContext.getMainLooper(), null); in setUp()
156 mP2pMgr.clearLocalServices(mChannel, null); in tearDown()
157 mP2pMgr.clearServiceRequests(mChannel, null); in tearDown()
162 if (mChannel != null) { in tearDown()
163 mChannel.close(); in tearDown()
DP2pClientPbcTestCase.java61 mP2pMgr.addServiceRequest(mChannel, upnpReq, actionListener); in checkUpnpService()
80 mP2pMgr.setUpnpServiceResponseListener(mChannel, upnpListener); in checkUpnpService()
81 mP2pMgr.setDnsSdResponseListeners(mChannel, dnsListener, txtListener); in checkUpnpService()
86 mP2pMgr.discoverServices(mChannel, actionListener); in checkUpnpService()
DServReqTestCase.java68 mP2pMgr.addServiceRequest(mChannel, req, actionListener); in searchTest()
78 mP2pMgr.setUpnpServiceResponseListener(mChannel, upnpListener); in searchTest()
79 mP2pMgr.setDnsSdResponseListeners(mChannel, dnsSdListener, txtListener); in searchTest()
84 mP2pMgr.discoverServices(mChannel, actionListener); in searchTest()
DServReqMultiClientTestCase03.java46 mP2pMgr.addServiceRequest(mChannel, bonjourReq, actionListener); in executeTest()
91 mP2pMgr.setUpnpServiceResponseListener(mChannel, upnpCh1Listener); in executeTest()
92 mP2pMgr.setDnsSdResponseListeners(mChannel, dnsCh1Listener, txtCh1Listener); in executeTest()
99 mP2pMgr.discoverServices(mChannel, actionListener); in executeTest()
DServReqMultiClientTestCase02.java51 mP2pMgr.addServiceRequest(mChannel, bonjourIppPtrReq, actionListener); in executeTest()
85 mP2pMgr.setUpnpServiceResponseListener(mChannel, upnpCh1Listener); in executeTest()
86 mP2pMgr.setDnsSdResponseListeners(mChannel, dnsCh1Listener, txtCh1Listener); in executeTest()
93 mP2pMgr.discoverServices(mChannel, actionListener); in executeTest()
DServReqMultiClientTestCase01.java51 mP2pMgr.addServiceRequest(mChannel, upnpReq, actionListener); in executeTest()
85 mP2pMgr.setUpnpServiceResponseListener(mChannel, upnpCh1Listener); in executeTest()
86 mP2pMgr.setDnsSdResponseListeners(mChannel, dnsCh1Listener, txtCh1Listener); in executeTest()
93 mP2pMgr.discoverServices(mChannel, actionListener); in executeTest()
DP2pBroadcastReceiverTest.java43 private Channel mChannel; field in P2pBroadcastReceiverTest
59 mChannel = c; in init()
189 mP2pMgr.requestPeers(mChannel, this); in onReceive()
DP2pClientPinTestCase.java83 mP2pMgr.discoverServices(mChannel, actionListener); in checkBonjourService()
/cts/tests/sensor/src/android/hardware/cts/
DSensorDirectReportTest.java152 private SensorDirectChannel mChannel; field in SensorDirectReportTest
180 if (mChannel != null) { in tearDown()
181 mChannel.close(); in tearDown()
182 mChannel = null; in tearDown()
552 mChannel = prepareDirectChannel(memType, false /* secondary */); in testRegisterMultipleChannels()
553 assertNotNull("mChannel is null", mChannel); in testRegisterMultipleChannels()
558 if (mChannel != null) { in testRegisterMultipleChannels()
559 mChannel.close(); in testRegisterMultipleChannels()
560 mChannel = null; in testRegisterMultipleChannels()
580 mChannel = prepareDirectChannel(memType, false /* secondary */); in testRegisterMultipleChannelsUsingSameMemory()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/p2p/
DRequesterTestActivity.java93 private Channel mChannel; field in RequesterTestActivity
122 mChannel = mP2pMgr.initialize(this, getMainLooper(), null); in onCreate()
130 if (mChannel != null) { in onDestroy()
131 mChannel.close(); in onDestroy()
235 mP2pMgr.discoverPeers(mChannel, null); in searchTarget()
248 mP2pMgr.requestPeers(mChannel, new PeerListListener() { in searchTarget()
DResponderTestActivity.java63 private Channel mChannel; field in ResponderTestActivity
100 mChannel = mP2pMgr.initialize(this, getMainLooper(), null); in onCreate()
108 mP2pMgr.requestDeviceInfo(mChannel, wifiP2pDevice -> { in onStart()
/cts/tests/inputmethod/mockime/src/com/android/cts/mockime/
DImeSettings.java86 private final SessionChannel mChannel; field in ImeSettings
125 mChannel = new SessionChannel(bundle.getParcelable(CHANNEL_KEY, RemoteCallback.class)); in ImeSettings()
134 return mChannel; in getChannel()
223 if (mChannel != null) { in close()
224 mChannel.close(); in close()
DMockImeSession.java109 private SessionChannel mChannel; field in MockImeSession
343 mChannel = new SessionChannel(sessionEstablished::countDown); in initialize()
344 mChannel.registerListener(mEventReceiver); in initialize()
345 writeMockImeSettings(mImeEventActionName, imeSettings, mChannel.takeTransport()); in initialize()
480 if (mChannel != null) { in close()
481 mChannel.close(); in close()
545 if (!mChannel.send(command.toBundle())) { in callCommandInternal()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/
DItsService.java172 private NotificationChannel mChannel; field in ItsService
516 mChannel = new NotificationChannel( in onCreate()
519 mChannel.setDescription("ItsServiceChannel"); in onCreate()
520 mChannel.enableVibration(false); in onCreate()
521 notificationManager.createNotificationChannel(mChannel); in onCreate()
558 Notification notification = new Notification.Builder(this, mChannel.getId()) in onStartCommand()
/cts/tests/tests/app.usage/src/android/app/usage/cts/
DUsageStatsTest.java944 final NotificationChannel mChannel = new NotificationChannel(CHANNEL_ID, "Channel", in generateAndSendNotification() local
947 mChannel.setDescription("Test channel"); in generateAndSendNotification()
948 mNotificationManager.createNotificationChannel(mChannel); in generateAndSendNotification()