Home
last modified time | relevance | path

Searched refs:nh (Results 1 – 12 of 12) sorted by relevance

/frameworks/native/libs/gui/bufferqueue/1.0/
DH2BGraphicBufferProducer.cpp61 native_handle_t* nh = native_handle_create(1, 0); in native_handle_create_from_fd() local
62 if (nh == nullptr) { in native_handle_create_from_fd()
65 nh->data[0] = fd; in native_handle_create_from_fd()
66 return nh; in native_handle_create_from_fd()
80 inline int native_handle_read_fd(native_handle_t const* nh, int index = 0) { in native_handle_read_fd() argument
81 return ((nh == nullptr) || (nh->numFds == 0) || in native_handle_read_fd()
82 (nh->numFds <= index) || (index < 0)) ? in native_handle_read_fd()
83 -1 : nh->data[index]; in native_handle_read_fd()
230 inline status_t unflattenFence(hidl_handle* fence, native_handle_t** nh, in unflattenFence() argument
248 *nh = native_handle_create_from_fd(*fds); in unflattenFence()
[all …]
/frameworks/av/media/libstagefright/omx/1.0/
DWGraphicBufferProducer.cpp75 native_handle_t* nh = nullptr; in dequeueBuffer() local
76 if ((fence == nullptr) || !wrapAs(&tFence, &nh, *fence)) { in dequeueBuffer()
93 native_handle_delete(nh); in dequeueBuffer()
101 native_handle_delete(nh); in dequeueBuffer()
131 native_handle_t* nh = nullptr; in detachNextBuffer() local
132 if ((outFence != nullptr) && !wrapAs(&tFence, &nh, *outFence)) { in detachNextBuffer()
140 native_handle_delete(nh); in detachNextBuffer()
190 for (auto& nh : nhA) { in queueBuffer() local
191 native_handle_delete(nh); in queueBuffer()
237 for (auto& nh : nhA) { in connect() local
[all …]
DWOmxNode.cpp238 native_handle_t* nh; in dispatchMessage() local
239 if (!wrapAs(&tMsg, &nh, lMsg)) { in dispatchMessage()
243 native_handle_close(nh); in dispatchMessage()
244 native_handle_delete(nh); in dispatchMessage()
/frameworks/av/media/libstagefright/omx/include/media/stagefright/omx/1.0/
DConversion.h123 native_handle_t* nh = native_handle_create(1, 0); in native_handle_create_from_fd() local
124 if (nh == nullptr) { in native_handle_create_from_fd()
127 nh->data[0] = fd; in native_handle_create_from_fd()
128 return nh; in native_handle_create_from_fd()
142 inline int native_handle_read_fd(native_handle_t const* nh, int index = 0) {
143 return ((nh == nullptr) || (nh->numFds == 0) ||
144 (nh->numFds <= index) || (index < 0)) ?
145 -1 : nh->data[index];
254 inline hidl_handle inHidlHandle(native_handle_t const* nh) { in inHidlHandle() argument
255 return hidl_handle(nh); in inHidlHandle()
[all …]
/frameworks/av/media/libmedia/include/media/omx/1.0/
DConversion.h117 native_handle_t* nh = native_handle_create(1, 0); in native_handle_create_from_fd() local
118 if (nh == nullptr) { in native_handle_create_from_fd()
121 nh->data[0] = fd; in native_handle_create_from_fd()
122 return nh; in native_handle_create_from_fd()
136 inline int native_handle_read_fd(native_handle_t const* nh, int index = 0) {
137 return ((nh == nullptr) || (nh->numFds == 0) ||
138 (nh->numFds <= index) || (index < 0)) ?
139 -1 : nh->data[index];
261 inline hidl_handle inHidlHandle(native_handle_t const* nh) { in inHidlHandle() argument
262 return hidl_handle(nh); in inHidlHandle()
[all …]
/frameworks/base/services/core/jni/
Dcom_android_server_connectivity_tethering_OffloadHardwareInterface.cpp79 native_handle_t *nh = native_handle_create(kNumFds, kNumInts); in handleFromFileDescriptor() local
80 nh->data[0] = fd.release(); in handleFromFileDescriptor()
83 h.setTo(nh, kTakeOwnership); in handleFromFileDescriptor()
/frameworks/av/services/camera/libcameraservice/device1/
DCameraHardwareInterface.cpp583 native_handle_t* nh = md->pHandle; in releaseRecordingFrame() local
584 hidl_handle frame = nh; in releaseRecordingFrame()
586 native_handle_close(nh); in releaseRecordingFrame()
587 native_handle_delete(nh); in releaseRecordingFrame()
610 native_handle_t* nh = md->pHandle; in releaseRecordingFrameBatch() local
612 msgs.push_back({nh, heapId, bufferIndex}); in releaseRecordingFrameBatch()
623 native_handle_t* nh = const_cast<native_handle_t*>(msg.frameData.getNativeHandle()); in releaseRecordingFrameBatch() local
624 native_handle_close(nh); in releaseRecordingFrameBatch()
625 native_handle_delete(nh); in releaseRecordingFrameBatch()
/frameworks/av/media/libmedia/omx/1.0/
DWOmxNode.cpp235 native_handle_t* nh; in dispatchMessage() local
236 if (!wrapAs(&tMsg, &nh, lMsg)) { in dispatchMessage()
240 native_handle_close(nh); in dispatchMessage()
241 native_handle_delete(nh); in dispatchMessage()
/frameworks/native/libs/binder/include/binder/
DSafeInterface.h95 const Parcel& parcel, NH* nh) { in read() argument
96 *nh = NativeHandle::create(parcel.readNativeHandle(), true); in read()
101 Parcel* parcel, const NH& nh) { in write() argument
103 [&]() { return parcel->writeNativeHandle(nh->handle()); }); in write()
/frameworks/base/core/java/android/text/
DLayout.java2132 float nh = Float.MAX_VALUE;
2149 if (where < nh && where > h)
2150 nh = where;
2153 if (nh != Float.MAX_VALUE)
2154 return nh;
/frameworks/base/services/core/java/com/android/server/pm/
DShortcutService.java1428 final int nh = oh * maxSize / longerDimension; in shrinkBitmap() local
1431 ow, oh, nw, nh)); in shrinkBitmap()
1434 final Bitmap scaledBitmap = Bitmap.createBitmap(nw, nh, Bitmap.Config.ARGB_8888); in shrinkBitmap()
1437 final RectF dst = new RectF(0, 0, nw, nh); in shrinkBitmap()
/frameworks/base/media/tests/contents/media_api/music/
Dtest_amr_ietf.amr87 …��~E�<�vm%a�����U��,X�I�ˋ�� Z�2�<������멸��-N7q:�h��Nc�S�}P<Drm�L2��/�nh����p�~ ����D�<�pdE��…