Home
last modified time | relevance | path

Searched refs:file_id (Results 1 – 25 of 59) sorted by relevance

123

/external/rust/crates/codespan-reporting/examples/
Dcustom_files.rs101 let file_id = FileId(u32::try_from(self.files.len()).ok()?); in add() localVariable
112 Some(file_id) in add()
116 fn get(&self, file_id: FileId) -> Result<&File, files::Error> { in get()
118 .get(file_id.0 as usize) in get()
128 fn name(&self, file_id: FileId) -> Result<&str, files::Error> { in name()
129 Ok(self.get(file_id)?.name.as_ref()) in name()
132 fn source(&self, file_id: FileId) -> Result<&str, files::Error> { in source()
133 Ok(&self.get(file_id)?.source) in source()
136 fn line_index(&self, file_id: FileId, byte_index: usize) -> Result<usize, files::Error> { in line_index()
137 self.get(file_id)? in line_index()
[all …]
/external/rust/crates/codespan-reporting/src/term/
Dviews.rs46 file_id: FileId, in render() field
90 let start_line_index = files.line_index(label.file_id, label.range.start)?; in render()
91 let start_line_number = files.line_number(label.file_id, start_line_index)?; in render()
92 let start_line_range = files.line_range(label.file_id, start_line_index)?; in render()
93 let end_line_index = files.line_index(label.file_id, label.range.end)?; in render()
94 let end_line_number = files.line_number(label.file_id, end_line_index)?; in render()
95 let end_line_range = files.line_range(label.file_id, end_line_index)?; in render()
105 .find(|labeled_file| label.file_id == labeled_file.file_id) in render()
115 labeled_file.location = files.location(label.file_id, label.range.start)?; in render()
123 file_id: label.file_id, in render()
[all …]
/external/autotest/client/site_tests/enterprise_SmbProviderDaemon/
Denterprise_SmbProviderDaemon.py104 file_id = self._check_open_file(mount_id, test_file, False)
105 self._check_close_file(mount_id, file_id)
108 file_id = self._check_open_file(mount_id, test_file, False)
109 self._check_close_file(mount_id, file_id)
112 file_id = self._check_open_file(mount_id, test_file, True)
116 self._check_write_file(mount_id, file_id, 0, data)
119 read_data = self._check_read_file(mount_id, file_id, 0, len(data))
122 self._check_close_file(mount_id, file_id)
261 error, file_id = self._smbprovider.open_file(mount_id,
264 if file_id < 0:
[all …]
/external/autotest/client/common_lib/cros/
Dsmbprovider.py258 def close_file(self, mount_id, file_id): argument
269 logging.info("Closing file: %s", file_id)
275 proto.file_id = file_id
281 def read_file(self, mount_id, file_id, offset, length): argument
295 logging.info("Reading file: %s", file_id)
302 proto.file_id = file_id
416 def write_file(self, mount_id, file_id, offset, data): argument
429 logging.info("Writing to file: %s", file_id)
435 proto.file_id = file_id
/external/rust/crates/codespan-reporting/src/
Dfiles.rs372 let file_id = self.files.len(); in add() localVariable
374 file_id in add()
378 pub fn get(&self, file_id: usize) -> Result<&SimpleFile<Name, Source>, Error> { in get()
379 self.files.get(file_id).ok_or(Error::FileMissing) in get()
392 fn name(&self, file_id: usize) -> Result<Name, Error> { in name()
393 Ok(self.get(file_id)?.name().clone()) in name()
396 fn source(&self, file_id: usize) -> Result<&str, Error> { in source()
397 Ok(self.get(file_id)?.source().as_ref()) in source()
400 fn line_index(&self, file_id: usize, byte_index: usize) -> Result<usize, Error> { in line_index()
401 self.get(file_id)?.line_index((), byte_index) in line_index()
[all …]
Ddiagnostic.rs69 pub file_id: FileId, field
81 file_id: FileId, in new()
86 file_id, in new()
95 pub fn primary(file_id: FileId, range: impl Into<Range<usize>>) -> Label<FileId> { in primary()
96 Label::new(LabelStyle::Primary, file_id, range) in primary()
102 pub fn secondary(file_id: FileId, range: impl Into<Range<usize>>) -> Label<FileId> { in secondary()
103 Label::new(LabelStyle::Secondary, file_id, range) in secondary()
/external/autotest/server/site_tests/p2p_EndToEndTest/
Dp2p_EndToEndTest.py43 def run_once(self, dut, file_id, is_main, peers, barrier): argument
46 file_id = '%s-%s' % (P2P_TEST_PREFIX, file_id)
47 file_temp_name = os.path.join(P2P_PATH, file_id + '.tmp')
48 file_shared_name = os.path.join(P2P_PATH, file_id + '.p2p')
104 ret = dut.run('p2p-client --get-url=%s' % file_id)
Dcontrol41 file_id=file_id,
50 file_id = "%s-%s" % (time.strftime("%Y%m%d-%H%M"), uuid.uuid4())
/external/ltp/testcases/kernel/fs/inode/
Dinode01.c96 int file_id; variable
352 file_id = creat(new_string, FILE_MODE); in generate()
353 if (file_id == -1) { in generate()
372 write(file_id, new_string, len); in generate()
381 close(file_id); in generate()
502 file_id = open(path_string, READ); in check()
503 if (file_id <= 0) { in check()
520 read(file_id, read_string, len); in check()
538 close(file_id); in check()
692 close(file_id); in term()
Dinode02.c82 int file_id; variable
449 file_id = creat(new_string, FILE_MODE); in generate()
450 if (file_id == -1) { in generate()
470 write(file_id, new_string, len); in generate()
478 close(file_id); in generate()
603 file_id = open(path_string, READ); in check()
604 if (file_id <= 0) { in check()
622 read(file_id, read_string, len); in check()
639 close(file_id); in check()
799 close(file_id); in term()
/external/rust/crates/codespan-reporting/tests/
Dterm.rs563 let file_id = files.add( localVariable
593 … Label::primary(file_id, 163..166).with_message("expected `String`, found `Nat`"),
594 … Label::secondary(file_id, 62..166).with_message("`case` clauses have incompatible types"),
595 … Label::secondary(file_id, 41..47).with_message("expected type `String` found here"),
608 … Label::primary(file_id, 328..331).with_message("expected `String`, found `Nat`"),
609 … Label::secondary(file_id, 211..331).with_message("`case` clauses have incompatible types"),
610 … Label::secondary(file_id, 258..268).with_message("this is found to be of type `String`"),
611 … Label::secondary(file_id, 284..290).with_message("this is found to be of type `String`"),
612 … Label::secondary(file_id, 306..312).with_message("this is found to be of type `String`"),
613 … Label::secondary(file_id, 186..192).with_message("expected type `String` found here"),
[all …]
/external/autotest/client/cros/netprotos/
Dcros_p2p.py40 def add_file(self, file_id, file_size, announce=False): argument
48 self._files[file_id] = file_size
52 def remove_file(self, file_id, announce=False): argument
59 del self._files[file_id]
80 for file_id, file_size in self._files.iteritems():
81 txts.append('id_%s=%d' % (file_id, file_size))
/external/google-breakpad/src/tools/solaris/dump_syms/
DMakefile43 DUMP_OBJ=dump_symbols.o guid_creator.o dump_syms.o file_id.o md5.o
54 file_id.o:../../../common/solaris/file_id.cc
/external/angle/third_party/vulkan-deps/spirv-tools/src/source/val/
Dvalidate_debug.cpp46 const auto file_id = inst->GetOperandAs<uint32_t>(0); in ValidateLine() local
47 const auto file = _.FindDef(file_id); in ValidateLine()
50 << "OpLine Target <id> '" << _.getIdName(file_id) in ValidateLine()
/external/swiftshader/third_party/SPIRV-Tools/source/val/
Dvalidate_debug.cpp46 const auto file_id = inst->GetOperandAs<uint32_t>(0); in ValidateLine() local
47 const auto file = _.FindDef(file_id); in ValidateLine()
50 << "OpLine Target <id> '" << _.getIdName(file_id) in ValidateLine()
/external/deqp-deps/SPIRV-Tools/source/val/
Dvalidate_debug.cpp46 const auto file_id = inst->GetOperandAs<uint32_t>(0); in ValidateLine() local
47 const auto file = _.FindDef(file_id); in ValidateLine()
50 << "OpLine Target <id> '" << _.getIdName(file_id) in ValidateLine()
/external/clang/test/CodeGenCXX/
Dmember-init-assignment.cpp5 unsigned file_id; member
10 Foo::Foo(unsigned arg) : file_id(arg = 42) in Foo()
/external/llvm-project/clang/test/CodeGenCXX/
Dmember-init-assignment.cpp5 unsigned file_id; member
10 Foo::Foo(unsigned arg) : file_id(arg = 42) in Foo()
/external/tensorflow/tensorflow/python/debug/lib/
Dsource_remote.py66 file_id=_string_to_id(file_path, string_to_id),
90 file_ids.add(trace.file_id)
91 non_tf_files = (id_to_string[file_id] for file_id in file_ids)
/external/kernel-headers/original/uapi/linux/
Dincrementalfs.h195 incfs_uuid_t file_id; member
216 incfs_uuid_t file_id; member
300 incfs_uuid_t file_id; member
/external/llvm-project/clang/test/FixIt/
Dselector-fixit.m11 - (void) open : (id) file_id;
23 - (void) open : (id) file_id {}
/external/clang/test/FixIt/
Dselector-fixit.m11 - (void) open : (id) file_id;
23 - (void) open : (id) file_id {}
/external/eigen/unsupported/Eigen/src/SparseExtra/
DMatrixMarketIterator.h175 std::ifstream file_id(file.c_str()); in Fileexists()
176 if (!file_id.good() ) in Fileexists()
182 file_id.close(); in Fileexists()
/external/google-breakpad/src/common/
Dcommon.gyp109 'linux/file_id.cc',
110 'linux/file_id.h',
139 'mac/file_id.cc',
140 'mac/file_id.h',
171 'solaris/file_id.cc',
172 'solaris/file_id.h',
/external/google-breakpad/src/client/mac/handler/minidump_test.xcodeproj/
Dproject.pbxproj47 …D2F651000BEF947200920385 /* file_id.cc in Sources */ = {isa = PBXBuildFile; fileRef = D2F650FA0BEF…
48 …D2F651010BEF947200920385 /* file_id.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = D2F650FB0BE…
62 …D2F6511D0BEF973500920385 /* file_id.cc in Sources */ = {isa = PBXBuildFile; fileRef = D2F650FA0BEF…
69 …F93A88800E8B4C8C0026AF89 /* file_id.cc in Sources */ = {isa = PBXBuildFile; fileRef = D2F650FA0BEF…
98 D2F651010BEF947200920385 /* file_id.h in CopyFiles */,
137file_id.cc */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp…
138 …/* file_id.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; …
253 D2F650FA0BEF947200920385 /* file_id.cc */,
254 D2F650FB0BEF947200920385 /* file_id.h */,
552 D2F651000BEF947200920385 /* file_id.cc in Sources */,
[all …]

123