/frameworks/av/services/camera/libcameraservice/device3/ |
D | Camera3BufferManager.cpp | 42 int streamId = streamInfo.streamId; in registerStream() local 45 if (streamId == CAMERA3_STREAM_ID_INVALID || streamSetId == CAMERA3_STREAM_SET_ID_INVALID) { in registerStream() 47 __FUNCTION__, streamId, streamSetId); in registerStream() 52 __FUNCTION__, streamId, streamSetId, streamInfo.totalBufferCount); in registerStream() 56 ALOGE("%s: Stream (%d) is not configured", __FUNCTION__, streamId); in registerStream() 76 ssize_t streamIdx = mStreamSetMap[i].streamInfoMap.indexOfKey(streamId); in registerStream() 96 ssize_t streamIdx = currentStreamSet.streamInfoMap.indexOfKey(streamId); in registerStream() 99 __FUNCTION__, streamId, streamSetId); in registerStream() 102 currentStreamSet.streamInfoMap.add(streamId, streamInfo); in registerStream() 103 currentStreamSet.handoutBufferCountMap.add(streamId, 0); in registerStream() [all …]
|
D | Camera3BufferManager.h | 102 status_t unregisterStream(int streamId, int streamSetId); 130 int streamId, int streamSetId, sp<GraphicBuffer>* gb, int* fenceFd, 156 status_t onBufferReleased(int streamId, int streamSetId, /*out*/bool* shouldFreeBuffer); 174 status_t onBuffersRemoved(int streamId, int streamSetId, size_t count); 180 void notifyBufferRemoved(int streamId, int streamSetId); 307 bool checkIfStreamRegisteredLocked(int streamId, int streamSetId) const; 313 status_t checkAndFreeBufferOnOtherStreamsLocked(int streamId, int streamSetId);
|
D | Camera3Device.cpp | 1018 if (streamIds.indexOf(bufReq.streamId) != NAME_NOT_FOUND) { in requestStreamBuffers() 1020 __FUNCTION__, bufReq.streamId); in requestStreamBuffers() 1024 streamIds.add(bufReq.streamId); in requestStreamBuffers() 1041 int32_t streamId = bufReq.streamId; in requestStreamBuffers() local 1042 sp<Camera3OutputStreamInterface> outputStream = mOutputStreams.get(streamId); in requestStreamBuffers() 1044 ALOGE("%s: Output stream id %d not found!", __FUNCTION__, streamId); in requestStreamBuffers() 1051 bufRet.streamId = streamId; in requestStreamBuffers() 1065 " > max: %d", __FUNCTION__, streamId, handOutBufferCount, in requestStreamBuffers() 1086 __FUNCTION__, streamId, strerror(-res), res); in requestStreamBuffers() 1090 __FUNCTION__, streamId, strerror(-res), res); in requestStreamBuffers() [all …]
|
D | Camera3Device.h | 159 status_t prepare(int streamId) override; 161 status_t tearDown(int streamId) override; 163 status_t addBufferListenerForStream(int streamId, 166 status_t prepare(int maxCount, int streamId) override; 180 int streamId, const std::vector<sp<Surface>>& consumers, 186 status_t updateStream(int streamId, const std::vector<sp<Surface>> &newSurfaces, 195 status_t dropStreamBuffers(bool dropping, int streamId) override; 318 std::pair<bool, uint64_t> getBufferId(const buffer_handle_t& buf, int streamId); 321 status_t popInflightBuffer(int32_t frameNumber, int32_t streamId, 326 uint64_t bufferId, buffer_handle_t* buf, int32_t streamId); [all …]
|
D | Camera3StreamBufferFreedListener.h | 40 virtual void onBufferFreed(int streamId, const native_handle_t* handle) = 0;
|
D | Camera3StreamBufferListener.h | 46 virtual void onBufferRequestForFrameNumber(uint64_t frameNumber, int streamId,
|
/frameworks/av/services/camera/libcameraservice/api2/ |
D | CameraDeviceClient.cpp | 167 if (outSurfaceMap->find(streamSurfaceId.streamId()) == outSurfaceMap->end()) { in insertGbpLocked() 168 (*outSurfaceMap)[streamSurfaceId.streamId()] = std::vector<size_t>(); in insertGbpLocked() 169 outputStreamIds->push_back(streamSurfaceId.streamId()); in insertGbpLocked() 171 (*outSurfaceMap)[streamSurfaceId.streamId()].push_back(streamSurfaceId.surfaceId()); in insertGbpLocked() 174 __FUNCTION__, mCameraIdStr.string(), streamSurfaceId.streamId(), in insertGbpLocked() 178 *currentStreamId = streamSurfaceId.streamId(); in insertGbpLocked() 271 int32_t streamId; in submitRequestList() local 273 res = insertGbpLocked(gbp, &surfaceMap, &outputStreamIds, &streamId); in submitRequestList() 278 ssize_t index = mConfiguredOutputs.indexOfKey(streamId); in submitRequestList() 289 int streamId = request.mStreamIdxList.itemAt(i); in submitRequestList() local [all …]
|
D | CameraDeviceClient.h | 102 virtual binder::Status deleteStream(int streamId) override; 139 virtual binder::Status prepare(int32_t streamId) override; 142 virtual binder::Status tearDown(int32_t streamId) override; 145 virtual binder::Status prepare2(int32_t maxCount, int32_t streamId) override; 148 virtual binder::Status updateOutputConfiguration(int streamId, 152 virtual binder::Status finalizeOutputConfigurations(int32_t streamId, 184 virtual void notifyPrepared(int streamId); 210 StreamSurfaceId(int32_t streamId, int32_t surfaceId) { in StreamSurfaceId() argument 211 mStreamId = streamId; in StreamSurfaceId() 214 int32_t streamId() const { in streamId() function [all …]
|
D | CompositeStream.cpp | 85 void CompositeStream::onBufferRequestForFrameNumber(uint64_t frameNumber, int streamId, in onBufferRequestForFrameNumber() argument 88 if (!mErrorState && (streamId == getStreamId())) { in onBufferRequestForFrameNumber() 153 status_t CompositeStream::registerCompositeStreamListener(int32_t streamId) { in registerCompositeStreamListener() argument 159 auto ret = device->addBufferListenerForStream(streamId, this); in registerCompositeStreamListener()
|
D | CompositeStream.h | 79 void onBufferRequestForFrameNumber(uint64_t frameNumber, int streamId, 88 status_t registerCompositeStreamListener(int32_t streamId);
|
/frameworks/base/core/java/android/hardware/camera2/impl/ |
D | ICameraDeviceUserWrapper.java | 122 public void deleteStream(int streamId) throws CameraAccessException { in deleteStream() argument 124 mRemoteDevice.deleteStream(streamId); in deleteStream() 214 public void prepare(int streamId) throws CameraAccessException { in prepare() argument 216 mRemoteDevice.prepare(streamId); in prepare() 223 public void tearDown(int streamId) throws CameraAccessException { in tearDown() argument 225 mRemoteDevice.tearDown(streamId); in tearDown() 232 public void prepare2(int maxCount, int streamId) throws CameraAccessException { in prepare2() argument 234 mRemoteDevice.prepare2(maxCount, streamId); in prepare2() 241 public void updateOutputConfiguration(int streamId, OutputConfiguration config) in updateOutputConfiguration() argument 244 mRemoteDevice.updateOutputConfiguration(streamId, config); in updateOutputConfiguration() [all …]
|
D | CameraDeviceImpl.java | 421 int streamId = mConfiguredOutputs.keyAt(i); in configureStreamsChecked() local 428 deleteList.add(streamId); in configureStreamsChecked() 452 int streamId = mRemoteDevice.createInputStream(inputConfig.getWidth(), in configureStreamsChecked() local 455 streamId, inputConfig); in configureStreamsChecked() 460 for (Integer streamId : deleteList) { in configureStreamsChecked() 461 mRemoteDevice.deleteStream(streamId); in configureStreamsChecked() 462 mConfiguredOutputs.delete(streamId); in configureStreamsChecked() 468 int streamId = mRemoteDevice.createStream(outConfig); in configureStreamsChecked() local 469 mConfiguredOutputs.put(streamId, outConfig); in configureStreamsChecked() 813 int streamId = -1; in prepare() local [all …]
|
/frameworks/av/camera/aidl/android/hardware/camera2/ |
D | ICameraDeviceUser.aidl | 97 void deleteStream(int streamId); in deleteStream() argument 149 void prepare(int streamId); in prepare() argument 151 void tearDown(int streamId); in tearDown() argument 153 void prepare2(int maxCount, int streamId); in prepare2() argument 155 void updateOutputConfiguration(int streamId, in OutputConfiguration outputConfiguration); in updateOutputConfiguration() argument 157 void finalizeOutputConfigurations(int streamId, in OutputConfiguration outputConfiguration); in finalizeOutputConfigurations() argument
|
/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/services/core/java/com/android/server/tv/ |
D | TvInputHal.java | 55 void onFirstFrameCaptured(int deviceId, int streamId); in onFirstFrameCaptured() argument 60 private static native int nativeAddOrUpdateStream(long ptr, int deviceId, int streamId, in nativeAddOrUpdateStream() argument 62 private static native int nativeRemoveStream(long ptr, int deviceId, int streamId); in nativeRemoveStream() argument 149 private void firstFrameCapturedFromNative(int deviceId, int streamId) { in firstFrameCapturedFromNative() argument 151 mHandler.obtainMessage(EVENT_STREAM_CONFIGURATION_CHANGED, deviceId, streamId)); in firstFrameCapturedFromNative() 200 int streamId = msg.arg2; in handleMessage() local 201 mCallback.onFirstFrameCaptured(deviceId, streamId); in handleMessage()
|
/frameworks/av/services/camera/libcameraservice/common/ |
D | CameraDeviceBase.h | 275 virtual void notifyPrepared(int streamId) = 0; 348 virtual status_t prepare(int streamId) = 0; 353 virtual status_t tearDown(int streamId) = 0; 358 virtual status_t addBufferListenerForStream(int streamId, 365 virtual status_t prepare(int maxCount, int streamId) = 0; 370 virtual status_t setConsumerSurfaces(int streamId, 376 virtual status_t updateStream(int streamId, const std::vector<sp<Surface>> &newSurfaces,
|
/frameworks/base/core/java/android/hardware/camera2/legacy/ |
D | CameraDeviceUserShim.java | 264 public void onPrepared(int streamId) { in onPrepared() argument 266 /*arg1*/ streamId, /*arg2*/ 0); in onPrepared() 332 int streamId = msg.arg1; in handleMessage() local 333 mCallbacks.onPrepared(streamId); in handleMessage() 581 public void deleteStream(int streamId) { in deleteStream() argument 597 int index = mSurfaces.indexOfKey(streamId); in deleteStream() 599 String err = "Cannot delete stream, stream id " + streamId + " doesn't exist."; in deleteStream() 691 public void updateOutputConfiguration(int streamId, OutputConfiguration config) { in updateOutputConfiguration() argument 737 public void prepare(int streamId) { in prepare() argument 748 mCameraCallbacks.onPrepared(streamId); in prepare() [all …]
|
/frameworks/base/media/java/android/media/tv/ |
D | TvStreamConfig.java | 53 streamId(source.readInt()). 127 public Builder streamId(int streamId) { in streamId() argument 128 mStreamId = streamId; in streamId()
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/integration/ |
D | CameraDeviceBinderTest.java | 150 public void onPrepared(int streamId) throws RemoteException { in onPrepared() argument 205 int streamId = mCameraUser.createStream(mOutputConfiguration); in createDefaultBuilder() local 206 assertEquals(0, streamId); in createDefaultBuilder() 276 int streamId = mCameraUser.createStream(mOutputConfiguration); in testCreateStream() local 277 assertEquals(0, streamId); in testCreateStream() 287 mCameraUser.deleteStream(streamId); in testCreateStream() 307 int streamId = mCameraUser.createStream(mOutputConfiguration); in testCreateStreamTwo() local 308 assertEquals(0, streamId); in testCreateStreamTwo() 328 mCameraUser.deleteStream(streamId); in testCreateStreamTwo()
|
/frameworks/hardware/interfaces/cameraservice/vts/functional/ |
D | VtsHalCameraServiceV2_0TargetTest.cpp | 254 void initializeCaptureRequestPartial(CaptureRequest* captureRequest, int32_t streamId, in initializeCaptureRequestPartial() argument 259 captureRequest->streamAndWindowIds[0].streamId = streamId; in initializeCaptureRequestPartial() 374 int32_t streamId = -1; in TEST_P() local 375 remoteRet = deviceRemote->createStream(output, [&status, &streamId](Status s, auto sId) { in TEST_P() 377 streamId = sId; in TEST_P() 380 EXPECT_TRUE(streamId >= 0); in TEST_P() 396 initializeCaptureRequestPartial(&captureRequest, streamId, it.cameraId, in TEST_P() 418 initializeCaptureRequestPartial(&captureRequest, streamId, it.cameraId, in TEST_P() 444 statusRet = deviceRemote->deleteStream(streamId); in TEST_P()
|
/frameworks/av/services/camera/libcameraservice/hidl/ |
D | HidlCameraDeviceUser.cpp | 154 request->mStreamIdxList.push_back(streamAndWindowId.streamId); in convertRequestFromHidl() 209 Return<HStatus> HidlCameraDeviceUser::deleteStream(int32_t streamId) { in deleteStream() argument 210 binder::Status ret = mDeviceRemote->deleteStream(streamId); in deleteStream() 252 int32_t streamId, in updateOutputConfiguration() argument 255 binder::Status ret = mDeviceRemote->updateOutputConfiguration(streamId, outputConfiguration); in updateOutputConfiguration()
|
D | HidlCameraDeviceUser.h | 86 virtual Return<HStatus> deleteStream(int32_t streamId) override; 99 int32_t streamId, const HOutputConfiguration& outputConfiguration) override;
|
/frameworks/av/camera/ndk/impl/ |
D | ACameraDevice.cpp | 283 int32_t streamId = -1; in updateOutputConfigurationLocked() local 286 streamId = kvPair.first; in updateOutputConfigurationLocked() 290 if (streamId < 0) { in updateOutputConfigurationLocked() 317 auto remoteRet = mRemote->updateOutputConfiguration(streamId, outConfig); in updateOutputConfigurationLocked() 341 mConfiguredOutputs[streamId] = std::make_pair(output->mWindow, outConfig); in updateOutputConfigurationLocked() 374 int streamId = kvPair.first; in allocateCaptureRequest() local 380 req->mStreamIdxList.push_back(streamId); in allocateCaptureRequest() 641 int streamId = kvPair.first; in configureStreamsLocked() local 644 deleteList.push_back(streamId); // Need to delete a no longer needed stream in configureStreamsLocked() 687 for (auto streamId : deleteList) { in configureStreamsLocked() local [all …]
|
/frameworks/av/camera/ndk/ndk_vendor/impl/ |
D | ACameraDevice.cpp | 287 int32_t streamId = -1; in updateOutputConfigurationLocked() local 290 streamId = kvPair.first; in updateOutputConfigurationLocked() 294 if (streamId < 0) { in updateOutputConfigurationLocked() 310 auto remoteRet = mRemote->updateOutputConfiguration(streamId, outConfig); in updateOutputConfigurationLocked() 334 mConfiguredOutputs[streamId] = std::make_pair(output->mWindow, outConfigW); in updateOutputConfigurationLocked() 363 int streamId = kvPair.first; in allocateCaptureRequestLocked() local 371 requestStreamIdxList.push_back(streamId); in allocateCaptureRequestLocked() 387 req->mCaptureRequest.streamAndWindowIds[i].streamId = requestStreamIdxList[i]; in allocateCaptureRequestLocked() 630 int32_t streamId = kvPair.first; in configureStreamsLocked() local 633 deleteList.push_back(streamId); // Need to delete a no longer needed stream in configureStreamsLocked() [all …]
|
/frameworks/hardware/interfaces/cameraservice/device/2.0/ |
D | ICameraDeviceUser.hal | 129 * delete the stream specified by streamId. 134 * @param streamId the stream id of the stream to be deleted 137 deleteStream(int32_t streamId) generates (Status status); 189 * @param streamId the stream id whose output configuration needs to be 196 int32_t streamId, OutputConfiguration outputConfiguration)
|