Searched defs:fd (Results 76 - 100 of 271) sorted by relevance

1234567891011

/frameworks/base/media/libmedia/
H A Dmediametadataretriever.cpp112 status_t MediaMetadataRetriever::setDataSource(int fd, int64_t offset, int64_t length) argument
114 LOGV("setDataSource(%d, %lld, %lld)", fd, offset, length);
120 if (fd < 0 || offset < 0 || length < 0) {
124 return mRetriever->setDataSource(fd, offset, length);
/frameworks/base/media/libmediaplayerservice/
H A DMetadataRetrieverClient.cpp45 extern player_type getPlayerType(int fd, int64_t offset, int64_t length);
62 status_t MetadataRetrieverClient::dump(int fd, const Vector<String16>& args) const argument
70 write(fd, result.string(), result.size());
71 write(fd, "\n", 1);
127 status_t MetadataRetrieverClient::setDataSource(int fd, int64_t offset, int64_t length) argument
129 LOGV("setDataSource fd=%d, offset=%lld, length=%lld", fd, offset, length);
132 int ret = fstat(fd, &sb);
134 LOGE("fstat(%d) failed: %d, %s", fd, ret, strerror(errno));
145 ::close(fd);
[all...]
/frameworks/base/media/libstagefright/
H A DAMRWriter.cpp45 AMRWriter::AMRWriter(int fd) argument
46 : mFd(dup(fd)),
H A DStagefrightMediaScanner.cpp72 file.fd = 0;
190 char *StagefrightMediaScanner::extractAlbumArt(int fd) { argument
191 LOGV("extractAlbumArt %d", fd);
193 off64_t size = lseek64(fd, 0, SEEK_END);
197 lseek64(fd, 0, SEEK_SET);
200 if (mRetriever->setDataSource(fd, 0, size) == OK) {
/frameworks/base/media/mtp/
H A DMtpServer.h82 MtpObjectFormat format, int fd)
83 : mHandle(handle), mPath(path), mSize(size), mFormat(format), mFD(fd) {
93 MtpServer(int fd, MtpDatabase* database, bool ptp,
114 uint64_t size, MtpObjectFormat format, int fd);
81 ObjectEdit(MtpObjectHandle handle, const char* path, uint64_t size, MtpObjectFormat format, int fd) argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/
H A DPowerUI.java282 public void dump(FileDescriptor fd, PrintWriter pw, String[] args) { argument
/frameworks/base/services/input/
H A DEventHub.cpp117 EventHub::Device::Device(int fd, int32_t id, const String8& path, argument
120 fd(fd), id(id), path(path), identifier(identifier),
137 if (fd >= 0) {
138 ::close(fd);
139 fd = -1;
248 if(ioctl(device->fd, EVIOCGABS(axis), &info)) {
249 LOGW("Error reading absolute controller %d for device %s fd %d, errno=%d",
250 axis, device->identifier.name.string(), device->fd, errno);
300 if (ioctl(device->fd, EVIOCGKE
[all...]
/frameworks/base/services/java/com/android/server/am/
H A DTransferPipe.java52 void go(IInterface iface, FileDescriptor fd, String prefix, argument
136 // Close the write fd, so we know when the other side is done.
/frameworks/base/services/java/com/android/server/usb/
H A DUsbHostManager.java210 public void dump(FileDescriptor fd, PrintWriter pw) { argument
/frameworks/base/telephony/java/com/android/internal/telephony/
H A DPhoneSubInfo.java192 protected void dump(FileDescriptor fd, PrintWriter pw, String[] args) { argument
/frameworks/base/tools/localize/
H A Dfile_utils.cpp125 int fd; local
128 fd = open(filename.c_str(), O_RDONLY);
129 if (fd == -1) {
134 while ((amt = read(fd, buf, sizeof(buf)-1)) > 0) {
138 close(fd);
164 int fd = open(filename.c_str(), O_RDWR | O_CREAT | O_TRUNC, 0666); local
165 if (fd < 0) {
171 ssize_t amt = write(fd, text.c_str(), text.length());
173 close(fd);
/frameworks/compile/linkloader/
H A Dmain.cpp36 int &fd,
40 void close_mmap_file(int fd,
58 int fd = -1; local
62 if (!open_mmap_file(filename, fd, image, image_size)) {
70 close_mmap_file(fd, image, image_size);
210 int &fd,
228 fd = open(filename, O_RDONLY);
229 if (fd < 0) {
236 mmap(0, size, PROT_READ, MAP_PRIVATE, fd, 0));
240 close(fd);
209 open_mmap_file(char const *filename, int &fd, unsigned char const *&image, size_t &size) argument
247 close_mmap_file(int fd, unsigned char const *image, size_t size) argument
[all...]
/frameworks/ex/variablespeed/src/com/android/ex/variablespeed/
H A DVariableSpeedNative.java47 int fd = descriptorField.getInt(fileDescriptor);
48 VariableSpeedNative.playFileDescriptor(fd, afd.getStartOffset(), afd.getLength());
66 /*package*/ static native void playFileDescriptor(int fd, long offset, long length); argument
/frameworks/support/v4/java/android/support/v4/content/
H A DAsyncTaskLoader.java265 public void dump(String prefix, FileDescriptor fd, PrintWriter writer, String[] args) { argument
266 super.dump(prefix, fd, writer, args);
/frameworks/base/cmds/installd/
H A Dutils.c280 int fd, res; local
283 fd = openat(dfd, name, O_RDONLY | O_DIRECTORY);
284 if (fd < 0) {
288 d = fdopendir(fd);
291 close(fd);
/frameworks/base/cmds/stagefright/
H A Dstream.cpp43 // Object assumes ownership of fd.
44 MyStreamSource(int fd);
65 MyStreamSource::MyStreamSource(int fd) argument
66 : mFd(fd),
69 CHECK_GE(fd, 0);
71 mFileSize = lseek64(fd, 0, SEEK_END);
72 lseek64(fd, 0, SEEK_SET);
345 int fd = open(argv[1], O_RDONLY); local
347 if (fd < 0) {
352 source = new MyStreamSource(fd);
[all...]
/frameworks/base/core/java/android/app/
H A DDialogFragment.java545 public void dump(String prefix, FileDescriptor fd, PrintWriter writer, String[] args) { argument
546 super.dump(prefix, fd, writer, args);
H A DService.java662 * @param fd The raw file descriptor that the dump is being sent to.
667 protected void dump(FileDescriptor fd, PrintWriter writer, String[] args) { argument
/frameworks/base/core/java/android/bluetooth/
H A DBluetoothHealth.java406 ParcelFileDescriptor fd, int channelId) {
407 mCallback.onHealthChannelStateChange(config, device, prevState, newState, fd,
404 onHealthChannelStateChange(BluetoothHealthAppConfiguration config, BluetoothDevice device, int prevState, int newState, ParcelFileDescriptor fd, int channelId) argument
/frameworks/base/core/java/android/content/
H A DLoader.java407 * @param fd The raw file descriptor that the dump is being sent to.
411 public void dump(String prefix, FileDescriptor fd, PrintWriter writer, String[] args) { argument
/frameworks/base/core/java/android/content/pm/
H A DRegisteredServicesCache.java127 public void dump(FileDescriptor fd, PrintWriter fout, String[] args) { argument
/frameworks/base/core/java/android/content/res/
H A DAssetFileDescriptor.java47 * @param fd The underlying file descriptor.
53 public AssetFileDescriptor(ParcelFileDescriptor fd, long startOffset, argument
59 mFd = fd;
171 public AutoCloseInputStream(AssetFileDescriptor fd) throws IOException { argument
172 super(fd.getParcelFileDescriptor());
173 super.skip(fd.getStartOffset());
174 mRemaining = (int)fd.getLength();
258 public AutoCloseOutputStream(AssetFileDescriptor fd) throws IOException { argument
259 super(fd.getParcelFileDescriptor());
260 if (fd
[all...]
/frameworks/base/core/java/android/inputmethodservice/
H A DIInputMethodWrapper.java196 @Override protected void dump(FileDescriptor fd, PrintWriter fout, String[] args) { argument
212 fd, fout, args, latch));
/frameworks/base/core/java/android/os/
H A DBinder.java219 ParcelFileDescriptor fd = data.readFileDescriptor();
221 if (fd != null) {
223 dump(fd.getFileDescriptor(), args);
226 fd.close();
247 public void dump(FileDescriptor fd, String[] args) { argument
248 FileOutputStream fout = new FileOutputStream(fd);
251 dump(fd, pw, args);
261 public void dumpAsync(final FileDescriptor fd, final String[] args) { argument
262 final FileOutputStream fout = new FileOutputStream(fd);
267 dump(fd, p
284 dump(FileDescriptor fd, PrintWriter fout, String[] args) argument
371 dump(FileDescriptor fd, String[] args) argument
385 dumpAsync(FileDescriptor fd, String[] args) argument
[all...]
H A DMemoryFile.java46 private static native int native_mmap(FileDescriptor fd, int length, int mode) argument
49 private static native void native_close(FileDescriptor fd); argument
50 private static native int native_read(FileDescriptor fd, int address, byte[] buffer, argument
52 private static native void native_write(FileDescriptor fd, int address, byte[] buffer, argument
54 private static native void native_pin(FileDescriptor fd, boolean pin) throws IOException; argument
55 private static native int native_get_size(FileDescriptor fd) throws IOException; argument
248 * @throws IOException If <code>fd</code> is not a valid file descriptor.
252 public static int getSize(FileDescriptor fd) throws IOException { argument
253 return native_get_size(fd);

Completed in 749 milliseconds

1234567891011