Home
last modified time | relevance | path

Searched refs:nativeHandle (Results 1 – 19 of 19) sorted by relevance

/frameworks/base/core/java/android/nfc/
DINfcTag.aidl28 int connect(int nativeHandle, int technology); in connect() argument
29 int reconnect(int nativeHandle); in reconnect() argument
30 int[] getTechList(int nativeHandle); in getTechList() argument
31 boolean isNdef(int nativeHandle); in isNdef() argument
32 boolean isPresent(int nativeHandle); in isPresent() argument
33 TransceiveResult transceive(int nativeHandle, in byte[] data, boolean raw); in transceive() argument
35 NdefMessage ndefRead(int nativeHandle); in ndefRead() argument
36 int ndefWrite(int nativeHandle, in NdefMessage msg); in ndefWrite() argument
37 int ndefMakeReadOnly(int nativeHandle); in ndefMakeReadOnly() argument
38 boolean ndefIsWritable(int nativeHandle); in ndefIsWritable() argument
[all …]
DINfcAdapter.aidl60 boolean ignore(int nativeHandle, int debounceMs, ITagRemovedCallback callback); in ignore() argument
/frameworks/base/core/jni/
Dandroid_util_jar_StrictJarFile.cpp95 jlong StrictJarFile_nativeStartIteration(JNIEnv* env, jobject, jlong nativeHandle, in StrictJarFile_nativeStartIteration() argument
105 error = StartIteration(reinterpret_cast<ZipArchiveHandle>(nativeHandle), in StrictJarFile_nativeStartIteration()
109 error = StartIteration(reinterpret_cast<ZipArchiveHandle>(nativeHandle), in StrictJarFile_nativeStartIteration()
140 jobject StrictJarFile_nativeFindEntry(JNIEnv* env, jobject, jlong nativeHandle, in StrictJarFile_nativeFindEntry() argument
148 const int32_t error = FindEntry(reinterpret_cast<ZipArchiveHandle>(nativeHandle), in StrictJarFile_nativeFindEntry()
157 void StrictJarFile_nativeClose(JNIEnv*, jobject, jlong nativeHandle) { in StrictJarFile_nativeClose() argument
158 CloseArchive(reinterpret_cast<ZipArchiveHandle>(nativeHandle)); in StrictJarFile_nativeClose()
Dandroid_hardware_SensorManager.cpp237 const native_handle_t *nativeHandle = nullptr; in nativeCreateDirectChannel() local
243 nativeHandle = handle; in nativeCreateDirectChannel()
248 nativeHandle = AHardwareBuffer_getNativeHandle(hardwareBuffer); in nativeCreateDirectChannel()
252 if (nativeHandle == nullptr) { in nativeCreateDirectChannel()
257 return mgr->createDirectChannel(size, channelType, nativeHandle); in nativeCreateDirectChannel()
Dandroid_os_HwBlob.cpp483 std::unique_ptr<native_handle_t, int(*)(native_handle_t*)> nativeHandle( in JHwBlob_native_putNativeHandle() local
488 if (nativeHandle != nullptr) { in JHwBlob_native_putNativeHandle()
489 size = sizeof(native_handle_t) + nativeHandle->numFds * sizeof(int) in JHwBlob_native_putNativeHandle()
490 + nativeHandle->numInts * sizeof(int); in JHwBlob_native_putNativeHandle()
496 subBlob->write(0 /* offset */, nativeHandle.get(), size); in JHwBlob_native_putNativeHandle()
/frameworks/base/core/java/android/util/jar/
DStrictJarFile.java50 private final long nativeHandle; field in StrictJarFile
105 this.nativeHandle = nativeOpenJarFile(name, fd.getInt$()); in StrictJarFile()
135 nativeClose(this.nativeHandle); in StrictJarFile()
149 return new EntryIterator(nativeHandle, ""); in iterator()
153 return nativeFindEntry(nativeHandle, name); in findEntry()
228 nativeClose(nativeHandle); in close()
263 EntryIterator(long nativeHandle, String prefix) throws IOException { in EntryIterator() argument
264 iterationHandle = nativeStartIteration(nativeHandle, prefix); in EntryIterator()
299 Iterator<ZipEntry> entryIterator = new EntryIterator(nativeHandle, "META-INF/"); in getMetaEntries()
497 private static native long nativeStartIteration(long nativeHandle, String prefix); in nativeStartIteration() argument
[all …]
/frameworks/av/media/libmedia/include/media/omx/1.0/
DConversion.h614 t->nativeHandle = hidl_handle(l.handle); in wrapAs()
630 if (t.nativeHandle != nullptr) { in convertTo()
631 handle = native_handle_clone(t.nativeHandle); in convertTo()
634 t.nativeHandle->numFds, in convertTo()
635 (t.nativeHandle->numFds > 0) ? t.nativeHandle->data[0] : -1, in convertTo()
636 (t.nativeHandle->numFds > 1) ? t.nativeHandle->data[1] : -1); in convertTo()
688 t->nativeHandle = hidl_handle(); in wrapAs()
727 t->nativeHandle = l.mGraphicBuffer->handle; in wrapAs()
732 t->nativeHandle = l.mNativeHandle->handle(); in wrapAs()
764 if (t.nativeHandle.getNativeHandle() == nullptr) { in convertTo()
[all …]
/frameworks/hardware/interfaces/bufferhub/1.0/
DIBufferHub.hal42 * @param nativeHandle Handle received from allocateBuffer.
46 * the nativeHandle passed in.
49 importBuffer(handle nativeHandle)
/frameworks/av/media/libstagefright/omx/include/media/stagefright/omx/1.0/
DConversion.h413 t->nativeHandle = hidl_handle(); in wrapAs()
431 t->nativeHandle = graphicBuffer->handle; in wrapAs()
445 t->nativeHandle = hidl_handle(); in wrapAs()
472 t->nativeHandle = l.mNativeHandle->handle(); in wrapAs()
504 if (t.nativeHandle.getNativeHandle() == nullptr) { in convertTo()
509 anwBuffer.nativeHandle = t.nativeHandle; in convertTo()
521 native_handle_clone(t.nativeHandle), true)); in convertTo()
/frameworks/av/media/codec2/sfplugin/
DC2OMXNode.cpp298 void **bufferData, sp<NativeHandle> *nativeHandle) { in allocateSecureBuffer() argument
301 (void)nativeHandle; in allocateSecureBuffer()
358 native_handle_t *nativeHandle = reinterpret_cast<native_handle_t*>(handle); in emptyBuffer() local
359 fd0.reset(nativeHandle->numFds > 0 ? nativeHandle->data[0] : -1); in emptyBuffer()
360 fd1.reset(nativeHandle->numFds > 1 ? nativeHandle->data[1] : -1); in emptyBuffer()
/frameworks/native/libs/sensor/
DSensorManager.cpp276 int nativeHandle = mDirectConnectionHandle++; in createDirectChannel() local
277 mDirectConnection.emplace(nativeHandle, conn); in createDirectChannel()
278 return nativeHandle; in createDirectChannel()
/frameworks/av/media/libmedia/omx/1.0/
DWOmxNode.cpp347 sp<NativeHandle> nativeHandle; in allocateSecureBuffer() local
353 &nativeHandle)); in allocateSecureBuffer()
354 _hidl_cb(status, buffer, nativeHandle == nullptr ? in allocateSecureBuffer()
355 nullptr : nativeHandle->handle()); in allocateSecureBuffer()
/frameworks/av/media/libstagefright/omx/1.0/
DWOmxNode.cpp350 sp<NativeHandle> nativeHandle; in allocateSecureBuffer() local
356 &nativeHandle)); in allocateSecureBuffer()
357 _hidl_cb(status, buffer, nativeHandle == nullptr ? in allocateSecureBuffer()
358 nullptr : nativeHandle->handle()); in allocateSecureBuffer()
/frameworks/av/media/codec2/vndk/
Dtypes.cpp273 to->nativeHandle.setTo( in b2h()
291 native_handle_t const* handle = from.nativeHandle; in h2b()
/frameworks/native/libs/gui/bufferqueue/2.0/
Dtypes.cpp266 to->nativeHandle.setTo( in b2h()
284 native_handle_t const* handle = from.nativeHandle; in h2b()
/frameworks/av/media/libstagefright/omx/include/media/stagefright/omx/
DOMXNodeInstance.h226 IOMX::buffer_id buffer, const sp<NativeHandle> &nativeHandle,
276 OMX_U32 portIndex, const sp<NativeHandle> &nativeHandle,
/frameworks/av/media/libstagefright/omx/
DOMXNodeInstance.cpp175 void setNativeHandle(const sp<NativeHandle> &nativeHandle) { in setNativeHandle()
176 mNativeHandle = nativeHandle; in setNativeHandle()
1481 OMX_U32 portIndex, const sp<NativeHandle>& nativeHandle, in updateNativeHandleInMeta_l() argument
1495 bufferMeta->setNativeHandle(nativeHandle); in updateNativeHandleInMeta_l()
1501 nativeHandle == NULL ? NULL : const_cast<native_handle*>(nativeHandle->handle()); in updateNativeHandleInMeta_l()
1510 nativeHandle == NULL ? NULL : nativeHandle->handle()); in updateNativeHandleInMeta_l()
1995 IOMX::buffer_id buffer, const sp<NativeHandle> &nativeHandle, in emptyNativeHandleBuffer_l() argument
2004 kPortIndexInput, nativeHandle, buffer, header); in emptyNativeHandleBuffer_l()
2012 header->nFilledLen = (nativeHandle == NULL) ? 0 : sizeof(VideoNativeMetadata); in emptyNativeHandleBuffer_l()
/frameworks/native/libs/gui/bufferqueue/1.0/
DH2BGraphicBufferProducer.cpp138 t->nativeHandle = hidl_handle(l.handle); in wrapAs()
152 native_handle_t* handle = t.nativeHandle == nullptr ? in convertTo()
153 nullptr : native_handle_clone(t.nativeHandle); in convertTo()
DConversion.cpp204 t->nativeHandle = hidl_handle(l.handle); in wrapAs()
218 native_handle_t* handle = t.nativeHandle == nullptr ? in convertTo()
219 nullptr : native_handle_clone(t.nativeHandle); in convertTo()