Home
last modified time | relevance | path

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

1234

/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()
DHidlMemory.java48 private @Nullable NativeHandle mHandle;
61 @Nullable NativeHandle handle) { in HidlMemory()
93 public NativeHandle releaseHandle() { in releaseHandle()
94 NativeHandle handle = mHandle; in releaseHandle()
125 public NativeHandle getHandle() { in getHandle()
DHwParcel.java142 public native final void writeNativeHandle(@Nullable NativeHandle val); in writeNativeHandle()
203 private native final void writeNativeHandleVector(NativeHandle[] val); in writeNativeHandleVector()
315 public final void writeNativeHandleVector(@NonNull ArrayList<NativeHandle> val) { in writeNativeHandleVector()
316 writeNativeHandleVector(val.toArray(new NativeHandle[val.size()])); in writeNativeHandleVector()
409 public native final @Nullable NativeHandle readNativeHandle(); in readNativeHandle()
423 public native final @Nullable NativeHandle readEmbeddedNativeHandle( in readEmbeddedNativeHandle()
488 private native final NativeHandle[] readNativeHandleAsArray(); in readNativeHandleAsArray()
581 public final @NonNull ArrayList<NativeHandle> readNativeHandleVector() { in readNativeHandleVector()
582 return new ArrayList<NativeHandle>(Arrays.asList(readNativeHandleAsArray())); in readNativeHandleVector()
DHidlMemoryUtil.java85 NativeHandle handle = new NativeHandle(shmem.getFileDescriptor(), true); in byteArrayToHidlMemory()
131 NativeHandle handle = new NativeHandle(shmem.getFileDescriptor(), true); in byteListToHidlMemory()
200 NativeHandle handle = mem.getHandle(); in getBuffer()
/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/media/libmedia/
DOMXBuffer.cpp59 OMXBuffer::OMXBuffer(const sp<NativeHandle> &handle) in OMXBuffer()
160 sp<NativeHandle> handle = NativeHandle::create( in readFromParcel()
/frameworks/base/packages/Tethering/src/com/android/networkstack/tethering/
DOffloadHardwareInterface.java35 import android.os.NativeHandle;
176 public NativeHandle createConntrackSocket(final int groups) { in createConntrackSocket()
209 return new NativeHandle(fd, true); in createConntrackSocket()
236 final NativeHandle h1 = mDeps.createConntrackSocket( in initOffloadConfig()
243 final NativeHandle h2 = mDeps.createConntrackSocket( in initOffloadConfig()
270 public void sendNetlinkMessage(@NonNull NativeHandle handle, short type, short flags) { in sendNetlinkMessage()
288 private void closeFdInNativeHandle(final NativeHandle h) { in closeFdInNativeHandle()
/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;
/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/
DMonitoredProducer.h25 class NativeHandle; variable
57 virtual status_t setSidebandStream(const sp<NativeHandle>& stream);
/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/base/packages/Tethering/tests/unit/src/com/android/networkstack/tethering/
DOffloadHardwareInterfaceTest.java41 import android.os.NativeHandle;
75 @Mock private NativeHandle mNativeHandle;
97 public NativeHandle createConntrackSocket(final int groups) { in createConntrackSocket()
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/
DLayerFECompositionState.h93 sp<NativeHandle> sidebandStream;
/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/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()

1234