/packages/services/Car/service/jni/evs/ |
D | StreamHandler.cpp | 70 .bufferId = src.bufferId, in dupBufferDesc() 214 void StreamHandler::doneWithFrame(int bufferId) { in doneWithFrame() argument 219 [bufferId](BufferDesc& b) { return b.bufferId == bufferId; }); in doneWithFrame() 234 LOG(ERROR) << "Failed to return a frame (id = " << bufferId in doneWithFrame() 241 return doneWithFrame(buffer.bufferId); in doneWithFrame() 245 LOG(DEBUG) << "Received frames from the camera, bufferId = " << buffers[0].bufferId; in deliverFrame() 265 LOG(DEBUG) << "Got buffer " << bufferToUse.bufferId in deliverFrame()
|
D | EvsServiceContext.cpp | 394 void EvsServiceContext::doneWithFrame(int bufferId) { in doneWithFrame() argument 401 auto it = mBufferRecords.find(bufferId); in doneWithFrame() 415 mStreamHandler->doneWithFrame(bufferId); in doneWithFrame() 468 mStreamHandler->doneWithFrame(bufferDesc.bufferId); in onNewFrame() 472 mCallbackThread.enqueue([ahwb, bufferId = bufferDesc.bufferId, this](JNIEnv* env) { in onNewFrame() 476 mBufferRecords.insert(bufferId); in onNewFrame() 482 mStreamHandler->doneWithFrame(bufferId); in onNewFrame() 488 env->CallVoidMethod(mCarEvsServiceObj, mFrameHandlerMethodId, bufferId, hwBuffer); in onNewFrame()
|
/packages/services/Car/cpp/evs/support_library/ |
D | StreamHandler.cpp | 114 if ((mHeldBuffer < 0) || (buffer.bufferId != mOriginalBuffers[mHeldBuffer].bufferId)) { in doneWithFrame() 116 ALOGD("Held buffer id: %d, input buffer id: %d", mOriginalBuffers[mHeldBuffer].bufferId, in doneWithFrame() 117 buffer.bufferId); in doneWithFrame() 130 buffer.memHandle.getNativeHandle(), buffer.bufferId); in deliverFrame() 284 output.bufferId = input.bufferId; in processFrame() 371 mAnalyzeBuffer.bufferId = input.bufferId; in copyAndAnalyzeFrame()
|
/packages/services/Car/cpp/computepipe/tests/runner/stream_manager/ |
D | PixelStreamManagerTest.cpp | 96 int bufferId = 10; in TEST() local 99 PixelMemHandle memHandle(bufferId, streamId, AHARDWAREBUFFER_USAGE_CPU_READ_OFTEN); in TEST() 101 EXPECT_EQ(memHandle.getBufferId(), bufferId); in TEST() 124 int bufferId = 10; in TEST() local 127 PixelMemHandle memHandle(bufferId, streamId, AHARDWAREBUFFER_USAGE_CPU_READ_OFTEN); in TEST() 129 EXPECT_EQ(memHandle.getBufferId(), bufferId); in TEST() 149 int bufferId = 10; in TEST() local 152 PixelMemHandle memHandle(bufferId, streamId, AHARDWAREBUFFER_USAGE_CPU_READ_OFTEN); in TEST() 154 EXPECT_EQ(memHandle.getBufferId(), bufferId); in TEST() 174 int bufferId = 10; in TEST() local [all …]
|
/packages/services/Car/cpp/evs/sampleDriver/aidl/src/ |
D | EvsV4lCamera.cpp | 421 LOG(WARNING) << "Failed to import a buffer " << b.bufferId; in importExternalBuffers() 456 if (static_cast<uint32_t>(bufferDesc.bufferId) >= mBuffers.size()) { in doneWithFrame_impl() 457 LOG(WARNING) << "Ignoring doneWithFrame called with invalid id " << bufferDesc.bufferId in doneWithFrame_impl() 465 mBuffers[bufferDesc.bufferId].inUse = false; in doneWithFrame_impl() 470 if (static_cast<uint32_t>(bufferDesc.bufferId) >= mFramesAllowed) { in doneWithFrame_impl() 475 rec.handle = mBuffers[bufferDesc.bufferId].handle; in doneWithFrame_impl() 476 mBuffers[bufferDesc.bufferId].handle = nullptr; in doneWithFrame_impl() 491 EvsResult EvsV4lCamera::doneWithFrame_impl(uint32_t bufferId, buffer_handle_t handle) { in doneWithFrame_impl() argument 502 } else if (bufferId >= mBuffers.size()) { in doneWithFrame_impl() 503 LOG(ERROR) << "Ignoring doneWithFrame called with invalid bufferId " << bufferId in doneWithFrame_impl() [all …]
|
/packages/services/Car/cpp/evs/manager/1.1/emul/ |
D | EvsEmulatedCamera.cpp | 252 doneWithFrame_impl(buffer.bufferId, buffer.memHandle); in doneWithFrame() 324 doneWithFrame_impl(buffer.bufferId, buffer.buffer.nativeHandle); in doneWithFrame_1_1() 447 LOG(WARNING) << "Failed to import a buffer " << b.bufferId; in importExternalBuffers() 476 EvsResult EvsEmulatedCamera::doneWithFrame_impl(const uint32_t bufferId, in doneWithFrame_impl() argument 486 } else if (bufferId >= mBuffers.size()) { in doneWithFrame_impl() 487 LOG(ERROR) << "Ignoring doneWithFrame called with invalid bufferId " << bufferId in doneWithFrame_impl() 489 } else if (!mBuffers[bufferId].inUse) { in doneWithFrame_impl() 490 LOG(ERROR) << "Ignoring doneWithFrame called on frame " << bufferId in doneWithFrame_impl() 494 mBuffers[bufferId].inUse = false; in doneWithFrame_impl() 499 if (bufferId >= mFramesAllowed) { in doneWithFrame_impl() [all …]
|
/packages/services/Car/cpp/evs/sampleDriver/hidl/ |
D | EvsV4lCamera.cpp | 226 doneWithFrame_impl(buffer.bufferId, buffer.memHandle); in doneWithFrame() 312 doneWithFrame_impl(buffer.bufferId, buffer.buffer.nativeHandle); in doneWithFrame_1_1() 477 LOG(WARNING) << "Failed to import a buffer " << b.bufferId; in importExternalBuffers() 506 EvsResult EvsV4lCamera::doneWithFrame_impl(const uint32_t bufferId, in doneWithFrame_impl() argument 516 } else if (bufferId >= mBuffers.size()) { in doneWithFrame_impl() 517 LOG(ERROR) << "Ignoring doneWithFrame called with invalid bufferId " << bufferId in doneWithFrame_impl() 519 } else if (!mBuffers[bufferId].inUse) { in doneWithFrame_impl() 520 LOG(ERROR) << "Ignoring doneWithFrame called on frame " << bufferId in doneWithFrame_impl() 524 mBuffers[bufferId].inUse = false; in doneWithFrame_impl() 529 if (bufferId >= mFramesAllowed) { in doneWithFrame_impl() [all …]
|
D | EvsGlDisplay.cpp | 182 mBuffer.bufferId = 0x3870; // Arbitrary magic number for self recognition in getTargetBuffer() 226 << " as id " << mBuffer.bufferId; in getTargetBuffer() 245 if (buffer.bufferId != mBuffer.bufferId) { in returnTargetBufferForDisplay()
|
/packages/services/Car/cpp/evs/manager/aidl/wrappers/src/ |
D | HidlDisplay.cpp | 122 if (buffer.bufferId != mHeldBuffer.bufferId) { in returnTargetBufferForDisplay() 123 LOG(WARNING) << "Ignores a request to return a buffer " << buffer.bufferId << "; a buffer " in returnTargetBufferForDisplay() 124 << mHeldBuffer.bufferId << " is held."; in returnTargetBufferForDisplay() 128 LOG(WARNING) << "Failed to return a buffer " << mHeldBuffer.bufferId; in returnTargetBufferForDisplay()
|
D | AidlDisplay.cpp | 109 if (buffer.bufferId != mHeldBuffer.bufferId) { in returnTargetBufferForDisplay() 110 LOG(WARNING) << "Ignores a request to return a buffer " << buffer.bufferId << "; a buffer " in returnTargetBufferForDisplay() 111 << mHeldBuffer.bufferId << " is held."; in returnTargetBufferForDisplay()
|
D | HidlCamera.cpp | 111 if (!mAidlStream->getBuffer(buffer.bufferId, &aidlBuffer)) { in doneWithFrame() 112 LOG(ERROR) << "Ignores an unknown buffer " << buffer.bufferId; in doneWithFrame() 117 int bufferId = aidlBuffer.bufferId; // save pre move() for log message. in doneWithFrame() local 120 LOG(WARNING) << "Failed to return a buffer " << bufferId << ", status = " in doneWithFrame() 220 if (!mAidlStream->getBuffer(buffers[i].bufferId, &aidlBuffer)) { in doneWithFrame_1_1() 221 LOG(WARNING) << "Ignores an unknown buffer " << buffers[i].bufferId; in doneWithFrame_1_1()
|
/packages/services/Car/cpp/computepipe/runner/stream_manager/ |
D | PixelStreamManager.cpp | 31 PixelMemHandle::PixelMemHandle(int bufferId, int streamId, int additionalUsageFlags) in PixelMemHandle() argument 32 : mBufferId(bufferId), in PixelMemHandle() 150 Status PixelStreamManager::freePacket(int bufferId) { in freePacket() argument 153 auto it = mBuffersInUse.find(bufferId); in freePacket() 179 for (auto [bufferId, buffer] : mBuffersInUse) { in freeAllPackets() 314 int bufferId = handle->getBufferId(); in clonePacket() local 315 auto it = mBuffersInUse.find(bufferId); in clonePacket()
|
/packages/services/Car/tests/CarLibUnitTest/src/android/car/evs/ |
D | CarEvsManagerUnitTest.java | 193 int bufferId = 1; in testStartVideoStreamWithoutToken() local 199 CarEvsBufferDescriptor buffer = new CarEvsBufferDescriptor(bufferId, in testStartVideoStreamWithoutToken() 330 int bufferId = 1; in testReturnFrameBuffer() local 336 CarEvsBufferDescriptor buffer = new CarEvsBufferDescriptor(bufferId, hwbuffer); in testReturnFrameBuffer() 347 int bufferId = 1; in testReturnFrameBufferRemoteExceptionThrown() local 353 CarEvsBufferDescriptor buffer = new CarEvsBufferDescriptor(bufferId, hwbuffer); in testReturnFrameBufferRemoteExceptionThrown() 422 int bufferId = 1; in testCarEvsBufferDescriptor() local 428 CarEvsBufferDescriptor original = new CarEvsBufferDescriptor(bufferId, hwbuffer); in testCarEvsBufferDescriptor() 430 assertThat(original.getId()).isEqualTo(bufferId); in testCarEvsBufferDescriptor()
|
/packages/services/Car/cpp/evs/apps/default/src/ |
D | StreamHandler.cpp | 75 buf.bufferId = i; // Unique number to identify this buffer in StreamHandler() 185 if (bufDesc.bufferId != mBuffers[mHeldBuffer].bufferId) { in doneWithFrame() 187 << mBuffers[mHeldBuffer].bufferId << ", received = " << bufDesc.bufferId; in doneWithFrame()
|
D | Utils.cpp | 57 .bufferId = src.bufferId, in dupBufferDesc() 71 LOG(ERROR) << "Buffer " << buffer.bufferId << " contains an invalid native handle."; in getNativeHandle()
|
/packages/services/Car/cpp/evs/manager/aidl/src/ |
D | HalCamera.cpp | 277 ScopedTrace trace("Camera " + getId(), __PRETTY_FUNCTION__, buffer.bufferId); in doneWithFrame() 284 [id = buffer.bufferId](const FrameRecord& rec) { in doneWithFrame() 293 LOG(WARNING) << "Buffer " << buffer.bufferId in doneWithFrame() 301 LOG(DEBUG) << "Buffer " << buffer.bufferId << " is still being used by " << it->refCount in doneWithFrame() 325 buffers.empty() ? std::numeric_limits<int>::min() : buffers[0].bufferId); in deliverFrame() 367 LOG(DEBUG) << getId() << " forwarded the buffer #" << buffers[0].bufferId << " to " in deliverFrame() 376 LOG(INFO) << "Trivially rejecting frame (" << buffers[0].bufferId << ") from " << getId() in deliverFrame() 403 mFrames.emplace_back(buffers[0].bufferId, frameDeliveries); in deliverFrame() 405 mFrames[i].frameId = buffers[0].bufferId; in deliverFrame()
|
/packages/services/Car/cpp/evs/manager/aidl/utils/src/ |
D | Utils.cpp | 91 LOG(WARNING) << "Buffer " << hidlBuffer.bufferId << " has an invalid native handle."; in makeHwBufferFromHidlBuffer() 130 LOG(WARNING) << "Buffer " << hidlBuffer.bufferId << " has an invalid native handle."; in makeHwBufferFromHidlBuffer() 147 .bufferId = static_cast<int>(hidlBuffer.bufferId), in makeFromHidl() 159 .bufferId = static_cast<int>(hidlBuffer.bufferId), in makeFromHidl() 199 .bufferId = static_cast<uint32_t>(aidlBuffer.bufferId), in makeToHidlV1_0() 211 .bufferId = static_cast<uint32_t>(aidlBuffer.bufferId), in makeToHidlV1_1() 551 .bufferId = src.bufferId, in dupBufferDesc()
|
/packages/services/Car/cpp/evs/manager/1.1/stats/ |
D | CameraUsageStats.cpp | 44 auto it = mBufferHistory.find(b.bufferId); in updateFrameStatsOnArrival() 46 mBufferHistory.emplace(b.bufferId, now); in updateFrameStatsOnArrival() 56 auto it = mBufferHistory.find(b.bufferId); in updateFrameStatsOnReturn() 58 LOG(WARNING) << "Buffer " << b.bufferId << " from " << b.deviceId << " is unknown."; in updateFrameStatsOnReturn()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/evs/ |
D | CarEvsServiceUnitTest.java | 332 int bufferId = mRandom.nextInt(); in testOnEvent() local 354 mHalCallbackCaptor.getValue().onFrameEvent(bufferId, buffer); in testOnEvent() 382 int bufferId = mRandom.nextInt(); in testInvalidStreamCallback() local 385 mHalCallbackCaptor.getValue().onFrameEvent(bufferId, buffer); in testInvalidStreamCallback() 781 int bufferId = mRandom.nextInt(); in testStartActivity() local 797 mHalCallbackCaptor.getValue().onFrameEvent(bufferId, buffer); in testStartActivity() 801 .onNewFrame(argThat(received -> received.getId() == bufferId)); in testStartActivity() 878 int bufferId = mRandom.nextInt(); in testStartAndStopActivity() local 903 mHalCallbackCaptor.getValue().onFrameEvent(bufferId, buffer); in testStartAndStopActivity() 945 int bufferId = mRandom.nextInt(); in testRequestToStartVideoTwice() local [all …]
|
/packages/services/DeviceAsWebcam/jni/ |
D | SdkFrameProvider.cpp | 122 ret.bufferId = mNextBufferId++; in getHardwareBufferDescFromHardwareBuffer() 123 mBufferIdToAHardwareBuffer[ret.bufferId] = hardwareBuffer; in getHardwareBufferDescFromHardwareBuffer() 165 auto it = mBufferIdToAHardwareBuffer.find(desc.bufferId); in releaseHardwareBuffer() 168 ALOGE("Couldn't find AHardwareBuffer for buffer id %u, what ?", desc.bufferId); in releaseHardwareBuffer()
|
/packages/services/Car/cpp/evs/manager/aidl/stats/src/ |
D | CameraUsageStats.cpp | 39 auto it = mBufferHistory.find(b.bufferId); in updateFrameStatsOnArrivalLocked() 43 mBufferHistory.insert({b.bufferId, now}); in updateFrameStatsOnArrivalLocked() 51 auto it = mBufferHistory.find(b.bufferId); in updateFrameStatsOnReturnLocked() 53 LOG(WARNING) << "Buffer " << b.bufferId << " from " << b.deviceId << " is unknown."; in updateFrameStatsOnReturnLocked()
|
/packages/services/Car/service-builtin/src/com/android/car/evs/ |
D | EvsHalWrapperImpl.java | 131 public void doneWithFrame(int bufferId) { in doneWithFrame() argument 132 nativeDoneWithFrame(getNativeHandle(), bufferId); in doneWithFrame() local 202 private native void nativeDoneWithFrame(long handle, int bufferId); in nativeDoneWithFrame() argument
|
/packages/services/Car/cpp/evs/manager/aidl/tests/unit/src/ |
D | MockHidlEvsHal_1_0.cpp | 160 .bufferId = static_cast<uint32_t>(count), in initializeBufferPool() 172 auto it = mBufferRecord.find(descriptor.bufferId); in deinitializeBufferPoolLocked() 174 LOG(WARNING) << "Ignoring unknown buffer id, " << descriptor.bufferId; in deinitializeBufferPoolLocked() 176 LOG(WARNING) << "Releasing buffer in use, id = " << descriptor.bufferId; in deinitializeBufferPoolLocked() 183 auto it = mBufferRecord.find(descriptor.bufferId); in deinitializeBufferPoolLocked() 185 LOG(WARNING) << "Ignoring unknown buffer id, " << descriptor.bufferId; in deinitializeBufferPoolLocked() 215 [id = buffer.bufferId](const BufferDesc& desc) { in addMockCameraDevice() 216 return id == desc.bufferId; in addMockCameraDevice()
|
D | MockHidlEvsHal.cpp | 198 .bufferId = static_cast<uint32_t>(count), in initializeBufferPool() 212 auto it = mBufferRecord.find(descriptor.bufferId); in deinitializeBufferPoolLocked() 214 LOG(WARNING) << "Ignoring unknown buffer id, " << descriptor.bufferId; in deinitializeBufferPoolLocked() 216 LOG(WARNING) << "Releasing buffer in use, id = " << descriptor.bufferId; in deinitializeBufferPoolLocked() 223 auto it = mBufferRecord.find(descriptor.bufferId); in deinitializeBufferPoolLocked() 225 LOG(WARNING) << "Ignoring unknown buffer id, " << descriptor.bufferId; in deinitializeBufferPoolLocked() 260 [id = buffer.bufferId](const BufferDesc& desc) { in addMockCameraDevice() 261 return id == desc.bufferId; in addMockCameraDevice() 279 [id = b.bufferId](const BufferDesc& desc) { in addMockCameraDevice() 280 return id == desc.bufferId; in addMockCameraDevice() [all …]
|
/packages/services/Car/cpp/evs/manager/1.0/ |
D | VirtualCamera.cpp | 158 if (it->bufferId == buffer.bufferId) { in doneWithFrame() 166 ALOGE("Ignoring doneWithFrame called with unrecognized frameID %d", buffer.bufferId); in doneWithFrame()
|