• Home
  • Raw
  • Download

Lines Matching refs:pDataLocator

27 static SLresult checkDataLocator(const char *name, void *pLocator, DataLocator *pDataLocator,  in checkDataLocator()  argument
30 assert(NULL != name && NULL != pDataLocator); in checkDataLocator()
35 pDataLocator->mLocatorType = locatorType = SL_DATALOCATOR_NULL; in checkDataLocator()
41 pDataLocator->mAddress = *(SLDataLocator_Address *)pLocator; in checkDataLocator()
43 if ((0 < pDataLocator->mAddress.length) && (NULL == pDataLocator->mAddress.pAddress)) { in checkDataLocator()
56 pDataLocator->mBufferQueue = *(SLDataLocator_BufferQueue *)pLocator; in checkDataLocator()
58 if (!((1 <= pDataLocator->mBufferQueue.numBuffers) && in checkDataLocator()
59 (pDataLocator->mBufferQueue.numBuffers <= 255))) { in checkDataLocator()
60 SL_LOGE("%s: numBuffers=%u", name, pDataLocator->mBufferQueue.numBuffers); in checkDataLocator()
67 pDataLocator->mIODevice = *(SLDataLocator_IODevice *)pLocator; in checkDataLocator()
68 SLuint32 deviceType = pDataLocator->mIODevice.deviceType; in checkDataLocator()
69 SLObjectItf device = pDataLocator->mIODevice.device; in checkDataLocator()
71 pDataLocator->mIODevice.deviceID = 0; in checkDataLocator()
91 pDataLocator->mIODevice.device = NULL; in checkDataLocator()
102 pDataLocator->mIODevice.device = NULL; in checkDataLocator()
106 SLuint32 deviceID = pDataLocator->mIODevice.deviceID; in checkDataLocator()
147 pDataLocator->mMIDIBufferQueue = *(SLDataLocator_MIDIBufferQueue *)pLocator; in checkDataLocator()
148 if (0 == pDataLocator->mMIDIBufferQueue.tpqn) { in checkDataLocator()
149 pDataLocator->mMIDIBufferQueue.tpqn = 192; in checkDataLocator()
152 if (!((1 <= pDataLocator->mMIDIBufferQueue.numBuffers) && in checkDataLocator()
153 (pDataLocator->mMIDIBufferQueue.numBuffers <= 255))) { in checkDataLocator()
155 pDataLocator->mMIDIBufferQueue.numBuffers); in checkDataLocator()
161 pDataLocator->mOutputMix = *(SLDataLocator_OutputMix *)pLocator; in checkDataLocator()
164 result = AcquireStrongRef((IObject *) pDataLocator->mOutputMix.outputMix, in checkDataLocator()
169 name, pDataLocator->mOutputMix.outputMix); in checkDataLocator()
170 pDataLocator->mOutputMix.outputMix = NULL; in checkDataLocator()
175 pDataLocator->mNativeDisplay = *(XADataLocator_NativeDisplay *)pLocator; in checkDataLocator()
177 if (pDataLocator->mNativeDisplay.hWindow == NULL) { in checkDataLocator()
181 if (pDataLocator->mNativeDisplay.hDisplay != NULL) { in checkDataLocator()
183 pDataLocator->mNativeDisplay.hDisplay); in checkDataLocator()
190 pDataLocator->mURI = *(SLDataLocator_URI *)pLocator; in checkDataLocator()
191 if (NULL == pDataLocator->mURI.URI) { in checkDataLocator()
196 size_t len = strlen((const char *) pDataLocator->mURI.URI); in checkDataLocator()
201 memcpy(myURI, pDataLocator->mURI.URI, len + 1); in checkDataLocator()
210 pDataLocator->mURI.URI = myURI; in checkDataLocator()
218 pDataLocator->mFD = *(SLDataLocator_AndroidFD *)pLocator; in checkDataLocator()
219 SL_LOGV("%s: fd=%d offset=%lld length=%lld", name, pDataLocator->mFD.fd, in checkDataLocator()
220 pDataLocator->mFD.offset, pDataLocator->mFD.length); in checkDataLocator()
222 if (0 > pDataLocator->mFD.fd) { in checkDataLocator()
223 SL_LOGE("%s: fd=%d\n", name, pDataLocator->mFD.fd); in checkDataLocator()
230 pDataLocator->mABQ = *(SLDataLocator_AndroidBufferQueue*)pLocator; in checkDataLocator()
232 if (!((1 <= pDataLocator->mBufferQueue.numBuffers) && in checkDataLocator()
233 (pDataLocator->mBufferQueue.numBuffers <= 255))) { in checkDataLocator()
234 SL_LOGE("%s: numBuffers=%u", name, pDataLocator->mABQ.numBuffers); in checkDataLocator()
249 if ((SL_RESULT_SUCCESS == result) && (locatorType != pDataLocator->mLocatorType)) { in checkDataLocator()
251 pDataLocator->mLocatorType); in checkDataLocator()
295 static void freeDataLocator(DataLocator *pDataLocator) in freeDataLocator() argument
297 switch (pDataLocator->mLocatorType) { in freeDataLocator()
305 if (NULL != pDataLocator->mURI.URI) { in freeDataLocator()
306 free(pDataLocator->mURI.URI); in freeDataLocator()
307 pDataLocator->mURI.URI = NULL; in freeDataLocator()
309 pDataLocator->mURI.URI = NULL; in freeDataLocator()
312 if (NULL != pDataLocator->mIODevice.device) { in freeDataLocator()
313 ReleaseStrongRef((IObject *) pDataLocator->mIODevice.device); in freeDataLocator()
314 pDataLocator->mIODevice.device = NULL; in freeDataLocator()
318 if (NULL != pDataLocator->mOutputMix.outputMix) { in freeDataLocator()
319 ReleaseStrongRef((IObject *) pDataLocator->mOutputMix.outputMix); in freeDataLocator()
320 pDataLocator->mOutputMix.outputMix = NULL; in freeDataLocator()