/frameworks/av/services/camera/libcameraservice/device3/ |
D | Camera3BufferManager.cpp | 42 int streamId = streamInfo.streamId; in registerStream() local 45 if (streamId == CAMERA3_STREAM_ID_INVALID || in registerStream() 48 __FUNCTION__, streamId, streamSetKey.id); in registerStream() 53 __FUNCTION__, streamId, streamSetKey.id, streamInfo.totalBufferCount); in registerStream() 57 ALOGE("%s: Stream (%d) is not configured", __FUNCTION__, streamId); in registerStream() 77 ssize_t streamIdx = mStreamSetMap[i].streamInfoMap.indexOfKey(streamId); in registerStream() 98 ssize_t streamIdx = currentStreamSet.streamInfoMap.indexOfKey(streamId); in registerStream() 101 __FUNCTION__, streamId, streamSetKey.id, streamSetKey.isMultiRes); in registerStream() 104 currentStreamSet.streamInfoMap.add(streamId, streamInfo); in registerStream() 105 currentStreamSet.handoutBufferCountMap.add(streamId, 0); in registerStream() [all …]
|
D | BufferUtils.cpp | 57 for (auto streamId : streams) { in takeBufferCaches() local 58 mBufferIdMaps.insert({streamId, std::move(other.mBufferIdMaps.at(streamId))}); in takeBufferCaches() 64 const buffer_handle_t& buf, int streamId) { in getBufferId() argument 67 BufferIdMap& bIdMap = mBufferIdMaps.at(streamId); in getBufferId() 72 streamId, bIdMap.size(), buf); in getBufferId() 79 void BufferRecords::tryCreateBufferCache(int streamId) { in tryCreateBufferCache() argument 81 if (mBufferIdMaps.count(streamId) == 0) { in tryCreateBufferCache() 82 mBufferIdMaps.emplace(streamId, BufferIdMap{}); in tryCreateBufferCache() 89 int streamId = it->first; in removeInactiveBufferCaches() local 90 bool active = activeStreams.count(streamId) > 0; in removeInactiveBufferCaches() [all …]
|
D | BufferUtils.h | 99 const buffer_handle_t& buf, int streamId) override; 101 void tryCreateBufferCache(int streamId); 107 uint64_t removeOneBufferCache(int streamId, const native_handle_t* handle) override; 111 std::vector<uint64_t> clearBufferCaches(int streamId); 113 bool isStreamCached(int streamId); 116 bool verifyBufferIds(int32_t streamId, std::vector<uint64_t>& inBufIds); 122 status_t pushInflightBuffer(int32_t frameNumber, int32_t streamId, 126 virtual status_t popInflightBuffer(int32_t frameNumber, int32_t streamId, 137 uint64_t bufferId, buffer_handle_t* buf, int32_t streamId) override; 142 /*optional out*/ int32_t* streamId = nullptr) override;
|
D | Camera3BufferManager.h | 102 status_t unregisterStream(int streamId, int streamSetId, bool isMultiRes); 130 int streamId, int streamSetId, bool isMultiRes, sp<GraphicBuffer>* gb, 156 status_t onBufferReleased(int streamId, int streamSetId, bool isMultiRes, 175 status_t onBuffersRemoved(int streamId, int streamSetId, bool isMultiRes, size_t count); 181 void notifyBufferRemoved(int streamId, int streamSetId, bool isMultiRes); 320 bool checkIfStreamRegisteredLocked(int streamId, StreamSetKey streamSetKey) const; 326 status_t checkAndFreeBufferOnOtherStreamsLocked(int streamId, StreamSetKey streamSetKey);
|
D | Camera3OutputStreamInterface.cpp | 30 int streamId, sp<camera3::Camera3OutputStreamInterface> stream) { in add() argument 36 return mData.add(streamId, stream); in add() 39 ssize_t StreamSet::remove(int streamId) { in remove() argument 41 return mData.removeItem(streamId); in remove() 44 sp<camera3::Camera3OutputStreamInterface> StreamSet::get(int streamId) { in get() argument 46 ssize_t idx = mData.indexOfKey(streamId); in get()
|
D | Camera3OutputInterface.h | 51 virtual std::pair<bool, uint64_t> getBufferId(const buffer_handle_t& buf, int streamId) = 0; 55 virtual uint64_t removeOneBufferCache(int streamId, const native_handle_t* handle) = 0; 58 virtual status_t popInflightBuffer(int32_t frameNumber, int32_t streamId, 63 uint64_t bufferId, buffer_handle_t* buf, int32_t streamId) = 0; 68 /*optional out*/ int32_t* streamId = nullptr) = 0;
|
D | Camera3OutputUtilsTemplated.h | 200 sp<Camera3StreamInterface> stream = states.outputStreams.get(bSrc.streamId); in processOneCaptureResultLockedT() 203 __FUNCTION__, result.frameNumber, i, bSrc.streamId); in processOneCaptureResultLockedT() 216 __FUNCTION__, result.frameNumber, i, bSrc.streamId); in processOneCaptureResultLockedT() 227 res = bufferRecords.popInflightBuffer(result.frameNumber, bSrc.streamId, &buffer); in processOneCaptureResultLockedT() 232 __FUNCTION__, result.frameNumber, i, bSrc.streamId); in processOneCaptureResultLockedT() 256 if (result.inputBuffer.streamId == -1) { in processOneCaptureResultLockedT() 259 if (states.inputStream->getId() != result.inputBuffer.streamId) { in processOneCaptureResultLockedT() 261 result.frameNumber, result.inputBuffer.streamId); in processOneCaptureResultLockedT() 266 res = bufferRecords.popInflightBuffer(result.frameNumber, result.inputBuffer.streamId, in processOneCaptureResultLockedT() 270 __FUNCTION__, result.frameNumber, result.inputBuffer.streamId); in processOneCaptureResultLockedT() [all …]
|
D | Camera3OutputUtils.cpp | 721 int streamId = stream->getId(); in returnOutputBuffers() local 728 extras.errorStreamId = streamId; in returnOutputBuffers() 743 sessionStatsBuilder.incCounter(streamId, /*dropped*/true, 0); in returnOutputBuffers() 749 const auto& it = outputSurfaces.find(streamId); in returnOutputBuffers() 771 sessionStatsBuilder.stopCounter(streamId); in returnOutputBuffers() 783 sessionStatsBuilder.incCounter(streamId, dropped, captureLatencyMs); in returnOutputBuffers() 799 extras.errorStreamId = streamId; in returnOutputBuffers() 949 int streamId = 0; in notifyError() local 954 streamId = stream->getId(); in notifyError() 959 streamId, msg.error_code); in notifyError() [all …]
|
D | Camera3OutputStreamInterface.h | 130 status_t add(int streamId, sp<camera3::Camera3OutputStreamInterface>); 131 ssize_t remove(int streamId); 132 sp<camera3::Camera3OutputStreamInterface> get(int streamId);
|
/frameworks/av/services/camera/libcameraservice/api2/ |
D | CameraDeviceClient.cpp | 231 if (outSurfaceMap->find(streamSurfaceId.streamId()) == outSurfaceMap->end()) { in insertGbpLocked() 232 outputStreamIds->push_back(streamSurfaceId.streamId()); in insertGbpLocked() 234 (*outSurfaceMap)[streamSurfaceId.streamId()].push_back(streamSurfaceId.surfaceId()); in insertGbpLocked() 237 __FUNCTION__, mCameraIdStr.string(), streamSurfaceId.streamId(), in insertGbpLocked() 241 *currentStreamId = streamSurfaceId.streamId(); in insertGbpLocked() 250 for (auto &streamId : streamIdsForThisRequest) { in getIntersection() local 251 if (streamIdsForThisCamera.find(streamId) != streamIdsForThisCamera.end()) { in getIntersection() 252 intersection.emplace_back(streamId); in getIntersection() 346 int32_t streamId; in submitRequestList() local 348 res = insertGbpLocked(gbp, &surfaceMap, &outputStreamIds, &streamId); in submitRequestList() [all …]
|
D | CameraDeviceClient.h | 112 virtual binder::Status deleteStream(int streamId) override; 150 virtual binder::Status prepare(int32_t streamId) override; 153 virtual binder::Status tearDown(int32_t streamId) override; 156 virtual binder::Status prepare2(int32_t maxCount, int32_t streamId) override; 159 virtual binder::Status updateOutputConfiguration(int streamId, 163 virtual binder::Status finalizeOutputConfigurations(int32_t streamId, 225 virtual void notifyPrepared(int streamId); 259 StreamSurfaceId(int32_t streamId, int32_t surfaceId) { in StreamSurfaceId() argument 260 mStreamId = streamId; in StreamSurfaceId() 263 int32_t streamId() const { in streamId() function [all …]
|
/frameworks/av/services/camera/libcameraservice/device3/aidl/ |
D | AidlCamera3OutputUtils.cpp | 171 if (streamIds.indexOf(bufReq.streamId) != NAME_NOT_FOUND) { in requestStreamBuffers() 173 __FUNCTION__, bufReq.streamId); in requestStreamBuffers() 177 streamIds.add(bufReq.streamId); in requestStreamBuffers() 194 int32_t streamId = bufReq.streamId; in requestStreamBuffers() local 195 sp<Camera3OutputStreamInterface> outputStream = states.outputStreams.get(streamId); in requestStreamBuffers() 197 ALOGE("%s: Output stream id %d not found!", __FUNCTION__, streamId); in requestStreamBuffers() 204 bufRet.streamId = streamId; in requestStreamBuffers() 218 " > max: %d", __FUNCTION__, streamId, handOutBufferCount, in requestStreamBuffers() 240 __FUNCTION__, streamId, strerror(-res), res); in requestStreamBuffers() 242 states.sessionStatsBuilder.stopCounter(streamId); in requestStreamBuffers() [all …]
|
D | AidlCamera3Device.cpp | 617 for (auto streamId : mOutputStreams.getStreamIds()) { in switchToOffline() local 618 sp<Camera3StreamInterface> stream = mOutputStreams.get(streamId); in switchToOffline() 621 SET_ERR_L("disconnect output stream %d failed!", streamId); in switchToOffline() 893 int streamId = cam3stream->getId(); in configureStreams() local 904 __FUNCTION__, streamId, config->streams[i]->stream_type); in configureStreams() 907 dst.id = streamId; in configureStreams() 930 activeStreams.insert(streamId); in configureStreams() 932 mBufferRecords.tryCreateBufferCache(streamId); in configureStreams() 969 int streamId = Camera3Stream::cast(dst)->getId(); in configureStreams() local 976 if (finalConfiguration[realIdx].id == streamId) { in configureStreams() [all …]
|
/frameworks/av/camera/aidl/android/hardware/camera2/ |
D | ICameraDeviceUser.aidl | 102 void deleteStream(int streamId); in deleteStream() argument 155 void prepare(int streamId); in prepare() argument 157 void tearDown(int streamId); in tearDown() argument 159 void prepare2(int maxCount, int streamId); in prepare2() argument 161 void updateOutputConfiguration(int streamId, in OutputConfiguration outputConfiguration); in updateOutputConfiguration() argument 163 void finalizeOutputConfigurations(int streamId, in OutputConfiguration outputConfiguration); in finalizeOutputConfigurations() argument
|
/frameworks/av/services/camera/libcameraservice/utils/ |
D | SessionStatsBuilder.h | 60 status_t addStream(int streamId); 61 status_t removeStream(int streamId); 70 void startCounter(int streamId); 71 void stopCounter(int streamId); 72 void incCounter(int streamId, bool dropped, int32_t captureLatencyMs);
|
/frameworks/base/core/java/android/hardware/camera2/impl/ |
D | ICameraDeviceUserWrapper.java | 124 public void deleteStream(int streamId) throws CameraAccessException { in deleteStream() argument 126 mRemoteDevice.deleteStream(streamId); in deleteStream() 217 public void prepare(int streamId) throws CameraAccessException { in prepare() argument 219 mRemoteDevice.prepare(streamId); in prepare() 226 public void tearDown(int streamId) throws CameraAccessException { in tearDown() argument 228 mRemoteDevice.tearDown(streamId); in tearDown() 235 public void prepare2(int maxCount, int streamId) throws CameraAccessException { in prepare2() argument 237 mRemoteDevice.prepare2(maxCount, streamId); in prepare2() 244 public void updateOutputConfiguration(int streamId, OutputConfiguration config) in updateOutputConfiguration() argument 247 mRemoteDevice.updateOutputConfiguration(streamId, config); in updateOutputConfiguration() [all …]
|
D | CameraDeviceImpl.java | 461 int streamId = mConfiguredOutputs.keyAt(i); in configureStreamsChecked() local 468 deleteList.add(streamId); in configureStreamsChecked() 492 int streamId = mRemoteDevice.createInputStream(inputConfig.getWidth(), in configureStreamsChecked() local 496 streamId, inputConfig); in configureStreamsChecked() 501 for (Integer streamId : deleteList) { in configureStreamsChecked() 502 mRemoteDevice.deleteStream(streamId); in configureStreamsChecked() 503 mConfiguredOutputs.delete(streamId); in configureStreamsChecked() 509 int streamId = mRemoteDevice.createStream(outConfig); in configureStreamsChecked() local 510 mConfiguredOutputs.put(streamId, outConfig); in configureStreamsChecked() 876 int streamId = -1; in prepare() local [all …]
|
/frameworks/base/services/core/jni/ |
D | com_android_server_tv_TvInputHal.cpp | 69 jmethodID streamId; member 258 int addOrUpdateStream(int deviceId, int streamId, const sp<Surface>& surface); 259 int removeStream(int deviceId, int streamId); 265 void onCaptured(int deviceId, int streamId, uint32_t seq, bool succeeded); 341 int JTvInputHal::addOrUpdateStream(int deviceId, int streamId, const sp<Surface>& surface) { in addOrUpdateStream() argument 344 if (connections.indexOfKey(streamId) < 0) { in addOrUpdateStream() 345 connections.add(streamId, Connection()); in addOrUpdateStream() 347 Connection& connection = connections.editValueFor(streamId); in addOrUpdateStream() 378 if (list[i].streamId == streamId) { in addOrUpdateStream() 384 ALOGE("Cannot find a config with given stream ID: %d", streamId); in addOrUpdateStream() [all …]
|
/frameworks/base/media/java/android/media/tv/tuner/filter/ |
D | PesSettings.java | 33 private PesSettings(@Filter.Type int mainType, int streamId, boolean isRaw) { in PesSettings() argument 35 mStreamId = streamId; in PesSettings() 84 public Builder setStreamId(int streamId) { in setStreamId() argument 85 mStreamId = streamId; in setStreamId()
|
D | PesEvent.java | 34 private PesEvent(int streamId, int dataLength, int mpuSequenceNumber) { in PesEvent() argument 35 mStreamId = streamId; in PesEvent()
|
/frameworks/base/services/core/java/com/android/server/tv/ |
D | TvInputHal.java | 56 void onFirstFrameCaptured(int deviceId, int streamId); in onFirstFrameCaptured() argument 61 private static native int nativeAddOrUpdateStream(long ptr, int deviceId, int streamId, in nativeAddOrUpdateStream() argument 63 private static native int nativeRemoveStream(long ptr, int deviceId, int streamId); in nativeRemoveStream() argument 151 private void firstFrameCapturedFromNative(int deviceId, int streamId) { in firstFrameCapturedFromNative() argument 153 mHandler.obtainMessage(EVENT_STREAM_CONFIGURATION_CHANGED, deviceId, streamId)); in firstFrameCapturedFromNative() 203 int streamId = msg.arg2; in handleMessage() local 204 mCallback.onFirstFrameCaptured(deviceId, streamId); in handleMessage()
|
/frameworks/base/media/java/android/media/tv/ |
D | TvStreamConfig.java | 53 streamId(source.readInt()). 127 public Builder streamId(int streamId) { in streamId() method in TvStreamConfig.Builder 128 mStreamId = streamId; in streamId()
|
/frameworks/base/media/java/android/media/tv/tuner/frontend/ |
D | IsdbsFrontendSettings.java | 144 private IsdbsFrontendSettings(long frequency, int streamId, int streamIdType, int modulation, in IsdbsFrontendSettings() argument 147 mStreamId = streamId; in IsdbsFrontendSettings() 250 public Builder setStreamId(int streamId) { in setStreamId() argument 251 mStreamId = streamId; in setStreamId()
|
D | Isdbs3FrontendSettings.java | 159 private Isdbs3FrontendSettings(long frequency, int streamId, int streamIdType, int modulation, in Isdbs3FrontendSettings() argument 162 mStreamId = streamId; in Isdbs3FrontendSettings() 265 public Builder setStreamId(int streamId) { in setStreamId() argument 266 mStreamId = streamId; in setStreamId()
|
/frameworks/av/services/camera/libcameraservice/common/ |
D | CameraDeviceBase.h | 375 virtual status_t prepare(int streamId) = 0; 380 virtual status_t tearDown(int streamId) = 0; 385 virtual status_t addBufferListenerForStream(int streamId, 392 virtual status_t prepare(int maxCount, int streamId) = 0; 397 virtual status_t setConsumerSurfaces(int streamId, 403 virtual status_t updateStream(int streamId, const std::vector<sp<Surface>> &newSurfaces,
|