/frameworks/av/services/audiopolicy/common/managerdefinitions/src/ |
H A D | HwModule.cpp | 220 void HwModule::dump(int fd) argument 232 write(fd, result.string(), result.size()); 234 write(fd, " - outputs:\n", strlen(" - outputs:\n")); 237 write(fd, buffer, strlen(buffer)); 238 mOutputProfiles[i]->dump(fd); 242 write(fd, " - inputs:\n", strlen(" - inputs:\n")); 245 write(fd, buffer, strlen(buffer)); 246 mInputProfiles[i]->dump(fd); 249 mDeclaredDevices.dump(fd, String8("Declared"), 2, true); 250 mRoutes.dump(fd, [all...] |
H A D | AudioInputDescriptor.cpp | 195 status_t AudioInputDescriptor::dump(int fd) argument 212 write(fd, result.string(), result.size()); 214 mSessions.dump(fd, 1); 278 status_t AudioInputCollection::dump(int fd) const 284 write(fd, buffer, strlen(buffer)); 287 write(fd, buffer, strlen(buffer)); 288 valueAt(i)->dump(fd);
|
H A D | EffectDescriptor.cpp | 25 status_t EffectDescriptor::dump(int fd) argument 41 write(fd, result.string(), result.size()); 177 status_t EffectDescriptorCollection::dump(int fd) argument 185 write(fd, buffer, strlen(buffer)); 188 write(fd, buffer, strlen(buffer)); 191 write(fd, buffer, strlen(buffer)); 192 valueAt(i)->dump(fd);
|
H A D | StreamDescriptor.cpp | 82 void StreamDescriptor::dump(int fd) const 99 write(fd, result.string(), result.size()); 207 status_t StreamDescriptorCollection::dump(int fd) const 213 write(fd, buffer, strlen(buffer)); 216 write(fd, buffer, strlen(buffer)); 219 write(fd, buffer, strlen(buffer)); 220 valueAt(i).dump(fd);
|
H A D | AudioOutputDescriptor.cpp | 186 status_t AudioOutputDescriptor::dump(int fd) argument 209 write(fd, result.string(), result.size()); 241 status_t SwAudioOutputDescriptor::dump(int fd) argument 251 write(fd, result.string(), result.size()); 253 AudioOutputDescriptor::dump(fd); 398 status_t HwAudioOutputDescriptor::dump(int fd) argument 404 AudioOutputDescriptor::dump(fd); 408 write(fd, result.string(), result.size()); 409 mSource->dump(fd); 536 status_t SwAudioOutputCollection::dump(int fd) cons [all...] |
/frameworks/native/libs/vr/libpdx_uds/ |
H A D | remote_method_tests.cpp | 82 LocalHandle fd; member in struct:__anon1773::TestFdType 85 TestFdType(int a, LocalHandle fd) : a(a), fd(std::move(fd)) {} argument 88 PDX_SERIALIZABLE_MEMBERS(TestFdType, a, fd); 94 FileHandleType fd; member in struct:__anon1773::TestTemplateType 97 TestTemplateType(FileHandleType fd) : fd(std::move(fd)) {} argument 100 PDX_SERIALIZABLE_MEMBERS(TestTemplateType<FileHandleType>, fd); 268 SendFile(const LocalHandle& fd) argument 475 OnSendFile(Message&, const LocalHandle& fd) argument [all...] |
/frameworks/av/drm/libdrmframework/plugins/forward-lock/FwdLockEngine/include/ |
H A D | FwdLockEngine.h | 154 * @param fd descriptor of the protected content as a file source 158 String8 onGetOriginalMimeType(int uniqueId, const String8& path, int fd); 325 * @param fd File descriptor of the protected content to be decrypted 334 int fd, off64_t offset, off64_t length); 338 int fd, int offset, int length); 542 explicit DecodeSession(int fd) { argument 543 fileDesc = fd;
|
/frameworks/base/core/java/android/util/ |
H A D | MemoryIntArray.java | 177 // Don't let writing to a parcel to close our fd - plz 225 private native long nativeOpen(int fd, boolean owner); argument 226 private native void nativeClose(int fd, long memoryAddr, boolean owner); argument 227 private native int nativeGet(int fd, long memoryAddr, int index); argument 228 private native void nativeSet(int fd, long memoryAddr, int index, int value); argument 229 private native int nativeSize(int fd); argument
|
/frameworks/native/cmds/cmd/ |
H A D | cmd.cpp | 75 int fd = open(fullPath.string(), O_WRONLY|O_CREAT|O_TRUNC, S_IRWXU|S_IRWXG); local 76 if (fd < 0) { 77 return fd; 87 close(fd); 94 return fd;
|
/frameworks/base/cmds/hid/jni/ |
H A D | com_android_commands_hid_Device.cpp | 52 static int handleLooperEvents(int /* fd */, int events, void* data) { 89 int fd = ::open(UHID_PATH, O_RDWR | O_CLOEXEC); local 90 if (fd < 0) { 108 ssize_t ret = TEMP_FAILURE_RETRY(::write(fd, &ev, sizeof(ev))); 110 ::close(fd); 116 ret = TEMP_FAILURE_RETRY(::read(fd, &ev, sizeof(ev))); 118 ::close(fd); 123 return new Device(id, fd, std::move(callback), looper); 126 Device::Device(int32_t id, int fd, std::unique_ptr<DeviceCallback> callback, sp<Looper> looper) : argument 127 mId(id), mFd(fd), mDeviceCallbac [all...] |
/frameworks/base/core/jni/ |
H A D | android_hardware_UsbDeviceConnection.cpp | 50 int fd = jniGetFDFromFileDescriptor(env, fileDescriptor); local 52 fd = dup(fd); 53 if (fd < 0) 57 struct usb_device* device = usb_device_new(deviceNameStr, fd); 62 close(fd); 95 int fd = android_hardware_UsbDeviceConnection_get_fd(env, thiz); local 96 if (fd < 0) return NULL; 97 lseek(fd, 0, SEEK_SET); 98 int length = read(fd, buffe [all...] |
H A D | android_backup_BackupDataInput.cpp | 37 int fd = jniGetFDFromFileDescriptor(env, fileDescriptor); local 38 if (fd == -1) { 42 return (jlong)new BackupDataReader(fd);
|
/frameworks/base/libs/common_time/ |
H A D | common_time_server_api.cpp | 286 write(fd, buffer, res); \ 290 status_t CommonTimeServer::dumpClockInterface(int fd, argument 302 write(fd, buffer, strlen(buffer)); 358 mClient_PacketRTTLog.dumpLog(fd, mCommonClock); 359 mStateChangeLog.dumpLog(fd); 360 mElectionLog.dumpLog(fd); 361 mBadPktLog.dumpLog(fd); 367 status_t CommonTimeServer::dumpConfigInterface(int fd, argument 378 write(fd, buffer, strlen(buffer)); 408 void CommonTimeServer::PacketRTTLog::dumpLog(int fd, cons argument [all...] |
/frameworks/av/media/mtp/ |
H A D | MtpFfsHandle.cpp | 364 int MtpFfsHandle::writeHandle(int fd, const void* data, int len) { argument 365 LOG(VERBOSE) << "MTP about to write fd = " << fd << ", len=" << len; 370 int n = TEMP_FAILURE_RETRY(::write(fd, buf, write_len)); 373 PLOG(ERROR) << "write ERROR: fd = " << fd << ", n = " << n; 387 int MtpFfsHandle::readHandle(int fd, void* data, int len) { argument 388 LOG(VERBOSE) << "MTP about to read fd = " << fd << ", len=" << len; 393 int n = TEMP_FAILURE_RETRY(::read(fd, bu 407 spliceReadHandle(int fd, int pipe_out, int len) argument [all...] |
/frameworks/base/media/java/android/media/ |
H A D | MediaMuxer.java | 279 private static native long nativeSetup(@NonNull FileDescriptor fd, int format) argument 324 FileDescriptor fd = file.getFD(); 325 setUpMediaMuxer(fd, format); 339 * @param fd The FileDescriptor of the output media file. 342 * @throws IllegalArgumentException if fd is invalid or format is not supported. 345 public MediaMuxer(@NonNull FileDescriptor fd, @Format int format) throws IOException { argument 346 setUpMediaMuxer(fd, format); 349 private void setUpMediaMuxer(@NonNull FileDescriptor fd, @Format int format) throws IOException { argument 354 mNativeObject = nativeSetup(fd, format);
|
H A D | SoundPool.java | 196 ParcelFileDescriptor fd = ParcelFileDescriptor.open(f, 198 if (fd != null) { 199 id = _load(fd.getFileDescriptor(), 0, f.length(), priority); 200 fd.close(); 249 throw new AndroidRuntimeException("no length for fd"); 264 * @param fd a FileDescriptor object 271 public int load(FileDescriptor fd, long offset, long length, int priority) { argument 272 return _load(fd, offset, length, priority); 512 private native final int _load(FileDescriptor fd, long offset, long length, int priority); 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/av/cmds/stagefright/ |
H A D | stream.cpp | 47 // Object assumes ownership of fd. 48 explicit MyStreamSource(int fd); 69 MyStreamSource::MyStreamSource(int fd) argument 70 : mFd(fd), 73 CHECK_GE(fd, 0); 75 mFileSize = lseek64(fd, 0, SEEK_END); 76 lseek64(fd, 0, SEEK_SET); 364 int fd = open(argv[1], O_RDONLY); local 366 if (fd < 0) { 371 source = new MyStreamSource(fd); [all...] |
/frameworks/base/services/core/java/com/android/server/connectivity/ |
H A D | IpConnectivityMetrics.java | 187 private void cmdFlush(FileDescriptor fd, PrintWriter pw, String[] args) { argument 195 private void cmdList(FileDescriptor fd, PrintWriter pw, String[] args) { argument 219 private void cmdStats(FileDescriptor fd, PrintWriter pw, String[] args) { argument 230 private void cmdDefault(FileDescriptor fd, PrintWriter pw, String[] args) { argument 252 public void dump(FileDescriptor fd, PrintWriter pw, String[] args) { argument 258 cmdFlush(fd, pw, args); 263 cmdList(fd, pw, args); 266 cmdStats(fd, pw, args); 269 cmdDefault(fd, pw, args);
|
/frameworks/base/tests/touchlag/ |
H A D | touchlag.cpp | 142 int fd; member in class:TouchEvents::EventThread 148 read(fd, &event, sizeof(event)); 170 fd = open("/dev/input/event1", O_RDONLY); 224 int fd = open("/dev/graphics/fb0", O_RDWR); local 225 ioctl(fd, FBIOGET_VSCREENINFO, &vi); 226 ioctl(fd, FBIOGET_FSCREENINFO, &fi); 227 void* bits = mmap(0, fi.smem_len, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); 260 ioctl(fd, FBIO_WAITFORVSYNC, &crt); 292 close(fd);
|
/frameworks/native/libs/binder/ |
H A D | ProcessState.cpp | 331 int fd = open(driver, O_RDWR | O_CLOEXEC); local 332 if (fd >= 0) { 334 status_t result = ioctl(fd, BINDER_VERSION, &vers); 337 close(fd); 338 fd = -1; 343 close(fd); 344 fd = -1; 347 result = ioctl(fd, BINDER_SET_MAX_THREADS, &maxThreads); 354 return fd;
|
/frameworks/base/core/java/android/os/ |
H A D | FileObserver.java | 131 private native void observe(int fd); argument 132 private native int startWatching(int fd, String path, int mask); argument 133 private native void stopWatching(int fd, int wfd); argument
|
/frameworks/base/graphics/java/android/graphics/ |
H A D | BitmapRegionDecoder.java | 74 * @param fd The file descriptor containing the data to decode 86 FileDescriptor fd, boolean isShareable) throws IOException { 87 return nativeNewInstance(fd, isShareable); 273 FileDescriptor fd, boolean isShareable); 85 newInstance( FileDescriptor fd, boolean isShareable) argument 272 nativeNewInstance( FileDescriptor fd, boolean isShareable) argument
|
/frameworks/base/libs/androidfw/include/androidfw/ |
H A D | BackupHelpers.h | 70 BackupDataWriter(int fd); 71 // does not close fd 107 BackupDataReader(int fd); 108 // does not close fd 150 status_t WriteSnapshot(int fd);
|
/frameworks/av/cmds/screenrecord/ |
H A D | screenrecord.cpp | 510 int fd = fileno(rawFp); local 511 if (isatty(fd)) { 513 ALOGD("raw video output to tty (fd=%d)", fd); 515 if (tcgetattr(fd, &term) == 0) { 517 if (tcsetattr(fd, TCSANOW, &term) == 0) { 649 int fd = open(fileName, O_CREAT | O_LARGEFILE | O_TRUNC | O_RDWR, S_IRUSR | S_IWUSR); local 650 if (fd < 0) { 654 muxer = new MediaMuxer(fd, MediaMuxer::OUTPUT_FORMAT_MPEG_4); 655 close(fd); 785 int fd = open("/dev/null", O_WRONLY); local 1001 int fd = open(fileName, O_CREAT | O_RDWR, 0644); local [all...] |