• Home
  • Raw
  • Download

Lines Matching refs:pDataLocator

24 static SLresult checkDataLocator(const char *name, void *pLocator, DataLocator *pDataLocator,  in checkDataLocator()  argument
27 assert(NULL != name && NULL != pDataLocator); in checkDataLocator()
32 pDataLocator->mLocatorType = locatorType = SL_DATALOCATOR_NULL; in checkDataLocator()
38 pDataLocator->mAddress = *(SLDataLocator_Address *)pLocator; in checkDataLocator()
40 if ((0 < pDataLocator->mAddress.length) && (NULL == pDataLocator->mAddress.pAddress)) { in checkDataLocator()
53 pDataLocator->mBufferQueue = *(SLDataLocator_BufferQueue *)pLocator; in checkDataLocator()
55 if (!((1 <= pDataLocator->mBufferQueue.numBuffers) && in checkDataLocator()
56 (pDataLocator->mBufferQueue.numBuffers <= 255))) { in checkDataLocator()
57 SL_LOGE("%s: numBuffers=%u", name, pDataLocator->mBufferQueue.numBuffers); in checkDataLocator()
64 pDataLocator->mIODevice = *(SLDataLocator_IODevice *)pLocator; in checkDataLocator()
65 SLuint32 deviceType = pDataLocator->mIODevice.deviceType; in checkDataLocator()
66 SLObjectItf device = pDataLocator->mIODevice.device; in checkDataLocator()
68 pDataLocator->mIODevice.deviceID = 0; in checkDataLocator()
88 pDataLocator->mIODevice.device = NULL; in checkDataLocator()
99 pDataLocator->mIODevice.device = NULL; in checkDataLocator()
103 SLuint32 deviceID = pDataLocator->mIODevice.deviceID; in checkDataLocator()
144 pDataLocator->mMIDIBufferQueue = *(SLDataLocator_MIDIBufferQueue *)pLocator; in checkDataLocator()
145 if (0 == pDataLocator->mMIDIBufferQueue.tpqn) { in checkDataLocator()
146 pDataLocator->mMIDIBufferQueue.tpqn = 192; in checkDataLocator()
149 if (!((1 <= pDataLocator->mMIDIBufferQueue.numBuffers) && in checkDataLocator()
150 (pDataLocator->mMIDIBufferQueue.numBuffers <= 255))) { in checkDataLocator()
152 pDataLocator->mMIDIBufferQueue.numBuffers); in checkDataLocator()
158 pDataLocator->mOutputMix = *(SLDataLocator_OutputMix *)pLocator; in checkDataLocator()
161 result = AcquireStrongRef((IObject *) pDataLocator->mOutputMix.outputMix, in checkDataLocator()
166 name, pDataLocator->mOutputMix.outputMix); in checkDataLocator()
167 pDataLocator->mOutputMix.outputMix = NULL; in checkDataLocator()
172 pDataLocator->mNativeDisplay = *(XADataLocator_NativeDisplay *)pLocator; in checkDataLocator()
174 if (pDataLocator->mNativeDisplay.hWindow == NULL) { in checkDataLocator()
178 if (pDataLocator->mNativeDisplay.hDisplay != NULL) { in checkDataLocator()
180 pDataLocator->mNativeDisplay.hDisplay); in checkDataLocator()
187 pDataLocator->mURI = *(SLDataLocator_URI *)pLocator; in checkDataLocator()
188 if (NULL == pDataLocator->mURI.URI) { in checkDataLocator()
193 size_t len = strlen((const char *) pDataLocator->mURI.URI); in checkDataLocator()
198 memcpy(myURI, pDataLocator->mURI.URI, len + 1); in checkDataLocator()
207 pDataLocator->mURI.URI = myURI; in checkDataLocator()
215 pDataLocator->mFD = *(SLDataLocator_AndroidFD *)pLocator; in checkDataLocator()
216 SL_LOGV("%s: fd=%d offset=%lld length=%lld", name, pDataLocator->mFD.fd, in checkDataLocator()
217 pDataLocator->mFD.offset, pDataLocator->mFD.length); in checkDataLocator()
219 if (0 > pDataLocator->mFD.fd) { in checkDataLocator()
220 SL_LOGE("%s: fd=%d\n", name, pDataLocator->mFD.fd); in checkDataLocator()
227 pDataLocator->mABQ = *(SLDataLocator_AndroidBufferQueue*)pLocator; in checkDataLocator()
229 if (!((1 <= pDataLocator->mBufferQueue.numBuffers) && in checkDataLocator()
230 (pDataLocator->mBufferQueue.numBuffers <= 255))) { in checkDataLocator()
231 SL_LOGE("%s: numBuffers=%u", name, pDataLocator->mABQ.numBuffers); in checkDataLocator()
246 if ((SL_RESULT_SUCCESS == result) && (locatorType != pDataLocator->mLocatorType)) { in checkDataLocator()
248 pDataLocator->mLocatorType); in checkDataLocator()
292 static void freeDataLocator(DataLocator *pDataLocator) in freeDataLocator() argument
294 switch (pDataLocator->mLocatorType) { in freeDataLocator()
302 if (NULL != pDataLocator->mURI.URI) { in freeDataLocator()
303 free(pDataLocator->mURI.URI); in freeDataLocator()
304 pDataLocator->mURI.URI = NULL; in freeDataLocator()
306 pDataLocator->mURI.URI = NULL; in freeDataLocator()
309 if (NULL != pDataLocator->mIODevice.device) { in freeDataLocator()
310 ReleaseStrongRef((IObject *) pDataLocator->mIODevice.device); in freeDataLocator()
311 pDataLocator->mIODevice.device = NULL; in freeDataLocator()
315 if (NULL != pDataLocator->mOutputMix.outputMix) { in freeDataLocator()
316 ReleaseStrongRef((IObject *) pDataLocator->mOutputMix.outputMix); in freeDataLocator()
317 pDataLocator->mOutputMix.outputMix = NULL; in freeDataLocator()