Searched refs:fd (Results 51 - 75 of 759) sorted by relevance

1234567891011>>

/frameworks/base/libs/hwui/
H A DJankTracker.h64 void dump(int fd) { dumpData(mData, fd); } argument
71 ANDROID_API static void dumpBuffer(const void* buffer, size_t bufsize, int fd);
78 static void dumpData(const ProfileData* data, int 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/native/include/android/
H A Dmultinetwork.h65 int android_setsocknetwork(net_handle_t network, int fd);
/frameworks/av/services/medialog/
H A DMediaLogService.cpp72 status_t MediaLogService::dump(int fd, const Vector<String16>& args __unused) argument
78 dprintf(fd, "Permission Denial: can't dump media.log from pid=%d, uid=%d\n",
91 if (fd >= 0) {
92 write(fd, result.string(), result.size());
104 if (fd >= 0) {
105 dprintf(fd, "\n%s:\n", namedReader.name());
109 namedReader.reader()->dump(fd, 0 /*indent*/);
/frameworks/base/cmds/bu/src/com/android/commands/bu/
H A DBackup.java122 ParcelFileDescriptor fd = null;
124 fd = ParcelFileDescriptor.adoptFd(socketFd);
126 mBackupManager.fullBackup(fd, saveApks, saveObbs, saveShared, doWidgets,
131 if (fd != null) {
133 fd.close();
141 ParcelFileDescriptor fd = null;
143 fd = ParcelFileDescriptor.adoptFd(socketFd);
144 mBackupManager.fullRestore(fd);
148 if (fd != null) {
150 fd
[all...]
/frameworks/base/packages/PrintSpooler/jni/
H A Dcom_android_printspooler_util_BitmapSerializeUtils.cpp29 static bool writeAllBytes(const int fd, void* buffer, const size_t byteCount) { argument
33 ssize_t writtenByteCount = write(fd, writeBuffer, remainingBytes);
48 static bool readAllBytes(const int fd, void* buffer, const size_t byteCount) { argument
52 ssize_t readByteCount = read(fd, readBuffer, remainingBytes);
89 static void readBitmapPixels(JNIEnv* env, jclass /* clazz */, jobject jbitmap, jint fd) { argument
92 bool read = readAllBytes(fd, (void*) &readInfo, sizeof(AndroidBitmapInfo));
124 read = readAllBytes(fd, (void*) pixels, byteCount);
137 static void writeBitmapPixels(JNIEnv* env, jclass /* clazz */, jobject jbitmap, jint fd) { argument
147 bool written = writeAllBytes(fd, (void*) &info, sizeof(AndroidBitmapInfo));
163 written = writeAllBytes(fd, (voi
[all...]
/frameworks/base/libs/androidfw/
H A DBackupHelpers.cpp87 read_snapshot_file(int fd, KeyedVector<String8,FileState>* snapshot) argument
93 amt = read(fd, &header, sizeof(header));
108 amt = read(fd, &file, sizeof(FileState));
120 amt = read(fd, filename, nameBufSize);
144 write_snapshot_file(int fd, const KeyedVector<String8,FileRec>& snapshot) argument
159 LOGP("write_snapshot_file fd=%d\n", fd);
164 amt = write(fd, &header, sizeof(header));
176 amt = write(fd, &r.s, sizeof(FileState));
183 amt = write(fd, nam
212 write_update_file(BackupDataWriter* dataStream, int fd, int mode, const String8& key, char const* realFilename) argument
297 int fd = open(realFilename, O_RDONLY); local
309 int fd = open(file, O_RDONLY); local
413 int fd = open(g.file.string(), O_RDONLY); local
543 int fd = open(filepath.string(), O_RDONLY); local
742 int fd; local
817 WriteSnapshot(int fd) argument
830 int fd; local
854 int fd; local
[all...]
/frameworks/support/v4/ics/android/support/v4/net/
H A DDatagramSocketWrapper.java32 public DatagramSocketWrapper(DatagramSocket socket, FileDescriptor fd) throws SocketException { argument
33 super(new DatagramSocketImplWrapper(socket, fd));
40 public DatagramSocketImplWrapper(DatagramSocket socket, FileDescriptor fd) { argument
43 this.fd = fd;
/frameworks/base/core/jni/
H A Dandroid_net_LocalSocketImpl.cpp51 /* private native void connectLocal(FileDescriptor fd,
59 int fd; local
61 fd = jniGetFDFromFileDescriptor(env, fileDescriptor);
70 fd,
83 /* private native void bindLocal(FileDescriptor fd, String name, namespace)
92 int fd; local
99 fd = jniGetFDFromFileDescriptor(env, fileDescriptor);
107 ret = socket_local_server_bind(fd, nameUtf8.c_str(), namespaceId);
183 static ssize_t socket_read_all(JNIEnv *env, jobject thisJ, int fd, argument
190 // Enough buffer for a pile of fd'
240 socket_write_all(JNIEnv *env, jobject object, int fd, void *buf, size_t len) argument
322 int fd; local
356 int fd; local
401 int fd; local
423 int fd; local
462 int fd; local
[all...]
/frameworks/base/core/java/android/os/
H A DParcelFileDescriptor.java169 public ParcelFileDescriptor(FileDescriptor fd) { argument
170 this(fd, null);
174 public ParcelFileDescriptor(FileDescriptor fd, FileDescriptor commChannel) { argument
175 if (fd == null) {
179 mFd = fd;
200 final FileDescriptor fd = openInternal(file, mode);
201 if (fd == null) return null;
203 return new ParcelFileDescriptor(fd);
233 final FileDescriptor fd = openInternal(file, mode);
234 if (fd
240 fromFd( FileDescriptor fd, Handler handler, final OnCloseListener listener) argument
325 fromFd(int fd) argument
347 adoptFd(int fd) argument
[all...]
/frameworks/base/services/core/jni/
H A Dcom_android_server_UsbMidiDevice.cpp46 int fd; local
55 while ((fd = open(path, O_RDWR)) < 0) {
71 int ret = ioctl(fd, SNDRV_CTL_IOCTL_RAWMIDI_INFO, &info);
72 close(fd);
99 int fd = open(path, O_RDWR); local
100 if (fd < 0) {
105 jobject fileDescriptor = jniCreateFileDescriptor(env, fd);
133 jobject fd = env->GetObjectArrayElement(fds, i); local
134 close(jniGetFDFromFileDescriptor(env, fd));
H A Dcom_android_server_tv_TvUinputBridge.cpp111 NativeConnection(int fd, int32_t maxPointers);
117 NativeConnection::NativeConnection(int fd, int32_t maxPointers) : argument
118 mFd(fd), mMaxPointers(maxPointers) {
132 int fd = ::open("/dev/uinput", O_WRONLY | O_NDELAY); local
133 if (fd < 0) {
148 ioctl(fd, UI_SET_PHYS, uniqueId);
151 ioctl(fd, UI_SET_EVBIT, EV_KEY);
153 ioctl(fd, UI_SET_KEYBIT, KEYS[i].linuxKeyCode);
157 ioctl(fd, UI_SET_EVBIT, EV_MSC);
158 ioctl(fd, UI_SET_MSCBI
[all...]
/frameworks/base/core/java/android/content/res/
H A DAssetFileDescriptor.java51 * @param fd The underlying file descriptor.
57 public AssetFileDescriptor(ParcelFileDescriptor fd, long startOffset, argument
59 this(fd, startOffset, length, null);
65 * @param fd The underlying file descriptor.
73 public AssetFileDescriptor(ParcelFileDescriptor fd, long startOffset, argument
75 if (fd == null) {
76 throw new IllegalArgumentException("fd must not be null");
82 mFd = fd;
204 public AutoCloseInputStream(AssetFileDescriptor fd) throws IOException { argument
205 super(fd
291 AutoCloseOutputStream(AssetFileDescriptor fd) argument
[all...]
/frameworks/native/cmds/dumpstate/
H A Dutils.cpp134 int fd; local
145 if ((fd = TEMP_FAILURE_RETRY(open(cmdpath, O_RDONLY | O_CLOEXEC))) >= 0) {
146 TEMP_FAILURE_RETRY(read(fd, cmdline, sizeof(cmdline) - 2));
147 close(fd);
156 if ((fd = TEMP_FAILURE_RETRY(open(cmdpath, O_RDONLY | O_CLOEXEC))) >= 0) {
157 TEMP_FAILURE_RETRY(read(fd, cmdline + 1, sizeof(cmdline) - 4));
158 close(fd);
202 int fd; local
215 if ((fd = TEMP_FAILURE_RETRY(open(commpath, O_RDONLY | O_CLOEXEC))) < 0) {
219 TEMP_FAILURE_RETRY(read(fd, com
242 int fd, ret, save_errno; local
308 int fd, ret, save_errno; local
405 _dump_file_from_fd(const char *title, const char *path, int fd) argument
472 int fd = TEMP_FAILURE_RETRY(open(path, O_RDONLY | O_NONBLOCK | O_CLOEXEC)); local
483 int fd = TEMP_FAILURE_RETRY(open(path, O_RDONLY | O_NONBLOCK | O_CLOEXEC)); local
509 dump_files(const char *title, const char *dir, bool (*skip)(const char *path), int (*dump_from_fd)(const char *title, const char *path, int fd)) argument
517 int fd, retval = 0; local
578 dump_file_from_fd(const char *title, const char *path, int fd) argument
930 int fd = accept(s, &addr, &alen); local
941 int fd = open_socket(service); local
978 int fd = TEMP_FAILURE_RETRY(open(path, O_WRONLY | O_CREAT | O_TRUNC | O_CLOEXEC | O_NOFOLLOW, local
1018 int fd = TEMP_FAILURE_RETRY(open(traces_path, O_CREAT | O_WRONLY | O_TRUNC | O_NOFOLLOW | O_CLOEXEC, local
1240 get_mtime(int fd, time_t default_mtime) argument
1256 int fd, ext_csd_rev, ext_pre_eol_info; local
[all...]
/frameworks/rs/driver/
H A DrsdShader.cpp311 void RsdShader::logUniform(const Element *field, const float *fd, uint32_t arraySize ) { argument
320 ALOGV("{%f, %f, %f, %f", fd[0], fd[4], fd[8], fd[12]);
321 ALOGV(" %f, %f, %f, %f", fd[1], fd[5], fd[9], fd[13]);
322 ALOGV(" %f, %f, %f, %f", fd[
357 setUniform(const Context *rsc, const Element *field, const float *fd, int32_t slot, uint32_t arraySize ) argument
541 const float *fd = reinterpret_cast<const float *>(&data[offset]); local
[all...]
/frameworks/av/services/audioflinger/
H A DFastMixerDumpState.cpp59 void FastMixerDumpState::dump(int fd) const
62 dprintf(fd, " FastMixer not initialized\n");
68 dprintf(fd, " FastMixer command=%s writeSequence=%u framesWritten=%u\n"
123 dprintf(fd, " Simple moving statistics over last %.1f seconds:\n",
125 dprintf(fd, " wall clock time in ms per mix cycle:\n"
129 dprintf(fd, " raw CPU load in us per mix cycle:\n"
134 dprintf(fd, " No FastMixer statistics available currently\n");
137 dprintf(fd, " CPU clock frequency in MHz:\n"
140 dprintf(fd, " adjusted CPU load in MHz (i.e. normalized for CPU clock frequency):\n"
153 dprintf(fd, " Distributio
[all...]
/frameworks/base/media/java/android/media/
H A DMediaExtractor.java105 AssetFileDescriptor fd = null;
108 fd = resolver.openAssetFileDescriptor(uri, "r");
109 if (fd == null) {
115 if (fd.getDeclaredLength() < 0) {
116 setDataSource(fd.getFileDescriptor());
119 fd.getFileDescriptor(),
120 fd.getStartOffset(),
121 fd.getDeclaredLength());
127 if (fd != null) {
128 fd
219 setDataSource(@onNull FileDescriptor fd) argument
232 setDataSource( @onNull FileDescriptor fd, long offset, long length) argument
[all...]
/frameworks/av/media/mtp/
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/include/
H A DAudioPatch.h32 status_t dump(int fd, int spaces, int index) const;
52 status_t dump(int fd) const;
H A DAudioSourceDescriptor.h42 status_t dump(int fd);
56 status_t dump(int fd) const;
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
H A DAudioRoute.cpp27 void AudioRoute::dump(int fd, int spaces) const argument
49 write(fd, result.string(), result.size());
/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/core/java/android/bluetooth/
H A DIBluetoothHealthCallback.aidl31 ParcelFileDescriptor fd, int id);
/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

Completed in 4539 milliseconds

1234567891011>>