Home
last modified time | relevance | path

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

12345

/frameworks/base/core/java/android/os/
DNativeHandle.java35 public final class NativeHandle implements Closeable { class
45 public NativeHandle() { in NativeHandle() method in NativeHandle
53 public NativeHandle(@NonNull FileDescriptor descriptor, boolean own) { in NativeHandle() method in NativeHandle
78 private NativeHandle(@NonNull int[] fds, @NonNull int[] ints, boolean own) { in NativeHandle() method in NativeHandle
87 public NativeHandle(@NonNull FileDescriptor[] fds, @NonNull int[] ints, boolean own) { in NativeHandle() method in NativeHandle
111 public @NonNull NativeHandle dup() throws java.io.IOException { in dup()
123 return new NativeHandle(fds, mInts, true /*own*/); in dup()
DHidlMemory.java46 private @Nullable NativeHandle mHandle;
59 @Nullable NativeHandle handle) { in HidlMemory()
92 public NativeHandle releaseHandle() { in releaseHandle()
93 NativeHandle handle = mHandle; in releaseHandle()
124 public NativeHandle getHandle() { in getHandle()
DHwParcel.java141 public native final void writeNativeHandle(@Nullable NativeHandle val); in writeNativeHandle()
202 private native final void writeNativeHandleVector(NativeHandle[] val); in writeNativeHandleVector()
314 public final void writeNativeHandleVector(@NonNull ArrayList<NativeHandle> val) { in writeNativeHandleVector()
315 writeNativeHandleVector(val.toArray(new NativeHandle[val.size()])); in writeNativeHandleVector()
408 public native final @Nullable NativeHandle readNativeHandle(); in readNativeHandle()
422 public native final @Nullable NativeHandle readEmbeddedNativeHandle( in readEmbeddedNativeHandle()
487 private native final NativeHandle[] readNativeHandleAsArray(); in readNativeHandleAsArray()
580 public final @NonNull ArrayList<NativeHandle> readNativeHandleVector() { in readNativeHandleVector()
581 return new ArrayList<NativeHandle>(Arrays.asList(readNativeHandleAsArray())); in readNativeHandleVector()
DHidlMemoryUtil.java216 NativeHandle handle = new NativeHandle(Os.dup(fd), true); in fileDescriptorToHidlMemory()
231 NativeHandle handle = mem.getHandle(); in getBuffer()
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/face/aidl/
DAidlNativeHandleUtils.java42 public static @Nullable android.hardware.common.NativeHandle dup( in dup()
43 @Nullable android.os.NativeHandle handle) throws IOException { in dup()
47 android.hardware.common.NativeHandle res = new android.hardware.common.NativeHandle(); in dup()
67 public static void close(@Nullable android.hardware.common.NativeHandle handle) in close()
DTestHal.java27 import android.hardware.common.NativeHandle;
88 byte enrollmentType, byte[] features, NativeHandle previewSurface) { in createSession()
202 NativeHandle previewSurface, OperationContext context) { in createSession()
DFaceEnrollClient.java27 import android.hardware.common.NativeHandle;
68 @Nullable private android.os.NativeHandle mOsPreviewHandle;
69 @Nullable private NativeHandle mHwPreviewHandle;
/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/av/services/camera/libcameraservice/device3/aidl/
DAidlCamera3OutputUtils.h47 inline aidl::android::hardware::common::NativeHandle dupToAidlIfNotNull( in dupToAidlIfNotNull()
50 return aidl::android::hardware::common::NativeHandle(); in dupToAidlIfNotNull()
55 inline aidl::android::hardware::common::NativeHandle makeToAidlIfNotNull( in makeToAidlIfNotNull()
58 return aidl::android::hardware::common::NativeHandle(); in makeToAidlIfNotNull()
/frameworks/av/services/tuner/aidl/android/media/tv/tuner/
DITunerFilter.aidl21 import android.hardware.common.NativeHandle;
72 long getAvSharedHandle(out NativeHandle avMemory); in getAvSharedHandle()
77 void releaseAvHandle(in NativeHandle handle, in long avDataId); in releaseAvHandle()
/frameworks/hardware/interfaces/automotive/display/aidl/android/frameworks/automotive/display/
DICarDisplayProxy.aidl20 import android.hardware.common.NativeHandle;
59 NativeHandle getHGraphicBufferProducer(in long id); in getHGraphicBufferProducer()
/frameworks/av/media/libmedia/include/media/
DOMXBuffer.h50 class NativeHandle; variable
81 OMXBuffer(const sp<NativeHandle> &handle);
134 sp<NativeHandle> mNativeHandle;
DIOMX.h52 class NativeHandle; variable
143 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/services/surfaceflinger/tests/unittests/
DTunnelModeEnabledReporterTest.cpp159 sp<NativeHandle> stream = in TEST_F()
160 NativeHandle::create(reinterpret_cast<native_handle_t*>(DEFAULT_SIDEBAND_STREAM), in TEST_F()
183 sp<NativeHandle> stream = in TEST_F()
184 NativeHandle::create(reinterpret_cast<native_handle_t*>(DEFAULT_SIDEBAND_STREAM), in TEST_F()
/frameworks/av/services/tuner/
DTunerFilter.h32 using ::aidl::android::hardware::common::NativeHandle;
88 ::ndk::ScopedAStatus getAvSharedHandle(NativeHandle* out_avMemory,
90 ::ndk::ScopedAStatus releaseAvHandle(const NativeHandle& in_handle,
/frameworks/native/libs/binder/tests/
DbinderSafeInterfaceTest.cpp255 virtual status_t increment(const sp<NativeHandle>& a, sp<NativeHandle>* aPlusOne) const = 0;
313 status_t increment(const sp<NativeHandle>& a, sp<NativeHandle>* aPlusOne) const override { in increment()
316 status_t (ISafeInterfaceTest::*)(const sp<NativeHandle>&, sp<NativeHandle>*) const; in increment()
428 status_t increment(const sp<NativeHandle>& a, sp<NativeHandle>* aPlusOne) const override { in increment()
441 *aPlusOne = NativeHandle::create(rawHandle, true); in increment()
536 using Signature = status_t (ISafeInterfaceTest::*)(const sp<NativeHandle>&, in onTransact()
537 sp<NativeHandle>*) const; in onTransact()
700 sp<NativeHandle> a = NativeHandle::create(handle, true); in TEST_F()
702 sp<NativeHandle> aPlusOne; in TEST_F()
/frameworks/native/libs/gui/include/gui/
DIGraphicBufferConsumer.h37 class NativeHandle; variable
264 virtual status_t getSidebandStream(sp<NativeHandle>* outStream) const = 0;
/frameworks/native/services/surfaceflinger/
DMonitoredProducer.h25 class NativeHandle; variable
57 virtual status_t setSidebandStream(const sp<NativeHandle>& stream);
/frameworks/hardware/interfaces/automotive/display/aidl/aidl_api/android.frameworks.automotive.display/current/android/frameworks/automotive/display/
DICarDisplayProxy.aidl39 android.hardware.common.NativeHandle getHGraphicBufferProducer(in long id); in getHGraphicBufferProducer()
/frameworks/hardware/interfaces/automotive/display/aidl/aidl_api/android.frameworks.automotive.display/1/android/frameworks/automotive/display/
DICarDisplayProxy.aidl39 android.hardware.common.NativeHandle getHGraphicBufferProducer(in long id); in getHGraphicBufferProducer()
/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.cpp56 const sp<AMessage> &format, const sp<NativeHandle> &handle, size_t size) in SecureBuffer()
/frameworks/native/libs/gui/include/gui/mock/
DGraphicBufferConsumer.h49 MOCK_CONST_METHOD1(getSidebandStream, status_t(sp<NativeHandle>*));
/frameworks/av/services/camera/libcameraservice/device3/
DCamera3OutputUtilsTemplated.h107 inline bool isHandleNull(const aidl::android::hardware::common::NativeHandle &handle) { in isHandleNull()
115 inline size_t numFdsInHandle(const aidl::android::hardware::common::NativeHandle &handle) { in numFdsInHandle()
126 inline int32_t getHandleFirstFd(const aidl::android::hardware::common::NativeHandle &handle) { in getHandleFirstFd()

12345