Searched defs:fd (Results 1 - 25 of 686) sorted by relevance

1234567891011>>

/frameworks/av/media/libmediaplayerservice/
H A DActivityManager.cpp29 int fd = -1; local
35 fd = am->openContentUri(uri);
38 return fd;
/frameworks/base/core/tests/utiltests/jni/
H A Dregistration.cpp22 jobject clazz, jint fd, jint size);
28 JNIEnv * env, jobject obj, jint fd, jint size);
40 jint fd, jint size)
42 android_util_MemoryIntArrayTest_setAshmemSize(env, obj, fd, size);
38 Java_android_util_MemoryIntArrayTest_nativeSetAshmemSize( __attribute__((unused)) JNIEnv * env,__attribute__((unused)) jobject obj, jint fd, jint size) argument
H A Dandroid_util_MemoryIntArrayTest.cpp39 int fd = ashmem_create_region(nameStr, ashmemSize); local
42 if (fd < 0) {
46 int setProtResult = ashmem_set_prot_region(fd, PROT_READ | PROT_WRITE);
51 return fd;
55 __attribute__((unused)) jobject clazz, jint fd, jint size)
57 if (fd < 0) {
65 ioctl(fd, ASHMEM_SET_SIZE, size);
54 android_util_MemoryIntArrayTest_setAshmemSize(__attribute__((unused)) JNIEnv* env, __attribute__((unused)) jobject clazz, jint fd, jint size) argument
/frameworks/base/native/android/
H A Dsharedmem.cpp28 size_t ASharedMemory_getSize(int fd) { argument
29 return ashmem_valid(fd) ? ashmem_get_size_region(fd) : 0;
32 int ASharedMemory_setProt(int fd, int prot) { argument
33 return ashmem_set_prot_region(fd, prot);
/frameworks/native/services/surfaceflinger/tests/waitforvsync/
H A Dwaitforvsync.cpp33 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/av/include/media/
H A DMediaRecorderBase.h47 virtual status_t setOutputFile(int fd) = 0;
48 virtual status_t setNextOutputFile(int fd) {return INVALID_OPERATION;} argument
49 virtual status_t setOutputFileAuxiliary(int /*fd*/) {return INVALID_OPERATION;}
62 virtual status_t dump(int fd, const Vector<String16>& args) const = 0;
/frameworks/av/media/libmedia/include/media/
H A DMediaRecorderBase.h47 virtual status_t setOutputFile(int fd) = 0;
48 virtual status_t setNextOutputFile(int fd) {return INVALID_OPERATION;} argument
49 virtual status_t setOutputFileAuxiliary(int /*fd*/) {return INVALID_OPERATION;}
62 virtual status_t dump(int fd, const Vector<String16>& args) const = 0;
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
H A DAudioCollections.cpp40 status_t AudioRouteVector::dump(int fd, int spaces) const argument
49 write(fd, buffer, strlen(buffer));
52 write(fd, buffer, strlen(buffer));
53 itemAt(i)->dump(fd, 4);
H A DAudioRoute.cpp27 void AudioRoute::dump(int fd, int spaces) const argument
49 write(fd, result.string(), result.size());
H A DAudioSourceDescriptor.cpp32 status_t AudioSourceDescriptor::dump(int fd) argument
42 write(fd, result.string(), result.size());
43 mDevice->dump(fd, 2 , 0);
48 status_t AudioSourceCollection::dump(int fd) const
54 write(fd, buffer, strlen(buffer));
57 write(fd, buffer, strlen(buffer));
58 valueAt(i)->dump(fd);
/frameworks/base/core/java/android/os/
H A DTransactionTracker.java57 public void writeTracesToFile(ParcelFileDescriptor fd) { argument
62 PrintWriter pw = new FastPrintWriter(new FileOutputStream(fd.getFileDescriptor()));
/frameworks/base/packages/SystemUI/src/com/android/systemui/
H A DDumpable.java21 void dump(FileDescriptor fd, PrintWriter pw, String[] args); argument
/frameworks/base/tools/obbtool/
H A Dpbkdf2gen.cpp44 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/compile/mclinker/unittests/
H A DFileHandleTest.cpp62 int fd = ::open(path.native().c_str(), O_RDONLY); local
64 ASSERT_TRUE(m_pTestee->delegate(fd, FileHandle::ReadOnly));
78 int close_result = ::close(fd);
/frameworks/minikin/tests/perftests/
H A Dmain.cpp29 int fd = open(fn, O_RDONLY); local
30 LOG_ALWAYS_FATAL_IF(fd == -1);
32 LOG_ALWAYS_FATAL_IF(fstat(fd, &st) != 0);
33 void* data = mmap(NULL, st.st_size, PROT_READ, MAP_SHARED, fd, 0);
/frameworks/minikin/tests/unittest/
H A DICUTestBase.h35 int fd = open(fn, O_RDONLY); variable
36 ASSERT_NE(-1, fd);
38 ASSERT_EQ(0, fstat(fd, &sb));
39 void* data = mmap(NULL, sb.st_size, PROT_READ, MAP_SHARED, fd, 0);
/frameworks/native/libs/binder/
H A DIActivityManager.cpp42 int fd = -1; local
46 // Success is indicated here by a nonzero int followed by the fd;
49 fd = fcntl(reply.readParcelFileDescriptor(), F_DUPFD_CLOEXEC, 0);
57 return 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/av/include/media/stagefright/foundation/
H A DFileDescriptor.h29 * status_t function(int fd) {
30 * FileDescriptor::Autoclose managedFd(fd);
50 Autoclose(int fd) argument
51 : mFd(fd) {
/frameworks/av/media/libmedia/
H A DMidiIoWrapper.cpp43 MidiIoWrapper::MidiIoWrapper(int fd, off64_t offset, int64_t size) { argument
44 ALOGV("MidiIoWrapper(fd=%d)", fd);
45 mFd = fd < 0 ? -1 : dup(fd);
/frameworks/av/media/libstagefright/foundation/include/foundation/
H A DFileDescriptor.h29 * status_t function(int fd) {
30 * FileDescriptor::Autoclose managedFd(fd);
50 Autoclose(int fd) argument
51 : mFd(fd) {
/frameworks/av/media/libstagefright/include/foundation/
H A DFileDescriptor.h29 * status_t function(int fd) {
30 * FileDescriptor::Autoclose managedFd(fd);
50 Autoclose(int fd) argument
51 : mFd(fd) {
/frameworks/av/services/audioflinger/
H A DAudioWatchdog.cpp28 void AudioWatchdogDump::dump(int fd) argument
37 dprintf(fd, "Watchdog: underruns=%u, logs=%u, most recent underrun log at %s",
/frameworks/base/cmds/backup/
H A Dbackup.cpp55 int fd; local
57 fd = open(filename, O_RDONLY);
58 if (fd == -1) {
63 BackupDataReader reader(fd);
/frameworks/base/core/java/android/app/backup/
H A DFullBackupDataOutput.java34 public FullBackupDataOutput(ParcelFileDescriptor fd, long quota) { argument
35 mData = new BackupDataOutput(fd.getFileDescriptor(), quota);
40 public FullBackupDataOutput(ParcelFileDescriptor fd) { argument
41 this(fd, -1);

Completed in 1226 milliseconds

1234567891011>>