Home
last modified time | relevance | path

Searched refs:io (Results 1 – 25 of 102) sorted by relevance

12345

/system/core/fs_mgr/libdm/
Ddm.cpp52 struct dm_ioctl io; in CreateDevice() local
53 InitIo(&io, name); in CreateDevice()
55 if (ioctl(fd_, DM_DEV_CREATE, &io)) { in CreateDevice()
62 CHECK(io.target_count == 0) << "Unexpected targets for newly created [" << name << "] device"; in CreateDevice()
63 CHECK(io.open_count == 0) << "Unexpected opens for newly created [" << name << "] device"; in CreateDevice()
80 struct dm_ioctl io; in DeleteDevice() local
81 InitIo(&io, name); in DeleteDevice()
83 if (ioctl(fd_, DM_DEV_REMOVE, &io)) { in DeleteDevice()
90 CHECK(io.flags & DM_UEVENT_GENERATED_FLAG) in DeleteDevice()
102 struct dm_ioctl io; in GetState() local
[all …]
/system/core/storaged/
Dstoraged_utils.cpp48 uint64_t l_bytes = l.io[i].read_bytes + l.io[i].write_bytes; in cmp_uid_info()
49 uint64_t r_bytes = r.io[i].read_bytes + r.io[i].write_bytes; in cmp_uid_info()
50 uint64_t l_chars = l.io[i].rchar + l.io[i].wchar; in cmp_uid_info()
51 uint64_t r_chars = r.io[i].rchar + r.io[i].wchar; in cmp_uid_info()
77 uid.io[0].rchar, uid.io[0].wchar, uid.io[0].read_bytes, uid.io[0].write_bytes, in log_console_running_uids_info()
78 uid.io[1].rchar, uid.io[1].wchar, uid.io[1].read_bytes, uid.io[1].write_bytes, in log_console_running_uids_info()
79 uid.io[0].fsync, uid.io[1].fsync); in log_console_running_uids_info()
86 … task.io[0].rchar, task.io[0].wchar, task.io[0].read_bytes, task.io[0].write_bytes, in log_console_running_uids_info()
87 … task.io[1].rchar, task.io[1].wchar, task.io[1].read_bytes, task.io[1].write_bytes, in log_console_running_uids_info()
88 task.io[0].fsync, task.io[1].fsync); in log_console_running_uids_info()
Duid_info.cpp27 parcel->write(&io, sizeof(io)); in writeToParcel()
33 parcel->write(&task_it.second.io, sizeof(task_it.second.io)); in writeToParcel()
41 parcel->read(&io, sizeof(io)); in readFromParcel()
48 parcel->read(&task.io, sizeof(task.io)); in readFromParcel()
Dstoraged_uid_monitor.cpp64 !ParseUint(fields[1], &io[FOREGROUND].rchar) || in parse_uid_io_stats()
65 !ParseUint(fields[2], &io[FOREGROUND].wchar) || in parse_uid_io_stats()
66 !ParseUint(fields[3], &io[FOREGROUND].read_bytes) || in parse_uid_io_stats()
67 !ParseUint(fields[4], &io[FOREGROUND].write_bytes) || in parse_uid_io_stats()
68 !ParseUint(fields[5], &io[BACKGROUND].rchar) || in parse_uid_io_stats()
69 !ParseUint(fields[6], &io[BACKGROUND].wchar) || in parse_uid_io_stats()
70 !ParseUint(fields[7], &io[BACKGROUND].read_bytes) || in parse_uid_io_stats()
71 !ParseUint(fields[8], &io[BACKGROUND].write_bytes) || in parse_uid_io_stats()
72 !ParseUint(fields[9], &io[FOREGROUND].fsync) || in parse_uid_io_stats()
73 !ParseUint(fields[10], &io[BACKGROUND].fsync)) { in parse_uid_io_stats()
[all …]
/system/extras/tests/crypto/
Dget_dm_versions.c11 static void ioctl_init(struct dm_ioctl *io, size_t dataSize, const char *name, unsigned flags) in ioctl_init() argument
13 memset(io, 0, dataSize); in ioctl_init()
14 io->data_size = dataSize; in ioctl_init()
15 io->data_start = sizeof(struct dm_ioctl); in ioctl_init()
16 io->version[0] = 4; in ioctl_init()
17 io->version[1] = 0; in ioctl_init()
18 io->version[2] = 0; in ioctl_init()
19 io->flags = flags; in ioctl_init()
21 strncpy(io->name, name, sizeof(io->name)); in ioctl_init()
28 struct dm_ioctl *io; in main() local
[all …]
/system/vold/
DDevmapper.cpp45 void Devmapper::ioctlInit(struct dm_ioctl* io, size_t dataSize, const char* name, unsigned flags) { in ioctlInit() argument
46 memset(io, 0, dataSize); in ioctlInit()
47 io->data_size = dataSize; in ioctlInit()
48 io->data_start = sizeof(struct dm_ioctl); in ioctlInit()
49 io->version[0] = 4; in ioctlInit()
50 io->version[1] = 0; in ioctlInit()
51 io->version[2] = 0; in ioctlInit()
52 io->flags = flags; in ioctlInit()
54 size_t ret = strlcpy(io->name, name, sizeof(io->name)); in ioctlInit()
55 if (ret >= sizeof(io->name)) abort(); in ioctlInit()
[all …]
DMetadataCrypt.cpp174 struct dm_ioctl* io = (struct dm_ioctl*)buffer; in dm_ioctl_init() local
175 io->data_size = buffer_size; in dm_ioctl_init()
176 io->data_start = sizeof(struct dm_ioctl); in dm_ioctl_init()
177 io->version[0] = 4; in dm_ioctl_init()
178 io->version[1] = 0; in dm_ioctl_init()
179 io->version[2] = 0; in dm_ioctl_init()
180 io->flags = 0; in dm_ioctl_init()
181 dm_name.copy(io->name, sizeof(io->name)); in dm_ioctl_init()
182 return io; in dm_ioctl_init()
195 auto io = dm_ioctl_init(buffer, sizeof(buffer), dm_name); in create_crypto_blk_dev() local
[all …]
/system/tools/xsdc/src/com/android/xsdc/
DFileSystem.java19 import java.io.File;
20 import java.io.IOException;
21 import java.io.PrintWriter;
22 import java.io.StringWriter;
/system/tools/xsdc/tests/resources/simple_type/api/
Dcurrent.txt39 …pe.MultiChoice readMultiChoice(java.io.InputStream) throws javax.xml.datatype.DatatypeConfiguratio…
40 …pe.SimpleTypes readSimpleTypes(java.io.InputStream) throws javax.xml.datatype.DatatypeConfiguratio…
41 ….SingleChoice readSingleChoice(java.io.InputStream) throws javax.xml.datatype.DatatypeConfiguratio…
42 …method public static String readText(org.xmlpull.v1.XmlPullParser) throws java.io.IOException, org…
43 …method public static void skip(org.xmlpull.v1.XmlPullParser) throws java.io.IOException, org.xmlpu…
/system/core/adb/
Dadb_io_test.cpp45 POSIX_TEST(io, ReadFdExactly_whole) { in POSIX_TEST() argument
59 POSIX_TEST(io, ReadFdExactly_eof) { in POSIX_TEST() argument
73 POSIX_TEST(io, ReadFdExactly_partial) { in POSIX_TEST() argument
90 POSIX_TEST(io, WriteFdExactly_whole) { in POSIX_TEST() argument
105 POSIX_TEST(io, WriteFdExactly_partial) { in POSIX_TEST() argument
122 POSIX_TEST(io, WriteFdExactly_ENOSPC) { in POSIX_TEST() argument
131 POSIX_TEST(io, WriteFdExactly_string) { in POSIX_TEST() argument
145 POSIX_TEST(io, WriteFdFmt) { in POSIX_TEST() argument
/system/timezone/distro/tools/src/main/com/android/timezone/distro/tools/
DCreateTimeZoneDistro.java24 import java.io.File;
25 import java.io.FileInputStream;
26 import java.io.FileOutputStream;
27 import java.io.IOException;
28 import java.io.InputStreamReader;
29 import java.io.OutputStream;
30 import java.io.Reader;
/system/timezone/distro/core/src/main/com/android/timezone/distro/
DTimeZoneDistro.java18 import java.io.ByteArrayInputStream;
19 import java.io.ByteArrayOutputStream;
20 import java.io.File;
21 import java.io.FileOutputStream;
22 import java.io.IOException;
23 import java.io.InputStream;
DFileUtils.java18 import java.io.File;
19 import java.io.FileInputStream;
20 import java.io.FileNotFoundException;
21 import java.io.FileOutputStream;
22 import java.io.IOException;
/system/tools/xsdc/tests/resources/reference/api/
Dcurrent.txt13 …ic static reference.Class read(java.io.InputStream) throws javax.xml.datatype.DatatypeConfiguratio…
14 …method public static String readText(org.xmlpull.v1.XmlPullParser) throws java.io.IOException, org…
15 …method public static void skip(org.xmlpull.v1.XmlPullParser) throws java.io.IOException, org.xmlpu…
/system/core/libunwindstack/
DRegs.cpp49 struct iovec io; in RemoteGet() local
50 io.iov_base = buffer.data(); in RemoteGet()
51 io.iov_len = buffer.size() * sizeof(uint64_t); in RemoteGet()
53 if (ptrace(PTRACE_GETREGSET, pid, NT_PRSTATUS, reinterpret_cast<void*>(&io)) == -1) { in RemoteGet()
57 switch (io.iov_len) { in RemoteGet()
/system/extras/boottime_tools/io_analysis/
Dcheck_verity.py109 io, verity, total, blocks = get_average_and_std_dev(l)
110 print msg, "counts:", len(l), "io latency:", io[0], io[1], io[2], "verity latency:", \
112 return io, verity, total, blocks
116 io, verity, total, blocks = self.dump_list ("total,", self.reads)
117 io_latency_per_1024KB = io[2] / blocks * (1024 / 4)
/system/core/adb/fastdeploy/deployagent/src/com/android/fastdeploy/
DDeployAgent.java19 import java.io.BufferedReader;
20 import java.io.File;
21 import java.io.FileInputStream;
22 import java.io.FileOutputStream;
23 import java.io.IOException;
24 import java.io.InputStream;
25 import java.io.InputStreamReader;
26 import java.io.OutputStream;
29 import java.io.OutputStream;
30 import java.io.RandomAccessFile;
/system/timezone/distro/core/src/test/com/android/timezone/distro/
DTimeZoneDistroTest.java20 import libcore.testing.io.TestIoUtils;
23 import java.io.ByteArrayInputStream;
24 import java.io.ByteArrayOutputStream;
25 import java.io.File;
26 import java.io.FilterInputStream;
27 import java.io.IOException;
28 import java.io.InputStream;
/system/tools/xsdc/tests/resources/purchase_simple/api/
Dcurrent.txt31 ….simple.PurchaseOrderType read(java.io.InputStream) throws javax.xml.datatype.DatatypeConfiguratio…
32 …method public static String readText(org.xmlpull.v1.XmlPullParser) throws java.io.IOException, org…
33 …method public static void skip(org.xmlpull.v1.XmlPullParser) throws java.io.IOException, org.xmlpu…
/system/tools/xsdc/tests/resources/simple_complex_content/api/
Dcurrent.txt60 …plex.content.Person readPerson(java.io.InputStream) throws javax.xml.datatype.DatatypeConfiguratio…
61 …ex.content.Person2 readPerson2(java.io.InputStream) throws javax.xml.datatype.DatatypeConfiguratio…
62 …method public static String readText(org.xmlpull.v1.XmlPullParser) throws java.io.IOException, org…
63 …method public static void skip(org.xmlpull.v1.XmlPullParser) throws java.io.IOException, org.xmlpu…
/system/timezone/tzlookup_generator/src/main/java/com/android/libcore/timezone/tzlookup/
DCountryZonesFileSupport.java21 import java.io.BufferedReader;
22 import java.io.FileReader;
23 import java.io.IOException;
DTzLookupFile.java18 import java.io.FileOutputStream;
19 import java.io.IOException;
20 import java.io.OutputStreamWriter;
21 import java.io.StringReader;
22 import java.io.StringWriter;
23 import java.io.Writer;
/system/extras/simpleperf/app_api/java/com/android/simpleperf/
DProfileSession.java19 import java.io.BufferedReader;
20 import java.io.File;
21 import java.io.FileInputStream;
22 import java.io.IOException;
23 import java.io.InputStream;
24 import java.io.InputStreamReader;
/system/extras/boottime_tools/bootio/sepolicy/
Dbootio.te11 # Read access to pseudo filesystems (for /proc/stats, proc/io/io, etc).
/system/tools/xsdc/tests/resources/nested_type/api/
Dcurrent.txt47 …atic nested.type.Employee read(java.io.InputStream) throws javax.xml.datatype.DatatypeConfiguratio…
48 …method public static String readText(org.xmlpull.v1.XmlPullParser) throws java.io.IOException, org…
49 …method public static void skip(org.xmlpull.v1.XmlPullParser) throws java.io.IOException, org.xmlpu…

12345