Searched refs:fd (Results 1 - 25 of 626) sorted by relevance

1234567891011>>

/frameworks/av/include/media/
H A DMemoryLeakTrackUtil.h21 * 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 DLocalSocketImpl.java41 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/core/java/android/app/backup/
H A DFullBackupDataOutput.java15 public FullBackupDataOutput(ParcelFileDescriptor fd) { argument
16 mData = new BackupDataOutput(fd.getFileDescriptor());
/frameworks/base/tools/aidl/
H A Daidl_language.cpp7 int isatty(int fd) argument
9 return (fd == 0);
/frameworks/base/services/core/jni/
H A Dcom_android_server_PersistentDataBlockService.cpp34 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 Dcom_android_server_UsbDeviceManager.cpp52 static void set_accessory_string(JNIEnv *env, int fd, int cmd, jobjectArray strArray, int index) argument
57 int length = ioctl(fd, cmd, buffer);
68 int fd = open(DRIVER_NAME, O_RDWR); local
69 if (fd < 0) {
76 set_accessory_string(env, fd, ACCESSORY_GET_STRING_MANUFACTURER, strArray, 0);
77 set_accessory_string(env, fd, ACCESSORY_GET_STRING_MODEL, strArray, 1);
78 set_accessory_string(env, fd, ACCESSORY_GET_STRING_DESCRIPTION, strArray, 2);
79 set_accessory_string(env, fd, ACCESSORY_GET_STRING_VERSION, strArray, 3);
80 set_accessory_string(env, fd, ACCESSORY_GET_STRING_URI, strArray, 4);
81 set_accessory_string(env, fd, ACCESSORY_GET_STRING_SERIA
90 int fd = open(DRIVER_NAME, O_RDWR); local
105 int fd = open(DRIVER_NAME, O_RDWR); local
117 int fd = open(DRIVER_NAME, O_RDWR); local
[all...]
/frameworks/base/libs/androidfw/
H A DObbFile.cpp88 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 Dwaitforvsync.cpp32 int fd = open("/dev/graphics/fb0", O_RDWR); local
33 if (fd >= 0) {
36 int err = ioctl(fd, FBIO_WAITFORVSYNC, &crt);
42 close(fd);
/frameworks/native/libs/binder/
H A DMemoryHeapBase.cpp50 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/com/android/server/
H A DNetworkManagementSocketTagger.java66 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 Dcreate.cpp34 int fd = TEMP_FAILURE_RETRY(open(path, O_WRONLY | O_CREAT | O_TRUNC, 0644)); local
35 if (fd == -1) {
39 if (fchmod(fd, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH) < 0) {
43 if (TEMP_FAILURE_RETRY(flock(fd, LOCK_EX | LOCK_NB)) != 0) {
48 return fd;
50 if (fd != -1) {
51 close(fd);
57 int write_idmap(int fd, const uint32_t *data, size_t size) argument
59 if (lseek(fd, SEEK_SET, 0) < 0) {
64 ssize_t w = TEMP_FAILURE_RETRY(write(fd, dat
170 create_and_write_idmap(const char *target_apk_path, const char *overlay_apk_path, int fd, bool check_if_stale) argument
205 int fd = open_idmap(idmap_path); local
218 idmap_create_fd(const char *target_apk_path, const char *overlay_apk_path, int fd) argument
[all...]
/frameworks/base/core/jni/
H A Dcom_android_internal_os_ZygoteInit.cpp94 int fd; local
97 fd = jniGetFDFromFileDescriptor(env, in);
104 err = dup2(fd, STDIN_FILENO);
107 fd = jniGetFDFromFileDescriptor(env, out);
114 err = dup2(fd, STDOUT_FILENO);
117 fd = jniGetFDFromFileDescriptor(env, errfd);
124 err = dup2(fd, STDERR_FILENO);
131 int fd; local
135 fd = jniGetFDFromFileDescriptor(env, descriptor);
141 fdFlags = fcntl(fd, F_GETF
188 int fd = jniGetFDFromFileDescriptor(env, fdObj); local
218 int fd = jniGetFDFromFileDescriptor(env, fdObj); local
229 com_android_internal_os_ZygoteInit_createFileDescriptor( JNIEnv *env, jobject clazz, jint fd) argument
[all...]
H A Dandroid_os_MemoryFile.cpp49 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 Dandroid_net_LocalSocketImpl.cpp48 /* private native void connectLocal(FileDescriptor fd,
56 int fd; local
58 fd = jniGetFDFromFileDescriptor(env, fileDescriptor);
67 fd,
80 /* private native void bindLocal(FileDescriptor fd, String name, namespace)
89 int fd; local
96 fd = jniGetFDFromFileDescriptor(env, fileDescriptor);
104 ret = socket_local_server_bind(fd, nameUtf8.c_str(), namespaceId);
112 /* private native void listen_native(int fd, int backlog) throws IOException; */
117 int fd; local
147 int fd; local
183 int fd; local
238 int fd; local
287 int fd; local
352 int fd; local
377 int fd; local
491 socket_read_all(JNIEnv *env, jobject thisJ, int fd, void *buffer, size_t len) argument
549 socket_write_all(JNIEnv *env, jobject object, int fd, void *buf, size_t len) argument
631 int fd; local
665 int fd; local
710 int fd; local
732 int fd; local
771 int fd; local
[all...]
/frameworks/av/services/camera/libcameraservice/utils/
H A DCameraTraces.cpp67 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/base/graphics/tests/graphicstests/src/android/graphics/
H A DBitmapFactoryTest.java38 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 DReadWriteUtils.cpp41 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/core/java/android/bluetooth/
H A DBluetoothHealthCallback.java57 * @param fd The Parcel File Descriptor when the channel state is connected.
62 BluetoothDevice device, int prevState, int newState, ParcelFileDescriptor fd,
65 "prevState:" + prevState + "newState:" + newState + "ParcelFd:" + fd +
61 onHealthChannelStateChange(BluetoothHealthAppConfiguration config, BluetoothDevice device, int prevState, int newState, ParcelFileDescriptor fd, int channelId) argument
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/util/
H A DBitmapSerializeUtils.java57 private static native void nativeReadBitmapPixels(Bitmap bitmap, int fd); argument
59 private static native void nativeWriteBitmapPixels(Bitmap bitmap, int fd); argument
/frameworks/rs/cpu_ref/linkloader/android/
H A Dtest-librsloader.c74 int fd = open(argv[1], O_RDONLY); local
75 if (fd < 0) {
81 if (fstat(fd, &sb) != 0) {
83 close(fd);
88 mmap(NULL, sb.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
92 close(fd);
99 close(fd);
113 close(fd);
/frameworks/support/v4/honeycomb/android/support/v4/app/
H A DActivityCompatHoneycomb.java32 static void dump(Activity activity, String prefix, FileDescriptor fd, argument
34 activity.dump(prefix, fd, writer, args);
/frameworks/base/tools/obbtool/
H A Dpbkdf2gen.cpp43 int fd = open("/dev/urandom", O_RDONLY); local
44 if (fd < 0) {
46 close(fd);
52 if (read(fd, &salt, SALT_LEN) != SALT_LEN) {
54 close(fd);
57 close(fd);
/frameworks/base/media/java/android/media/
H A DMediaMetadataRetriever.java70 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...]
H A DMediaExtractor.java90 AssetFileDescriptor fd = null;
93 fd = resolver.openAssetFileDescriptor(uri, "r");
94 if (fd == null) {
100 if (fd.getDeclaredLength() < 0) {
101 setDataSource(fd.getFileDescriptor());
104 fd.getFileDescriptor(),
105 fd.getStartOffset(),
106 fd.getDeclaredLength());
112 if (fd != null) {
113 fd
182 setDataSource(FileDescriptor fd) argument
195 setDataSource( FileDescriptor fd, long offset, long length) argument
[all...]
/frameworks/base/libs/androidfw/tests/
H A DBackupData_test.cpp60 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...]

Completed in 8641 milliseconds

1234567891011>>