/frameworks/base/libs/androidfw/ |
H A D | BackupData.cpp | 52 BackupDataWriter::BackupDataWriter(int fd) argument 53 :m_fd(fd), 57 m_pos = (ssize_t) lseek(fd, 0, SEEK_CUR); 58 if (kIsDebug) ALOGI("BackupDataWriter(%d) @ %ld", fd, (long)m_pos); 177 BackupDataReader::BackupDataReader(int fd) argument 178 :m_fd(fd), 184 m_pos = (ssize_t) lseek(fd, 0, SEEK_CUR); 185 if (kIsDebug) ALOGI("BackupDataReader(%d) @ %ld", fd, (long)m_pos);
|
H A D | ZipFileRO.cpp | 81 /* static */ ZipFileRO* ZipFileRO::openFd(int fd, const char* debugFileName, argument 85 const int32_t error = OpenArchiveFd(fd, debugFileName, &handle, assume_ownership); 87 ALOGW("Error opening archive fd %d %s: %s", fd, debugFileName, ErrorCodeString(error)); 220 int fd = GetFileDescriptor(mHandle); local 230 if (!newMap->create(mFileName, fd, ze.offset, actualLen, true)) { 262 bool ZipFileRO::uncompressEntry(ZipEntryRO entry, int fd) const 265 const int32_t error = ExtractEntryToFile(mHandle, &(zipEntry->entry), fd);
|
/frameworks/base/libs/androidfw/include/androidfw/ |
H A D | ZipFileRO.h | 85 static ZipFileRO* openFd(int fd, const char* debugFileName, 159 bool uncompressEntry(ZipEntryRO entry, int fd) const;
|
/frameworks/base/native/android/ |
H A D | net.c | 45 int android_setsocknetwork(net_handle_t network, int fd) { argument 52 int rval = setNetworkForSocket(netid, fd);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
H A D | SystemBars.java | 46 public void dump(FileDescriptor fd, PrintWriter pw, String[] args) { argument 48 mStatusBar.dump(fd, pw, args);
|
/frameworks/base/services/robotests/src/com/android/server/testing/shadows/ |
H A D | ShadowBackupDataInput.java | 42 public void __constructor__(FileDescriptor fd) { argument 44 mInput = new ObjectInputStream(new FileInputStream(fd));
|
H A D | ShadowBackupDataOutput.java | 41 public void __constructor__(FileDescriptor fd, long quota, int transportFlags) { argument 43 mOutput = new ObjectOutputStream(new FileOutputStream(fd));
|
/frameworks/native/libs/binder/ |
H A D | Static.cpp | 51 explicit FdTextOutput(int fd) : BufferedTextOutput(MULTITHREADED), mFD(fd) { } argument
|
/frameworks/native/services/inputflinger/host/ |
H A D | InputFlinger.cpp | 48 status_t InputFlinger::dump(int fd, const Vector<String16>& args) { argument 60 write(fd, result.string(), result.size());
|
/frameworks/native/libs/vr/libpdx_uds/ |
H A D | remote_method_tests.cpp | 82 LocalHandle fd; member in struct:__anon1748::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:__anon1748::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/cmds/incident_helper/tests/ |
H A D | CpuInfoParser_test.cpp | 42 ASSERT_TRUE(tf.fd != -1); 144 int fd = open(testFile.c_str(), O_RDONLY); local 145 ASSERT_TRUE(fd != -1); 148 ASSERT_EQ(NO_ERROR, parser.Parse(fd, STDOUT_FILENO)); 150 close(fd);
|
/frameworks/base/core/java/android/util/ |
H A D | MemoryIntArray.java | 180 // Don't let writing to a parcel to close our fd - plz 228 private native long nativeOpen(int fd, boolean owner); argument 229 private native void nativeClose(int fd, long memoryAddr, boolean owner); argument 230 private native int nativeGet(int fd, long memoryAddr, int index); argument 231 private native void nativeSet(int fd, long memoryAddr, int index, int value); argument 232 private native int nativeSize(int fd); argument
|
/frameworks/base/services/net/java/android/net/util/ |
H A D | PacketReader.java | 82 protected static void closeFd(FileDescriptor fd) { argument 83 IoUtils.closeQuietly(fd); 136 protected int readPacket(FileDescriptor fd, byte[] packetBuffer) throws Exception { argument 137 return Os.read(fd, packetBuffer, 0, packetBuffer.length); 185 public int onFileDescriptorEvents(FileDescriptor fd, int events) {
|
/frameworks/base/tools/aapt2/io/ |
H A D | FileStream_test.cpp | 36 ASSERT_THAT(TEMP_FAILURE_RETRY(write(file.fd, input.c_str(), input.size())), Eq(21)); 37 lseek64(file.fd, 0, SEEK_SET); 92 FileOutputStream out(file.fd, 10u); 120 lseek64(file.fd, 0, SEEK_SET); 123 ASSERT_TRUE(android::base::ReadFdToString(file.fd, &actual));
|
/frameworks/av/media/libmediaplayerservice/ |
H A D | MetadataRetrieverClient.cpp | 61 status_t MetadataRetrieverClient::dump(int fd, const Vector<String16>& /*args*/) argument 69 write(fd, result.string(), result.size()); 70 write(fd, "\n", 1); 134 status_t MetadataRetrieverClient::setDataSource(int fd, int64_t offset, int64_t length) argument 136 ALOGV("setDataSource fd=%d (%s), offset=%lld, length=%lld", 137 fd, nameForFd(fd).c_str(), (long long) offset, (long long) length); 140 int ret = fstat(fd, &sb); 142 ALOGE("fstat(%d) failed: %d, %s", fd, ret, strerror(errno)); 163 fd, [all...] |
/frameworks/base/cmds/hid/jni/ |
H A D | com_android_commands_hid_Device.cpp | 52 static int handleLooperEvents(int /* fd */, int events, void* data) { 96 int fd = ::open(UHID_PATH, O_RDWR | O_CLOEXEC); local 97 if (fd < 0) { 116 ssize_t ret = TEMP_FAILURE_RETRY(::write(fd, &ev, sizeof(ev))); 118 ::close(fd); 124 ret = TEMP_FAILURE_RETRY(::read(fd, &ev, sizeof(ev))); 126 ::close(fd); 130 return new Device(id, fd, std::move(callback)); 133 Device::Device(int32_t id, int fd, std::unique_ptr<DeviceCallback> callback) : argument 134 mId(id), mFd(fd), mDeviceCallbac [all...] |
/frameworks/base/cmds/incidentd/tests/ |
H A D | FdBuffer_test.cpp | 40 ASSERT_NE(tf.fd, -1); 89 ASSERT_EQ(NO_ERROR, buffer.read(tf.fd, READ_TIMEOUT)); 102 ASSERT_EQ(NO_ERROR, buffer.read(tf.fd, READ_TIMEOUT)); 160 buffer.readProcessedDataInStream(tf.fd, std::move(p2cPipe.writeFd()), 193 buffer.readProcessedDataInStream(tf.fd, std::move(p2cPipe.writeFd()), 219 buffer.readProcessedDataInStream(tf.fd, std::move(p2cPipe.writeFd()), 230 unique_fd fd(open(testFile.c_str(), O_RDONLY | O_CLOEXEC)); 231 ASSERT_NE(fd.get(), -1); 247 buffer.readProcessedDataInStream(fd, std::move(p2cPipe.writeFd()), 285 buffer.readProcessedDataInStream(tf.fd, st [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...] |
/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 | MtpDescriptors.cpp | 263 bool writeDescriptors(int fd, bool ptp) { argument 264 ssize_t ret = TEMP_FAILURE_RETRY(write(fd, 267 PLOG(ERROR) << fd << "Switching to V1 descriptor format"; 268 ret = TEMP_FAILURE_RETRY(write(fd, 271 PLOG(ERROR) << fd << "Writing descriptors failed"; 275 ret = TEMP_FAILURE_RETRY(write(fd, &mtp_strings, sizeof(mtp_strings))); 277 PLOG(ERROR) << fd << "Writing strings failed";
|
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/ |
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);
|
/frameworks/base/media/java/android/media/ |
H A D | MediaMuxer.java | 286 private static native long nativeSetup(@NonNull FileDescriptor fd, int format) argument 332 FileDescriptor fd = file.getFD(); 333 setUpMediaMuxer(fd, format); 347 * @param fd The FileDescriptor of the output media file. 350 * @throws IllegalArgumentException if fd is invalid or format is not supported. 353 public MediaMuxer(@NonNull FileDescriptor fd, @Format int format) throws IOException { argument 354 setUpMediaMuxer(fd, format); 357 private void setUpMediaMuxer(@NonNull FileDescriptor fd, @Format int format) throws IOException { argument 361 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
|