/frameworks/base/core/java/android/app/backup/ |
H A D | BackupDataOutput.java | 73 public BackupDataOutput(FileDescriptor fd) { argument 74 this(fd, -1); 79 public BackupDataOutput(FileDescriptor fd, long quota) { argument 80 if (fd == null) throw new NullPointerException(); 82 mBackupWriter = ctor(fd); 84 throw new RuntimeException("Native initialization failed with fd=" + fd); 148 private native static long ctor(FileDescriptor fd); argument
|
H A D | BackupHelperDispatcher.java | 142 private static native int readHeader_native(Header h, FileDescriptor fd); argument 143 private static native int skipChunk_native(FileDescriptor fd, int bytesToSkip); argument 145 private static native int allocateHeader_native(Header h, FileDescriptor fd); argument 146 private static native int writeHeader_native(Header h, FileDescriptor fd, int pos); argument
|
/frameworks/base/core/java/android/service/voice/ |
H A D | VoiceInteractionSessionService.java | 108 protected void dump(FileDescriptor fd, PrintWriter writer, String[] args) { argument 113 mSession.dump(" ", fd, writer, args);
|
/frameworks/base/core/jni/android/graphics/pdf/ |
H A D | PdfUtils.cpp | 33 const int fd = reinterpret_cast<intptr_t>(param); local 34 const int readCount = pread(fd, outBuffer, size, position); 104 jlong nativeOpen(JNIEnv* env, jclass thiz, jint fd, jlong size) { argument 112 loader.m_Param = reinterpret_cast<void*>(intptr_t(fd));
|
/frameworks/base/core/jni/ |
H A D | android_backup_BackupDataInput.cpp | 37 int fd = jniGetFDFromFileDescriptor(env, fileDescriptor); local 38 if (fd == -1) { 42 return (jlong)new BackupDataReader(fd);
|
H A D | android_backup_BackupDataOutput.cpp | 31 int fd = jniGetFDFromFileDescriptor(env, fileDescriptor); local 32 if (fd == -1) { 36 return (jlong)new BackupDataWriter(fd);
|
H A D | android_ddm_DdmHandleNativeHeap.cpp | 57 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 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_util_FileObserver.cpp | 49 static void android_os_fileobserver_observe(JNIEnv* env, jobject object, jint fd) argument 59 int num_bytes = read(fd, event_buf, sizeof(event_buf)); 101 static jint android_os_fileobserver_startWatching(JNIEnv* env, jobject object, jint fd, jstring pathString, jint mask) argument 107 if (fd >= 0) 111 res = inotify_add_watch(fd, path, mask); 121 static void android_os_fileobserver_stopWatching(JNIEnv* env, jobject object, jint fd, jint wfd) argument 125 inotify_rm_watch((int)fd, (uint32_t)wfd);
|
H A D | android_util_MemoryIntArray.cpp | 39 int fd = ashmem_create_region(nameStr, ashmemSize); local 42 if (fd < 0) { 47 int setProtResult = ashmem_set_prot_region(fd, PROT_READ | PROT_WRITE); 53 return fd; 56 static jlong android_util_MemoryIntArray_open(JNIEnv* env, jobject clazz, jint fd, argument 59 if (fd < 0) { 64 if (!ashmem_valid(fd)) { 69 int ashmemSize = ashmem_get_size_region(fd); 84 void* ashmemAddr = mmap(NULL, ashmemSize, protMode, MAP_SHARED, fd, 0); 91 int mmapedSize = ashmem_get_size_region(fd); 114 android_util_MemoryIntArray_close(JNIEnv* env, jobject clazz, jint fd, jlong ashmemAddr, jboolean owner) argument 149 android_util_MemoryIntArray_get(JNIEnv* env, jobject clazz, jint fd, jlong address, jint index) argument 171 android_util_MemoryIntArray_set(JNIEnv* env, jobject clazz, jint fd, jlong address, jint index, jint newValue) argument 193 android_util_MemoryIntArray_size(JNIEnv* env, jobject clazz, jint fd) argument [all...] |
/frameworks/base/libs/androidfw/ |
H A D | StreamingZipInflater.cpp | 51 * Streaming access to compressed asset data in an open fd 53 StreamingZipInflater::StreamingZipInflater(int fd, off64_t compDataStart, argument 55 mFd = fd;
|
/frameworks/base/libs/androidfw/tests/ |
H A D | BackupData_test.cpp | 60 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/libs/services/src/os/ |
H A D | DropBoxManager.cpp | 53 DropBoxManager::Entry::Entry(const String16& tag, int32_t flags, int fd) argument 58 mFd(fd) 86 ALOGD("writing fd %d\n", mFd.get()); 131 int fd; local 132 fd = in->readParcelFileDescriptor(); 133 if (fd == -1) { 136 fd = dup(fd); 137 if (fd == -1) { 140 mFd.reset(fd); 175 int fd = open(filename.c_str(), O_RDONLY); local [all...] |
/frameworks/base/media/java/android/media/midi/ |
H A D | MidiOutputPort.java | 95 FileDescriptor fd, int portNumber) { 99 mInputStream = new ParcelFileDescriptor.AutoCloseInputStream(new ParcelFileDescriptor(fd)); 104 /* package */ MidiOutputPort(FileDescriptor fd, int portNumber) { argument 105 this(null, null, fd, portNumber); 94 MidiOutputPort(IMidiDeviceServer server, IBinder token, FileDescriptor fd, int portNumber) argument
|
/frameworks/base/native/android/ |
H A D | looper.cpp | 78 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 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/ |
H A D | SystemUI.java | 37 public void dump(FileDescriptor fd, PrintWriter pw, String[] args) { argument
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/ |
H A D | RingtonePlayer.java | 229 public void dump(FileDescriptor fd, PrintWriter pw, String[] args) { argument
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
H A D | AccessibilityController.java | 52 public void dump(FileDescriptor fd, PrintWriter pw, String[] args) { argument
|
H A D | NextAlarmControllerImpl.java | 49 public void dump(FileDescriptor fd, PrintWriter pw, String[] args) { argument
|
/frameworks/base/services/core/java/com/android/server/ |
H A D | DiskStatsService.java | 65 protected void dump(FileDescriptor fd, PrintWriter pw, String[] args) { argument 93 proto = new ProtoOutputStream(fd);
|
H A D | SamplingProfilerService.java | 99 protected void dump(FileDescriptor fd, PrintWriter pw, String[] args) { argument
|
H A D | UpdateLockService.java | 116 public void dump(FileDescriptor fd, PrintWriter pw, String[] args) { argument
|
/frameworks/base/services/core/java/com/android/server/am/ |
H A D | NativeCrashListener.java | 175 static int readExactly(FileDescriptor fd, byte[] buffer, int offset, int numBytes) argument 179 int n = Os.read(fd, buffer, offset + totalRead, numBytes); 193 void consumeNativeCrashData(FileDescriptor fd) { argument 200 Os.setsockoptTimeval(fd, SOL_SOCKET, SO_RCVTIMEO, timeout); 201 Os.setsockoptTimeval(fd, SOL_SOCKET, SO_SNDTIMEO, timeout); 208 int headerBytes = readExactly(fd, buf, 0, 8); 239 bytes = Os.read(fd, buf, 0, buf.length);
|
/frameworks/base/services/core/java/com/android/server/location/ |
H A D | LocationProviderInterface.java | 41 public void dump(FileDescriptor fd, PrintWriter pw, String[] args); argument
|