Home
last modified time | relevance | path

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

12

/frameworks/native/libs/sensor/
DSensorEventQueue.cpp54 int SensorEventQueue::getFd() const in getFd() function in android::SensorEventQueue
56 return mSensorChannel->getFd(); in getFd()
87 mLooper->addFd(getFd(), getFd(), ALOOPER_EVENT_INPUT, NULL, NULL); in getLooper()
94 const int fd = getFd(); in waitForEvent()
158 ssize_t size = ::send(mSensorChannel->getFd(), &event, sizeof(event), MSG_NOSIGNAL); in injectSensorEvent()
180 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/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()
128 ALooper_removeFd(q->looper, q->getFd()); in ASensorManager_destroyEventQueue()
255 pfd.fd = static_cast<SensorEventQueue*>(queue)->getFd(); in ASensorEventQueue_hasEvents()
/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/
DMessageQueue.cpp93 if (mEventTube.getFd() >= 0) { in setEventThread()
94 mLooper->removeFd(mEventTube.getFd()); in setEventThread()
100 mLooper->addFd(mEventTube.getFd(), 0, Looper::EVENT_INPUT, MessageQueue::cb_eventReceiver, in setEventThread()
/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/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.java84 mNativeDocument = nativeOpen(mInput.getFd(), size); in PdfEditor()
260 nativeWrite(mNativeDocument, output.getFd()); in write()
/frameworks/native/libs/sensor/include/sensor/
DBitTube.h46 int getFd() const;
DSensorEventQueue.h71 int getFd() const;
/frameworks/native/libs/gui/include/gui/
DDisplayEventReceiver.h107 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/native/services/sensorservice/tests/
Dsensorservicetest.cpp85 loop->addFd(q->getFd(), 0, ALOOPER_EVENT_INPUT, receiver, q.get()); in main()
/frameworks/base/libs/hwui/tests/common/
DTestContext.cpp58 mLooper->addFd(mDisplayEventReceiver.getFd(), IDENT_DISPLAYEVENT, Looper::EVENT_INPUT, nullptr, in TestContext()
/frameworks/support/compat/src/main/java/androidx/core/graphics/
DTypefaceCompatApi21Impl.java51 final String path = Os.readlink("/proc/self/fd/" + fd.getFd()); in getFile()
/frameworks/base/core/jni/
Dandroid_view_InputEventSender.cpp99 int receiveFd = mInputPublisher.getChannel()->getFd(); in initialize()
109 mMessageQueue->getLooper()->removeFd(mInputPublisher.getChannel()->getFd()); in dispose()
/frameworks/native/libs/input/tests/
DInputChannel_test.cpp48 EXPECT_EQ(pipe.sendFd, inputChannel->getFd()) in TEST_F()
/frameworks/base/core/java/android/os/
DParcelFileDescriptor.java656 public int getFd() { in getFd() method in ParcelFileDescriptor
658 return mWrapped.getFd(); in getFd()
685 final int fd = getFd(); in detachFd()

12