Home
last modified time | relevance | path

Searched refs:read (Results 1 – 25 of 152) sorted by relevance

1234567

/test/xts/acts/storage/storagefileiojstest/src/main/js/test/module_fileio/class_stream/
Dread.test.js104 let readout = await ss.read(new ArrayBuffer(4096));
131 ss.read(new ArrayBuffer(4096), null, function (err, readout) {
162 let readout = await ss.read(new ArrayBuffer(4096),options);
189 let readout = await ss.read(new ArrayBuffer(4096), {offset: 4096});
222 let readout = await ss.read(new ArrayBuffer(4096),options);
253 await ss.read(new ArrayBuffer(4096), {offset: -1});
278 await ss.read(new ArrayBuffer(4096), {offset: 1,length:4096});
303 await ss.read(new ArrayBuffer(4096), {offset: 4097});
328 await ss.read(new ArrayBuffer(4096), {length: 4097});
354 await ss.read(new ArrayBuffer(16), {offset:13, length: -1});
[all …]
/test/xts/acts/storage/crossplatform/storagefsetstest/src/main/ets/test/members/
Dread.test.ets24 * @tc.desc : Test read() interfaces. Promise.
25 * Open the file in read-only mode, default read from current offset.
37 let readLen1: number = await fileIO.read(file.fd, new ArrayBuffer(16));
39 let readLen2: number = await fileIO.read(file.fd, new ArrayBuffer(8));
53 * @tc.desc : Test read() interfaces. Promise.
66 await fileIO.read(file.fd, new ArrayBuffer(4096));
80 * @tc.desc : Test read() interfaces. Promise.
81 * Open the file in read-only mode, reading the file with offset(position) = 1.
93 let readlen: number = await fileIO.read(file.fd, new ArrayBuffer(4096), {
109 * @tc.desc : Test read() interfaces. Promise.
[all …]
/test/xts/acts/storage/storagefileiov9jstest/src/main/js/test/class_stream/
Dread.test.js300 let readLen1 = await sr.read(new ArrayBuffer(16));
302 let readLen2 = await sr.read(new ArrayBuffer(8));
330 sr.read(new ArrayBuffer(16), (err, readLen1) => {
336 sr.read(new ArrayBuffer(8), (err, readLen2) => {
370 let readLen = await sr.read(new ArrayBuffer(4096), {
400 sr.read(new ArrayBuffer(4096), {
435 let readLen = await sr.read(new ArrayBuffer(4096), {
465 sr.read(new ArrayBuffer(4096), {
501 await sr.read(new ArrayBuffer(4096), { length: invalidLength });
530 sr.read(new ArrayBuffer(4096), {
[all …]
/test/xts/acts/storage/storagefileiov9jstest/src/main/js/test/members/
Dread.test.js420 let readLen1 = await fileIO.read(file.fd, new ArrayBuffer(16));
422 let readLen2 = await fileIO.read(file.fd, new ArrayBuffer(8));
450 fileIO.read(file.fd, new ArrayBuffer(16), (err, readlen1) => {
456 fileIO.read(file.fd, new ArrayBuffer(8), (err, readLen2) => {
490 await fileIO.read(file.fd, new ArrayBuffer(4096));
519 fileIO.read(file.fd, new ArrayBuffer(4096), (err) => {
551 let readlen = await fileIO.read(file.fd, new ArrayBuffer(4096), {
581 fileIO.read(file.fd, new ArrayBuffer(4096), {
616 let readLen = await fileIO.read(file.fd, new ArrayBuffer(4096), {
646 fileIO.read(file.fd, new ArrayBuffer(4096), {
[all …]
Dfilerw.test.js28 async function IOfunc(file, bf, total, rand, read, promise) { argument
40 if (read) {
41 … fileIO.read(file.fd, array, { length: bf, offset: offset }).then((readLen) => {
54 if (read) {
55 … fileIO.read(file.fd, array, { length: bf, offset: offset }, (err, readLen) => {
/test/xts/acts/storage/storagefileiojstest/src/main/js/test/module_fileio/members/
Dread.test.js352 let res = await fileio.read(fd, new ArrayBuffer(4096));
379 fileio.read(fd, new ArrayBuffer(4096), async function (err, data) {
407 let readout = await fileio.read(fd, new ArrayBuffer(4096));
434 let readout = await fileio.read(fd, new ArrayBuffer(4096), {
463 let readout = await fileio.read(fd, new ArrayBuffer(4096), {
493 let readout = await fileio.read(fd, new ArrayBuffer(5), {
524 await fileio.read(fd, new ArrayBuffer(4096), {
553 let err = await fileio.read(fd, new ArrayBuffer(4096), {
578 await fileio.read(-1, new ArrayBuffer(4096));
603 let readRes1 = await fileio.read(fd, new ArrayBuffer(16), undefined);
[all …]
Dopen.test.js58 fileio.read(fd, new ArrayBuffer(4096))
87 fileio.read(fd, new ArrayBuffer(4096))
115 fileio.read(fd, new ArrayBuffer(4096))
143 fileio.read(fd, new ArrayBuffer(4096))
172 fileio.read(fd, new ArrayBuffer(4096))
203 fileio.read(fd, new ArrayBuffer(4096))
234 fileio.read(fd, new ArrayBuffer(4096))
DfdopenStream.test.js89 fp.read(new ArrayBuffer(4096), {}, function (err, data) {
120 fp.read(new ArrayBuffer(4096), {}, function (err, data) {
Daccess.test.js225 expect((await fileio.read(fd, new ArrayBuffer(4096))) != null).assertTrue();
278 expect((await fileio.read(fd, new ArrayBuffer(4096))) != null).assertTrue();
/test/xts/acts/storage/storagefileiojstest/src/main/js/test/module_fileio/class_dir/
Dread.test.js41 let dir = await dd.read();
70 dd.read(function (err, dirent) {
99 dd.read(-1,function (err, dirent) {
439 let dir = await dd.read();
472 let dirent = await dir.read();
476 dirent = await dir.read();
502 let dir = await dd.read();
531 let dir = await dd.read();
558 let dir = await dd.read();
586 let dir = await dd.read();
[all …]
/test/xts/acts/multimedia/photoAccess/photoAccess/entry/src/main/ets/test/PhotoAsset/
Dclose.ets39 await fileio.read(fd, buf);
40 console.info(`${testNum} read suc`);
42 console.info(`${testNum} read fail`);
73 await fileio.read(fd, buf);
74 console.info(`${testNum} read suc`);
77 console.info(`${testNum} read fail`);
/test/xts/acts/storage/storagefileiov9jstest/src/main/js/test/class_randomAccessFile/
Dread.test.js407 randomaccessfile.read(new ArrayBuffer(length), function (err, readLength) {
438 … let readLength = await randomaccessfile.read(new ArrayBuffer(length), { offset: 1 });
470 let readLength = await randomaccessfile.read(new ArrayBuffer(length), { offset: 1 });
501 …randomaccessfile.read(new ArrayBuffer(length), { offset: 1, length: 5 }, function (err, readLength…
532 … let readLength = await randomaccessfile.read(new ArrayBuffer(length), { offset: length });
558 … randomaccessfile.read(new ArrayBuffer(4096), { offset: -1 }, function (err, readLength) {
585 await randomaccessfile.read(new ArrayBuffer(4096), { offset: -1 });
611 … let readLength = await randomaccessfile.read(new ArrayBuffer(4096), { offset: 1, length: 4096 });
640 …randomaccessfile.read(new ArrayBuffer(length), { offset: length + 1 }, function (err, readLength) {
669 await randomaccessfile.read(new ArrayBuffer(length), { length: length + 1 });
[all …]
/test/xts/acts/kernel_lite/ipc_posix/pipe_fifo/
DPipeTest.cpp52 if (read(fd[0], readBuffer, 20) == -1) {
93 ret = read(fd[0], readBuffer, 20);
145 tmpInt = read(fd[0], readBuffer, arrSize);
203 ret = read(fd[0], readBuffer, arrSize);
251 if (read(fd[0], readBuffer, 20) == -1) {
DFifoTest.cpp69 EXPECT_NE(read(fd, buffer, sizeof(buffer)), -1) << "> read errno = " << errno;
131 tmpInt = read(fd, readBuffer, arrSize);
191 tmpInt = read(fd, readBuffer, arrSize);
/test/xts/acts/commonlibrary/toolchain/libc-test/
Dtar_files.py38 fp.write(open(source_f, "rb").read())
43 fp.write(open(source_f, "rb").read())
/test/testfwk/xdevice/plugins/ohos/src/ohos/environment/
Ddmlib.py314 len_buf = HdcHelper.read(self.main_hdc_connection,
343 data_buf = HdcHelper.read(self.main_hdc_connection, length)
476 pull_result = HdcHelper.read(self.sock, DATA_UNIT_LENGTH * 2)
511 pulled_file.write(HdcHelper.read(self.sock, length))
583 data = test_file.read(1024 * 4)
585 data = test_file.read(SYNC_DATA_MAX)
601 result = HdcHelper.read(self.sock, DATA_UNIT_LENGTH * 2)
615 stat_result = HdcHelper.read(self.sock, DATA_UNIT_LENGTH * 4)
697 return str(HdcHelper.read(self.sock, length))
916 reply = HdcHelper.read(sock, DATA_UNIT_LENGTH)
[all …]
/test/xts/acts/ability/ability_runtime/stage/actsuripermission/actstempuripermissionhaptest/entry/src/main/ets/test/
DUriPermissionTest.ets98 console.info(TAG1 + 'read file succeed.');
103 console.info(TAG1 + 'read file failed.');
207 console.info(TAG2 + 'read file succeed.');
212 console.info(TAG2 + 'read file failed.');
325 console.info(TAG3 + 'read file succeed.');
330 console.info(TAG3 + 'read file failed.');
383 console.info(TAG3 + 'read file succeed.');
387 console.info(TAG3 + 'read file failed.');
455 console.info(TAG4 + 'read file succeed.');
460 console.info(TAG4 + 'read file failed.');
[all …]
/test/testfwk/xdevice/src/xdevice/_core/report/
Dencrypt.py74 Variables.report_vars.pub_key_string = key_content.read()
118 pri_key = rsa.PrivateKey.load_pkcs1(key_content.read())
173 _data = _src_file.read(buffer_size)
/test/xts/acts/multimedia/photoAccess/photoAccess/entry/src/main/ets/test/PhotoAccessHelperCases/
Dcommon.ets98 fs.read(fd, arrayBuffer).then((readLen: number) => {
99 console.info("read file data succeed");
103 …console.info("read file data failed with error message: " + err.message + ", error code: " + err.c…
/test/xts/acts/commonlibrary/thirdparty/musl/entry/src/main/cpp/
Dpollndk.cpp90 while (read(fd[0], &buff, PARAM_1) > PARAM_0) in PollChk()
119 while (read(fd[0], &buff, PARAM_1) > PARAM_0) in PpollChk()
/test/xts/acts/ability/ability_runtime/stage/actsbatchuripermission/actsbatchuripermissionhaptest/entry/src/main/ets/test/
DAbility.test.ets63 // UIAbility - Temp read
125 // UIAbility - Pre read
185 // UIAbility - Temp read 501
216 // UIExtension - Temp read
268 // UIExtension - Pre read
316 // UIExtension - Temp read 501
/test/xts/acts/kernel_lite/fs_posix/src/
DFileSystemTest.h74 EXPECT_NE(read(fd, readBuf, 20), -1) << "> read errno = " << errno; \
/test/xts/acts/arkui/libuv/
DBUILD.gn88 "//third_party/libuv/test/test-not-readable-nor-writable-on-read-error.c",
94 "//third_party/libuv/test/test-pipe-close-stdout-read-stdin.c",
136 "//third_party/libuv/test/test-tcp-close-after-read-timeout.c",
153 "//third_party/libuv/test/test-tcp-read-stop-start.c",
154 "//third_party/libuv/test/test-tcp-read-stop.c",
158 "//third_party/libuv/test/test-tcp-unexpected-read.c",
/test/xts/acts/communication/nfc_Controller/src/main/js/test/
DConnectedTag.test.js288 await connectedTag.read().then(result => {
318 connectedTag.read((err, result)=> {
/test/xts/acts/kernel_lite/utils/
Dmt_utils.cpp107 read(g_pipeFd[0], buffer, 1); // will block until close(fd[1]) in another port in BlockOnPipe()

1234567