/frameworks/av/media/libaudiousecasevalidation/ |
D | UsecaseLookup.cpp | 29 void UsecaseLookup::addStream(STREAMID streamId, bool outputFlagGame) { in addStream() argument 30 ALOGV("%s streamId: %d outputFlagGame: %d", __func__, streamId, outputFlagGame); in addStream() 33 m_streams[streamId] = outputFlagGame; in addStream() 39 void UsecaseLookup::removeStream(STREAMID streamId) { in removeStream() argument 40 ALOGV("%s streamId: %d ", __func__, streamId); in removeStream() 43 m_streams.erase(streamId); in removeStream() 47 if (it->second == streamId) { in removeStream() 58 void UsecaseLookup::addTrack(STREAMID streamId, PORTID portId) { in addTrack() argument 59 ALOGV("%s streamId: %d portId: %d", __func__, streamId, portId); in addTrack() 64 m_tracks[portId] = streamId; in addTrack() [all …]
|
D | UsecaseValidator.cpp | 39 status_t registerStream(audio_io_handle_t streamId, in registerStream() argument 42 ALOGV("%s output: %d flags: %#x", __func__, streamId, outputFlags); in registerStream() 46 m_lookup.addStream(streamId, outputFlagGame); in registerStream() 54 status_t unregisterStream(audio_io_handle_t streamId) override { in unregisterStream() argument 55 ALOGV("%s output: %d", __func__, streamId); in unregisterStream() 57 m_lookup.removeStream(streamId); in unregisterStream() 65 error::Result<audio_attributes_t> startClient(audio_io_handle_t streamId, in startClient() argument 70 __func__, streamId, portId, attributes.usage, attributionSource.pid, in startClient() 73 m_lookup.addTrack(streamId, portId); in startClient() 75 return verifyAudioAttributes(streamId, attributionSource, attributes); in startClient() [all …]
|
/frameworks/av/services/camera/libcameraservice/device3/ |
D | Camera3BufferManager.cpp | 45 int streamId = streamInfo.streamId; in registerStream() local 48 if (streamId == CAMERA3_STREAM_ID_INVALID || in registerStream() 51 __FUNCTION__, streamId, streamSetKey.id); in registerStream() 56 __FUNCTION__, streamId, streamSetKey.id, streamInfo.totalBufferCount); in registerStream() 60 ALOGE("%s: Stream (%d) is not configured", __FUNCTION__, streamId); in registerStream() 80 ssize_t streamIdx = mStreamSetMap[i].streamInfoMap.indexOfKey(streamId); in registerStream() 101 ssize_t streamIdx = currentStreamSet.streamInfoMap.indexOfKey(streamId); in registerStream() 104 __FUNCTION__, streamId, streamSetKey.id, streamSetKey.isMultiRes); in registerStream() 107 currentStreamSet.streamInfoMap.add(streamId, streamInfo); in registerStream() 108 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 | Camera3OutputUtilsTemplated.h | 204 sp<Camera3StreamInterface> stream = states.outputStreams.get(bSrc.streamId); in processOneCaptureResultLockedT() 207 __FUNCTION__, result.frameNumber, i, bSrc.streamId); in processOneCaptureResultLockedT() 216 contains(states.halBufManagedStreamIds, bSrc.streamId))) { in processOneCaptureResultLockedT() 222 __FUNCTION__, result.frameNumber, i, bSrc.streamId); in processOneCaptureResultLockedT() 233 res = bufferRecords.popInflightBuffer(result.frameNumber, bSrc.streamId, &buffer); in processOneCaptureResultLockedT() 238 __FUNCTION__, result.frameNumber, i, bSrc.streamId); in processOneCaptureResultLockedT() 262 if (result.inputBuffer.streamId == -1) { in processOneCaptureResultLockedT() 265 if (states.inputStream->getId() != result.inputBuffer.streamId) { in processOneCaptureResultLockedT() 267 result.frameNumber, result.inputBuffer.streamId); in processOneCaptureResultLockedT() 272 res = bufferRecords.popInflightBuffer(result.frameNumber, result.inputBuffer.streamId, in processOneCaptureResultLockedT() [all …]
|
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;
|
/frameworks/av/services/camera/virtualcamera/ |
D | VirtualCameraSessionContext.cc | 58 auto it = mStreams.find(buffer.streamId); in importBuffersFromCaptureRequest() 61 buffer.streamId); in importBuffersFromCaptureRequest() 72 buffer.bufferId, buffer.streamId); in importBuffersFromCaptureRequest() 84 auto it = mStreams.find(bufferCache.streamId); in removeBufferCaches() 87 __func__, bufferCache.bufferId, bufferCache.streamId); in removeBufferCaches() 93 __func__, bufferCache.bufferId, bufferCache.streamId); in removeBufferCaches() 96 __func__, bufferCache.bufferId, bufferCache.streamId); in removeBufferCaches() 124 int streamId) const { in getStreamConfig() 126 auto it = mStreams.find(streamId); in getStreamConfig() 129 streamId); in getStreamConfig() [all …]
|
D | VirtualCameraTestInstance.cc | 123 const int32_t streamId, const Surface& surface, const int32_t width, in onStreamConfigured() argument 125 ALOGV("%s: streamId %d, %dx%d pixFmt=%s", __func__, streamId, width, height, in onStreamConfigured() 132 if (mInputRenderers.try_emplace(streamId, renderer).second) { in onStreamConfigured() 138 __func__, streamId); in onStreamConfigured() 149 ScopedAStatus VirtualCameraTestInstance::onStreamClosed(const int32_t streamId) { in onStreamClosed() argument 150 ALOGV("%s: streamId %d", __func__, streamId); in onStreamClosed() 155 auto it = mInputRenderers.find(streamId); in onStreamClosed()
|
/frameworks/av/services/camera/libcameraservice/api2/ |
D | CameraDeviceClient.cpp | 244 if (outSurfaceMap->find(streamSurfaceId.streamId()) == outSurfaceMap->end()) { in insertGbpLocked() 245 outputStreamIds->push_back(streamSurfaceId.streamId()); in insertGbpLocked() 247 (*outSurfaceMap)[streamSurfaceId.streamId()].push_back(streamSurfaceId.surfaceId()); in insertGbpLocked() 250 __FUNCTION__, mCameraIdStr.c_str(), streamSurfaceId.streamId(), in insertGbpLocked() 254 *currentStreamId = streamSurfaceId.streamId(); in insertGbpLocked() 263 for (auto &streamId : streamIdsForThisRequest) { in getIntersection() local 264 if (streamIdsForThisCamera.find(streamId) != streamIdsForThisCamera.end()) { in getIntersection() 265 intersection.emplace_back(streamId); in getIntersection() 359 int32_t streamId; in submitRequestList() local 361 res = insertGbpLocked(gbp, &surfaceMap, &outputStreamIds, &streamId); in submitRequestList() [all …]
|
/frameworks/av/services/camera/libcameraservice/device3/aidl/ |
D | AidlCamera3OutputUtils.cpp | 167 if (streamIds.indexOf(bufReq.streamId) != NAME_NOT_FOUND) { in requestStreamBuffers() 169 __FUNCTION__, bufReq.streamId); in requestStreamBuffers() 174 !contains(states.halBufManagedStreamIds, bufReq.streamId)) { in requestStreamBuffers() 176 __FUNCTION__, states.cameraId.c_str(), bufReq.streamId); in requestStreamBuffers() 180 streamIds.add(bufReq.streamId); in requestStreamBuffers() 197 int32_t streamId = bufReq.streamId; in requestStreamBuffers() local 198 sp<Camera3OutputStreamInterface> outputStream = states.outputStreams.get(streamId); in requestStreamBuffers() 200 ALOGE("%s: Output stream id %d not found!", __FUNCTION__, streamId); in requestStreamBuffers() 207 bufRet.streamId = streamId; in requestStreamBuffers() 221 " > max: %d", __FUNCTION__, streamId, handOutBufferCount, in requestStreamBuffers() [all …]
|
/frameworks/av/media/libaudiousecasevalidation/include/media/ |
D | UsecaseLookup.h | 52 void addStream(STREAMID streamId, bool outputFlagGame = false); 57 void removeStream(STREAMID streamId); 62 void addTrack(STREAMID streamId, PORTID portId); 67 void removeTrack(STREAMID streamId, PORTID portId); 72 bool isGameStream(STREAMID streamId);
|
D | UsecaseValidator.h | 54 virtual status_t registerStream(audio_io_handle_t streamId, 62 virtual status_t unregisterStream(audio_io_handle_t streamId) = 0; 68 virtual error::Result<audio_attributes_t> startClient(audio_io_handle_t streamId, 78 virtual status_t stopClient(audio_io_handle_t streamId, audio_port_handle_t portId) = 0; 84 virtual error::Result<audio_attributes_t> verifyAudioAttributes(audio_io_handle_t streamId,
|
/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/base/services/core/jni/tvinput/ |
D | JTvInputHal.cpp | 61 int JTvInputHal::addOrUpdateStream(int deviceId, int streamId, const sp<Surface>& surface) { in addOrUpdateStream() argument 64 if (connections.indexOfKey(streamId) < 0) { in addOrUpdateStream() 65 connections.add(streamId, Connection()); in addOrUpdateStream() 67 Connection& connection = connections.editValueFor(streamId); in addOrUpdateStream() 93 if (list[i].streamId == streamId) { in addOrUpdateStream() 99 ALOGE("Cannot find a config with given stream ID: %d", streamId); in addOrUpdateStream() 105 status = mTvInput->openStream(deviceId, streamId, &sidebandStream); in addOrUpdateStream() 107 ALOGE("Couldn't open stream. device id:%d stream id:%d result:%d", deviceId, streamId, in addOrUpdateStream() 120 int JTvInputHal::removeStream(int deviceId, int streamId) { in removeStream() argument 123 if (connections.indexOfKey(streamId) < 0) { in removeStream() [all …]
|
/frameworks/base/core/java/android/hardware/camera2/impl/ |
D | ICameraDeviceUserWrapper.java | 121 public void deleteStream(int streamId) throws CameraAccessException { in deleteStream() argument 123 mRemoteDevice.deleteStream(streamId); in deleteStream() 221 public void prepare(int streamId) throws CameraAccessException { in prepare() argument 223 mRemoteDevice.prepare(streamId); in prepare() 231 public void tearDown(int streamId) throws CameraAccessException { in tearDown() argument 233 mRemoteDevice.tearDown(streamId); in tearDown() 241 public void prepare2(int maxCount, int streamId) throws CameraAccessException { in prepare2() argument 243 mRemoteDevice.prepare2(maxCount, streamId); in prepare2() 251 public void updateOutputConfiguration(int streamId, OutputConfiguration config) in updateOutputConfiguration() argument 254 mRemoteDevice.updateOutputConfiguration(streamId, config); in updateOutputConfiguration() [all …]
|
/frameworks/av/services/camera/libcameraservice/utils/ |
D | SessionStatsBuilder.h | 62 status_t addStream(int streamId); 63 status_t removeStream(int streamId); 73 void startCounter(int streamId); 74 void stopCounter(int streamId); 75 void incCounter(int streamId, bool dropped, int32_t captureLatencyMs);
|
/frameworks/base/services/companion/java/com/android/server/companion/virtual/camera/ |
D | VirtualCameraConversionUtil.java | 64 public void onStreamConfigured(int streamId, Surface surface, int width, int height, in convertCallback() 66 camera.onStreamConfigured(streamId, surface, width, height, in convertCallback() 71 public void onProcessCaptureRequest(int streamId, int frameId) throws RemoteException { in convertCallback() argument 72 camera.onProcessCaptureRequest(streamId, frameId); in convertCallback() 76 public void onStreamClosed(int streamId) throws RemoteException { in convertCallback() argument 77 camera.onStreamClosed(streamId); in convertCallback()
|
/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()
|
/frameworks/base/core/java/android/companion/virtual/camera/ |
D | IVirtualCameraCallback.aidl | 39 oneway void onStreamConfigured(int streamId, in Surface surface, int width, int height, in onStreamConfigured() argument 54 oneway void onProcessCaptureRequest(int streamId, long frameId); in onProcessCaptureRequest() argument 64 oneway void onStreamClosed(int streamId); in onStreamClosed() argument
|
/frameworks/av/services/camera/virtualcamera/aidl/android/companion/virtualcamera/ |
D | IVirtualCameraCallback.aidl | 39 void onStreamConfigured(int streamId, in Surface surface, int width, int height, in onStreamConfigured() argument 50 void onProcessCaptureRequest(int streamId, int frameId); in onProcessCaptureRequest() argument 58 void onStreamClosed(int streamId); in onStreamClosed() argument
|
/frameworks/base/services/core/jni/ |
D | com_android_server_tv_TvInputHal.cpp | 38 jlong ptr, jint deviceId, jint streamId, jobject jsurface) { in nativeAddOrUpdateStream() argument 47 return tvInputHal->addOrUpdateStream(deviceId, streamId, surface); in nativeAddOrUpdateStream() 51 jlong ptr, jint deviceId, jint streamId) { in nativeRemoveStream() argument 53 return tvInputHal->removeStream(deviceId, streamId); in nativeRemoveStream() 67 builder, gTvStreamConfigBuilderClassInfo.streamId, configs[i].streamId); in nativeGetStreamConfigs() 89 jint streamId, jint type, jboolean enabled) { in nativeSetTvMessageEnabled() argument 91 return tvInputHal->setTvMessageEnabled(deviceId, streamId, type, enabled); in nativeSetTvMessageEnabled() 162 gTvStreamConfigBuilderClassInfo.streamId, in register_android_server_tv_TvInputHal()
|
/frameworks/hardware/interfaces/cameraservice/vts/functional/ |
D | VtsAidlCameraServiceTargetTest.cpp | 210 ndk::ScopedAStatus onPrepared(int32_t streamId) override { in onPrepared() argument 212 if (mStreamsPreparedCount.find(streamId) == mStreamsPreparedCount.end()) { in onPrepared() 213 mStreamsPreparedCount[streamId] = 0; in onPrepared() 215 mStreamsPreparedCount[streamId]++; in onPrepared() 220 bool waitForPreparedCount(int streamId, int count) const { in waitForPreparedCount() argument 222 if ((mStreamsPreparedCount.find(streamId) != mStreamsPreparedCount.end()) && in waitForPreparedCount() 223 (mStreamsPreparedCount[streamId] == count)) { in waitForPreparedCount() 227 while ((mStreamsPreparedCount.find(streamId) == mStreamsPreparedCount.end()) || in waitForPreparedCount() 228 (mStreamsPreparedCount[streamId] < count)) { in waitForPreparedCount() 233 return (mStreamsPreparedCount[streamId] == count); in waitForPreparedCount() [all …]
|