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

1234567891011>>

/frameworks/base/tools/aidl/
H A Daidl_language.cpp7 int isatty(int fd) argument
9 return (fd == 0);
/frameworks/av/include/media/
H A DMediaRecorderBase.h47 virtual status_t setOutputFile(int fd, int64_t offset, int64_t length) = 0;
48 virtual status_t setOutputFileAuxiliary(int fd) {return INVALID_OPERATION;} argument
58 virtual status_t dump(int fd, const Vector<String16>& args) const = 0;
/frameworks/base/core/java/android/app/backup/
H A DFullBackupDataOutput.java15 public FullBackupDataOutput(ParcelFileDescriptor fd) { argument
16 mData = new BackupDataOutput(fd.getFileDescriptor());
/frameworks/native/services/surfaceflinger/tests/waitforvsync/
H A Dwaitforvsync.cpp32 int fd = open("/dev/graphics/fb0", O_RDWR); local
33 if (fd >= 0) {
36 int err = ioctl(fd, FBIO_WAITFORVSYNC, &crt);
42 close(fd);
/frameworks/av/media/mtp/
H A DMtpRequestPacket.cpp39 int MtpRequestPacket::read(int fd) { argument
40 int ret = ::read(fd, mBuffer, mBufferSize);
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);
/frameworks/base/tools/obbtool/
H A Dpbkdf2gen.cpp43 int fd = open("/dev/urandom", O_RDONLY); local
44 if (fd < 0) {
46 close(fd);
52 if (read(fd, &salt, SALT_LEN) != SALT_LEN) {
54 close(fd);
57 close(fd);
/frameworks/compile/mclinker/unittests/
H A DFileHandleTest.cpp66 int fd = ::open(path.native().c_str(), O_RDONLY); local
68 ASSERT_TRUE(m_pTestee->delegate(fd, FileHandle::ReadOnly));
82 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/drm/libdrmframework/plugins/common/include/
H A DDrmEngineBase.h56 String8 getOriginalMimeType(int uniqueId, const String8& path, int fd);
84 int fd, off64_t offset, off64_t length, const char* mime);
225 * @param[in] fd descriptor of the protected content as a file source
229 virtual String8 onGetOriginalMimeType(int uniqueId, const String8& path, int fd) = 0;
377 * @param[in] fd File descriptor of the protected content to be decrypted
385 int fd, off64_t offset, off64_t length) = 0;
392 * @param[in] fd File descriptor of the protected content to be decrypted
402 int fd, off64_t offset, off64_t length,
400 onOpenDecryptSession( int uniqueId, DecryptHandle* decryptHandle, int fd, off64_t offset, off64_t length, const char* mime) argument
/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/base/cmds/backup/
H A Dbackup.cpp58 int fd; local
60 fd = open(filename, O_RDONLY);
61 if (fd == -1) {
66 BackupDataReader reader(fd);
/frameworks/base/core/java/android/bluetooth/
H A DBluetoothHealthCallback.java57 * @param fd The Parcel File Descriptor when the channel state is connected.
62 BluetoothDevice device, int prevState, int newState, ParcelFileDescriptor fd,
65 "prevState:" + prevState + "newState:" + newState + "ParcelFd:" + fd +
61 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.java53 public synchronized void dump(FileDescriptor fd, PrintWriter pw, String[] args) { argument
/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
/frameworks/base/packages/SystemUI/src/com/android/systemui/
H A DSystemUIService.java40 protected void dump(FileDescriptor fd, PrintWriter pw, String[] args) { argument
45 ui.dump(fd, pw, args);
52 ui.dump(fd, pw, args);
/frameworks/base/services/core/java/com/android/server/
H A DDiskStatsService.java45 protected void dump(FileDescriptor fd, PrintWriter pw, String[] args) { argument
/frameworks/base/services/core/jni/
H A Dcom_android_server_PersistentDataBlockService.cpp34 uint64_t get_block_device_size(int fd) argument
39 ret = ioctl(fd, BLKGETSIZE64, &size);
47 int wipe_block_device(int fd) argument
51 uint64_t len = get_block_device_size(fd);
59 ret = ioctl(fd, BLKSECDISCARD, &range);
64 ret = ioctl(fd, BLKDISCARD, &range);
81 int fd = open(path, O_RDONLY); local
83 if (fd < 0)
86 return get_block_device_size(fd);
91 int fd local
[all...]
H A Dcom_android_server_SerialService.cpp41 int fd = open(pathStr, O_RDWR | O_NOCTTY); local
42 if (fd < 0) {
49 jobject fileDescriptor = jniCreateFileDescriptor(env, fd);
/frameworks/base/tests/AccessoryDisplay/source/src/com/android/accessorydisplay/source/
H A DUsbAccessoryStreamTransport.java37 public UsbAccessoryStreamTransport(Logger logger, ParcelFileDescriptor fd) { argument
39 mFd = fd;
40 mInputStream = new FileInputStream(fd.getFileDescriptor());
41 mOutputStream = new FileOutputStream(fd.getFileDescriptor());
/frameworks/base/tools/aapt/
H A Dprintapk.cpp28 int fd; local
44 fd = open(filename, O_RDONLY);
45 if (fd == -1) {
50 size = lseek(fd, 0, SEEK_END);
51 amt = lseek(fd, 0, SEEK_SET);
64 amt = read(fd, buf, size);
70 close(fd);
/frameworks/compile/mclinker/include/mcld/Support/
H A DToolOutputFile.h39 /// fd - Retutn the output file handle
40 FileHandle& fd() { return m_FileHandle; } function in class:mcld::ToolOutputFile

Completed in 1508 milliseconds

1234567891011>>