HomeSort by relevance Sort by last modified time
    Searched refs:mFd (Results 1 - 25 of 50) sorted by null

1 2

  /libcore/luni/src/main/native/
NetFd.h 26 : mEnv(env), mFileDescriptor(fileDescriptor), mFd(-1)
31 mFd = jniGetFDFromFileDescriptor(mEnv, mFileDescriptor);
32 bool closed = (mFd == -1);
40 return mFd;
46 int mFd;
AsynchronousSocketCloseMonitor.h 53 int mFd;
AsynchronousSocketCloseMonitor.cpp 63 if (it->mFd == fd) {
74 mFd = fd;
  /frameworks/base/media/libstagefright/
FileSource.cpp 28 : mFd(-1),
37 mFd = open(filename, O_LARGEFILE | O_RDONLY);
41 : mFd(fd),
54 if (mFd >= 0) {
55 close(mFd);
56 mFd = -1;
78 return mFd >= 0 ? OK : NO_INIT;
82 if (mFd < 0) {
102 off64_t result = lseek64(mFd, offset + mOffset, SEEK_SET);
108 return ::read(mFd, data, size)
    [all...]
AACWriter.cpp 35 : mFd(-1),
45 mFd = open(filename, O_CREAT | O_LARGEFILE | O_TRUNC | O_RDWR);
46 if (mFd >= 0) {
52 : mFd(dup(fd)),
53 mInitCheck(mFd < 0? NO_INIT: OK),
66 if (mFd != -1) {
67 close(mFd);
68 mFd = -1;
246 write(mFd, &data, 1);
255 write(mFd, &data, 1)
    [all...]
AMRWriter.cpp 33 : mFd(-1),
39 mFd = open(filename, O_CREAT | O_LARGEFILE | O_TRUNC | O_RDWR);
40 if (mFd >= 0) {
46 : mFd(dup(fd)),
47 mInitCheck(mFd < 0? NO_INIT: OK),
58 if (mFd != -1) {
59 close(mFd);
60 mFd = -1;
101 if (write(mFd, kHeader, n) != n) {
250 ssize_t n = write(mFd,
    [all...]
  /frameworks/base/core/java/android/content/res/
AssetFileDescriptor.java 41 private final ParcelFileDescriptor mFd;
59 mFd = fd;
70 return mFd;
78 return mFd.getFileDescriptor();
103 long len = mFd.getStatSize();
123 mFd.close();
136 return new ParcelFileDescriptor.AutoCloseInputStream(mFd);
151 return new ParcelFileDescriptor.AutoCloseOutputStream(mFd);
158 return "{AssetFileDescriptor: " + mFd
309 return mFd.describeContents()
    [all...]
  /hardware/msm7k/libaudio-qdsp5v2/
AudioHardware.cpp 168 mHardware(0), mFd(-1), mStartCount(0), mRetryCount(0), mStandby(true),
229 mFd = status;
234 status = ioctl(mFd, AUDIO_GET_CONFIG, &config);
246 status = ioctl(mFd, AUDIO_SET_CONFIG, &config);
258 status = ioctl(mFd, AUDIO_START, &acdb_id);
264 status = ioctl(mFd, AUDIO_SET_VOLUME, &stream_volume);
274 ssize_t written = ::write(mFd, p, count);
288 if (mFd >= 0) {
289 ::close(mFd);
290 mFd = -1
    [all...]
  /device/generic/goldfish/audio/
AudioHardwareGeneric.h 38 AudioStreamOutGeneric() : mAudioHardware(0), mFd(-1) {}
43 int mFd,
65 int mFd;
71 AudioStreamInGeneric() : mAudioHardware(0), mFd(-1) {}
76 int mFd,
100 int mFd;
147 int mFd;
AudioHardwareGeneric.cpp 44 : mOutput(0), mInput(0), mFd(-1), mMicMute(false)
46 mFd = ::open(kAudioDeviceName, O_RDWR);
51 if (mFd >= 0) ::close(mFd);
58 if (mFd >= 0) {
80 status_t lStatus = out->set(this, mFd, devices, format, channels, sampleRate);
120 status_t lStatus = in->set(this, mFd, devices, format, channels, sampleRate, acoustics);
170 snprintf(buffer, SIZE, "\tmFd: %d mMicMute: %s\n", mFd, mMicMute? "true": "false");
222 mFd = fd;
234 return ssize_t(::write(mFd, buffer, bytes))
    [all...]
  /hardware/libhardware_legacy/audio/
AudioHardwareGeneric.h 39 AudioStreamOutGeneric() : mAudioHardware(0), mFd(-1) {}
44 int mFd,
66 int mFd;
72 AudioStreamInGeneric() : mAudioHardware(0), mFd(-1) {}
77 int mFd,
99 int mFd;
146 int mFd;
AudioHardwareGeneric.cpp 46 : mOutput(0), mInput(0), mFd(-1), mMicMute(false)
48 mFd = ::open(kAudioDeviceName, O_RDWR);
53 if (mFd >= 0) ::close(mFd);
60 if (mFd >= 0) {
82 status_t lStatus = out->set(this, mFd, devices, format, channels, sampleRate);
122 status_t lStatus = in->set(this, mFd, devices, format, channels, sampleRate, acoustics);
172 snprintf(buffer, SIZE, "\tmFd: %d mMicMute: %s\n", mFd, mMicMute? "true": "false");
224 mFd = fd;
236 return ssize_t(::write(mFd, buffer, bytes))
    [all...]
  /cts/tests/tests/content/src/android/content/res/cts/
AssetFileDescriptor_AutoCloseInputStreamTest.java 43 private AssetFileDescriptor mFd;
58 if (mFd != null) {
59 mFd.close();
60 mFd = null;
292 if (mFd != null) {
293 mFd.close();
294 mFd = null;
298 mFd = new AssetFileDescriptor(fd, startOffset, length);
299 mInput = new AssetFileDescriptor.AutoCloseInputStream(mFd);
AssetFileDescriptorTest.java 45 private ParcelFileDescriptor mFd;
58 mFd = ParcelFileDescriptor.open(mFile, ParcelFileDescriptor.MODE_READ_WRITE);
59 mAssetFileDes = new AssetFileDescriptor(mFd, START_OFFSET, LENGTH);
234 assertSame(mFd, mAssetFileDes.getParcelFileDescriptor());
235 assertSame(mFd.getFileDescriptor(), mAssetFileDes.getFileDescriptor());
237 assertEquals(mFd.describeContents(), mAssetFileDes.describeContents());
  /hardware/msm7k/libaudio/
AudioHardware.cpp 661 mHardware(0), mFd(-1), mStartCount(0), mRetryCount(0), mStandby(true), mDevices(0)
700 if (mFd >= 0) close(mFd);
719 mFd = status;
724 status = ioctl(mFd, AUDIO_GET_CONFIG, &config);
736 status = ioctl(mFd, AUDIO_SET_CONFIG, &config);
753 ssize_t written = ::write(mFd, p, count);
767 ioctl(mFd, AUDIO_START, 0);
773 if (mFd >= 0) {
774 ::close(mFd);
    [all...]
  /frameworks/base/include/media/stagefright/
AACWriter.h 49 int mFd;
AMRWriter.h 47 int mFd;
FileSource.h 49 int mFd;
  /frameworks/base/include/utils/
StreamingZipInflater.h 55 int mFd;
  /frameworks/base/libs/utils/
StreamingZipInflater.cpp 36 mFd = fd;
55 mFd = -1;
96 ::lseek(mFd, mInFileStart, SEEK_SET);
194 ssize_t didRead = ::read(mFd, mInBuf, toRead);
ZipFileRO.cpp 109 if (mFd >= 0)
110 TEMP_FAILURE_RETRY(close(mFd));
160 mFd = fd;
205 if (lseek64(mFd, 0, SEEK_SET) != 0) {
211 ssize_t actual = TEMP_FAILURE_RETRY(read(mFd, scanBuf, sizeof(int32_t)));
245 if (lseek64(mFd, searchStart, SEEK_SET) != searchStart) {
250 actual = TEMP_FAILURE_RETRY(read(mFd, scanBuf, readAmount));
311 if (!mDirectoryMap->create(mFileName, mFd, dirOffset, dirSize, true)) {
544 TEMP_FAILURE_RETRY(pread64(mFd, lfhBuf, sizeof(lfhBuf), localHdrOffset));
569 if (lseek64(mFd, localHdrOffset, SEEK_SET) != localHdrOffset)
    [all...]
  /dalvik/libdex/
ZipArchive.h 61 int mFd;
114 return pArchive->mFd;
ZipArchive.cpp 375 pArchive->mFd = fd;
404 if (pArchive->mFd >= 0)
405 close(pArchive->mFd);
413 pArchive->mFd = -1;
539 if (lseek(pArchive->mFd, localHdrOffset, SEEK_SET) != localHdrOffset) {
544 TEMP_FAILURE_RETRY(read(pArchive->mFd, lfhBuf, sizeof(lfhBuf)));
715 if (lseek(pArchive->mFd, dataOffset, SEEK_SET) != dataOffset) {
721 if (sysCopyFileToFile(fd, pArchive->mFd, uncompLen) != 0)
724 if (inflateToFile(fd, pArchive->mFd, uncompLen, compLen) != 0)
  /frameworks/base/core/java/android/os/
ParcelFileDescriptor.java 329 private final ParcelFileDescriptor mFd;
333 mFd = fd;
339 mFd.close();
352 private final ParcelFileDescriptor mFd;
356 mFd = fd;
362 mFd.close();
  /frameworks/base/media/java/android/media/
MediaRecorder.java 89 private FileDescriptor mFd;
595 mFd = fd;
608 mFd = null;
635 } else if (mFd != null) {
636 _setOutputFile(mFd, 0, 0);
    [all...]

Completed in 633 milliseconds

1 2