Home
last modified time | relevance | path

Searched refs:tf (Results 1 – 6 of 6) sorted by relevance

/system/core/adb/
Dadb_io_test.cpp42 TemporaryFile tf; in TEST() local
43 ASSERT_NE(-1, tf.fd); in TEST()
45 ASSERT_TRUE(android::base::WriteStringToFd(expected, tf.fd)) << strerror(errno); in TEST()
46 ASSERT_EQ(0, lseek(tf.fd, 0, SEEK_SET)); in TEST()
50 ASSERT_TRUE(ReadFdExactly(tf.fd, buf, sizeof(buf) - 1)) << strerror(errno); in TEST()
56 TemporaryFile tf; in TEST() local
57 ASSERT_NE(-1, tf.fd); in TEST()
59 ASSERT_TRUE(android::base::WriteStringToFd(expected, tf.fd)) << strerror(errno); in TEST()
60 ASSERT_EQ(0, lseek(tf.fd, 0, SEEK_SET)); in TEST()
64 ASSERT_FALSE(ReadFdExactly(tf.fd, buf, sizeof(buf))); in TEST()
[all …]
Dtest_device.py503 tf = tempfile.NamedTemporaryFile('wb', suffix=file_suffix,
505 tf.close()
509 output = self.device.install(tf.name)
514 os.remove(tf.name)
1063 tf = tempfile.NamedTemporaryFile('wb', suffix=name, delete=False)
1064 tf.close()
1065 self.device.push(tf.name, remote_path)
1066 os.remove(tf.name)
1067 self.assertFalse(os.path.exists(tf.name))
1075 self.device.pull(remote_path, tf.name)
[all …]
/system/core/base/
Dfile_test.cpp38 TemporaryFile tf; in TEST() local
39 ASSERT_TRUE(tf.fd != -1); in TEST()
40 ASSERT_TRUE(android::base::WriteStringToFile("abc", tf.path)) in TEST()
43 ASSERT_TRUE(android::base::ReadFileToString(tf.path, &s)) in TEST()
52 TemporaryFile tf; in TEST() local
53 ASSERT_TRUE(tf.fd != -1); in TEST()
54 ASSERT_TRUE(android::base::WriteStringToFile("abc", tf.path, 0660, in TEST()
58 ASSERT_EQ(0, stat(tf.path, &sb)); in TEST()
63 ASSERT_TRUE(android::base::ReadFileToString(tf.path, &s)) in TEST()
70 TemporaryFile tf; in TEST() local
[all …]
/system/core/init/
Dcompare-bootcharts.py80 with tarfile.open(pathname + '/bootchart.tgz', 'r:*') as tf:
83 f = tf.extractfile('proc_ps.log')
/system/tpm/trunks/ftdi/
Dmpsse.h199 void EnableBitmode(struct mpsse_context* mpsse, int tf);
214 void FlushAfterRead(struct mpsse_context* mpsse, int tf);
Dmpsse.c234 void EnableBitmode(struct mpsse_context* mpsse, int tf) { in EnableBitmode() argument
236 if (tf) { in EnableBitmode()
588 void FlushAfterRead(struct mpsse_context* mpsse, int tf) { in FlushAfterRead() argument
589 mpsse->flush_after_read = tf; in FlushAfterRead()