Home
last modified time | relevance | path

Searched refs:callbackData (Results 1 – 6 of 6) sorted by relevance

/cts/apps/CtsVerifier/src/com/android/cts/verifier/wifiaware/
DCallbackUtils.java201 private void processCallback(CallbackData callbackData) { in processCallback() argument
203 mCallbackQueue.addLast(callbackData); in processCallback()
204 if (mBlocker != null && (mWaitForCallbackMask & callbackData.callback) in processCallback()
205 == callbackData.callback) { in processCallback()
287 CallbackData callbackData = new CallbackData(ON_PUBLISH_STARTED); in onPublishStarted() local
288 callbackData.publishDiscoverySession = session; in onPublishStarted()
289 processCallback(callbackData); in onPublishStarted()
294 CallbackData callbackData = new CallbackData(ON_SUBSCRIBE_STARTED); in onSubscribeStarted() local
295 callbackData.subscribeDiscoverySession = session; in onSubscribeStarted()
296 processCallback(callbackData); in onSubscribeStarted()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/wifiaware/testcase/
DDiscoveryBaseTestCase.java166 CallbackUtils.DiscoveryCb.CallbackData callbackData = mDiscoveryCb.waitForCallbacks( in executeSubscribe() local
169 switch (callbackData.callback) { in executeSubscribe()
179 mWifiAwareDiscoverySession = callbackData.subscribeDiscoverySession; in executeSubscribe()
189 callbackData = mDiscoveryCb.waitForCallbacks( in executeSubscribe()
192 switch (callbackData.callback) { in executeSubscribe()
198 mPeerHandle = callbackData.peerHandle; in executeSubscribe()
205 + callbackData.distanceMm); in executeSubscribe()
212 mPeerMacAddress = MacAddress.fromBytes(callbackData.serviceSpecificInfo); in executeSubscribe()
216 callbackData.serviceSpecificInfo) + "'"); in executeSubscribe()
223 if (!Arrays.equals(PUB_SSI, callbackData.serviceSpecificInfo)) { in executeSubscribe()
[all …]
DDataPathOutOfBandTestCase.java198 CallbackUtils.DiscoveryCb.CallbackData callbackData = discoveryCb.waitForCallbacks( in executeTestResponder() local
201 switch (callbackData.callback) { in executeTestResponder()
211 PublishDiscoverySession discoverySession = callbackData.publishDiscoverySession; in executeTestResponder()
222 callbackData = discoveryCb.waitForCallbacks(CallbackUtils.DiscoveryCb.ON_MESSAGE_RECEIVED); in executeTestResponder()
223 switch (callbackData.callback) { in executeTestResponder()
230 if (callbackData.serviceSpecificInfo == null in executeTestResponder()
231 || callbackData.serviceSpecificInfo.length != MAC_BYTES_LEN) { in executeTestResponder()
234 + bytesToHex(callbackData.serviceSpecificInfo, ':')); in executeTestResponder()
238 PeerHandle peerHandle = callbackData.peerHandle; in executeTestResponder()
239 byte[] peerMac = callbackData.serviceSpecificInfo; in executeTestResponder()
[all …]
DDiscoveryWithRangingTestCase.java124 CallbackUtils.DiscoveryCb.CallbackData callbackData = in executeTestLocal() local
127 if (!Arrays.equals(MSG_RTT, callbackData.serviceSpecificInfo)) { in executeTestLocal()
130 (callbackData.serviceSpecificInfo == null) ? "<null>" in executeTestLocal()
131 : ("'" + new String(callbackData.serviceSpecificInfo) + "'"))); in executeTestLocal()
190 CallbackUtils.DiscoveryCb.CallbackData callbackData = mDiscoveryCb.waitForCallbacks( in executeTestLocal() local
193 switch (callbackData.callback) { in executeTestLocal()
213 callbackData = mDiscoveryCb.waitForCallbacksNoTimeout( in executeTestLocal()
215 if (!Arrays.equals(MSG_RTT, callbackData.serviceSpecificInfo)) { in executeTestLocal()
218 (callbackData.serviceSpecificInfo == null) ? "<null>" in executeTestLocal()
219 : ("'" + new String(callbackData.serviceSpecificInfo) + "'"))); in executeTestLocal()
DDataPathInBandTestCase.java150 CallbackUtils.DiscoveryCb.CallbackData callbackData = mDiscoveryCb.waitForCallbacks( in executeTestSubscriber() local
152 switch (callbackData.callback) { in executeTestSubscriber()
162 if (!Arrays.equals(MSG_PUB_TO_SUB, callbackData.serviceSpecificInfo)) { in executeTestSubscriber()
165 + new String(callbackData.serviceSpecificInfo) + "'"); in executeTestSubscriber()
376 CallbackUtils.DiscoveryCb.CallbackData callbackData = mDiscoveryCb.waitForCallbacks( in executeTestPublisher() local
379 switch (callbackData.callback) { in executeTestPublisher()
392 if (callbackData.messageId != MESSAGE_ID) { in executeTestPublisher()
395 + callbackData.messageId); in executeTestPublisher()
/cts/tests/tests/media/libmediandkjni/
Dnative-media-jni.cpp214 CallbackData *callbackData = (CallbackData *)userdata; in OnInputAvailableCB() local
215 callbackData->addInputBufferId(index); in OnInputAvailableCB()
226 CallbackData *callbackData = (CallbackData *)userdata; in OnOutputAvailableCB() local
227 callbackData->addOutputBuffer(index, bufferInfo); in OnOutputAvailableCB()
235 CallbackData *callbackData = (CallbackData *)userdata; in OnFormatChangedCB() local
236 callbackData->addOutputFormat(format); in OnFormatChangedCB()
510 CallbackData *callbackData = new CallbackData[numtracks]; in Java_android_media_cts_NativeDecoderTest_getDecodedDataNative() local
531 AMediaCodec_setAsyncNotifyCallback(codec[i], aCB, &callbackData[i]); in Java_android_media_cts_NativeDecoderTest_getDecodedDataNative()
549 bufidx = callbackData[t].getInputBufferId(); in Java_android_media_cts_NativeDecoderTest_getDecodedDataNative()
579 bufidx = callbackData[tt].getInputBufferId(); in Java_android_media_cts_NativeDecoderTest_getDecodedDataNative()
[all …]