Home
last modified time | relevance | path

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

123

/frameworks/base/native/android/
Dsharedmem.cpp30 jmethodID getFd; member
41 sSharedMemory.getFd = env->GetMethodID(sSharedMemory.clazz, "getFd", "()I"); in jniInit()
42 LOG_ALWAYS_FATAL_IF(sSharedMemory.getFd == nullptr, in jniInit()
72 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/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()
100 int DisplayEventDispatcher::getFd() const { in getFd() function in android::DisplayEventDispatcher
101 return mReceiver.getFd(); in getFd()
DDisplayEventReceiver.cpp56 int DisplayEventReceiver::getFd() const { in getFd() function in android::DisplayEventReceiver
60 return mDataChannel->getFd(); in getFd()
/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/services/surfaceflinger/Scheduler/
DMessageQueue.cpp71 if (mEventTube.getFd() >= 0) { in setEventConnection()
72 mLooper->removeFd(mEventTube.getFd()); in setEventConnection()
77 mLooper->addFd(mEventTube.getFd(), 0, Looper::EVENT_INPUT, MessageQueue::cb_eventReceiver, in setEventConnection()
/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/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/native/libs/gui/include/gui/
DDisplayEventDispatcher.h35 int getFd() const;
DDisplayEventReceiver.h118 int getFd() const;
/frameworks/base/media/java/android/mtp/
DMtpDevice.java343 return native_import_file(objectHandle, descriptor.getFd()); in importFile()
359 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/private/gui/
DBitTube.h50 int getFd() const;
/frameworks/base/core/jni/
Dandroid_view_InputEventSender.cpp97 int receiveFd = mInputPublisher.getChannel()->getFd(); in initialize()
107 mMessageQueue->getLooper()->removeFd(mInputPublisher.getChannel()->getFd()); in dispose()
/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