Home
last modified time | relevance | path

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

123

/frameworks/base/core/java/android/os/
DNativeHandle.java37 public final class NativeHandle implements Closeable { class
47 public NativeHandle() { in NativeHandle() method in NativeHandle
55 public NativeHandle(@NonNull FileDescriptor descriptor, boolean own) { in NativeHandle() method in NativeHandle
80 private NativeHandle(@NonNull int[] fds, @NonNull int[] ints, boolean own) { in NativeHandle() method in NativeHandle
89 public NativeHandle(@NonNull FileDescriptor[] fds, @NonNull int[] ints, boolean own) { in NativeHandle() method in NativeHandle
113 public @NonNull NativeHandle dup() throws java.io.IOException { in dup()
125 return new NativeHandle(fds, mInts, true /*own*/); in dup()
DHwParcel.java130 public native final void writeNativeHandle(@Nullable NativeHandle val); in writeNativeHandle()
182 private native final void writeNativeHandleVector(NativeHandle[] val); in writeNativeHandleVector()
294 public final void writeNativeHandleVector(@NonNull ArrayList<NativeHandle> val) { in writeNativeHandleVector()
295 writeNativeHandleVector(val.toArray(new NativeHandle[val.size()])); in writeNativeHandleVector()
369 public native final @Nullable NativeHandle readNativeHandle(); in readNativeHandle()
382 public native final @Nullable NativeHandle readEmbeddedNativeHandle( in readEmbeddedNativeHandle()
438 private native final NativeHandle[] readNativeHandleAsArray(); in readNativeHandleAsArray()
531 public final @NonNull ArrayList<NativeHandle> readNativeHandleVector() { in readNativeHandleVector()
532 return new ArrayList<NativeHandle>(Arrays.asList(readNativeHandleAsArray())); in readNativeHandleVector()
/frameworks/av/media/libstagefright/include/
DSecureBuffer.h26 class NativeHandle; variable
38 SecureBuffer(const sp<AMessage> &format, const sp<NativeHandle> &handle, size_t size);
49 const sp<NativeHandle> mHandle;
/frameworks/native/libs/ui/include/ui/
DBufferHubBuffer.h38 static std::unique_ptr<BufferHubBuffer> import(const sp<NativeHandle>& token);
104 sp<NativeHandle> duplicate();
110 BufferHubBuffer(const sp<NativeHandle>& token);
/frameworks/av/media/libmedia/include/media/
DOMXBuffer.h50 class NativeHandle; variable
81 OMXBuffer(const sp<NativeHandle> &handle);
134 sp<NativeHandle> mNativeHandle;
DIOMX.h44 class NativeHandle; variable
135 void **buffer_data, sp<NativeHandle> *native_handle) = 0;
/frameworks/av/include/media/
DOMXBuffer.h50 class NativeHandle; variable
81 OMXBuffer(const sp<NativeHandle> &handle);
134 sp<NativeHandle> mNativeHandle;
DIOMX.h44 class NativeHandle; variable
135 void **buffer_data, sp<NativeHandle> *native_handle) = 0;
/frameworks/av/media/libmedia/
DOMXBuffer.cpp59 OMXBuffer::OMXBuffer(const sp<NativeHandle> &handle) in OMXBuffer()
160 sp<NativeHandle> handle = NativeHandle::create( in readFromParcel()
/frameworks/native/libs/ui/tests/
DBufferHubBuffer_test.cpp111 sp<NativeHandle> token = b1->duplicate(); in CreateTwoClientsOfABuffer()
159 sp<NativeHandle> token = b1->duplicate(); in TEST_F()
217 sp<NativeHandle> token = b1->duplicate(); in TEST_F()
239 sp<NativeHandle> tokenHandle = NativeHandle::create(token, /*ownHandle=*/true); in TEST_F()
442 sp<NativeHandle> token = b1->duplicate(); in TEST_F()
464 sp<NativeHandle> token = b1->duplicate(); in TEST_F()
/frameworks/native/libs/binder/tests/
DbinderSafeInterfaceTest.cpp252 virtual status_t increment(const sp<NativeHandle>& a, sp<NativeHandle>* aPlusOne) const = 0;
310 status_t increment(const sp<NativeHandle>& a, sp<NativeHandle>* aPlusOne) const override { in increment()
313 status_t (ISafeInterfaceTest::*)(const sp<NativeHandle>&, sp<NativeHandle>*) const; in increment()
424 status_t increment(const sp<NativeHandle>& a, sp<NativeHandle>* aPlusOne) const override { in increment()
437 *aPlusOne = NativeHandle::create(rawHandle, true); in increment()
533 using Signature = status_t (ISafeInterfaceTest::*)(const sp<NativeHandle>&, in onTransact()
534 sp<NativeHandle>*) const; in onTransact()
724 sp<NativeHandle> a = NativeHandle::create(handle, true); in TEST_F()
726 sp<NativeHandle> aPlusOne; in TEST_F()
/frameworks/native/libs/gui/include/gui/
DIGraphicBufferConsumer.h37 class NativeHandle; variable
260 virtual status_t getSidebandStream(sp<NativeHandle>* outStream) const = 0;
DIGraphicBufferProducer.h45 class NativeHandle; variable
528 virtual status_t setSidebandStream(const sp<NativeHandle>& stream) = 0;
DBufferHubConsumer.h87 status_t getSidebandStream(sp<NativeHandle>* outStream) const override;
DBufferQueueConsumer.h143 status_t getSidebandStream(sp<NativeHandle>* outStream) const override;
/frameworks/native/services/surfaceflinger/
DMonitoredProducer.h25 class NativeHandle; variable
57 virtual status_t setSidebandStream(const sp<NativeHandle>& stream);
/frameworks/native/libs/ui/
DBufferHubBuffer.cpp50 std::unique_ptr<BufferHubBuffer> BufferHubBuffer::import(const sp<NativeHandle>& token) { in import()
107 BufferHubBuffer::BufferHubBuffer(const sp<NativeHandle>& token) { in BufferHubBuffer()
330 sp<NativeHandle> BufferHubBuffer::duplicate() { in duplicate()
354 return NativeHandle::create(native_handle_clone(token.getNativeHandle()), /*ownsHandle=*/true); in duplicate()
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/
DLayerFECompositionState.h93 sp<NativeHandle> sidebandStream;
/frameworks/av/media/libstagefright/omx/include/media/stagefright/omx/
DOMXNodeInstance.h78 void **buffer_data, sp<NativeHandle> *native_handle);
226 IOMX::buffer_id buffer, const sp<NativeHandle> &nativeHandle,
276 OMX_U32 portIndex, const sp<NativeHandle> &nativeHandle,
/frameworks/av/media/libstagefright/
DBufferImpl.cpp52 const sp<AMessage> &format, const sp<NativeHandle> &handle, size_t size) in SecureBuffer()
/frameworks/native/services/surfaceflinger/tests/unittests/mock/gui/
DMockGraphicBufferConsumer.h49 MOCK_CONST_METHOD1(getSidebandStream, status_t(sp<NativeHandle>*));
DMockGraphicBufferProducer.h47 MOCK_METHOD1(setSidebandStream, status_t(const sp<NativeHandle>&));
/frameworks/native/libs/gui/
DBufferHubConsumer.cpp134 status_t BufferHubConsumer::getSidebandStream(sp<NativeHandle>* /*outStream*/) const { in getSidebandStream()
/frameworks/av/media/libmedia/omx/1.0/
DWOmxNode.cpp142 void **buffer_data, sp<NativeHandle> *native_handle) { in allocateSecureBuffer()
155 nullptr : NativeHandle::create( in allocateSecureBuffer()
347 sp<NativeHandle> nativeHandle; in allocateSecureBuffer()
/frameworks/av/media/libstagefright/omx/1.0/
DWOmxNode.cpp145 void **buffer_data, sp<NativeHandle> *native_handle) { in allocateSecureBuffer()
158 nullptr : NativeHandle::create( in allocateSecureBuffer()
350 sp<NativeHandle> nativeHandle; in allocateSecureBuffer()

123