Searched defs:fd (Results 1 - 25 of 552) sorted by relevance

1234567891011>>

/frameworks/minikin/tests/
H A DICUTestBase.h33 int fd = open(fn, O_RDONLY); variable
34 ASSERT_NE(-1, fd);
36 ASSERT_EQ(0, fstat(fd, &sb));
37 void* data = mmap(NULL, sb.st_size, PROT_READ, MAP_SHARED, fd, 0);
/frameworks/native/services/surfaceflinger/tests/waitforvsync/
H A Dwaitforvsync.cpp33 int fd = open("/dev/graphics/fb0", O_RDWR); local
34 if (fd >= 0) {
37 int err = ioctl(fd, FBIO_WAITFORVSYNC, &crt);
43 close(fd);
/frameworks/av/include/media/
H A DMediaRecorderBase.h48 virtual status_t setOutputFile(int fd, int64_t offset, int64_t length) = 0;
49 virtual status_t setOutputFileAuxiliary(int fd) {return INVALID_OPERATION;} argument
61 virtual status_t dump(int fd, const Vector<String16>& args) const = 0;
/frameworks/av/media/mtp/
H A DMtpResponsePacket.cpp38 int MtpResponsePacket::write(int fd) { argument
41 int ret = ::write(fd, mBuffer, mPacketSize);
H A DMtpEventPacket.cpp43 int MtpEventPacket::write(int fd) { argument
51 int ret = ::ioctl(fd, MTP_SEND_EVENT, (unsigned long)&event);
H A DMtpRequestPacket.cpp39 int MtpRequestPacket::read(int fd) { argument
40 int ret = ::read(fd, mBuffer, mBufferSize);
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
H A DAudioCollections.cpp40 status_t AudioRouteVector::dump(int fd, int spaces) const argument
49 write(fd, buffer, strlen(buffer));
52 write(fd, buffer, strlen(buffer));
53 itemAt(i)->dump(fd, 4);
H A DAudioRoute.cpp27 void AudioRoute::dump(int fd, int spaces) const argument
49 write(fd, result.string(), result.size());
H A DAudioSourceDescriptor.cpp32 status_t AudioSourceDescriptor::dump(int fd) argument
42 write(fd, result.string(), result.size());
43 mDevice->dump(fd, 2 , 0);
48 status_t AudioSourceCollection::dump(int fd) const
54 write(fd, buffer, strlen(buffer));
57 write(fd, buffer, strlen(buffer));
58 valueAt(i)->dump(fd);
/frameworks/base/core/java/android/os/
H A DTransactionTracker.java57 public void writeTracesToFile(ParcelFileDescriptor fd) { argument
62 PrintWriter pw = new FastPrintWriter(new FileOutputStream(fd.getFileDescriptor()));
/frameworks/base/tools/obbtool/
H A Dpbkdf2gen.cpp44 int fd = open("/dev/urandom", O_RDONLY); local
45 if (fd < 0) {
47 close(fd);
53 if (read(fd, &salt, SALT_LEN) != SALT_LEN) {
55 close(fd);
58 close(fd);
/frameworks/compile/mclinker/unittests/
H A DFileHandleTest.cpp62 int fd = ::open(path.native().c_str(), O_RDONLY); local
64 ASSERT_TRUE(m_pTestee->delegate(fd, FileHandle::ReadOnly));
78 int close_result = ::close(fd);
/frameworks/av/drm/common/
H A DReadWriteUtils.cpp41 int fd = fileno(file); local
44 if (fstat(fd, &sb) == 0 && sb.st_size > 0) {
47 if (length == read(fd, (void*) bytes, length)) {
63 int fd = fileno(file); local
66 if (fstat(fd, &sb) == 0 && sb.st_size > 0) {
69 if (length != read(fd, (void*) *buffer, length)) {
83 int fd = fileno(file); local
86 if (FAILURE != ftruncate(fd, size)) {
87 if (size != write(fd, data.string(), size)) {
100 int fd local
[all...]
/frameworks/av/media/libmedia/
H A DMidiIoWrapper.cpp43 MidiIoWrapper::MidiIoWrapper(int fd, off64_t offset, int64_t size) { argument
44 ALOGV("MidiIoWrapper(fd=%d)", fd);
45 mFd = fd < 0 ? -1 : dup(fd);
/frameworks/av/media/libmediaplayerservice/
H A DActivityManager.cpp33 int fd = -1; local
45 // Success is indicated here by a nonzero int followed by the fd;
48 fd = dup(reply.readFileDescriptor());
58 return fd;
/frameworks/av/services/audioflinger/
H A DAudioWatchdog.cpp28 void AudioWatchdogDump::dump(int fd) argument
37 dprintf(fd, "Watchdog: underruns=%u, logs=%u, most recent underrun log at %s",
/frameworks/av/services/mediaextractor/
H A DMediaExtractorService.cpp48 status_t MediaExtractorService::dump(int fd, const Vector<String16>& args) { argument
49 return dumpExtractors(fd, args);
/frameworks/base/cmds/backup/
H A Dbackup.cpp55 int fd; local
57 fd = open(filename, O_RDONLY);
58 if (fd == -1) {
63 BackupDataReader reader(fd);
/frameworks/base/core/java/android/app/backup/
H A DFullBackupDataOutput.java22 public FullBackupDataOutput(ParcelFileDescriptor fd) { argument
23 mData = new BackupDataOutput(fd.getFileDescriptor());
/frameworks/base/core/java/android/bluetooth/
H A DBluetoothHealthCallback.java59 * @param fd The Parcel File Descriptor when the channel state is connected.
65 BluetoothDevice device, int prevState, int newState, ParcelFileDescriptor fd,
68 "prevState:" + prevState + "newState:" + newState + "ParcelFd:" + fd +
64 onHealthChannelStateChange(BluetoothHealthAppConfiguration config, BluetoothDevice device, int prevState, int newState, ParcelFileDescriptor fd, int channelId) argument
/frameworks/base/core/java/android/net/
H A DLocalServerSocket.java59 * @param fd bound file descriptor
62 public LocalServerSocket(FileDescriptor fd) throws IOException argument
64 impl = new LocalSocketImpl(fd);
98 * @return fd or null
/frameworks/base/core/java/android/util/
H A DLocalLog.java51 public synchronized void dump(FileDescriptor fd, PrintWriter pw, String[] args) { argument
58 public synchronized void reverseDump(FileDescriptor fd, PrintWriter pw, String[] args) { argument
69 public void dump(FileDescriptor fd, PrintWriter pw, String[] args) { argument
70 mLog.dump(fd, pw, args);
/frameworks/base/core/jni/android/graphics/
H A DUtils.h56 AutoFDSeek(int fd) : fFD(fd) { argument
57 fCurr = ::lseek(fd, 0, SEEK_CUR);
/frameworks/base/native/android/
H A Dnet.c45 int android_setsocknetwork(net_handle_t network, int fd) { argument
52 int rval = setNetworkForSocket(netid, fd);
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/util/
H A DBitmapSerializeUtils.java57 private static native void nativeReadBitmapPixels(Bitmap bitmap, int fd); argument
59 private static native void nativeWriteBitmapPixels(Bitmap bitmap, int fd); argument

Completed in 1079 milliseconds

1234567891011>>