Searched refs:fd (Results 126 - 150 of 759) sorted by relevance

1234567891011>>

/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/native/libs/binder/
H A DStatic.cpp51 FdTextOutput(int fd) : BufferedTextOutput(MULTITHREADED), mFD(fd) { } argument
H A DProcessState.cpp314 int fd = open("/dev/binder", O_RDWR | O_CLOEXEC); local
315 if (fd >= 0) {
317 status_t result = ioctl(fd, BINDER_VERSION, &vers);
320 close(fd);
321 fd = -1;
325 close(fd);
326 fd = -1;
329 result = ioctl(fd, BINDER_SET_MAX_THREADS, &maxThreads);
336 return fd;
/frameworks/native/services/inputflinger/host/
H A DInputFlinger.cpp50 status_t InputFlinger::dump(int fd, const Vector<String16>& args) { argument
62 write(fd, result.string(), result.size());
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
H A DHwModule.cpp220 void HwModule::dump(int fd) argument
232 write(fd, result.string(), result.size());
234 write(fd, " - outputs:\n", strlen(" - outputs:\n"));
237 write(fd, buffer, strlen(buffer));
238 mOutputProfiles[i]->dump(fd);
242 write(fd, " - inputs:\n", strlen(" - inputs:\n"));
245 write(fd, buffer, strlen(buffer));
246 mInputProfiles[i]->dump(fd);
249 mDeclaredDevices.dump(fd, String8("Declared"), 2, true);
250 mRoutes.dump(fd,
[all...]
H A DAudioInputDescriptor.cpp178 status_t AudioInputDescriptor::dump(int fd) argument
195 write(fd, result.string(), result.size());
197 mSessions.dump(fd, 1);
257 status_t AudioInputCollection::dump(int fd) const
263 write(fd, buffer, strlen(buffer));
266 write(fd, buffer, strlen(buffer));
267 valueAt(i)->dump(fd);
H A DEffectDescriptor.cpp25 status_t EffectDescriptor::dump(int fd) argument
41 write(fd, result.string(), result.size());
177 status_t EffectDescriptorCollection::dump(int fd) argument
185 write(fd, buffer, strlen(buffer));
188 write(fd, buffer, strlen(buffer));
191 write(fd, buffer, strlen(buffer));
192 valueAt(i)->dump(fd);
H A DStreamDescriptor.cpp82 void StreamDescriptor::dump(int fd) const
99 write(fd, result.string(), result.size());
207 status_t StreamDescriptorCollection::dump(int fd) const
213 write(fd, buffer, strlen(buffer));
216 write(fd, buffer, strlen(buffer));
219 write(fd, buffer, strlen(buffer));
220 valueAt(i).dump(fd);
H A DAudioOutputDescriptor.cpp186 status_t AudioOutputDescriptor::dump(int fd) argument
209 write(fd, result.string(), result.size());
240 status_t SwAudioOutputDescriptor::dump(int fd) argument
250 write(fd, result.string(), result.size());
252 AudioOutputDescriptor::dump(fd);
397 status_t HwAudioOutputDescriptor::dump(int fd) argument
403 AudioOutputDescriptor::dump(fd);
407 write(fd, result.string(), result.size());
408 mSource->dump(fd);
535 status_t SwAudioOutputCollection::dump(int fd) cons
[all...]
/frameworks/av/drm/libdrmframework/plugins/forward-lock/FwdLockEngine/include/
H A DFwdLockEngine.h154 * @param fd descriptor of the protected content as a file source
158 String8 onGetOriginalMimeType(int uniqueId, const String8& path, int fd);
325 * @param fd File descriptor of the protected content to be decrypted
334 int fd, off64_t offset, off64_t length);
338 int fd, int offset, int length);
542 DecodeSession(int fd) { argument
543 fileDesc = fd;
/frameworks/base/core/java/android/util/
H A DMemoryIntArray.java232 private native long nativeOpen(int fd, boolean owner, boolean writable); argument
233 private native void nativeClose(int fd, long memoryAddr, boolean owner); argument
234 private native int nativeGet(int fd, long memoryAddr, int index, boolean owner); argument
235 private native void nativeSet(int fd, long memoryAddr, int index, int value, boolean owner); argument
236 private native int nativeSize(int fd); argument
/frameworks/base/cmds/hid/jni/
H A Dcom_android_commands_hid_Device.cpp52 static int handleLooperEvents(int /* fd */, int events, void* data) {
89 int fd = ::open(UHID_PATH, O_RDWR | O_CLOEXEC); local
90 if (fd < 0) {
108 ssize_t ret = TEMP_FAILURE_RETRY(::write(fd, &ev, sizeof(ev)));
110 ::close(fd);
116 ret = TEMP_FAILURE_RETRY(::read(fd, &ev, sizeof(ev)));
118 ::close(fd);
123 return new Device(id, fd, std::move(callback), looper);
126 Device::Device(int32_t id, int fd, std::unique_ptr<DeviceCallback> callback, sp<Looper> looper) : argument
127 mId(id), mFd(fd), mDeviceCallbac
[all...]
/frameworks/base/libs/common_time/
H A Dcommon_time_server_api.cpp286 write(fd, buffer, res); \
290 status_t CommonTimeServer::dumpClockInterface(int fd, argument
302 write(fd, buffer, strlen(buffer));
358 mClient_PacketRTTLog.dumpLog(fd, mCommonClock);
359 mStateChangeLog.dumpLog(fd);
360 mElectionLog.dumpLog(fd);
361 mBadPktLog.dumpLog(fd);
367 status_t CommonTimeServer::dumpConfigInterface(int fd, argument
378 write(fd, buffer, strlen(buffer));
408 void CommonTimeServer::PacketRTTLog::dumpLog(int fd, cons argument
[all...]
/frameworks/native/cmds/dumpstate/
H A Ddumpstate.cpp85 int fd; member in struct:__anon1272
110 int fd = TEMP_FAILURE_RETRY(open(data[i].name, local
113 if (fstat(fd, &st) == 0 && S_ISREG(st.st_mode) &&
115 data[i].fd = fd;
117 close(fd);
118 data[i].fd = -1;
317 static int dump_stat_from_fd(const char *title __unused, const char *path, int fd) { argument
322 FILE *fp = fdopen(fd, "rb");
533 bool add_zip_entry_from_fd(const std::string& entry_name, int fd) { argument
585 _add_file_from_fd(const char *title, const char *path, int fd) argument
726 int fd = TEMP_FAILURE_RETRY(open(anr_traces_path, local
757 int fd = tombstone_data[i].fd; local
[all...]
/frameworks/base/services/core/java/com/android/server/am/
H A DNativeCrashListener.java180 static int readExactly(FileDescriptor fd, byte[] buffer, int offset, int numBytes) argument
184 int n = Os.read(fd, buffer, offset + totalRead, numBytes);
198 void consumeNativeCrashData(FileDescriptor fd) { argument
205 Os.setsockoptTimeval(fd, SOL_SOCKET, SO_RCVTIMEO, timeout);
206 Os.setsockoptTimeval(fd, SOL_SOCKET, SO_SNDTIMEO, timeout);
209 int headerBytes = readExactly(fd, buf, 0, 8);
240 bytes = Os.read(fd, buf, 0, buf.length);
/frameworks/av/cmds/stagefright/
H A Dstream.cpp47 // Object assumes ownership of fd.
48 MyStreamSource(int fd);
69 MyStreamSource::MyStreamSource(int fd) argument
70 : mFd(fd),
73 CHECK_GE(fd, 0);
75 mFileSize = lseek64(fd, 0, SEEK_END);
76 lseek64(fd, 0, SEEK_SET);
362 int fd = open(argv[1], O_RDONLY); local
364 if (fd < 0) {
369 source = new MyStreamSource(fd);
[all...]
/frameworks/base/tests/touchlag/
H A Dtouchlag.cpp142 int fd; member in class:TouchEvents::EventThread
148 read(fd, &event, sizeof(event));
170 fd = open("/dev/input/event1", O_RDONLY);
224 int fd = open("/dev/graphics/fb0", O_RDWR); local
225 ioctl(fd, FBIOGET_VSCREENINFO, &vi);
226 ioctl(fd, FBIOGET_FSCREENINFO, &fi);
227 void* bits = mmap(0, fi.smem_len, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);
260 ioctl(fd, FBIO_WAITFORVSYNC, &crt);
292 close(fd);
/frameworks/base/core/java/android/os/
H A DFileObserver.java130 private native void observe(int fd); argument
131 private native int startWatching(int fd, String path, int mask); argument
132 private native void stopWatching(int fd, int wfd); argument
/frameworks/base/core/jni/
H A Dandroid_backup_BackupDataInput.cpp37 int fd = jniGetFDFromFileDescriptor(env, fileDescriptor); local
38 if (fd == -1) {
42 return (jlong)new BackupDataReader(fd);
H A Dandroid_util_Process.cpp199 int fd; local
204 fd = open(proc_path, O_RDONLY);
205 if (fd >= 0) {
206 int rc = read(fd, cmdline, sizeof(cmdline)-1);
208 close(fd);
524 int fd = open(text, O_WRONLY); local
525 if (fd >= 0) {
527 write(fd, text, strlen(text));
528 close(fd);
574 int fd local
687 int fd = open(file.string(), O_RDONLY); local
994 int fd = open(file8, O_RDONLY); local
1134 int fd = open(path, O_RDONLY); local
[all...]
/frameworks/base/graphics/java/android/graphics/
H A DBitmapRegionDecoder.java74 * @param fd The file descriptor containing the data to decode
86 FileDescriptor fd, boolean isShareable) throws IOException {
87 return nativeNewInstance(fd, isShareable);
267 FileDescriptor fd, boolean isShareable);
85 newInstance( FileDescriptor fd, boolean isShareable) argument
266 nativeNewInstance( FileDescriptor fd, boolean isShareable) argument
/frameworks/base/include/androidfw/
H A DBackupHelpers.h70 BackupDataWriter(int fd);
71 // does not close fd
107 BackupDataReader(int fd);
108 // does not close fd
150 status_t WriteSnapshot(int fd);
/frameworks/av/cmds/screenrecord/
H A Dscreenrecord.cpp509 int fd = fileno(rawFp); local
510 if (isatty(fd)) {
512 ALOGD("raw video output to tty (fd=%d)", fd);
514 if (tcgetattr(fd, &term) == 0) {
516 if (tcsetattr(fd, TCSANOW, &term) == 0) {
643 int fd = open(fileName, O_CREAT | O_LARGEFILE | O_TRUNC | O_RDWR, S_IRUSR | S_IWUSR); local
644 if (fd < 0) {
648 muxer = new MediaMuxer(fd, MediaMuxer::OUTPUT_FORMAT_MPEG_4);
649 close(fd);
779 int fd = open("/dev/null", O_WRONLY); local
991 int fd = open(fileName, O_CREAT | O_RDWR, 0644); local
[all...]
/frameworks/base/core/java/android/app/
H A DApplicationThreadNative.java363 ParcelFileDescriptor fd = data.readFileDescriptor();
366 if (fd != null) {
367 dumpService(fd.getFileDescriptor(), service, args);
369 fd.close();
378 ParcelFileDescriptor fd = data.readFileDescriptor();
381 if (fd != null) {
382 dumpProvider(fd.getFileDescriptor(), service, args);
384 fd.close();
498 ParcelFileDescriptor fd = data.readInt() != 0
500 dumpHeap(managed, path, fd);
1163 dumpService(FileDescriptor fd, IBinder token, String[] args) argument
1174 dumpProvider(FileDescriptor fd, IBinder token, String[] args) argument
1277 dumpHeap(boolean managed, String path, ParcelFileDescriptor fd) argument
1294 dumpActivity(FileDescriptor fd, IBinder token, String prefix, String[] args) argument
1332 dumpMemInfo(FileDescriptor fd, Debug.MemoryInfo mem, boolean checkin, boolean dumpInfo, boolean dumpDalvik, boolean dumpSummaryOnly, boolean dumpUnreachable, String[] args) argument
1352 dumpGfxInfo(FileDescriptor fd, String[] args) argument
1361 dumpDbInfo(FileDescriptor fd, String[] args) argument
1493 stopBinderTrackingAndDump(FileDescriptor fd) argument
[all...]
/frameworks/native/services/inputflinger/
H A DEventHub.cpp147 EventHub::Device::Device(int fd, int32_t id, const String8& path, argument
150 fd(fd), id(id), path(path), identifier(identifier),
170 if (fd >= 0) {
171 ::close(fd);
172 fd = -1;
291 if(ioctl(device->fd, EVIOCGABS(axis), &info)) {
292 ALOGW("Error reading absolute controller %d for device %s fd %d, errno=%d",
293 axis, device->identifier.name.string(), device->fd, errno);
343 if (ioctl(device->fd, EVIOCGKE
1073 int fd = open(devicePath, O_RDWR | O_CLOEXEC); local
[all...]

Completed in 3450 milliseconds

1234567891011>>