/frameworks/base/cmds/backup/ |
H A D | backup.cpp | 55 int fd; local 57 fd = open(filename, O_RDONLY); 58 if (fd == -1) { 63 BackupDataReader reader(fd);
|
/frameworks/base/cmds/incidentd/src/ |
H A D | Reporter.cpp | 41 write_all(int fd, uint8_t const* buf, size_t size) argument 44 ssize_t amt = ::write(fd, buf, size); 59 fd(f), 88 ReportRequestSet::setMainFd(int fd) argument 90 mMainFd = fd; 103 if (request->fd >= 0 && request->err == NO_ERROR) { 104 err = write_all(request->fd, buf, size); 157 if ((*it)->fd < 0 && mainFd < 0) { 198 int fd = request->fd > local 283 create_file(int* fd) argument [all...] |
H A D | Reporter.h | 37 int fd; member in struct:ReportRequest 41 const sp<IIncidentReportStatusListener> &listener, int fd); 53 void setMainFd(int fd); 56 // writing to that fd and returns NO_ERROR. When we are out of fds to write 97 status_t create_file(int* fd);
|
/frameworks/base/core/tests/utiltests/jni/ |
H A D | registration.cpp | 22 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
|
/frameworks/base/native/android/include/ |
H A D | multinetwork.h | 64 int android_setsocknetwork(net_handle_t network, int fd);
|
/frameworks/base/tests/AccessoryDisplay/source/src/com/android/accessorydisplay/source/ |
H A D | UsbAccessoryStreamTransport.java | 37 public UsbAccessoryStreamTransport(Logger logger, ParcelFileDescriptor fd) { argument 39 mFd = fd; 40 mInputStream = new FileInputStream(fd.getFileDescriptor()); 41 mOutputStream = new FileOutputStream(fd.getFileDescriptor());
|
/frameworks/base/tools/incident_report/ |
H A D | printer.h | 25 Out(int fd);
|
/frameworks/native/include/android/ |
H A D | multinetwork.h | 64 int android_setsocknetwork(net_handle_t network, int fd);
|
/frameworks/base/core/java/com/android/internal/os/ |
H A D | ZygoteServer.java | 68 FileDescriptor fd = new FileDescriptor(); 69 fd.setInt$(fileDesc); 70 mServerSocket = new LocalServerSocket(fd); 103 FileDescriptor fd = mServerSocket.getFileDescriptor(); 105 if (fd != null) { 106 Os.close(fd); 147 pollFds[i].fd = fds.get(i);
|
/frameworks/base/cmds/bu/src/com/android/commands/bu/ |
H A D | Backup.java | 127 ParcelFileDescriptor fd = null; 129 fd = ParcelFileDescriptor.adoptFd(socketFd); 131 mBackupManager.adbBackup(fd, saveApks, saveObbs, saveShared, doWidgets, doEverything, 136 if (fd != null) { 138 fd.close(); 146 ParcelFileDescriptor fd = null; 148 fd = ParcelFileDescriptor.adoptFd(socketFd); 149 mBackupManager.adbRestore(fd); 153 if (fd != null) { 155 fd [all...] |
/frameworks/base/media/java/android/media/midi/ |
H A D | MidiDevice.java | 150 FileDescriptor fd = mDeviceServer.openInputPort(token, portNumber); 151 if (fd == null) { 154 return new MidiInputPort(mDeviceServer, token, fd, portNumber); 176 FileDescriptor fd = mDeviceServer.openOutputPort(token, portNumber); 177 if (fd == null) { 180 return new MidiOutputPort(mDeviceServer, token, fd, portNumber); 207 FileDescriptor fd = inputPort.claimFileDescriptor(); 208 if (fd == null) { 213 int calleePid = mDeviceServer.connectPorts(token, fd, outputPortNumber); 214 // If the service is a different Process then it will duplicate the fd [all...] |
/frameworks/base/packages/PrintSpooler/jni/ |
H A D | com_android_printspooler_util_BitmapSerializeUtils.cpp | 29 static bool writeAllBytes(const int fd, void* buffer, const size_t byteCount) { argument 33 ssize_t writtenByteCount = write(fd, writeBuffer, remainingBytes); 48 static bool readAllBytes(const int fd, void* buffer, const size_t byteCount) { argument 52 ssize_t readByteCount = read(fd, readBuffer, remainingBytes); 89 static void readBitmapPixels(JNIEnv* env, jclass /* clazz */, jobject jbitmap, jint fd) { argument 92 bool read = readAllBytes(fd, (void*) &readInfo, sizeof(AndroidBitmapInfo)); 124 read = readAllBytes(fd, (void*) pixels, byteCount); 137 static void writeBitmapPixels(JNIEnv* env, jclass /* clazz */, jobject jbitmap, jint fd) { argument 147 bool written = writeAllBytes(fd, (void*) &info, sizeof(AndroidBitmapInfo)); 163 written = writeAllBytes(fd, (voi [all...] |
/frameworks/base/libs/androidfw/ |
H A D | BackupHelpers.cpp | 86 read_snapshot_file(int fd, KeyedVector<String8,FileState>* snapshot) argument 92 amt = read(fd, &header, sizeof(header)); 107 amt = read(fd, &file, sizeof(FileState)); 119 amt = read(fd, filename, nameBufSize); 143 write_snapshot_file(int fd, const KeyedVector<String8,FileRec>& snapshot) argument 158 LOGP("write_snapshot_file fd=%d\n", fd); 163 amt = write(fd, &header, sizeof(header)); 175 amt = write(fd, &r.s, sizeof(FileState)); 182 amt = write(fd, nam 211 write_update_file(BackupDataWriter* dataStream, int fd, int mode, const String8& key, char const* realFilename) argument 296 int fd = open(realFilename, O_RDONLY); local 308 int fd = open(file, O_RDONLY); local 412 int fd = open(g.file.string(), O_RDONLY); local 544 int fd = open(filepath.string(), O_RDONLY); local 747 int fd; local 822 WriteSnapshot(int fd) argument 835 int fd; local 859 int fd; local [all...] |
/frameworks/base/tools/bit/ |
H A D | adb.cpp | 85 read_varint(int fd, int* err, bool* done) argument 91 ssize_t amt = read(fd, &byte, 1); 111 read_sized_buffer(int fd, int* err, size_t* resultSize) argument 114 uint64_t size = read_varint(fd, err, &done); 134 ssize_t amt = read(fd, buf+pos, size-pos); 154 read_sized_proto(int fd, Message* message) argument 158 char* buf = read_sized_buffer(fd, &err, &size); 182 skip_bytes(int fd, ssize_t size, char* scratch, int scratchSize) argument 187 amt = read(fd, scratch, amt); 202 skip_unknown_field(int fd, uint64_ [all...] |
/frameworks/support/compat/ics/android/support/v4/net/ |
H A D | DatagramSocketWrapper.java | 31 public DatagramSocketWrapper(DatagramSocket socket, FileDescriptor fd) throws SocketException { argument 32 super(new DatagramSocketImplWrapper(socket, fd)); 39 public DatagramSocketImplWrapper(DatagramSocket socket, FileDescriptor fd) { argument 42 this.fd = fd;
|
/frameworks/base/core/java/android/os/ |
H A D | ParcelFileDescriptor.java | 180 public ParcelFileDescriptor(FileDescriptor fd) { argument 181 this(fd, null); 185 public ParcelFileDescriptor(FileDescriptor fd, FileDescriptor commChannel) { argument 186 if (fd == null) { 190 mFd = fd; 211 final FileDescriptor fd = openInternal(file, mode); 212 if (fd == null) return null; 214 return new ParcelFileDescriptor(fd); 244 final FileDescriptor fd = openInternal(file, mode); 245 if (fd 251 fromFd( FileDescriptor fd, Handler handler, final OnCloseListener listener) argument 356 fromFd(int fd) argument 378 adoptFd(int fd) argument 586 getFile(FileDescriptor fd) argument [all...] |
/frameworks/base/core/jni/ |
H A D | android_net_LocalSocketImpl.cpp | 51 /* private native void connectLocal(FileDescriptor fd, 59 int fd; local 61 fd = jniGetFDFromFileDescriptor(env, fileDescriptor); 70 fd, 83 /* private native void bindLocal(FileDescriptor fd, String name, namespace) 92 int fd; local 99 fd = jniGetFDFromFileDescriptor(env, fileDescriptor); 107 ret = socket_local_server_bind(fd, nameUtf8.c_str(), namespaceId); 183 static ssize_t socket_read_all(JNIEnv *env, jobject thisJ, int fd, argument 190 // Enough buffer for a pile of fd' 238 socket_write_all(JNIEnv *env, jobject object, int fd, void *buf, size_t len) argument 320 int fd; local 354 int fd; local 399 int fd; local 421 int fd; local 460 int fd; local [all...] |
/frameworks/base/services/core/jni/ |
H A D | com_android_server_UsbMidiDevice.cpp | 46 int fd; local 55 while ((fd = open(path, O_RDWR)) < 0) { 71 int ret = ioctl(fd, SNDRV_CTL_IOCTL_RAWMIDI_INFO, &info); 72 close(fd); 99 int fd = open(path, O_RDWR); local 100 if (fd < 0) { 105 jobject fileDescriptor = jniCreateFileDescriptor(env, fd); 133 jobject fd = env->GetObjectArrayElement(fds, i); local 134 close(jniGetFDFromFileDescriptor(env, fd));
|
H A D | com_android_server_tv_TvUinputBridge.cpp | 111 NativeConnection(int fd, int32_t maxPointers); 117 NativeConnection::NativeConnection(int fd, int32_t maxPointers) : argument 118 mFd(fd), mMaxPointers(maxPointers) { 132 int fd = ::open("/dev/uinput", O_WRONLY | O_NDELAY); local 133 if (fd < 0) { 148 ioctl(fd, UI_SET_PHYS, uniqueId); 151 ioctl(fd, UI_SET_EVBIT, EV_KEY); 153 ioctl(fd, UI_SET_KEYBIT, KEYS[i].linuxKeyCode); 157 ioctl(fd, UI_SET_EVBIT, EV_MSC); 158 ioctl(fd, UI_SET_MSCBI [all...] |
/frameworks/base/core/java/android/content/res/ |
H A D | AssetFileDescriptor.java | 51 * @param fd The underlying file descriptor. 57 public AssetFileDescriptor(ParcelFileDescriptor fd, long startOffset, argument 59 this(fd, startOffset, length, null); 65 * @param fd The underlying file descriptor. 73 public AssetFileDescriptor(ParcelFileDescriptor fd, long startOffset, argument 75 if (fd == null) { 76 throw new IllegalArgumentException("fd must not be null"); 82 mFd = fd; 204 public AutoCloseInputStream(AssetFileDescriptor fd) throws IOException { argument 205 super(fd 291 AutoCloseOutputStream(AssetFileDescriptor fd) argument [all...] |
/frameworks/rs/driver/ |
H A D | rsdShader.cpp | 315 void RsdShader::logUniform(const Element *field, const float *fd, uint32_t arraySize ) { argument 324 ALOGV("{%f, %f, %f, %f", fd[0], fd[4], fd[8], fd[12]); 325 ALOGV(" %f, %f, %f, %f", fd[1], fd[5], fd[9], fd[13]); 326 ALOGV(" %f, %f, %f, %f", fd[ 361 setUniform(const Context *rsc, const Element *field, const float *fd, int32_t slot, uint32_t arraySize ) argument 545 const float *fd = reinterpret_cast<const float *>(&data[offset]); local [all...] |
/frameworks/av/services/audioflinger/ |
H A D | FastMixerDumpState.cpp | 59 void FastMixerDumpState::dump(int fd) const 62 dprintf(fd, " FastMixer not initialized\n"); 68 dprintf(fd, " FastMixer command=%s writeSequence=%u framesWritten=%u\n" 123 dprintf(fd, " Simple moving statistics over last %.1f seconds:\n", 125 dprintf(fd, " wall clock time in ms per mix cycle:\n" 129 dprintf(fd, " raw CPU load in us per mix cycle:\n" 134 dprintf(fd, " No FastMixer statistics available currently\n"); 137 dprintf(fd, " CPU clock frequency in MHz:\n" 140 dprintf(fd, " adjusted CPU load in MHz (i.e. normalized for CPU clock frequency):\n" 153 dprintf(fd, " Distributio [all...] |
/frameworks/av/media/libaudiohal/ |
H A D | EffectsFactoryHalLocal.cpp | 59 status_t EffectsFactoryHalLocal::dumpEffects(int fd) { argument 60 return EffectDumpEffects(fd);
|
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/ |
H A D | AudioPatch.h | 32 status_t dump(int fd, int spaces, int index) const; 52 status_t dump(int fd) const;
|
H A D | AudioSourceDescriptor.h | 42 status_t dump(int fd); 56 status_t dump(int fd) const;
|