Lines Matching defs:portIndex
371 msg->setInt32("portIndex", kPortIndexInput);
380 msg->setInt32("portIndex", kPortIndexOutput);
682 int32_t portIndex;
683 CHECK(msg->findInt32("portIndex", &portIndex));
686 portIndex == kPortIndexInput ? "input" : "output");
688 CHECK(portIndex == kPortIndexInput
689 || portIndex == kPortIndexOutput);
691 mPortBuffers[portIndex].clear();
693 Vector<BufferInfo> *buffers = &mPortBuffers[portIndex];
709 if (portIndex == kPortIndexInput && mCrypto != NULL) {
717 if (portIndex == kPortIndexOutput) {
1285 int32_t portIndex;
1286 CHECK(msg->findInt32("portIndex", &portIndex));
1292 const Vector<BufferInfo> &srcBuffers = mPortBuffers[portIndex];
1298 (portIndex == kPortIndexInput && mCrypto != NULL)
1489 void MediaCodec::returnBuffersToCodecOnPort(int32_t portIndex) {
1490 CHECK(portIndex == kPortIndexInput || portIndex == kPortIndexOutput);
1492 Vector<BufferInfo> *buffers = &mPortBuffers[portIndex];
1502 if (portIndex == kPortIndexInput) {
1510 mAvailPortBuffers[portIndex].clear();
1514 int32_t portIndex, const sp<AMessage> &msg) {
1515 CHECK(portIndex == kPortIndexInput || portIndex == kPortIndexOutput);
1520 Vector<BufferInfo> *buffers = &mPortBuffers[portIndex];
1529 mAvailPortBuffers[portIndex].push_back(i);
1693 ssize_t MediaCodec::dequeuePortBuffer(int32_t portIndex) {
1694 CHECK(portIndex == kPortIndexInput || portIndex == kPortIndexOutput);
1696 List<size_t> *availBuffers = &mAvailPortBuffers[portIndex];
1705 BufferInfo *info = &mPortBuffers[portIndex].editItemAt(index);