/frameworks/av/media/libstagefright/omx/ |
H A D | OMXMaster.cpp | 38 int fd = open(filename, O_RDONLY); local 39 if (fd < 0) { 43 ssize_t len = read(fd, mProcessName, sizeof(mProcessName)); 51 close(fd);
|
/frameworks/av/media/mtp/ |
H A D | MtpServer.h | 95 MtpObjectFormat format, int fd) 96 : mHandle(handle), mPath(path), mSize(size), mFormat(format), mFD(fd) { 133 uint64_t size, MtpObjectFormat format, int fd); 94 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 | 87 void FrameProcessorBase::dump(int fd, const Vector<String16>& /*args*/) { argument 89 write(fd, result.string(), result.size()); 97 lastFrame.dump(fd, 2, 6);
|
/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 225 idmap_verify_fd(const char *target_apk_path, const char *overlay_apk_path, int fd) argument [all...] |
/frameworks/base/cmds/incidentd/src/ |
H A D | IncidentService.cpp | 221 int fd = dup(stream.get()); local 222 if (fd < 0) { 226 mHandler->scheduleRunReport(new ReportRequest(args, listener, fd));
|
H A D | Reporter.cpp | 41 write_all(int fd, uint8_t const* buf, size_t size) argument 44 ssize_t amt = ::write(fd, buf, size); 59 fd(f), 88 ReportRequestSet::setMainFd(int fd) argument 90 mMainFd = fd; 103 if (request->fd >= 0 && request->err == NO_ERROR) { 104 err = write_all(request->fd, buf, size); 157 if ((*it)->fd < 0 && mainFd < 0) { 198 int fd = request->fd > local 283 create_file(int* fd) argument [all...] |
/frameworks/base/cmds/screencap/ |
H A D | screencap.cpp | 115 int fd = -1; local 118 fd = dup(STDOUT_FILENO); 121 fd = open(fn, O_WRONLY | O_CREAT | O_TRUNC, 0664); 122 if (fd == -1) { 132 if (fd == -1) { 197 } fdStream(fd); 203 write(fd, &w, 4); 204 write(fd, &h, 4); 205 write(fd, &f, 4); 208 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 | 198 protected void dump(FileDescriptor fd, PrintWriter fout, String[] args) { argument
|
/frameworks/base/core/java/android/os/ |
H A D | FileObserver.java | 131 private native void observe(int fd); argument 132 private native int startWatching(int fd, String path, int mask); argument 133 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/android/util/ |
H A D | MemoryIntArray.java | 177 // Don't let writing to a parcel to close our fd - plz 225 private native long nativeOpen(int fd, boolean owner); argument 226 private native void nativeClose(int fd, long memoryAddr, boolean owner); argument 227 private native int nativeGet(int fd, long memoryAddr, int index); argument 228 private native void nativeSet(int fd, long memoryAddr, int index, int value); argument 229 private native int nativeSize(int fd); argument
|
/frameworks/base/core/java/android/view/textclassifier/ |
H A D | SmartSelection.java | 40 SmartSelection(int fd) { argument 41 mCtx = nativeNew(fd); 81 public static String getLanguage(int fd) { argument 82 return nativeGetLanguage(fd); 88 public static int getVersion(int fd) { argument 89 return nativeGetVersion(fd); 92 private static native long nativeNew(int fd); argument 102 private static native String nativeGetLanguage(int fd); argument 104 private static native int nativeGetVersion(int fd); argument
|
/frameworks/base/core/java/com/android/internal/os/ |
H A D | TransferPipe.java | 53 void go(IInterface iface, FileDescriptor fd, String prefix, argument 141 // 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 | 71 public void tag(FileDescriptor fd) throws SocketException { argument 74 Log.d(TAG, "tagSocket(" + fd.getInt$() + ") with statsTag=0x" 81 tagSocketFd(fd, options.statsTag, options.statsUid); 84 private void tagSocketFd(FileDescriptor fd, int tag, int uid) { argument 88 final int errno = native_tagSocketFd(fd, tag, uid); 90 Log.i(TAG, "tagSocketFd(" + fd.getInt$() + ", " 98 public void untag(FileDescriptor fd) throws SocketException { argument 100 Log.i(TAG, "untagSocket(" + fd.getInt$() + ")"); 102 unTagSocketFd(fd); 105 private void unTagSocketFd(FileDescriptor fd) { argument 154 native_tagSocketFd(FileDescriptor fd, int tag, int uid) argument 155 native_untagSocketFd(FileDescriptor fd) argument [all...] |
/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_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...] |
H A D | android_util_jar_StrictJarFile.cpp | 55 static jlong StrictJarFile_nativeOpenJarFile(JNIEnv* env, jobject, jstring name, jint fd) { argument 63 int32_t error = OpenArchiveFd(fd, nameChars.c_str(), &handle,
|
/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); 273 FileDescriptor fd, boolean isShareable); 85 newInstance( FileDescriptor fd, boolean isShareable) argument 272 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);
|