/frameworks/av/include/media/ |
H A D | MemoryLeakTrackUtil.h | 21 * Dump the memory address of the calling process to the given fd. 23 extern void dumpMemoryAddresses(int fd);
|
/frameworks/base/core/java/android/net/ |
H A D | LocalSocketImpl.java | 41 private FileDescriptor fd; field in class:LocalSocketImpl 42 /** whether fd is created internally */ 59 FileDescriptor myFd = fd; 76 FileDescriptor myFd = fd; 94 FileDescriptor myFd = fd; 129 FileDescriptor myFd = fd; 143 FileDescriptor myFd = fd; 157 FileDescriptor myFd = fd; 169 private native int pending_native(FileDescriptor fd) throws IOException; argument 170 private native int available_native(FileDescriptor fd) throw argument 171 read_native(FileDescriptor fd) argument 172 readba_native(byte[] b, int off, int len, FileDescriptor fd) argument 174 writeba_native(byte[] b, int off, int len, FileDescriptor fd) argument 176 write_native(int b, FileDescriptor fd) argument 178 connectLocal(FileDescriptor fd, String name, int namespace) argument 180 bindLocal(FileDescriptor fd, String name, int namespace) argument 182 listen_native(FileDescriptor fd, int backlog) argument 184 shutdown(FileDescriptor fd, boolean shutdownInput) argument 185 getPeerCredentials_native( FileDescriptor fd) argument 187 getOption_native(FileDescriptor fd, int optID) argument 189 setOption_native(FileDescriptor fd, int optID, int b, int value) argument 202 accept(FileDescriptor fd, LocalSocketImpl s) argument 219 LocalSocketImpl(FileDescriptor fd) argument [all...] |
/frameworks/base/tools/aidl/ |
H A D | aidl_language.cpp | 7 int isatty(int fd) argument 9 return (fd == 0);
|
/frameworks/base/services/core/jni/ |
H A D | com_android_server_UsbDeviceManager.cpp | 44 static void set_accessory_string(JNIEnv *env, int fd, int cmd, jobjectArray strArray, int index) argument 49 ioctl(fd, cmd, buffer); 61 int fd = open(DRIVER_NAME, O_RDWR); local 62 if (fd < 0) { 69 set_accessory_string(env, fd, ACCESSORY_GET_STRING_MANUFACTURER, strArray, 0); 70 set_accessory_string(env, fd, ACCESSORY_GET_STRING_MODEL, strArray, 1); 71 set_accessory_string(env, fd, ACCESSORY_GET_STRING_DESCRIPTION, strArray, 2); 72 set_accessory_string(env, fd, ACCESSORY_GET_STRING_VERSION, strArray, 3); 73 set_accessory_string(env, fd, ACCESSORY_GET_STRING_URI, strArray, 4); 74 set_accessory_string(env, fd, ACCESSORY_GET_STRING_SERIA 83 int fd = open(DRIVER_NAME, O_RDWR); local 99 int fd = open(DRIVER_NAME, O_RDWR); local 111 int fd = open(DRIVER_NAME, O_RDWR); local [all...] |
H A D | com_android_server_PersistentDataBlockService.cpp | 34 uint64_t get_block_device_size(int fd) argument 39 ret = ioctl(fd, BLKGETSIZE64, &size); 47 int wipe_block_device(int fd) argument 51 uint64_t len = get_block_device_size(fd); 59 ret = ioctl(fd, BLKSECDISCARD, &range); 64 ret = ioctl(fd, BLKDISCARD, &range); 81 int fd = open(path, O_RDONLY); local 83 if (fd < 0) 86 return get_block_device_size(fd); 91 int fd local [all...] |
H A D | com_android_server_UsbMidiDevice.cpp | 48 int fd = open(path, O_RDWR); local 49 if (fd < 0) { 57 int ret = ioctl(fd, SNDRV_CTL_IOCTL_RAWMIDI_INFO, &info); 58 close(fd); 85 int fd = open(path, O_RDWR); local 86 if (fd < 0) { 91 jobject fileDescriptor = jniCreateFileDescriptor(env, fd); 119 jobject fd = env->GetObjectArrayElement(fds, i); local 120 close(jniGetFDFromFileDescriptor(env, fd));
|
/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...] |
/frameworks/native/services/surfaceflinger/tests/waitforvsync/ |
H A D | waitforvsync.cpp | 33 int fd = open("/dev/graphics/fb0", O_RDWR); local 34 if (fd >= 0) { 37 int err = ioctl(fd, FBIO_WAITFORVSYNC, &crt); 43 close(fd);
|
/frameworks/native/libs/binder/ |
H A D | MemoryHeapBase.cpp | 50 int fd = ashmem_create_region(name == NULL ? "MemoryHeapBase" : name, size); local 51 ALOGE_IF(fd<0, "error creating ashmem region: %s", strerror(errno)); 52 if (fd >= 0) { 53 if (mapfd(fd, size) == NO_ERROR) { 55 ashmem_set_prot_region(fd, PROT_READ); 69 int fd = open(device, open_flags); local 70 ALOGE_IF(fd<0, "error opening %s: %s", device, strerror(errno)); 71 if (fd >= 0) { 74 if (mapfd(fd, size) == NO_ERROR) { 80 MemoryHeapBase::MemoryHeapBase(int fd, size_ argument 89 init(int fd, void *base, int size, int flags, const char* device) argument 102 mapfd(int fd, size_t size, uint32_t offset) argument 141 int fd = android_atomic_or(-1, &mFD); local [all...] |
/frameworks/base/core/java/android/app/backup/ |
H A D | FullBackupDataOutput.java | 22 public FullBackupDataOutput(ParcelFileDescriptor fd) { argument 23 mData = new BackupDataOutput(fd.getFileDescriptor());
|
/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/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 | LOCK_NB)) != 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, SEEK_SET, 0) < 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/core/jni/ |
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_FileObserver.cpp | 49 static void android_os_fileobserver_observe(JNIEnv* env, jobject object, jint fd) argument 59 int num_bytes = read(fd, event_buf, sizeof(event_buf)); 101 static jint android_os_fileobserver_startWatching(JNIEnv* env, jobject object, jint fd, jstring pathString, jint mask) argument 107 if (fd >= 0) 111 res = inotify_add_watch(fd, path, mask); 121 static void android_os_fileobserver_stopWatching(JNIEnv* env, jobject object, jint fd, jint wfd) argument 125 inotify_rm_watch((int)fd, (uint32_t)wfd);
|
H A D | android_net_LocalSocketImpl.cpp | 51 /* private native void connectLocal(FileDescriptor fd, 59 int fd; local 61 fd = jniGetFDFromFileDescriptor(env, fileDescriptor); 70 fd, 83 /* private native void bindLocal(FileDescriptor fd, String name, namespace) 92 int fd; local 99 fd = jniGetFDFromFileDescriptor(env, fileDescriptor); 107 ret = socket_local_server_bind(fd, nameUtf8.c_str(), namespaceId); 115 /* private native void listen_native(int fd, int backlog) throws IOException; */ 120 int fd; local 150 int fd; local 186 int fd; local 241 int fd; local 290 int fd; local 355 int fd; local 380 int fd; local 494 socket_read_all(JNIEnv *env, jobject thisJ, int fd, void *buffer, size_t len) argument 551 socket_write_all(JNIEnv *env, jobject object, int fd, void *buf, size_t len) argument 633 int fd; local 667 int fd; local 712 int fd; local 734 int fd; local 773 int fd; local [all...] |
/frameworks/av/services/camera/libcameraservice/utils/ |
H A D | CameraTraces.cpp | 67 status_t CameraTraces::dump(int fd, const Vector<String16> &args __attribute__((unused))) { argument 68 ALOGV("%s: fd = %d", __FUNCTION__, fd); 72 if (fd < 0) { 73 ALOGW("%s: Negative FD (%d)", __FUNCTION__, fd); 77 dprintf(fd, "Camera traces (%zu):\n", pcsList.size()); 80 dprintf(fd, " No camera traces collected.\n"); 87 pcs.dump(fd, DUMP_INDENT);
|
/frameworks/av/services/audioflinger/ |
H A D | FastCaptureDumpState.cpp | 36 void FastCaptureDumpState::dump(int fd) const 39 dprintf(fd, " FastCapture not initialized\n"); 45 dprintf(fd, " FastCapture command=%s readSequence=%u framesRead=%u\n"
|
/frameworks/base/graphics/tests/graphicstests/src/android/graphics/ |
H A D | BitmapFactoryTest.java | 38 FileDescriptor fd = pfd.getFileDescriptor(); 39 assertNotNull("Got null FileDescriptor", fd); 40 assertTrue("Got invalid FileDescriptor", fd.valid()); 41 Bitmap bitmap = BitmapFactory.decodeFileDescriptor(fd);
|
/frameworks/av/drm/common/ |
H A D | ReadWriteUtils.cpp | 41 int fd = fileno(file); local 44 if (fstat(fd, &sb) == 0 && sb.st_size > 0) { 47 if (length == read(fd, (void*) bytes, length)) { 63 int fd = fileno(file); local 66 if (fstat(fd, &sb) == 0 && sb.st_size > 0) { 69 if (length != read(fd, (void*) *buffer, length)) { 83 int fd = fileno(file); local 86 if (FAILURE != ftruncate(fd, size)) { 87 if (size != write(fd, data.string(), size)) { 100 int fd local [all...] |
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/util/ |
H A D | BitmapSerializeUtils.java | 57 private static native void nativeReadBitmapPixels(Bitmap bitmap, int fd); argument 59 private static native void nativeWriteBitmapPixels(Bitmap bitmap, int fd); argument
|
/frameworks/support/v4/honeycomb/android/support/v4/app/ |
H A D | ActivityCompatHoneycomb.java | 32 static void dump(Activity activity, String prefix, FileDescriptor fd, argument 34 activity.dump(prefix, fd, writer, args);
|
/frameworks/base/tools/obbtool/ |
H A D | pbkdf2gen.cpp | 44 int fd = open("/dev/urandom", O_RDONLY); local 45 if (fd < 0) { 47 close(fd); 53 if (read(fd, &salt, SALT_LEN) != SALT_LEN) { 55 close(fd); 58 close(fd);
|
/frameworks/base/media/java/android/media/ |
H A D | MediaMetadataRetriever.java | 70 FileDescriptor fd = is.getFD(); 71 setDataSource(fd, 0, 0x7ffffffffffffffL); 122 * @param fd the FileDescriptor for the file you want to play 129 public native void setDataSource(FileDescriptor fd, long offset, long length) argument 138 * @param fd the FileDescriptor for the file you want to play 141 public void setDataSource(FileDescriptor fd) argument 144 setDataSource(fd, 0, 0x7ffffffffffffffL); 169 AssetFileDescriptor fd = null; 173 fd = resolver.openAssetFileDescriptor(uri, "r"); 177 if (fd [all...] |
/frameworks/base/libs/androidfw/tests/ |
H A D | BackupData_test.cpp | 60 int fd = ::open(mFilename.string(), O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR); local 61 if (fd < 0) { 75 int fd = ::open(mFilename.string(), O_WRONLY); local 76 BackupDataWriter* writer = new BackupDataWriter(fd); 83 ::close(fd); 84 fd = ::open(mFilename.string(), O_RDONLY); 85 BackupDataReader* reader = new BackupDataReader(fd); 117 int fd = ::open(mFilename.string(), O_WRONLY); local 118 BackupDataWriter* writer = new BackupDataWriter(fd); 124 ::close(fd); 165 int fd = ::open(mFilename.string(), O_WRONLY); local 220 int fd = ::open(mFilename.string(), O_WRONLY); local 259 int fd = ::open(mFilename.string(), O_WRONLY); local 320 int fd = ::open(mFilename.string(), O_WRONLY); local 388 int fd = ::open(mFilename.string(), O_WRONLY); local [all...] |
/frameworks/av/media/libstagefright/ |
H A D | StagefrightMediaScanner.cpp | 84 int fd = open(path, O_RDONLY | O_LARGEFILE); local 86 if (fd < 0) { 90 status = mRetriever->setDataSource(fd, 0, 0x7ffffffffffffffL); 91 close(fd); 143 MediaAlbumArt *StagefrightMediaScanner::extractAlbumArt(int fd) { argument 144 ALOGV("extractAlbumArt %d", fd); 146 off64_t size = lseek64(fd, 0, SEEK_END); 150 lseek64(fd, 0, SEEK_SET); 153 if (mRetriever->setDataSource(fd, 0, size) == OK) {
|