/frameworks/native/cmds/atrace/ |
H A D | atrace.cpp | 224 int fd = open(filename, flags); local 225 if (fd == -1) { 233 if (write(fd, str, len) != len) { 239 close(fd); 349 int fd = open(k_traceClockPath, O_RDONLY); local 350 if (fd == -1) { 357 ssize_t n = read(fd, buf, 4096); 358 close(fd); 474 int fd = open(k_ftraceFilterPath, O_RDONLY); local 475 if (fd [all...] |
/frameworks/native/libs/gui/ |
H A D | SensorEventQueue.cpp | 93 const int fd = getFd(); local 111 } while (result != fd); 113 return (result == fd) ? status_t(NO_ERROR) : result;
|
/frameworks/av/drm/libdrmframework/include/ |
H A D | NoOpDrmManagerClientImpl.h | 41 String8 getOriginalMimeType(int uniqueId, const String8& path, int fd); 56 int uniqueId, int fd, off64_t offset, off64_t length, const char* mime);
|
/frameworks/av/drm/libdrmframework/plugins/passthru/include/ |
H A D | DrmPassthruPlugIn.h | 50 String8 onGetOriginalMimeType(int uniqueId, const String8& path, int fd); 77 int uniqueId, DecryptHandle* decryptHandle, int fd, off64_t offset, off64_t length);
|
/frameworks/av/include/drm/ |
H A D | DrmManagerClient.h | 66 * @param[in] fd File descriptor of the protected content to be decrypted 73 sp<DecryptHandle> openDecryptSession(int fd, off64_t offset, off64_t length, const char* mime); 282 * @param[in] fd the file descriptor of the protected content 286 String8 getOriginalMimeType(const String8& path, int fd);
|
/frameworks/av/media/libmediaplayerservice/nuplayer/ |
H A D | NuPlayerDriver.h | 38 virtual status_t setDataSource(int fd, int64_t offset, int64_t length); 64 virtual status_t dump(int fd, const Vector<String16> &args) const;
|
/frameworks/base/core/java/android/content/ |
H A D | ContentProviderNative.java | 238 ParcelFileDescriptor fd; 239 fd = openFile(callingPkg, url, mode, signal); 241 if (fd != null) { 243 fd.writeToParcel(reply, 260 AssetFileDescriptor fd; 261 fd = openAssetFile(callingPkg, url, mode, signal); 263 if (fd != null) { 265 fd.writeToParcel(reply, 311 AssetFileDescriptor fd; 312 fd [all...] |
H A D | ContentResolver.java | 646 AssetFileDescriptor fd = openAssetFileDescriptor(uri, "r", null); 648 return fd != null ? fd.createInputStream() : null; 686 AssetFileDescriptor fd = openAssetFileDescriptor(uri, mode, null); 688 return fd != null ? fd.createOutputStream() : null; 928 AssetFileDescriptor fd = null; 939 fd = unstableProvider.openAssetFile( 941 if (fd == null) { 954 fd [all...] |
/frameworks/base/core/java/android/net/ |
H A D | LocalSocket.java | 71 public LocalSocket(FileDescriptor fd) throws IOException { argument 72 this(new LocalSocketImpl(fd), SOCKET_UNKNOWN); 319 * @return fd or null
|
/frameworks/base/core/java/android/print/ |
H A D | IPrintSpooler.aidl | 46 void writePrintJobData(in ParcelFileDescriptor fd, in PrintJobId printJobId);
|
/frameworks/base/core/jni/ |
H A D | android_backup_FileBackupHelperBase.cpp | 102 int fd = jniGetFDFromFileDescriptor(env, fileDescriptor); local 104 err = restore->WriteSnapshot(fd);
|
H A D | android_os_Debug.cpp | 568 int fd = open("/proc/meminfo", O_RDONLY); local 570 if (fd < 0) { 575 int len = read(fd, buffer, sizeof(buffer)-1); 576 close(fd); 633 fd = open("/sys/block/zram0/mem_used_total", O_RDONLY); 634 if (fd >= 0) { 635 len = read(fd, buffer, sizeof(buffer)-1); 636 close(fd); 857 jniThrowNullPointerException(env, "fd == null"); 867 int fd local 904 int fd = open(fileName8.string(), O_CREAT | O_WRONLY | O_NOFOLLOW, 0666); /* -rw-rw-rw- */ local [all...] |
/frameworks/base/libs/common_time/ |
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);
|
/frameworks/base/packages/FusedLocation/src/com/android/location/fused/ |
H A D | FusedLocationProvider.java | 121 public void onDump(FileDescriptor fd, PrintWriter pw, String[] args) { argument 123 mEngine.dump(fd, pw, args);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
H A D | SystemBars.java | 81 public void dump(FileDescriptor fd, PrintWriter pw, String[] args) { argument 83 mStatusBar.dump(fd, pw, args);
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | BitmapFactory_Delegate.java | 101 /*package*/ static Bitmap nativeDecodeFileDescriptor(FileDescriptor fd, argument 121 /*package*/ static boolean nativeIsSeekable(FileDescriptor fd) { argument
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
H A D | PhoneSubInfoProxy.java | 261 protected void dump(FileDescriptor fd, PrintWriter pw, String[] args) { argument 262 mPhoneSubInfo.dump(fd, pw, args);
|
/frameworks/base/core/java/com/android/internal/os/ |
H A D | ZygoteConnection.java | 231 FileDescriptor fd = mSocket.getFileDescriptor(); 233 if (fd != null) { 234 fdsToClose[0] = fd.getInt$(); 237 fd = ZygoteInit.getServerSocketFileDescriptor(); 239 if (fd != null) { 240 fdsToClose[1] = fd.getInt$(); 243 fd = null; 887 for (FileDescriptor fd: descriptors) { 888 IoUtils.closeQuietly(fd); 964 for (FileDescriptor fd [all...] |
/frameworks/native/cmds/servicemanager/ |
H A D | binder.c | 90 int fd; member in struct:binder_state 106 bs->fd = open("/dev/binder", O_RDWR); 107 if (bs->fd < 0) { 113 if ((ioctl(bs->fd, BINDER_VERSION, &vers) == -1) || 120 bs->mapped = mmap(NULL, mapsize, PROT_READ, MAP_PRIVATE, bs->fd, 0); 130 close(bs->fd); 139 close(bs->fd); 145 return ioctl(bs->fd, BINDER_SET_CONTEXT_MGR, 0); 159 res = ioctl(bs->fd, BINDER_WRITE_READ, &bwr); 351 res = ioctl(bs->fd, BINDER_WRITE_REA [all...] |
/frameworks/base/media/java/android/media/ |
H A D | MediaPlayer.java | 978 AssetFileDescriptor fd = null; 981 fd = resolver.openAssetFileDescriptor(uri, "r"); 982 if (fd == null) { 988 if (fd.getDeclaredLength() < 0) { 989 setDataSource(fd.getFileDescriptor()); 991 setDataSource(fd.getFileDescriptor(), fd.getStartOffset(), fd.getDeclaredLength()); 997 if (fd != null) { 998 fd 1091 setDataSource(FileDescriptor fd) argument 1107 setDataSource(FileDescriptor fd, long offset, long length) argument 1112 _setDataSource(FileDescriptor fd, long offset, long length) argument 2150 addTimedTextSource(FileDescriptor fd, String mimeType) argument 2174 addTimedTextSource(FileDescriptor fd, long offset, long length, String mime) argument [all...] |
/frameworks/av/drm/libdrmframework/ |
H A D | DrmManagerClient.cpp | 67 String8 DrmManagerClient::getOriginalMimeType(const String8& path, int fd) { argument 68 return mDrmManagerClientImpl->getOriginalMimeType(mUniqueId, path, fd); 120 int fd, off64_t offset, off64_t length, const char* mime) { 123 mUniqueId, fd, offset, length, mime); 119 openDecryptSession( int fd, off64_t offset, off64_t length, const char* mime) argument
|
/frameworks/av/include/camera/ |
H A D | VendorTagDescriptor.h | 87 void dump(int fd, int verbosity, int indentation) const;
|
/frameworks/av/include/media/ |
H A D | mediametadataretriever.h | 76 status_t setDataSource(int fd, int64_t offset, int64_t length);
|
/frameworks/av/include/media/stagefright/ |
H A D | AACWriter.h | 30 AACWriter(int fd);
|
H A D | FileSource.h | 33 // FileSource takes ownership and will close the fd 34 FileSource(int fd, int64_t offset, int64_t length);
|