/frameworks/av/media/mtp/ |
H A D | MtpServer.h | 82 MtpObjectFormat format, int fd) 83 : mHandle(handle), mPath(path), mSize(size), mFormat(format), mFD(fd) { 93 MtpServer(int fd, MtpDatabase* database, bool ptp, 115 uint64_t size, MtpObjectFormat format, int fd); 81 ObjectEdit(MtpObjectHandle handle, const char* path, uint64_t size, MtpObjectFormat format, int fd) argument
|
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/ |
H A D | AudioProfile.cpp | 185 void AudioProfile::dump(int fd, int spaces) const argument 225 write(fd, result.string(), result.size());
|
/frameworks/av/services/camera/libcameraservice/common/ |
H A D | FrameProcessorBase.cpp | 88 void FrameProcessorBase::dump(int fd, const Vector<String16>& /*args*/) { argument 90 write(fd, result.string(), result.size()); 98 lastFrame.dump(fd, 2, 6);
|
/frameworks/av/services/camera/libcameraservice/device3/ |
H A D | Camera3InputStream.cpp | 202 void Camera3InputStream::dump(int fd, const Vector<String16> &args) const { argument 206 write(fd, lines.string(), lines.size()); 208 Camera3IOStreamBase::dump(fd, args);
|
/frameworks/base/cmds/idmap/ |
H A D | create.cpp | 35 int fd = TEMP_FAILURE_RETRY(open(path, O_WRONLY | O_CREAT | O_TRUNC, 0644)); local 36 if (fd == -1) { 40 if (fchmod(fd, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH) < 0) { 44 if (TEMP_FAILURE_RETRY(flock(fd, LOCK_EX)) != 0) { 49 return fd; 51 if (fd != -1) { 52 close(fd); 58 int write_idmap(int fd, const uint32_t *data, size_t size) argument 60 if (lseek(fd, 0, SEEK_SET) < 0) { 65 ssize_t w = TEMP_FAILURE_RETRY(write(fd, dat 171 create_and_write_idmap(const char *target_apk_path, const char *overlay_apk_path, int fd, bool check_if_stale) argument 206 int fd = open_idmap(idmap_path); local 219 idmap_create_fd(const char *target_apk_path, const char *overlay_apk_path, int fd) argument [all...] |
/frameworks/base/cmds/screencap/ |
H A D | screencap.cpp | 110 int fd = -1; local 113 fd = dup(STDOUT_FILENO); 116 fd = open(fn, O_WRONLY | O_CREAT | O_TRUNC, 0664); 117 if (fd == -1) { 127 if (fd == -1) { 183 write(fd, data->data(), data->size()); 189 write(fd, &w, 4); 190 write(fd, &h, 4); 191 write(fd, &f, 4); 194 write(fd, bas [all...] |
/frameworks/base/core/java/android/app/backup/ |
H A D | FileBackupHelperBase.java | 104 public void writeNewStateDescription(ParcelFileDescriptor fd) { argument 105 int result = writeSnapshot_native(mPtr, fd.getFileDescriptor()); 124 private static native int writeSnapshot_native(long ptr, FileDescriptor fd); argument
|
/frameworks/base/core/java/android/content/ |
H A D | CursorLoader.java | 231 public void dump(String prefix, FileDescriptor fd, PrintWriter writer, String[] args) { argument 232 super.dump(prefix, fd, writer, args);
|
/frameworks/base/core/java/android/inputmethodservice/ |
H A D | AbstractInputMethodService.java | 195 protected void dump(FileDescriptor fd, PrintWriter fout, String[] args) { argument
|
/frameworks/base/core/java/android/os/ |
H A D | FileObserver.java | 130 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
|
H A D | IBinder.java | 200 * @param fd The raw file descriptor that the dump is being sent to. 203 public void dump(FileDescriptor fd, String[] args) throws RemoteException; argument 210 * @param fd The raw file descriptor that the dump is being sent to. 213 public void dumpAsync(FileDescriptor fd, String[] args) throws RemoteException; argument
|
H A D | SELinux.java | 76 * @param fd FileDescriptor class of the peer socket. 79 public static final native String getPeerContext(FileDescriptor fd); argument
|
/frameworks/base/core/java/com/android/internal/os/ |
H A D | TransferPipe.java | 52 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/core/java/com/android/server/ |
H A D | NetworkManagementSocketTagger.java | 66 public void tag(FileDescriptor fd) throws SocketException { argument 69 Log.d(TAG, "tagSocket(" + fd.getInt$() + ") with statsTag=0x" 73 tagSocketFd(fd, options.statsTag, options.statsUid); 76 private void tagSocketFd(FileDescriptor fd, int tag, int uid) { argument 80 final int errno = native_tagSocketFd(fd, tag, uid); 82 Log.i(TAG, "tagSocketFd(" + fd.getInt$() + ", " 90 public void untag(FileDescriptor fd) throws SocketException { argument 92 Log.i(TAG, "untagSocket(" + fd.getInt$() + ")"); 94 unTagSocketFd(fd); 97 private void unTagSocketFd(FileDescriptor fd) { argument 146 native_tagSocketFd(FileDescriptor fd, int tag, int uid) argument 147 native_untagSocketFd(FileDescriptor fd) argument [all...] |
/frameworks/base/core/jni/android/graphics/ |
H A D | Bitmap.h | 54 Bitmap(void* address, int fd, const SkImageInfo& info, size_t rowBytes, 113 int fd; member in struct:android::Bitmap::__anon841::__anon843
|
/frameworks/base/core/jni/ |
H A D | android_backup_BackupHelperDispatcher.cpp | 52 int fd = jniGetFDFromFileDescriptor(env, fdObj); local 54 amt = read(fd, &flattenedHeader.headerSize, sizeof(flattenedHeader.headerSize)); 64 lseek(fd, remainingHeader, SEEK_CUR); 70 amt = read(fd, &flattenedHeader.version, 82 lseek(fd, remainingHeader, SEEK_CUR); 109 amt = read(fd, buf, flattenedHeader.nameLength); 117 lseek(fd, remainingHeader, SEEK_CUR); 129 int fd = jniGetFDFromFileDescriptor(env, fdObj); local 131 lseek(fd, bytesToSkip, SEEK_CUR); 152 int fd local 178 int fd = jniGetFDFromFileDescriptor(env, fdObj); local [all...] |
H A D | android_backup_FileBackupHelperBase.cpp | 102 int fd = jniGetFDFromFileDescriptor(env, fileDescriptor); local 104 err = restore->WriteSnapshot(fd);
|
H A D | android_net_NetUtils.cpp | 83 int fd = jniGetFDFromFileDescriptor(env, javaFd); local 84 if (setsockopt(fd, SOL_SOCKET, SO_ATTACH_FILTER, &filter, sizeof(filter)) != 0) { 121 int fd = jniGetFDFromFileDescriptor(env, javaFd); local 122 if (setsockopt(fd, SOL_SOCKET, SO_ATTACH_FILTER, &filter, sizeof(filter)) != 0) {
|
H A D | android_os_MemoryFile.cpp | 49 int fd = jniGetFDFromFileDescriptor(env, fileDescriptor); local 50 void* result = mmap(NULL, length, prot, MAP_SHARED, fd, 0); 66 int fd = jniGetFDFromFileDescriptor(env, fileDescriptor); local 67 if (fd >= 0) { 69 close(fd); 77 int fd = jniGetFDFromFileDescriptor(env, fileDescriptor); local 78 if (unpinned && ashmem_pin_region(fd, 0, 0) == ASHMEM_WAS_PURGED) { 79 ashmem_unpin_region(fd, 0, 0); 87 ashmem_unpin_region(fd, 0, 0); 96 int fd local 113 int fd = jniGetFDFromFileDescriptor(env, fileDescriptor); local 122 int fd = jniGetFDFromFileDescriptor(env, fileDescriptor); local [all...] |
/frameworks/base/graphics/java/android/graphics/ |
H A D | BitmapRegionDecoder.java | 74 * @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/libs/androidfw/ |
H A D | ObbFile.cpp | 88 int fd; local 91 fd = ::open(filename, O_RDONLY); 92 if (fd < 0) { 96 success = readFrom(fd); 97 close(fd); 100 ALOGW("failed to read from %s (fd=%d)\n", filename, fd); 107 bool ObbFile::readFrom(int fd) argument 109 if (fd < 0) { 110 ALOGW("attempt to read from invalid fd\ 117 parseObbFile(int fd) argument 228 int fd; local 245 writeTo(int fd) argument 313 int fd; local 330 removeFrom(int fd) argument [all...] |
H A D | ZipFileRO.cpp | 202 int fd = GetFileDescriptor(mHandle); local 212 if (!newMap->create(mFileName, fd, ze.offset, actualLen, true)) { 244 bool ZipFileRO::uncompressEntry(ZipEntryRO entry, int fd) const 247 const int32_t error = ExtractEntryToFile(mHandle, &(zipEntry->entry), fd);
|
/frameworks/base/libs/common_time/ |
H A D | common_clock_service.cpp | 36 status_t CommonClockService::dump(int fd, const Vector<String16>& args) { argument 38 return mTimeServer.dumpClockInterface(fd, args, mListeners.size());
|
H A D | common_time_config_service.cpp | 34 status_t CommonTimeConfigService::dump(int fd, const Vector<String16>& args) { argument 35 return mTimeServer.dumpConfigInterface(fd, args);
|
H A D | diag_thread.cpp | 38 static bool setNonblocking(int fd) { argument 39 int flags = fcntl(fd, F_GETFL); 40 if (fcntl(fd, F_SETFL, flags | O_NONBLOCK) < 0) { 42 fd, errno); 49 static bool setNodelay(int fd) { argument 51 if (setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, &tmp, sizeof(tmp)) < 0) { 53 fd, errno); 213 poll_fds[0].fd = listen_fd_; 216 poll_fds[0].fd = data_fd_; 231 if (poll_fds[0].fd [all...] |