/frameworks/base/core/jni/ |
H A D | android_backup_BackupDataOutput.cpp | 31 int fd = jniGetFDFromFileDescriptor(env, fileDescriptor); local 32 if (fd == -1) { 36 return (int)new BackupDataWriter(fd);
|
H A D | android_ddm_DdmHandleNativeHeap.cpp | 49 int fd = open(path, O_RDONLY); local 50 if (fd != -1) { 53 while ((byteCount = TEMP_FAILURE_RETRY(read(fd, bytes, sizeof(bytes)))) > 0) { 56 close(fd);
|
H A D | android_hardware_SerialPort.cpp | 135 int fd = jniGetFDFromFileDescriptor(env, fileDescriptor); local 137 fd = dup(fd); 138 if (fd < 0) { 142 env->SetIntField(thiz, field_context, fd); 145 if (tcgetattr(fd, &tio)) 156 tcsetattr(fd, TCSANOW, &tio); 157 tcflush(fd, TCIFLUSH); 163 int fd = env->GetIntField(thiz, field_context); local 164 close(fd); 171 int fd = env->GetIntField(thiz, field_context); local 193 int fd = env->GetIntField(thiz, field_context); local 210 int fd = env->GetIntField(thiz, field_context); local 227 int fd = env->GetIntField(thiz, field_context); local 242 int fd = env->GetIntField(thiz, field_context); local [all...] |
H A D | android_os_ParcelFileDescriptor.cpp | 40 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 D | android_util_FileObserver.cpp | 53 static void android_os_fileobserver_observe(JNIEnv* env, jobject object, jint fd) argument 63 int num_bytes = read(fd, event_buf, sizeof(event_buf)); 105 static jint android_os_fileobserver_startWatching(JNIEnv* env, jobject object, jint fd, jstring pathString, jint mask) argument 111 if (fd >= 0) 115 res = inotify_add_watch(fd, path, mask); 125 static void android_os_fileobserver_stopWatching(JNIEnv* env, jobject object, jint fd, jint wfd) argument 129 inotify_rm_watch((int)fd, (uint32_t)wfd);
|
/frameworks/base/libs/androidfw/ |
H A D | StreamingZipInflater.cpp | 49 * Streaming access to compressed asset data in an open fd 51 StreamingZipInflater::StreamingZipInflater(int fd, off64_t compDataStart, argument 53 mFd = fd;
|
/frameworks/base/native/android/ |
H A D | looper.cpp | 70 int ALooper_addFd(ALooper* looper, int fd, int ident, int events, argument 72 return static_cast<Looper*>(looper)->addFd(fd, ident, events, callback, data); 75 int ALooper_removeFd(ALooper* looper, int fd) { argument 76 return static_cast<Looper*>(looper)->removeFd(fd);
|
/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/media/ |
H A D | RingtonePlayer.java | 169 public void dump(FileDescriptor fd, PrintWriter pw, String[] args) { argument
|
/frameworks/base/services/java/com/android/server/ |
H A D | SamplingProfilerService.java | 98 protected void dump(FileDescriptor fd, PrintWriter pw, String[] args) { argument
|
H A D | UpdateLockService.java | 115 public void dump(FileDescriptor fd, PrintWriter pw, String[] args) { argument
|
/frameworks/base/services/java/com/android/server/am/ |
H A D | NativeCrashListener.java | 173 static int readExactly(FileDescriptor fd, byte[] buffer, int offset, int numBytes) argument 177 int n = Libcore.os.read(fd, buffer, offset + totalRead, numBytes); 191 void consumeNativeCrashData(FileDescriptor fd) { argument 198 Libcore.os.setsockoptTimeval(fd, SOL_SOCKET, SO_RCVTIMEO, timeout); 199 Libcore.os.setsockoptTimeval(fd, SOL_SOCKET, SO_SNDTIMEO, timeout); 202 int headerBytes = readExactly(fd, buf, 0, 8); 233 bytes = Libcore.os.read(fd, buf, 0, buf.length);
|
/frameworks/base/services/java/com/android/server/location/ |
H A D | LocationProviderInterface.java | 41 public void dump(FileDescriptor fd, PrintWriter pw, String[] args); argument
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | BitmapFactory_Delegate.java | 140 /*package*/ static Bitmap nativeDecodeFileDescriptor(FileDescriptor fd, argument 174 /*package*/ static boolean nativeIsSeekable(FileDescriptor fd) { argument
|
/frameworks/native/libs/gui/ |
H A D | SensorEventQueue.cpp | 79 const int fd = getFd(); local 97 } while (result != fd); 99 return (result == fd) ? status_t(NO_ERROR) : result;
|
/frameworks/native/libs/utils/ |
H A D | FileMap.cpp | 87 * claim ownership of the fd. 91 bool FileMap::create(const char* origFileName, int fd, off64_t offset, size_t length, argument 108 mFileHandle = (HANDLE) _get_osfhandle(fd); 141 assert(fd >= 0); 169 ptr = mmap(NULL, adjLength, prot, flags, fd, adjOffset);
|
H A D | SystemClock.cpp | 55 int fd; 70 fd = open("/dev/alarm", O_RDWR); 71 if(fd < 0) { 77 res = ioctl(fd, ANDROID_ALARM_SET_RTC, &ts); 82 close(fd); 180 int fd = open("/dev/alarm", O_RDONLY); local 181 if (android_atomic_cmpxchg(-1, fd, &s_fd)) { 182 close(fd);
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
H A D | PhoneSubInfoProxy.java | 149 protected void dump(FileDescriptor fd, PrintWriter pw, String[] args) { argument 150 mPhoneSubInfo.dump(fd, pw, args);
|
/frameworks/av/media/libmedia/ |
H A D | MemoryLeakTrackUtil.cpp | 70 void dumpMemoryAddresses(int fd) argument 161 write(fd, result.string(), result.size()); 166 void dumpMemoryAddresses(int fd) {}
|
H A D | mediametadataretriever.cpp | 112 status_t MediaMetadataRetriever::setDataSource(int fd, int64_t offset, int64_t length) argument 114 ALOGV("setDataSource(%d, %lld, %lld)", fd, offset, length); 120 if (fd < 0 || offset < 0 || length < 0) { 124 return mRetriever->setDataSource(fd, offset, length);
|
/frameworks/av/media/libmediaplayerservice/ |
H A D | MetadataRetrieverClient.cpp | 59 status_t MetadataRetrieverClient::dump(int fd, const Vector<String16>& args) const argument 67 write(fd, result.string(), result.size()); 68 write(fd, "\n", 1); 135 status_t MetadataRetrieverClient::setDataSource(int fd, int64_t offset, int64_t length) argument 137 ALOGV("setDataSource fd=%d, offset=%lld, length=%lld", fd, offset, length); 140 int ret = fstat(fd, &sb); 142 ALOGE("fstat(%d) failed: %d, %s", fd, ret, strerror(errno)); 153 ::close(fd); 163 fd, [all...] |
/frameworks/av/media/libstagefright/ |
H A D | AMRWriter.cpp | 45 AMRWriter::AMRWriter(int fd) argument 46 : mFd(dup(fd)),
|
H A D | StagefrightMediaScanner.cpp | 76 file.fd = 0; 146 int fd = open(path, O_RDONLY | O_LARGEFILE); local 148 if (fd < 0) { 152 status = mRetriever->setDataSource(fd, 0, 0x7ffffffffffffffL); 153 close(fd); 205 char *StagefrightMediaScanner::extractAlbumArt(int fd) { argument 206 ALOGV("extractAlbumArt %d", fd); 208 off64_t size = lseek64(fd, 0, SEEK_END); 212 lseek64(fd, 0, SEEK_SET); 215 if (mRetriever->setDataSource(fd, [all...] |
/frameworks/av/media/libstagefright/timedtext/ |
H A D | TimedTextDriver.cpp | 215 size_t trackIndex, int fd, off64_t offset, off64_t length, const char *mimeType) { 217 if (fd < 0) { 218 ALOGE("Invalid file descriptor: %d", fd); 222 sp<DataSource> dataSource = new FileSource(dup(fd), offset, length); 214 addOutOfBandTextSource( size_t trackIndex, int fd, off64_t offset, off64_t length, const char *mimeType) argument
|
/frameworks/av/media/mtp/ |
H A D | MtpServer.h | 82 MtpObjectFormat format, int fd) 83 : mHandle(handle), mPath(path), mSize(size), mFormat(format), mFD(fd) { 93 MtpServer(int fd, MtpDatabase* database, bool ptp, 114 uint64_t size, MtpObjectFormat format, int fd); 81 ObjectEdit(MtpObjectHandle handle, const char* path, uint64_t size, MtpObjectFormat format, int fd) argument
|