Searched refs:fd (Results 1 - 25 of 486) 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/app/backup/
H A DFullBackupDataOutput.java15 public FullBackupDataOutput(ParcelFileDescriptor fd) { argument
16 mData = new BackupDataOutput(fd.getFileDescriptor());
/frameworks/base/core/java/android/net/
H A DLocalSocketImpl.java37 private FileDescriptor fd; field in class:LocalSocketImpl
53 return available_native(fd);
67 FileDescriptor myFd = fd;
85 FileDescriptor myFd = fd;
120 FileDescriptor myFd = fd;
134 FileDescriptor myFd = fd;
141 private native int available_native(FileDescriptor fd) throws IOException; argument
142 private native void close_native(FileDescriptor fd) throws IOException; argument
143 private native int read_native(FileDescriptor fd) throws IOException; argument
145 FileDescriptor fd) throw
144 readba_native(byte[] b, int off, int len, FileDescriptor fd) argument
146 writeba_native(byte[] b, int off, int len, FileDescriptor fd) argument
148 write_native(int b, FileDescriptor fd) argument
150 connectLocal(FileDescriptor fd, String name, int namespace) argument
152 bindLocal(FileDescriptor fd, String name, int namespace) argument
156 listen_native(FileDescriptor fd, int backlog) argument
158 shutdown(FileDescriptor fd, boolean shutdownInput) argument
159 getPeerCredentials_native( FileDescriptor fd) argument
161 getOption_native(FileDescriptor fd, int optID) argument
163 setOption_native(FileDescriptor fd, int optID, int b, int value) argument
176 accept(FileDescriptor fd, LocalSocketImpl s) argument
193 LocalSocketImpl(FileDescriptor fd) argument
[all...]
/frameworks/base/tools/aidl/
H A Daidl_language.cpp7 int isatty(int fd) argument
9 return (fd == 0);
/frameworks/native/include/utils/
H A DCompat.h30 static inline off64_t lseek64(int fd, off64_t offset, int whence) { argument
31 return lseek(fd, offset, whence);
35 static inline ssize_t pread64(int fd, void* buf, size_t nbytes, off64_t offset) { argument
36 return pread(fd, buf, nbytes, offset);
/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.cpp55 int fd = ashmem_create_region(name == NULL ? "MemoryHeapBase" : name, size); local
56 ALOGE_IF(fd<0, "error creating ashmem region: %s", strerror(errno));
57 if (fd >= 0) {
58 if (mapfd(fd, size) == NO_ERROR) {
60 ashmem_set_prot_region(fd, PROT_READ);
74 int fd = open(device, open_flags); local
75 ALOGE_IF(fd<0, "error opening %s: %s", device, strerror(errno));
76 if (fd >= 0) {
79 if (mapfd(fd, size) == NO_ERROR) {
85 MemoryHeapBase::MemoryHeapBase(int fd, size_ argument
94 init(int fd, void *base, int size, int flags, const char* device) argument
107 mapfd(int fd, size_t size, uint32_t offset) argument
155 int fd = android_atomic_or(-1, &mFD); local
[all...]
/frameworks/base/services/jni/
H A Dcom_android_server_UsbDeviceManager.cpp51 static void set_accessory_string(JNIEnv *env, int fd, int cmd, jobjectArray strArray, int index) argument
56 int length = ioctl(fd, cmd, buffer);
67 int fd = open(DRIVER_NAME, O_RDWR); local
68 if (fd < 0) {
75 set_accessory_string(env, fd, ACCESSORY_GET_STRING_MANUFACTURER, strArray, 0);
76 set_accessory_string(env, fd, ACCESSORY_GET_STRING_MODEL, strArray, 1);
77 set_accessory_string(env, fd, ACCESSORY_GET_STRING_DESCRIPTION, strArray, 2);
78 set_accessory_string(env, fd, ACCESSORY_GET_STRING_VERSION, strArray, 3);
79 set_accessory_string(env, fd, ACCESSORY_GET_STRING_URI, strArray, 4);
80 set_accessory_string(env, fd, ACCESSORY_GET_STRING_SERIA
89 int fd = open(DRIVER_NAME, O_RDWR); local
104 int fd = open(DRIVER_NAME, O_RDWR); local
116 int fd = open(DRIVER_NAME, O_RDWR); local
[all...]
H A Dcom_android_server_AlarmManagerService.cpp40 static jint android_server_AlarmManagerService_setKernelTimezone(JNIEnv* env, jobject obj, jint fd, jint minswest) argument
63 static void android_server_AlarmManagerService_close(JNIEnv* env, jobject obj, jint fd) argument
65 close(fd);
68 static void android_server_AlarmManagerService_set(JNIEnv* env, jobject obj, jint fd, jint type, jlong seconds, jlong nanoseconds) argument
74 int result = ioctl(fd, ANDROID_ALARM_SET(type), &ts);
81 static jint android_server_AlarmManagerService_waitForAlarm(JNIEnv* env, jobject obj, jint fd) argument
87 result = ioctl(fd, ANDROID_ALARM_WAIT);
/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/core/jni/
H A Dandroid_os_ParcelFileDescriptor.cpp40 int fd = dup(origfd); local
41 if (fd < 0) {
45 return jniCreateFileDescriptor(env, fd);
49 jobject clazz, jint fd)
51 return jniCreateFileDescriptor(env, fd);
80 jint fd = getFd(env, clazz); local
81 if (fd < 0) {
87 if (fstat(fd, &st) != 0) {
101 jint fd = getFd(env, clazz); local
102 if (fd <
48 android_os_ParcelFileDescriptor_getFileDescriptorFromFdNoDup(JNIEnv* env, jobject clazz, jint fd) argument
112 jint fd = getFd(env, clazz); local
[all...]
H A Dandroid_os_MemoryFile.cpp49 int fd = jniGetFDFromFileDescriptor(env, fileDescriptor); local
50 jint result = (jint)mmap(NULL, length, prot, MAP_SHARED, fd, 0);
65 int fd = jniGetFDFromFileDescriptor(env, fileDescriptor); local
66 if (fd >= 0) {
68 close(fd);
76 int fd = jniGetFDFromFileDescriptor(env, fileDescriptor); local
77 if (unpinned && ashmem_pin_region(fd, 0, 0) == ASHMEM_WAS_PURGED) {
78 ashmem_unpin_region(fd, 0, 0);
86 ashmem_unpin_region(fd, 0, 0);
95 int fd local
112 int fd = jniGetFDFromFileDescriptor(env, fileDescriptor); local
121 int fd = jniGetFDFromFileDescriptor(env, fileDescriptor); local
[all...]
H A Dandroid_net_LocalSocketImpl.cpp67 /* private native void connectLocal(FileDescriptor fd,
76 int fd; local
80 fd = jniGetFDFromFileDescriptor(env, fileDescriptor);
87 fd,
102 /* private native void bindLocal(FileDescriptor fd, String name, namespace)
111 int fd; local
119 fd = jniGetFDFromFileDescriptor(env, fileDescriptor);
127 ret = socket_local_server_bind(fd, nameUtf8, namespaceId);
137 /* private native void listen_native(int fd, int backlog) throws IOException; */
142 int fd; local
172 int fd; local
208 int fd; local
263 int fd; local
312 int fd; local
378 int fd; local
426 int fd; local
517 socket_read_all(JNIEnv *env, jobject thisJ, int fd, void *buffer, size_t len) argument
575 socket_write_all(JNIEnv *env, jobject object, int fd, void *buf, size_t len) argument
657 int fd; local
691 int fd; local
736 int fd; local
758 int fd; local
797 int fd; local
[all...]
/frameworks/base/core/java/android/os/
H A DParcelFileDescriptor.java37 //consider ParcelFileDescriptor A(fileDescriptor fd), ParcelFileDescriptor B(A)
38 //in this particular case fd.close might be invoked twice.
117 FileDescriptor fd = Parcel.openFileDescriptor(path, mode);
118 return fd != null ? new ParcelFileDescriptor(fd) : null;
128 FileDescriptor fd = Parcel.dupFileDescriptor(orig);
129 return fd != null ? new ParcelFileDescriptor(fd) : null;
143 * Create a new ParcelFileDescriptor from a raw native fd. The new
144 * ParcelFileDescriptor holds a dup of the original fd passe
152 fromFd(int fd) argument
158 getFileDescriptorFromFd(int fd) argument
170 adoptFd(int fd) argument
176 getFileDescriptorFromFdNoDup(int fd) argument
332 AutoCloseInputStream(ParcelFileDescriptor fd) argument
355 AutoCloseOutputStream(ParcelFileDescriptor fd) argument
[all...]
/frameworks/base/media/java/android/media/
H A DMediaExtractor.java85 AssetFileDescriptor fd = null;
88 fd = resolver.openAssetFileDescriptor(uri, "r");
89 if (fd == null) {
95 if (fd.getDeclaredLength() < 0) {
96 setDataSource(fd.getFileDescriptor());
99 fd.getFileDescriptor(),
100 fd.getStartOffset(),
101 fd.getDeclaredLength());
107 if (fd != null) {
108 fd
164 setDataSource(FileDescriptor fd) argument
177 setDataSource( FileDescriptor fd, long offset, long length) argument
[all...]
H A DMediaMetadataRetriever.java65 FileDescriptor fd = is.getFD();
66 setDataSource(fd, 0, 0x7ffffffffffffffL);
112 * @param fd the FileDescriptor for the file you want to play
119 public native void setDataSource(FileDescriptor fd, long offset, long length) argument
128 * @param fd the FileDescriptor for the file you want to play
131 public void setDataSource(FileDescriptor fd) argument
134 setDataSource(fd, 0, 0x7ffffffffffffffL);
159 AssetFileDescriptor fd = null;
163 fd = resolver.openAssetFileDescriptor(uri, "r");
167 if (fd
[all...]
/frameworks/base/core/jni/android/graphics/
H A DUtils.h44 AutoFDSeek(int fd) : fFD(fd) { argument
45 fCurr = ::lseek(fd, 0, SEEK_CUR);
/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/compile/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/native/libs/utils/
H A DLooper.cpp53 int SimpleLooperCallback::handleEvent(int fd, int events, void* data) { argument
54 return mCallback(fd, events, data);
94 eventItem.data.fd = mWakeReadPipeFd;
164 int fd = response.request.fd; local
169 "fd=%d, events=0x%x, data=%p",
170 this, ident, fd, events, data);
172 if (outFd != NULL) *outFd = fd;
248 int fd = eventItems[i].data.fd; local
314 int fd = response.request.fd; local
396 addFd(int fd, int ident, int events, ALooper_callbackFunc callback, void* data) argument
400 addFd(int fd, int ident, int events, const sp<LooperCallback>& callback, void* data) argument
458 removeFd(int fd) argument
[all...]

Completed in 378 milliseconds

1234567891011>>