Searched defs:fd (Results 201 - 225 of 364) sorted by relevance

1234567891011>>

/frameworks/base/core/java/android/net/
H A DLocalSocketImpl.java37 private FileDescriptor fd; field in class:LocalSocketImpl
53 return available_native(fd);
67 FileDescriptor myFd = fd;
85 FileDescriptor myFd = fd;
120 FileDescriptor myFd = fd;
134 FileDescriptor myFd = fd;
141 private native int available_native(FileDescriptor fd) throws IOException; argument
142 private native void close_native(FileDescriptor fd) throws IOException; argument
143 private native int read_native(FileDescriptor fd) throws IOException; argument
145 FileDescriptor fd) throw
144 readba_native(byte[] b, int off, int len, FileDescriptor fd) argument
146 writeba_native(byte[] b, int off, int len, FileDescriptor fd) argument
148 write_native(int b, FileDescriptor fd) argument
150 connectLocal(FileDescriptor fd, String name, int namespace) argument
152 bindLocal(FileDescriptor fd, String name, int namespace) argument
156 listen_native(FileDescriptor fd, int backlog) argument
158 shutdown(FileDescriptor fd, boolean shutdownInput) argument
159 getPeerCredentials_native( FileDescriptor fd) argument
161 getOption_native(FileDescriptor fd, int optID) argument
163 setOption_native(FileDescriptor fd, int optID, int b, int value) argument
176 accept(FileDescriptor fd, LocalSocketImpl s) argument
193 LocalSocketImpl(FileDescriptor fd) argument
[all...]
/frameworks/base/core/java/android/view/
H A DWindowManagerGlobal.java433 public void dumpGfxInfo(FileDescriptor fd) { argument
434 FileOutputStream fout = new FileOutputStream(fd);
/frameworks/base/core/java/com/android/internal/os/
H A DZygoteInit.java720 * @param fd non-null; file descriptor
724 static native void setCloseOnExec(FileDescriptor fd, boolean flag) argument
758 * Creates a file descriptor from an int fd.
760 * @param fd integer OS file descriptor
762 * @throws IOException if fd is invalid
764 static native FileDescriptor createFileDescriptor(int fd) argument
/frameworks/base/core/jni/
H A Dandroid_net_LocalSocketImpl.cpp67 /* private native void connectLocal(FileDescriptor fd,
76 int fd; local
80 fd = jniGetFDFromFileDescriptor(env, fileDescriptor);
87 fd,
102 /* private native void bindLocal(FileDescriptor fd, String name, namespace)
111 int fd; local
119 fd = jniGetFDFromFileDescriptor(env, fileDescriptor);
127 ret = socket_local_server_bind(fd, nameUtf8, namespaceId);
137 /* private native void listen_native(int fd, int backlog) throws IOException; */
142 int fd; local
172 int fd; local
208 int fd; local
263 int fd; local
312 int fd; local
378 int fd; local
426 int fd; local
517 socket_read_all(JNIEnv *env, jobject thisJ, int fd, void *buffer, size_t len) argument
575 socket_write_all(JNIEnv *env, jobject object, int fd, void *buf, size_t len) argument
657 int fd; local
691 int fd; local
736 int fd; local
758 int fd; local
797 int fd; local
[all...]
H A Dandroid_net_TrafficStats.cpp66 int fd = open(filename, O_RDONLY); local
67 if (fd < 0) {
72 int len = read(fd, buf, sizeof(buf) - 1);
75 close(fd);
79 close(fd);
H A Dandroid_os_SELinux.cpp107 int fd = jniGetFDFromFileDescriptor(env, fileDescriptor); local
114 if (getpeercon(fd, &context) == -1)
H A Dcom_android_internal_content_NativeLibraryHelper.cpp122 int fd = TEMP_FAILURE_RETRY(open(filePath, O_RDONLY)); local
123 if (fd < 0) {
131 while ((numBytes = TEMP_FAILURE_RETRY(read(fd, crcBuffer, sizeof(crcBuffer)))) > 0) {
134 close(fd);
223 int fd = mkstemp(localTmpFileName); local
224 if (fd < 0) {
229 if (!zipFile->uncompressEntry(zipEntry, fd)) {
231 close(fd);
236 close(fd);
/frameworks/base/libs/androidfw/
H A DAsset.cpp126 int fd; local
128 fd = open(fileName, O_RDONLY | O_BINARY);
129 if (fd < 0)
140 length = lseek64(fd, 0, SEEK_END);
142 ::close(fd);
145 (void) lseek64(fd, 0, SEEK_SET);
148 if (fstat(fd, &st) < 0) {
149 ::close(fd);
154 ::close(fd);
160 result = pAsset->openChunk(fileName, fd,
187 int fd; local
373 openChunk(const char* fileName, int fd, off64_t offset, size_t length) argument
698 openChunk(int fd, off64_t offset, int compressionMethod, size_t uncompressedLen, size_t compressedLen) argument
[all...]
/frameworks/base/services/java/com/android/server/
H A DBatteryService.java587 protected void dump(FileDescriptor fd, PrintWriter pw, String[] args) { argument
H A DDeviceStorageMonitorService.java484 protected void dump(FileDescriptor fd, PrintWriter pw, String[] args) { argument
H A DNativeDaemonConnector.java470 public void dump(FileDescriptor fd, PrintWriter pw, String[] args) { argument
471 mLocalLog.dump(fd, pw, args);
473 mResponseQueue.dump(fd, pw, args);
585 public void dump(FileDescriptor fd, PrintWriter pw, String[] args) { argument
H A DUiModeManagerService.java583 protected void dump(FileDescriptor fd, PrintWriter pw, String[] args) { argument
/frameworks/base/services/java/com/android/server/am/
H A DBroadcastQueue.java965 final boolean dumpLocked(FileDescriptor fd, PrintWriter pw, String[] args, argument
/frameworks/base/services/jni/
H A Dcom_android_server_BatteryService.cpp140 int fd = open(path, O_RDONLY, 0); local
141 if (fd == -1) {
146 ssize_t count = read(fd, buf, size);
155 close(fd);
/frameworks/base/tools/aapt/
H A DXMLNode.cpp553 int fd = open(file->getSourceFile().string(), O_RDONLY | O_BINARY); local
554 if (fd < 0) {
573 len = read(fd, buf, sizeof(buf));
577 close(fd);
583 close(fd);
592 close(fd); variable
/frameworks/native/cmds/dumpstate/
H A Dutils.c63 int fd; local
73 if ((fd = open(cmdpath, O_RDONLY)) < 0) {
76 read(fd, cmdline, sizeof(cmdline));
77 close(fd);
88 int fd; local
93 if ((fd = open(path, O_RDONLY)) < 0) {
98 if (read(fd, buffer, sizeof(buffer)) < 0) {
106 close(fd);
147 int fd = open(path, O_RDONLY); local
148 if (fd <
289 int fd = accept(s, &addr, &alen); local
318 int fd = open(path, O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH); local
408 int fd = open(traces_path, O_CREAT | O_WRONLY | O_TRUNC | O_NOFOLLOW, 0666); /* -rw-rw-rw- */ local
458 int fd = open(path, O_RDONLY); local
[all...]
/frameworks/native/libs/binder/
H A DIMemory.cpp247 ALOGD("UNMAPPING binder=%p, heap=%p, size=%d, fd=%d",
301 ALOGE_IF(err, "binder=%p transaction failed fd=%d, size=%ld, err=%d (%s)",
304 int fd = dup( parcel_fd ); local
305 ALOGE_IF(fd==-1, "cannot dup fd=%d, size=%ld, err=%d (%s)",
316 mBase = mmap(0, size, access, MAP_SHARED, fd, offset);
318 ALOGE("cannot map BpMemoryHeap (binder=%p), size=%ld, fd=%d (%s)",
319 asBinder().get(), size, fd, strerror(errno));
320 close(fd);
325 android_atomic_write(fd,
[all...]
/frameworks/native/libs/utils/
H A DLooper.cpp53 int SimpleLooperCallback::handleEvent(int fd, int events, void* data) { argument
54 return mCallback(fd, events, data);
94 eventItem.data.fd = mWakeReadPipeFd;
164 int fd = response.request.fd; local
169 "fd=%d, events=0x%x, data=%p",
170 this, ident, fd, events, data);
172 if (outFd != NULL) *outFd = fd;
248 int fd = eventItems[i].data.fd; local
314 int fd = response.request.fd; local
396 addFd(int fd, int ident, int events, ALooper_callbackFunc callback, void* data) argument
400 addFd(int fd, int ident, int events, const sp<LooperCallback>& callback, void* data) argument
458 removeFd(int fd) argument
[all...]
/frameworks/native/services/sensorservice/
H A DSensorService.cpp191 status_t SensorService::dump(int fd, const Vector<String16>& args) argument
236 write(fd, result.string(), result.size());
/frameworks/native/services/surfaceflinger/
H A DDisplayDevice.cpp247 int fd = hwc.getAndResetReleaseFenceFd(mType); local
248 mFramebufferSurface->setReleaseFenceFd(fd);
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/
H A DGsmCallTracker.java930 public void dump(FileDescriptor fd, PrintWriter pw, String[] args) { argument
932 super.dump(fd, pw, args);
/frameworks/rs/driver/
H A DrsdShader.cpp309 void RsdShader::logUniform(const Element *field, const float *fd, uint32_t arraySize ) { argument
318 ALOGV("{%f, %f, %f, %f", fd[0], fd[4], fd[8], fd[12]);
319 ALOGV(" %f, %f, %f, %f", fd[1], fd[5], fd[9], fd[13]);
320 ALOGV(" %f, %f, %f, %f", fd[
355 setUniform(const Context *rsc, const Element *field, const float *fd, int32_t slot, uint32_t arraySize ) argument
535 const float *fd = reinterpret_cast<const float *>(&data[offset]); local
[all...]
/frameworks/support/v4/java/android/support/v4/app/
H A DLoaderManager.java165 * @param fd The raw file descriptor that the dump is being sent to.
169 public abstract void dump(String prefix, FileDescriptor fd, PrintWriter writer, String[] args); argument
450 public void dump(String prefix, FileDescriptor fd, PrintWriter writer, String[] args) { argument
456 mLoader.dump(prefix + " ", fd, writer, args);
472 mPendingLoader.dump(prefix + " ", fd, writer, args);
799 public void dump(String prefix, FileDescriptor fd, PrintWriter writer, String[] args) { argument
807 li.dump(innerPrefix, fd, writer, args);
817 li.dump(innerPrefix, fd, writer, args);
/frameworks/wilhelm/include/SLES/
H A DOpenSLES_Android.h306 SLint32 fd; member in struct:SLDataLocator_AndroidFD_
/frameworks/wilhelm/src/android/
H A Dandroid_AudioSfDecoder.cpp202 // As FileSource unconditionally takes ownership of the fd and closes it, then
204 int fd = mDataLocator.fdi.fd; local
208 fd = ::dup(fd);
210 dataSource = new FileSource(fd, mDataLocator.fdi.offset, mDataLocator.fdi.length);

Completed in 5210 milliseconds

1234567891011>>