Home
last modified time | relevance | path

Searched refs:nativeHandle (Results 1 – 21 of 21) 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.aidl61 boolean ignore(int nativeHandle, int debounceMs, ITagRemovedCallback callback); in ignore() argument
/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/base/core/jni/
Dandroid_util_jar_StrictJarFile.cpp95 jlong StrictJarFile_nativeStartIteration(JNIEnv* env, jobject, jlong nativeHandle, in StrictJarFile_nativeStartIteration() argument
103 int32_t error = StartIteration(reinterpret_cast<ZipArchiveHandle>(nativeHandle), in StrictJarFile_nativeStartIteration()
129 jobject StrictJarFile_nativeFindEntry(JNIEnv* env, jobject, jlong nativeHandle, in StrictJarFile_nativeFindEntry() argument
137 const int32_t error = FindEntry(reinterpret_cast<ZipArchiveHandle>(nativeHandle), in StrictJarFile_nativeFindEntry()
146 void StrictJarFile_nativeClose(JNIEnv*, jobject, jlong nativeHandle) { in StrictJarFile_nativeClose() argument
147 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.cpp501 std::unique_ptr<native_handle_t, int(*)(native_handle_t*)> nativeHandle( in JHwBlob_native_putNativeHandle() local
506 if (nativeHandle != nullptr) { in JHwBlob_native_putNativeHandle()
507 size = sizeof(native_handle_t) + nativeHandle->numFds * sizeof(int) in JHwBlob_native_putNativeHandle()
508 + nativeHandle->numInts * sizeof(int); in JHwBlob_native_putNativeHandle()
514 subBlob->write(0 /* offset */, nativeHandle.get(), size); in JHwBlob_native_putNativeHandle()
/frameworks/av/media/libmedia/include/media/omx/1.0/
DConversion.h613 t->nativeHandle = hidl_handle(l.handle); in wrapAs()
629 if (t.nativeHandle != nullptr) { in convertTo()
630 handle = native_handle_clone(t.nativeHandle); in convertTo()
633 t.nativeHandle->numFds, in convertTo()
634 (t.nativeHandle->numFds > 0) ? t.nativeHandle->data[0] : -1, in convertTo()
635 (t.nativeHandle->numFds > 1) ? t.nativeHandle->data[1] : -1); in convertTo()
687 t->nativeHandle = hidl_handle(); in wrapAs()
726 t->nativeHandle = l.mGraphicBuffer->handle; in wrapAs()
731 t->nativeHandle = l.mNativeHandle->handle(); in wrapAs()
763 if (t.nativeHandle.getNativeHandle() == nullptr) { in convertTo()
[all …]
/frameworks/base/core/java/android/os/
DSystemProperties.java335 long nativeHandle = native_find(name); in find() local
336 if (nativeHandle == 0) { in find()
339 return new Handle(nativeHandle); in find()
379 private Handle(long nativeHandle) { in Handle() argument
380 mNativeHandle = nativeHandle; in Handle()
/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.h412 t->nativeHandle = hidl_handle(); in wrapAs()
430 t->nativeHandle = graphicBuffer->handle; in wrapAs()
444 t->nativeHandle = hidl_handle(); in wrapAs()
471 t->nativeHandle = l.mNativeHandle->handle(); in wrapAs()
503 if (t.nativeHandle.getNativeHandle() == nullptr) { in convertTo()
508 anwBuffer.nativeHandle = t.nativeHandle; in convertTo()
520 native_handle_clone(t.nativeHandle), true)); in convertTo()
/frameworks/av/media/codec2/sfplugin/
DC2OMXNode.cpp358 void **bufferData, sp<NativeHandle> *nativeHandle) { in allocateSecureBuffer() argument
361 (void)nativeHandle; in allocateSecureBuffer()
418 native_handle_t *nativeHandle = reinterpret_cast<native_handle_t*>(handle); in emptyBuffer() local
419 fd0.reset(nativeHandle->numFds > 0 ? nativeHandle->data[0] : -1); in emptyBuffer()
420 fd1.reset(nativeHandle->numFds > 1 ? nativeHandle->data[1] : -1); in emptyBuffer()
/frameworks/native/libs/sensor/
DSensorManager.cpp277 int nativeHandle = mDirectConnectionHandle++; in createDirectChannel() local
278 mDirectConnection.emplace(nativeHandle, conn); in createDirectChannel()
279 return nativeHandle; in createDirectChannel()
/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/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/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.cpp177 void setNativeHandle(const sp<NativeHandle> &nativeHandle) { in setNativeHandle()
178 mNativeHandle = nativeHandle; in setNativeHandle()
1570 OMX_U32 portIndex, const sp<NativeHandle>& nativeHandle, in updateNativeHandleInMeta_l() argument
1584 bufferMeta->setNativeHandle(nativeHandle); in updateNativeHandleInMeta_l()
1590 nativeHandle == NULL ? NULL : const_cast<native_handle*>(nativeHandle->handle()); in updateNativeHandleInMeta_l()
1599 nativeHandle == NULL ? NULL : nativeHandle->handle()); in updateNativeHandleInMeta_l()
2084 IOMX::buffer_id buffer, const sp<NativeHandle> &nativeHandle, in emptyNativeHandleBuffer_l() argument
2093 kPortIndexInput, nativeHandle, buffer, header); in emptyNativeHandleBuffer_l()
2101 header->nFilledLen = (nativeHandle == NULL) ? 0 : sizeof(VideoNativeMetadata); in emptyNativeHandleBuffer_l()
/frameworks/native/libs/gui/bufferqueue/1.0/
DConversion.cpp190 t->nativeHandle = hidl_handle(l.handle); in wrapAs()
204 native_handle_t* handle = t.nativeHandle == nullptr ? in convertTo()
205 nullptr : native_handle_clone(t.nativeHandle); in convertTo()
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()
/frameworks/av/media/codec2/hidl/1.0/vts/functional/video/
DVtsHalMediaC2V1_0TargetVideoDecTest.cpp536 sp<NativeHandle> nativeHandle = NativeHandle::create(sidebandStream, true); in TEST_P() local
561 ASSERT_EQ(producer->setSidebandStream(nativeHandle), NO_ERROR); in TEST_P()