Home
last modified time | relevance | path

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

123

/frameworks/native/services/surfaceflinger/Scheduler/
DMessageQueue.cpp94 if (mEventTube.getFd() >= 0) { in setEventThread()
95 mLooper->removeFd(mEventTube.getFd()); in setEventThread()
101 mLooper->addFd(mEventTube.getFd(), 0, Looper::EVENT_INPUT, MessageQueue::cb_eventReceiver, in setEventThread()
106 if (mEventTube.getFd() >= 0) { in setEventConnection()
107 mLooper->removeFd(mEventTube.getFd()); in setEventConnection()
112 mLooper->addFd(mEventTube.getFd(), 0, Looper::EVENT_INPUT, MessageQueue::cb_eventReceiver, in setEventConnection()
/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()
DBitTube.cpp95 int BitTube::getFd() const in getFd() function in android::BitTube
/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/
DDisplayEventReceiver.cpp55 int DisplayEventReceiver::getFd() const { in getFd() function in android::DisplayEventReceiver
59 return mDataChannel->getFd(); in getFd()
DBitTube.cpp73 int BitTube::getFd() const { in getFd() function in android::gui::BitTube
/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/libs/androidfw/
DDisplayEventDispatcher.cpp49 int rc = mLooper->addFd(mReceiver.getFd(), 0, Looper::EVENT_INPUT, in initialize()
61 mLooper->removeFd(mReceiver.getFd()); in dispose()
/frameworks/base/cmds/incidentd/src/
DPrivacyFilter.h47 int getFd() { return mFd;} in getFd() function
DPrivacyFilter.cpp291 err = write_section_header(output->getFd(), mSectionId, dataSize); in writeData()
297 err = fieldStripper.writeData(output->getFd()); in writeData()
/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.cpp56 loop->addFd(myDisplayEvent.getFd(), 0, ALOOPER_EVENT_INPUT, receiver, in main()
/frameworks/base/graphics/java/android/graphics/pdf/
DPdfEditor.java83 mNativeDocument = nativeOpen(mInput.getFd(), size); in PdfEditor()
259 nativeWrite(mNativeDocument, output.getFd()); in write()
/frameworks/native/libs/sensor/include/sensor/
DBitTube.h46 int getFd() const;
DSensorEventQueue.h72 int getFd() const;
/frameworks/native/services/inputflinger/
DTouchVideoDevice.h47 int getFd() const { return mFd.get(); } in getFd() function
/frameworks/native/libs/gui/include/gui/
DDisplayEventReceiver.h113 int getFd() const;
/frameworks/native/libs/gui/include/private/gui/
DBitTube.h50 int getFd() const;
/frameworks/base/libs/services/include/android/os/
DDropBoxManager.h74 const unique_fd& getFd() const;
/frameworks/base/libs/hwui/tests/common/
DTestContext.cpp60 mLooper->addFd(mDisplayEventReceiver.getFd(), IDENT_DISPLAYEVENT, Looper::EVENT_INPUT, nullptr, in TestContext()
/frameworks/native/services/sensorservice/tests/
Dsensorservicetest.cpp85 loop->addFd(q->getFd(), 0, ALOOPER_EVENT_INPUT, receiver, q.get()); in main()
/frameworks/base/core/jni/
Dandroid_view_InputEventSender.cpp97 int receiveFd = mInputPublisher.getChannel()->getFd(); in initialize()
107 mMessageQueue->getLooper()->removeFd(mInputPublisher.getChannel()->getFd()); in dispose()

123