Lines Matching refs:portIndex
307 msg->setInt32("portIndex", kPortIndexInput);
316 msg->setInt32("portIndex", kPortIndexOutput);
567 int32_t portIndex;
568 CHECK(msg->findInt32("portIndex", &portIndex));
571 portIndex == kPortIndexInput ? "input" : "output");
573 CHECK(portIndex == kPortIndexInput
574 || portIndex == kPortIndexOutput);
576 mPortBuffers[portIndex].clear();
578 Vector<BufferInfo> *buffers = &mPortBuffers[portIndex];
594 if (portIndex == kPortIndexInput && mCrypto != NULL) {
602 if (portIndex == kPortIndexOutput) {
1096 int32_t portIndex;
1097 CHECK(msg->findInt32("portIndex", &portIndex));
1103 const Vector<BufferInfo> &srcBuffers = mPortBuffers[portIndex];
1109 (portIndex == kPortIndexInput && mCrypto != NULL)
1253 void MediaCodec::returnBuffersToCodecOnPort(int32_t portIndex) {
1254 CHECK(portIndex == kPortIndexInput || portIndex == kPortIndexOutput);
1256 Vector<BufferInfo> *buffers = &mPortBuffers[portIndex];
1266 if (portIndex == kPortIndexInput) {
1273 mAvailPortBuffers[portIndex].clear();
1277 int32_t portIndex, const sp<AMessage> &msg) {
1278 CHECK(portIndex == kPortIndexInput || portIndex == kPortIndexOutput);
1283 Vector<BufferInfo> *buffers = &mPortBuffers[portIndex];
1292 mAvailPortBuffers[portIndex].push_back(i);
1456 ssize_t MediaCodec::dequeuePortBuffer(int32_t portIndex) {
1457 CHECK(portIndex == kPortIndexInput || portIndex == kPortIndexOutput);
1459 List<size_t> *availBuffers = &mAvailPortBuffers[portIndex];
1468 BufferInfo *info = &mPortBuffers[portIndex].editItemAt(index);