Lines Matching refs:entry
56 QueueEntry entry;
57 entry.mIsCommand = false;
58 entry.mIndex = index;
59 entry.mSize = size;
60 entry.mOffset = 0;
63 mQueue.push_back(entry);
78 QueueEntry entry;
79 entry.mIsCommand = true;
80 entry.mCommand = cmd;
81 entry.mExtra = extra;
84 mQueue.push_back(entry);
113 QueueEntry *entry = &*mQueue.begin();
115 if (entry->mIsCommand) {
116 switch (entry->mCommand) {
120 entry = NULL;
128 *extra = entry->mExtra;
131 entry = NULL;
142 size_t copy = entry->mSize;
147 if (entry->mIndex >= mBuffers.size()) {
151 sp<IMemory> mem = mBuffers.editItemAt(entry->mIndex);
152 if (mem == NULL || mem->size() < copy || mem->size() - copy < entry->mOffset) {
158 + entry->mOffset,
161 entry->mOffset += copy;
162 entry->mSize -= copy;
164 if (entry->mSize == 0) {
165 mSource->onBufferAvailable(entry->mIndex);
167 entry = NULL;