Home
last modified time | relevance | path

Searched refs:streamId (Results 1 – 25 of 25) sorted by relevance

/frameworks/av/services/camera/libcameraservice/device3/
DCamera3BufferManager.cpp50 int streamId = streamInfo.streamId; in registerStream() local
53 if (streamId == CAMERA3_STREAM_ID_INVALID || streamSetId == CAMERA3_STREAM_SET_ID_INVALID) { in registerStream()
55 __FUNCTION__, streamId, streamSetId); in registerStream()
60 __FUNCTION__, streamId, streamSetId, streamInfo.totalBufferCount); in registerStream()
64 ALOGE("%s: Stream (%d) is not configured", __FUNCTION__, streamId); in registerStream()
88 ssize_t streamIdx = mStreamSetMap[i].streamInfoMap.indexOfKey(streamId); in registerStream()
108 ssize_t streamIdx = currentStreamSet.streamInfoMap.indexOfKey(streamId); in registerStream()
111 __FUNCTION__, streamId, streamSetId); in registerStream()
114 currentStreamSet.streamInfoMap.add(streamId, streamInfo); in registerStream()
115 currentStreamSet.handoutBufferCountMap.add(streamId, 0); in registerStream()
[all …]
DCamera3BufferManager.h102 status_t unregisterStream(int streamId, int streamSetId);
125 status_t getBufferForStream(int streamId, int streamSetId, sp<GraphicBuffer>* gb, int* fenceFd);
147 status_t onBufferReleased(int streamId, int streamSetId);
173 status_t returnBufferForStream(int streamId, int streamSetId, const sp<GraphicBuffer>& buffer,
300 bool checkIfStreamRegisteredLocked(int streamId, int streamSetId) const;
315 status_t removeBuffersFromBufferListLocked(BufferList &bufList, int streamId);
325 GraphicBufferEntry getFirstBufferFromBufferListLocked(BufferList& buffers, int streamId);
333 bool inline hasBufferForStreamLocked(BufferList& buffers, int streamId);
DCamera3OutputStream.h40 int streamId; member
58 streamId(id), in streamId() function
DCamera3Device.h145 virtual status_t prepare(int streamId);
147 virtual status_t tearDown(int streamId);
149 virtual status_t addBufferListenerForStream(int streamId,
152 virtual status_t prepare(int maxCount, int streamId);
DCamera3Device.cpp1603 status_t Camera3Device::prepare(int streamId) { in prepare() argument
1604 return prepare(camera3::Camera3StreamInterface::ALLOCATE_PIPELINE_MAX, streamId); in prepare()
1607 status_t Camera3Device::prepare(int maxCount, int streamId) { in prepare() argument
1609 ALOGV("%s: Camera %d: Preparing stream %d", __FUNCTION__, mId, streamId); in prepare()
1614 ssize_t outputStreamIdx = mOutputStreams.indexOfKey(streamId); in prepare()
1616 CLOGE("Stream %d does not exist", streamId); in prepare()
1623 CLOGE("Stream %d has already been a request target", streamId); in prepare()
1628 CLOGE("Stream %d is already a target in a pending request", streamId); in prepare()
1635 status_t Camera3Device::tearDown(int streamId) { in tearDown() argument
1637 ALOGV("%s: Camera %d: Tearing down stream %d", __FUNCTION__, mId, streamId); in tearDown()
[all …]
/frameworks/av/services/camera/libcameraservice/api2/
DCameraDeviceClient.cpp205 int streamId = mStreamMap.valueAt(idx); in submitRequestList() local
206 outputStreamIds.push_back(streamId); in submitRequestList()
208 __FUNCTION__, mCameraId, streamId); in submitRequestList()
353 binder::Status CameraDeviceClient::deleteStream(int streamId) { in deleteStream() argument
355 ALOGV("%s (streamId = 0x%x)", __FUNCTION__, streamId); in deleteStream()
369 if (mInputStream.configured && mInputStream.id == streamId) { in deleteStream()
374 if (streamId == mStreamMap.valueAt(i)) { in deleteStream()
382 "stream created yet", mCameraId, streamId); in deleteStream()
389 status_t err = mDevice->deleteStream(streamId); in deleteStream()
393 mCameraId, strerror(-err), err, streamId); in deleteStream()
[all …]
DCameraDeviceClient.h89 virtual binder::Status deleteStream(int streamId);
126 virtual binder::Status prepare(int32_t streamId);
129 virtual binder::Status tearDown(int32_t streamId);
132 virtual binder::Status prepare2(int32_t maxCount, int32_t streamId);
162 virtual void notifyPrepared(int streamId);
/frameworks/base/core/java/android/hardware/camera2/impl/
DICameraDeviceUserWrapper.java118 public void deleteStream(int streamId) throws CameraAccessException { in deleteStream() argument
120 mRemoteDevice.deleteStream(streamId); in deleteStream()
191 public void prepare(int streamId) throws CameraAccessException { in prepare() argument
193 mRemoteDevice.prepare(streamId); in prepare()
200 public void tearDown(int streamId) throws CameraAccessException { in tearDown() argument
202 mRemoteDevice.tearDown(streamId); in tearDown()
209 public void prepare2(int maxCount, int streamId) throws CameraAccessException { in prepare2() argument
211 mRemoteDevice.prepare2(maxCount, streamId); in prepare2()
DCameraDeviceImpl.java407 int streamId = mConfiguredOutputs.keyAt(i); in configureStreamsChecked() local
411 deleteList.add(streamId); in configureStreamsChecked()
435 int streamId = mRemoteDevice.createInputStream(inputConfig.getWidth(), in configureStreamsChecked() local
438 streamId, inputConfig); in configureStreamsChecked()
443 for (Integer streamId : deleteList) { in configureStreamsChecked()
444 mRemoteDevice.deleteStream(streamId); in configureStreamsChecked()
445 mConfiguredOutputs.delete(streamId); in configureStreamsChecked()
451 int streamId = mRemoteDevice.createStream(outConfig); in configureStreamsChecked() local
452 mConfiguredOutputs.put(streamId, outConfig); in configureStreamsChecked()
692 int streamId = -1; in prepare() local
[all …]
/frameworks/base/services/core/java/com/android/server/tv/
DTvInputHal.java53 void onFirstFrameCaptured(int deviceId, int streamId); in onFirstFrameCaptured() argument
58 private static native int nativeAddOrUpdateStream(long ptr, int deviceId, int streamId, in nativeAddOrUpdateStream() argument
60 private static native int nativeRemoveStream(long ptr, int deviceId, int streamId); in nativeRemoveStream() argument
147 private void firstFrameCapturedFromNative(int deviceId, int streamId) { in firstFrameCapturedFromNative() argument
149 mHandler.obtainMessage(EVENT_STREAM_CONFIGURATION_CHANGED, deviceId, streamId)); in firstFrameCapturedFromNative()
198 int streamId = msg.arg2; in handleMessage() local
199 mCallback.onFirstFrameCaptured(deviceId, streamId); in handleMessage()
DTvInputHardwareManager.java230 public void onFirstFrameCaptured(int deviceId, int streamId) { in onFirstFrameCaptured() argument
/frameworks/base/services/core/jni/
Dcom_android_server_tv_TvInputHal.cpp52 jmethodID streamId; member
240 int addOrUpdateStream(int deviceId, int streamId, const sp<Surface>& surface);
241 int removeStream(int deviceId, int streamId);
247 void onCaptured(int deviceId, int streamId, uint32_t seq, bool succeeded);
335 int JTvInputHal::addOrUpdateStream(int deviceId, int streamId, const sp<Surface>& surface) { in addOrUpdateStream() argument
337 if (connections.indexOfKey(streamId) < 0) { in addOrUpdateStream()
338 connections.add(streamId, Connection()); in addOrUpdateStream()
340 Connection& connection = connections.editValueFor(streamId); in addOrUpdateStream()
365 if (configs[i].stream_id == streamId) { in addOrUpdateStream()
371 ALOGE("Cannot find a config with given stream ID: %d", streamId); in addOrUpdateStream()
[all …]
/frameworks/av/camera/aidl/android/hardware/camera2/
DICameraDeviceUser.aidl67 void deleteStream(int streamId); in deleteStream() argument
119 void prepare(int streamId); in prepare() argument
121 void tearDown(int streamId); in tearDown() argument
123 void prepare2(int maxCount, int streamId); in prepare2() argument
DICameraDeviceCallbacks.aidl39 oneway void onPrepared(int streamId); in onPrepared() argument
/frameworks/av/services/camera/libcameraservice/common/
DCameraDeviceBase.h205 virtual void notifyPrepared(int streamId) = 0;
292 virtual status_t prepare(int streamId) = 0;
297 virtual status_t tearDown(int streamId) = 0;
302 virtual status_t addBufferListenerForStream(int streamId,
309 virtual status_t prepare(int maxCount, int streamId) = 0;
DCamera2ClientBase.cpp301 void Camera2ClientBase<TClientBase>::notifyPrepared(int streamId) { in notifyPrepared() argument
302 (void)streamId; in notifyPrepared()
305 __FUNCTION__, streamId); in notifyPrepared()
DCamera2ClientBase.h75 virtual void notifyPrepared(int streamId);
/frameworks/base/core/java/android/hardware/camera2/legacy/
DCameraDeviceUserShim.java259 public void onPrepared(int streamId) { in onPrepared() argument
261 /*arg1*/ streamId, /*arg2*/ 0); in onPrepared()
320 int streamId = msg.arg1; in handleMessage() local
321 mCallbacks.onPrepared(streamId); in handleMessage()
515 public void deleteStream(int streamId) { in deleteStream() argument
531 int index = mSurfaces.indexOfKey(streamId); in deleteStream()
533 String err = "Cannot delete stream, stream id " + streamId + " doesn't exist."; in deleteStream()
659 public void prepare(int streamId) { in prepare() argument
670 mCameraCallbacks.onPrepared(streamId); in prepare()
673 public void prepare2(int maxCount, int streamId) { in prepare2() argument
[all …]
/frameworks/base/media/java/android/media/tv/
DTvStreamConfig.java51 streamId(source.readInt()).
124 public Builder streamId(int streamId) { in streamId() method in TvStreamConfig.Builder
125 mStreamId = streamId; in streamId()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/integration/
DCameraDeviceBinderTest.java144 public void onPrepared(int streamId) throws RemoteException { in onPrepared() argument
189 int streamId = mCameraUser.createStream(mOutputConfiguration); in createDefaultBuilder() local
190 assertEquals(0, streamId); in createDefaultBuilder()
260 int streamId = mCameraUser.createStream(mOutputConfiguration); in testCreateStream() local
261 assertEquals(0, streamId); in testCreateStream()
271 mCameraUser.deleteStream(streamId); in testCreateStream()
291 int streamId = mCameraUser.createStream(mOutputConfiguration); in testCreateStreamTwo() local
292 assertEquals(0, streamId); in testCreateStreamTwo()
312 mCameraUser.deleteStream(streamId); in testCreateStreamTwo()
DCameraBinderTest.java253 public void onPrepared(int streamId) throws RemoteException { in onPrepared() argument
/frameworks/av/camera/tests/
DCameraBinderTests.cpp210 virtual binder::Status onPrepared(int streamId) { in onPrepared() argument
211 (void) streamId; in onPrepared()
461 status_t streamId; in TEST_F() local
462 res = device->createStream(output, &streamId); in TEST_F()
464 EXPECT_LE(0, streamId); in TEST_F()
561 res = device->deleteStream(streamId); in TEST_F()
/frameworks/av/camera/ndk/impl/
DACameraDevice.cpp536 int streamId = kvPair.first; in configureStreamsLocked() local
539 deleteList.push_back(streamId); // Need to delete a no longer needed stream in configureStreamsLocked()
582 for (auto streamId : deleteList) { in configureStreamsLocked() local
583 remoteRet = mRemote->deleteStream(streamId); in configureStreamsLocked()
585 ALOGE("Camera device %s failed to remove stream %d: %s", getId(), streamId, in configureStreamsLocked()
589 mConfiguredOutputs.erase(streamId); in configureStreamsLocked()
594 int streamId; in configureStreamsLocked() local
595 remoteRet = mRemote->createStream(outputPair.second, &streamId); in configureStreamsLocked()
601 mConfiguredOutputs.insert(std::make_pair(streamId, outputPair)); in configureStreamsLocked()
710 int32_t streamId = resultExtras.errorStreamId; in onCaptureErrorLocked() local
[all …]
DACameraDevice.h76 binder::Status onPrepared(int streamId) override;
/frameworks/base/api/
Dsystem-current.txt24787 method public android.media.tv.TvStreamConfig.Builder streamId(int);