Home
last modified time | relevance | path

Searched refs:getFd (Results 1 – 25 of 65) sorted by relevance

123

/frameworks/base/native/android/
Dsharedmem.cpp32 jmethodID getFd; member
43 sSharedMemory.getFd = env->GetMethodID(sSharedMemory.clazz, "getFd", "()I"); in jniInit()
44 LOG_ALWAYS_FATAL_IF(sSharedMemory.getFd == nullptr, in jniInit()
74 int fd = env->CallIntMethod(javaSharedMemory, sSharedMemory.getFd); in ASharedMemory_dupFromJava()
Dsensor.cpp116 ALooper_addFd(looper, queue->getFd(), ident, ALOOPER_EVENT_INPUT, callback, data); in ASensorManager_createEventQueue()
129 ALooper_removeFd(q->looper, q->getFd()); in ASensorManager_destroyEventQueue()
256 pfd.fd = static_cast<SensorEventQueue*>(queue)->getFd(); in ASensorEventQueue_hasEvents()
/frameworks/native/libs/sensor/
DSensorEventQueue.cpp55 int SensorEventQueue::getFd() const in getFd() function in android::SensorEventQueue
57 return mSensorChannel->getFd(); in getFd()
88 mLooper->addFd(getFd(), getFd(), ALOOPER_EVENT_INPUT, nullptr, nullptr); in getLooper()
95 const int fd = getFd(); in waitForEvent()
159 ssize_t size = ::send(mSensorChannel->getFd(), &event, sizeof(event), MSG_NOSIGNAL); in injectSensorEvent()
181 ssize_t size = ::send(mSensorChannel->getFd(), &mNumAcksToSend, sizeof(mNumAcksToSend), in sendAck()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/util/
DBitmapSerializeUtils.java44 nativeReadBitmapPixels(bitmap, source.getFd()); in readBitmapPixels()
54 nativeWriteBitmapPixels(bitmap, destination.getFd()); in writeBitmapPixels()
/frameworks/native/libs/gui/
DDisplayEventDispatcher.cpp51 int rc = mLooper->addFd(mReceiver.getFd(), 0, Looper::EVENT_INPUT, this, NULL); in initialize()
64 mLooper->removeFd(mReceiver.getFd()); in dispose()
97 int DisplayEventDispatcher::getFd() const { in getFd() function in android::DisplayEventDispatcher
98 return mReceiver.getFd(); in getFd()
DDisplayEventReceiver.cpp57 int DisplayEventReceiver::getFd() const { in getFd() function in android::DisplayEventReceiver
61 return mDataChannel->getFd(); in getFd()
/frameworks/native/services/displayservice/
DDisplayEventReceiver.cpp50 mLooperAttached = getLooper()->addFd(mFwkReceiver.getFd(), in AttachedEvent()
68 return getLooper()->removeFd(mFwkReceiver.getFd()); in detach()
80 CHECK(fd == mFwkReceiver.getFd()); in handleEvent()
/frameworks/native/services/sensorservice/hidl/
DEventQueue.cpp66 mLooper->addFd(internalQueue->getFd(), ALOOPER_POLL_CALLBACK, ALOOPER_EVENT_INPUT, in EventQueue()
72 mLooper->removeFd(mInternalQueue->getFd()); in onLastStrongRef()
/frameworks/native/services/surfaceflinger/Scheduler/
DMessageQueue.cpp79 if (const int fd = tube.getFd(); fd >= 0) { in setInjector()
86 if (tube.getFd() < 0) { in setInjector()
93 tube.getFd(), 0, Looper::EVENT_INPUT, in setInjector()
/frameworks/base/cmds/incidentd/src/
DPrivacyFilter.h47 int getFd() { return mFd;} in getFd() function
DPrivacyFilter.cpp297 err = write_section_header(output->getFd(), mSectionId, dataSize); in writeData()
303 err = fieldStripper.writeData(output->getFd()); in writeData()
DReporter.cpp193 int ReportRequest::getFd() { in getFd() function in android::os::incidentd::ReportRequest
510 request->getFd(), request)); in writeSection()
628 write_header_section(request->getFd(), buf->data(), buf->size()); in runReport()
678 status_t nonFatalErr = write_section(request->getFd(), FIELD_ID_METADATA, in runReport()
/frameworks/base/media/java/android/mtp/
DMtpDevice.java355 return native_import_file(objectHandle, descriptor.getFd()); in importFile()
371 return native_send_object(objectHandle, size, descriptor.getFd()); in sendObject()
/frameworks/native/services/surfaceflinger/tests/vsync/
Dvsync.cpp60 loop->addFd(myDisplayEvent.getFd(), 0, ALOOPER_EVENT_INPUT, receiver, in main()
/frameworks/native/services/inputflinger/reader/include/
DTouchVideoDevice.h47 int getFd() const { return mFd.get(); } in getFd() function
/frameworks/native/libs/sensor/include/sensor/
DBitTube.h46 int getFd() const;
DSensorEventQueue.h72 int getFd() const;
/frameworks/base/graphics/java/android/graphics/pdf/
DPdfEditor.java83 mNativeDocument = nativeOpen(mInput.getFd(), size); in PdfEditor()
259 nativeWrite(mNativeDocument, output.getFd()); in write()
/frameworks/base/libs/services/include/android/os/
DDropBoxManager.h74 const unique_fd& getFd() const;
/frameworks/native/libs/gui/include/gui/
DDisplayEventDispatcher.h49 int getFd() const;
DDisplayEventReceiver.h134 int getFd() const;
/frameworks/native/libs/gui/include/private/gui/
DBitTube.h50 int getFd() const;
/frameworks/base/core/jni/
Dcom_android_internal_os_ZygoteCommandBuffer.cpp233 int getFd() const { in getFd() function in android::NativeCommandBuffer
378 int session_socket = n_buffer->getFd(); in com_android_internal_os_ZygoteCommandBuffer_nativeForkRepeatedly()
403 if (getsockopt(n_buffer->getFd(), SOL_SOCKET, SO_PEERCRED, &credentials, &cred_size) == -1 in com_android_internal_os_ZygoteCommandBuffer_nativeForkRepeatedly()
/frameworks/base/libs/hwui/tests/common/
DTestContext.cpp68 mLooper->addFd(mDisplayEventReceiver.getFd(), EVENT_ID, Looper::EVENT_INPUT, nullptr, nullptr); in TestContext()
/frameworks/native/services/sensorservice/tests/
Dsensorservicetest.cpp117 loop->addFd(q->getFd(), 0, ALOOPER_EVENT_INPUT, receiver, q.get()); in main()

123