/frameworks/base/core/java/android/os/ |
D | NativeHandle.java | 37 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()
|
D | HidlMemory.java | 48 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()
|
D | HwParcel.java | 142 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()
|
D | HidlMemoryUtil.java | 85 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/ |
D | SecureBuffer.h | 26 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/ |
D | BufferHubBuffer.h | 38 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/ |
D | OMXBuffer.h | 50 class NativeHandle; variable 81 OMXBuffer(const sp<NativeHandle> &handle); 134 sp<NativeHandle> mNativeHandle;
|
D | IOMX.h | 44 class NativeHandle; variable 135 void **buffer_data, sp<NativeHandle> *native_handle) = 0;
|
/frameworks/av/media/libmedia/ |
D | OMXBuffer.cpp | 59 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/ |
D | OffloadHardwareInterface.java | 35 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/ |
D | BufferHubBuffer_test.cpp | 111 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/ |
D | binderSafeInterfaceTest.cpp | 252 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/ |
D | IGraphicBufferConsumer.h | 37 class NativeHandle; variable 260 virtual status_t getSidebandStream(sp<NativeHandle>* outStream) const = 0;
|
D | IGraphicBufferProducer.h | 45 class NativeHandle; variable 528 virtual status_t setSidebandStream(const sp<NativeHandle>& stream) = 0;
|
D | BufferHubConsumer.h | 87 status_t getSidebandStream(sp<NativeHandle>* outStream) const override;
|
/frameworks/native/libs/ui/ |
D | BufferHubBuffer.cpp | 50 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/ |
D | MonitoredProducer.h | 25 class NativeHandle; variable 57 virtual status_t setSidebandStream(const sp<NativeHandle>& stream);
|
/frameworks/av/media/libstagefright/omx/include/media/stagefright/omx/ |
D | OMXNodeInstance.h | 78 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/ |
D | OffloadHardwareInterfaceTest.java | 41 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/ |
D | LayerFECompositionState.h | 93 sp<NativeHandle> sidebandStream;
|
/frameworks/av/media/libstagefright/ |
D | BufferImpl.cpp | 52 const sp<AMessage> &format, const sp<NativeHandle> &handle, size_t size) in SecureBuffer()
|
/frameworks/native/services/surfaceflinger/tests/unittests/mock/gui/ |
D | MockGraphicBufferConsumer.h | 49 MOCK_CONST_METHOD1(getSidebandStream, status_t(sp<NativeHandle>*));
|
D | MockGraphicBufferProducer.h | 47 MOCK_METHOD1(setSidebandStream, status_t(const sp<NativeHandle>&));
|
/frameworks/av/media/libmedia/omx/1.0/ |
D | WOmxNode.cpp | 142 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/ |
D | WOmxNode.cpp | 145 void **buffer_data, sp<NativeHandle> *native_handle) { in allocateSecureBuffer() 158 nullptr : NativeHandle::create( in allocateSecureBuffer() 350 sp<NativeHandle> nativeHandle; in allocateSecureBuffer()
|