Searched defs:fd (Results 51 - 75 of 466) sorted by relevance

1234567891011>>

/frameworks/base/core/jni/
H A Dandroid_backup_BackupDataInput.cpp35 int fd = jniGetFDFromFileDescriptor(env, fileDescriptor); local
36 if (fd == -1) {
40 return (jlong)new BackupDataReader(fd);
H A Dandroid_backup_BackupDataOutput.cpp31 int fd = jniGetFDFromFileDescriptor(env, fileDescriptor); local
32 if (fd == -1) {
36 return (jlong)new BackupDataWriter(fd);
H A Dandroid_ddm_DdmHandleNativeHeap.cpp57 int fd = open(path, O_RDONLY); local
58 if (fd != -1) {
61 while ((byteCount = TEMP_FAILURE_RETRY(read(fd, bytes, sizeof(bytes)))) > 0) {
64 close(fd);
H A Dandroid_hardware_SerialPort.cpp135 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 Dandroid_util_FileObserver.cpp53 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 DStreamingZipInflater.cpp49 * Streaming access to compressed asset data in an open fd
51 StreamingZipInflater::StreamingZipInflater(int fd, off64_t compDataStart, argument
53 mFd = fd;
/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...]
/frameworks/base/native/android/
H A Dlooper.cpp78 int ALooper_addFd(ALooper* looper, int fd, int ident, int events, argument
80 return ALooper_to_Looper(looper)->addFd(fd, ident, events, callback, data);
83 int ALooper_removeFd(ALooper* looper, int fd) { argument
84 return ALooper_to_Looper(looper)->removeFd(fd);
/frameworks/base/packages/FusedLocation/src/com/android/location/fused/
H A DFusedLocationProvider.java121 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 DRingtonePlayer.java169 public void dump(FileDescriptor fd, PrintWriter pw, String[] args) { argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DSystemBars.java81 public void dump(FileDescriptor fd, PrintWriter pw, String[] args) { argument
83 mStatusBar.dump(fd, pw, args);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DAccessibilityController.java53 public void dump(FileDescriptor fd, PrintWriter pw, String[] args) { argument
H A DNextAlarmController.java46 public void dump(FileDescriptor fd, PrintWriter pw, String[] args) { argument
/frameworks/base/services/core/java/com/android/server/
H A DSamplingProfilerService.java98 protected void dump(FileDescriptor fd, PrintWriter pw, String[] args) { argument
H A DUpdateLockService.java114 public void dump(FileDescriptor fd, PrintWriter pw, String[] args) { argument
/frameworks/base/services/core/java/com/android/server/am/
H A DNativeCrashListener.java180 static int readExactly(FileDescriptor fd, byte[] buffer, int offset, int numBytes) argument
184 int n = Os.read(fd, buffer, offset + totalRead, numBytes);
198 void consumeNativeCrashData(FileDescriptor fd) { argument
205 Os.setsockoptTimeval(fd, SOL_SOCKET, SO_RCVTIMEO, timeout);
206 Os.setsockoptTimeval(fd, SOL_SOCKET, SO_SNDTIMEO, timeout);
209 int headerBytes = readExactly(fd, buf, 0, 8);
240 bytes = Os.read(fd, buf, 0, buf.length);
/frameworks/base/services/core/java/com/android/server/location/
H A DLocationProviderInterface.java41 public void dump(FileDescriptor fd, PrintWriter pw, String[] args); argument
/frameworks/ex/framesequence/jni/
H A DStream.h57 FileStream(FILE* fd) : mFd(fd) {} argument
/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...]
H A DStatic.cpp51 FdTextOutput(int fd) : BufferedTextOutput(MULTITHREADED), mFD(fd) { } argument
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
H A DWifiNetworkScoreCache.java168 @Override protected final void dump(FileDescriptor fd, PrintWriter writer, String[] args) { argument
/frameworks/av/media/libcpustats/
H A DThreadCpuUsage.cpp174 int fd = open("/sys/devices/system/cpu/kernel_max", O_RDONLY); local
175 if (fd >= 0) {
178 ssize_t actual = read(fd, kernelMax, sizeof(kernelMax));
194 (void) close(fd);
210 // double-checked locking idiom is not broken for atomic values such as fd
211 int fd = sScalingFds[cpuNum]; local
212 if (fd < 0) {
215 fd = sScalingFds[cpuNum];
216 if (fd < 0) {
224 fd
[all...]
/frameworks/av/media/libmedia/
H A DMemoryLeakTrackUtil.cpp75 void dumpMemoryAddresses(int fd) argument
147 write(fd, result.string(), result.size());
164 write(fd, result.string(), result.size());
175 void dumpMemoryAddresses(int fd) {}
H A Dmediametadataretriever.cpp117 status_t MediaMetadataRetriever::setDataSource(int fd, int64_t offset, int64_t length) argument
119 ALOGV("setDataSource(%d, %" PRId64 ", %" PRId64 ")", fd, offset, length);
125 if (fd < 0 || offset < 0 || length < 0) {
129 return mRetriever->setDataSource(fd, offset, length);
/frameworks/av/media/libmediaplayerservice/
H A DMetadataRetrieverClient.cpp60 status_t MetadataRetrieverClient::dump(int fd, const Vector<String16>& /*args*/) const argument
68 write(fd, result.string(), result.size());
69 write(fd, "\n", 1);
138 status_t MetadataRetrieverClient::setDataSource(int fd, int64_t offset, int64_t length) argument
140 ALOGV("setDataSource fd=%d, offset=%lld, length=%lld", fd, offset, length);
143 int ret = fstat(fd, &sb);
145 ALOGE("fstat(%d) failed: %d, %s", fd, ret, strerror(errno));
156 ::close(fd);
166 fd,
[all...]

Completed in 5657 milliseconds

1234567891011>>