| /third_party/skia/third_party/externals/jinja2/ |
| H A D | compiler.py | 150 # write tests around output statements. 289 # the number of new lines before the next write() 357 """Yield or write into the frame buffer.""" 366 self.write(")") 369 """Simple shortcut for start_write + write + end_write.""" 371 self.write(s) 385 def write(self, x): member in CodeGenerator 389 self.stream.write("\n" * self._new_lines) 395 self.stream.write(" " * self._indentation) 397 self.stream.write( [all...] |
| /kernel/linux/linux-6.6/include/trace/events/ |
| H A D | mmap_lock.h | 18 TP_PROTO(struct mm_struct *mm, const char *memcg_path, bool write), 20 TP_ARGS(mm, memcg_path, write), 25 __field(bool, write) 31 __entry->write = write; 35 "mm=%p memcg_path=%s write=%s", 38 __entry->write ? "true" : "false" 45 bool write), \ 46 TP_ARGS(mm, memcg_path, write), \ 54 TP_PROTO(struct mm_struct *mm, const char *memcg_path, bool write, [all...] |
| /third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/ |
| H A D | EndianStream.h | 27 inline void write(raw_ostream &os, value_type value, endianness endian) { in write() function 29 os.write((const char *)&value, sizeof(value_type)); in write() 33 inline void write<float>(raw_ostream &os, float value, endianness endian) { in write() function 34 write(os, FloatToBits(value), endian); in write() 38 inline void write<double>(raw_ostream &os, double value, in write() function 40 write(os, DoubleToBits(value), endian); in write() 44 inline void write(raw_ostream &os, ArrayRef<value_type> vals, in write() function 47 write(os, v, endian); in write() 50 /// Adapter to write values to a stream in a particular byte order. 55 template <typename value_type> void write(ArrayRe in Writer() function 58 template <typename value_type> void write(value_type Val) { write() function [all...] |
| /third_party/python/Tools/scripts/ |
| H A D | generate_global_objects.py | 149 def write(self, arg): member in Printer 161 self.write(prefix + " {") 165 self.write("}" + suffix) 170 """Like open() but only write to the file if it changed.""" 176 outfile.write(text) 203 printer.write(before) 204 printer.write(START) 208 printer.write(f'STRUCT_FOR_STR({name}, "{literal}")') 209 outfile.write('\n') 213 printer.write( [all...] |
| /third_party/node/test/parallel/ |
| H A D | test-string-decoder.js | 91 assert.strictEqual(decoder.write(Buffer.from('E1', 'hex')), ''); 105 decoder.write(expectView), 112 assert.strictEqual(decoder.write(Buffer.from('E18B', 'hex')), ''); 116 assert.strictEqual(decoder.write(Buffer.from('\ufffd')), '\ufffd'); 120 assert.strictEqual(decoder.write(Buffer.from('\ufffd\ufffd\ufffd')), 125 assert.strictEqual(decoder.write(Buffer.from('EFBFBDE2', 'hex')), '\ufffd'); 129 assert.strictEqual(decoder.write(Buffer.from('F1', 'hex')), ''); 130 assert.strictEqual(decoder.write(Buffer.from('41F2', 'hex')), '\ufffdA'); 139 assert.strictEqual(decoder.write(Buffer.from('3DD8', 'hex')), ''); 140 assert.strictEqual(decoder.write(Buffe [all...] |
| /third_party/icu/tools/multi/proj/icu4jscan/src/com/ibm/icu/dev/scan/ |
| H A D | CapDocument.java | 21 public void write(PrintWriter pw, int i) { in write() method in CapDocument.TextCap 23 pw.write(getName()+"\n"); in write() 31 public void write(PrintWriter pw, int indent) { in write() method in CapDocument.CommentElement 33 pw.write("<!-- "+getName()+" -->\n"); in write() 47 public void write(PrintWriter pw, int indent) { in write() method in CapDocument.TagElement 50 pw.write("<"+getName()); in write() 54 pw.write(" "+o.getKey().toString()+"=\""+o.getValue()+"\""); in write() 57 pw.write(">\n"); in write() 63 ch.write(pw, indent); in write() 69 pw.write("</" in write() 99 public void write(PrintWriter pw, int indent) { write() method in CapDocument [all...] |
| /third_party/vk-gl-cts/external/vulkan-docs/src/scripts/ |
| H A D | rubygenerator.py | 7 from generator import OutputGenerator, enquote, write namespace 39 write(self.beginDict(name), file=self.outFile) 45 write(f'{enquote(key)} => {value},', file=self.outFile) 46 write(self.endDict(), file=self.outFile) 55 write('def {}'.format(name), file=self.outFile) 56 write(' @{}'.format(name), file=self.outFile) 57 write('end', file=self.outFile) 65 write('class APInames\n', ' def initialize', file=self.outFile) 85 write(self.beginDict('mapDict'), file=self.outFile) 88 write('{} [all...] |
| /third_party/jinja2/ |
| H A D | compiler.py | 66 self.write(f"environment.call_binop(context, {op!r}, ") 68 self.write(", ") 71 self.write("(") 73 self.write(f" {op} ") 76 self.write(")") 90 self.write(f"environment.call_unop(context, {op!r}, ") 93 self.write("(" + op) 96 self.write(")") 183 # write tests around output statements. 349 # the number of new lines before the next write() 453 def write(self, x: str) -> None: global() member in CodeGenerator [all...] |
| /kernel/linux/linux-6.6/tools/testing/selftests/bpf/ |
| H A D | generate_udp_fragments.py | 8 fragmented packets in C, it is much harder to read and write 10 easy to read / write. 12 So we choose to write this script that generates a valid C 33 f.write("// SPDX-License-Identifier: GPL-2.0\n") 34 f.write("/* DO NOT EDIT -- this file is generated */\n") 35 f.write("\n") 36 f.write("#ifndef _IP_CHECK_DEFRAG_FRAGS_H\n") 37 f.write("#define _IP_CHECK_DEFRAG_FRAGS_H\n") 38 f.write("\n") 39 f.write("#includ [all...] |
| /third_party/rust/crates/codespan/codespan-reporting/tests/support/ |
| H A D | color_buffer.rs | 30 /// writes to this write will use these settings until either reset is 56 fn write(&mut self, buf: &[u8]) -> io::Result<usize> { in write() functions 81 write!(self, "{{/}}")?; in set_color() 84 write!(self, "{{")?; in set_color() 89 fn write_first(first: bool, write: &mut ColorBuffer) -> io::Result<bool> { in set_color() 91 write!(write, " ")?; in set_color() 99 write!(self, "fg:{:?}", fg)?; in set_color() 104 write!(self, "bg:{:?}", bg)?; in set_color() 109 write!(sel in set_color() [all...] |
| /third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/tools/conversion/eot/ |
| H A D | GlyfEncoder.java | 139 glyfStream.write(glyph.argument1(i)); in writeCompositeGlyph() 140 glyfStream.write(glyph.argument2(i)); in writeCompositeGlyph() 147 glyfStream.write(glyph.transformation(i)); in writeCompositeGlyph() 158 glyfStream.write(value >> 8); in writeUShort() 159 glyfStream.write(value & 255); in writeUShort() 169 os.write((byte)value); in write255UShort() 171 os.write(255); in write255UShort() 172 os.write((byte)(value - 253)); in write255UShort() 174 os.write(254); in write255UShort() 175 os.write((byt in write255UShort() [all...] |
| /kernel/linux/linux-6.6/arch/loongarch/mm/ |
| H A D | fault.c | 35 unsigned long write, unsigned long address) in no_context() 43 if (kfence_handle_page_fault(address, write, regs)) in no_context() 60 unsigned long write, unsigned long address) in do_out_of_memory() 67 no_context(regs, write, address); in do_out_of_memory() 74 unsigned long write, unsigned long address, int si_code) in do_sigbus() 78 no_context(regs, write, address); in do_sigbus() 92 unsigned long write, unsigned long address, int si_code) in do_sigsegv() 99 no_context(regs, write, address); in do_sigsegv() 105 if (!write) in do_sigsegv() 115 write in do_sigsegv() 34 no_context(struct pt_regs *regs, unsigned long write, unsigned long address) no_context() argument 59 do_out_of_memory(struct pt_regs *regs, unsigned long write, unsigned long address) do_out_of_memory() argument 73 do_sigbus(struct pt_regs *regs, unsigned long write, unsigned long address, int si_code) do_sigbus() argument 91 do_sigsegv(struct pt_regs *regs, unsigned long write, unsigned long address, int si_code) do_sigsegv() argument 134 __do_page_fault(struct pt_regs *regs, unsigned long write, unsigned long address) __do_page_fault() argument 256 do_page_fault(struct pt_regs *regs, unsigned long write, unsigned long address) do_page_fault() argument [all...] |
| /third_party/python/Tools/unicode/ |
| H A D | genmap_support.py | 17 def write(self, *data): member in BufferedFiller 37 fp.write(f'{l}\n') 71 self.filler.write('%d,' % c2map[v]) 73 self.filler.write('U,') 77 self.fp.write(f"static const ucs2_t __{self.prefix}_decmap[{len(self.filler)}] = {{\n") 79 self.fp.write(f"static const Py_UCS4 __{self.prefix}_decmap[{len(self.filler)}] = {{\n") 82 self.fp.write("};\n\n") 85 self.fp.write(f"static const struct dbcs_index {self.prefix}_decmap[256] = {{\n") 87 self.fp.write(f"static const struct widedbcs_index {self.prefix}_decmap[256] = {{\n") 94 self.filler.write("{", " [all...] |
| /third_party/skia/src/utils/ |
| H A D | SkJSONWriter.h | 72 fStream->write(fBlock, fWrite - fBlock); in flush() 89 this->write(",", 1); in appendName() 92 this->write("\"", 1); in appendName() 93 this->write(name, strlen(name)); in appendName() 94 this->write("\":", 2); in appendName() 109 this->write("{", 1); in beginObject() 127 this->write("}", 1); in endObject() 141 this->write("[", 1); in beginArray() 159 this->write("]", 1); in endArray() 170 this->write("\"", in appendString() 304 void write(const char* buf, size_t length) { write() function in SkJSONWriter [all...] |
| /third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/MC/ |
| H A D | MachObjectWriter.cpp | 148 W.write<uint32_t>(is64Bit() ? MachO::MH_MAGIC_64 : MachO::MH_MAGIC); in writeHeader() 150 W.write<uint32_t>(TargetObjectWriter->getCPUType()); in writeHeader() 151 W.write<uint32_t>(TargetObjectWriter->getCPUSubtype()); in writeHeader() 153 W.write<uint32_t>(Type); in writeHeader() 154 W.write<uint32_t>(NumLoadCommands); in writeHeader() 155 W.write<uint32_t>(LoadCommandsSize); in writeHeader() 156 W.write<uint32_t>(Flags); in writeHeader() 158 W.write<uint32_t>(0); // reserved in writeHeader() 187 W.write<uint32_t>(is64Bit() ? MachO::LC_SEGMENT_64 : MachO::LC_SEGMENT); in writeSegmentLoadCommand() 188 W.write<uint32_ in writeSegmentLoadCommand() [all...] |
| /third_party/littlefs/scripts/ |
| H A D | tailpipe.py | 42 def write(self, s): member in LinesIO 47 self.tail.write(lines[0]) 54 self.tail.write(lines[-1]) 71 sys.stdout.write('\n') 78 sys.stdout.write('\r') 80 sys.stdout.write('\x1b[%dA' % (shrink-1-i)) 81 sys.stdout.write('\x1b[K') 83 sys.stdout.write('\x1b[%dB' % (shrink-1-i)) 84 sys.stdout.write('\x1b[%dA' % shrink) 89 sys.stdout.write('\ [all...] |
| /third_party/pulseaudio/src/pulsecore/ |
| H A D | pstream.c | 144 } write; member 419 if (p->write.current) in pstream_free() 420 item_free(p->write.current); in pstream_free() 422 if (p->write.memchunk.memblock) in pstream_free() 423 pa_memblock_unref(p->write.memchunk.memblock); in pstream_free() 603 p->write.current = pa_queue_pop(p->send_queue); in prepare_next_write_item() 605 if (!p->write.current) in prepare_next_write_item() 607 p->write.index = 0; in prepare_next_write_item() 608 p->write.data = NULL; in prepare_next_write_item() 609 p->write in prepare_next_write_item() [all...] |
| /third_party/vk-gl-cts/external/vulkan-docs/src/scripts/Retired/ |
| H A D | extensionStubSource.py | 118 write('#ifndef VULKAN_EXT_H', file=self.outFileHeader) 119 write('#define VULKAN_EXT_H', file=self.outFileHeader) 120 write('', file=self.outFileHeader) 121 write('#ifdef __cplusplus', file=self.outFileHeader) 122 write('extern "C" {', file=self.outFileHeader) 123 write('#endif', file=self.outFileHeader) 129 write(s, file=self.outFile) 130 write(s, file=self.outFileHeader) 132 write(doc, file=self.outFileHeader) 134 write('#includ [all...] |
| /third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/format/ |
| H A D | WriteNumberFormatSerialTestData.java | 51 file.write(header.getBytes()); in main() 52 write(file,(Object)nf,"generalInstance", "//NumberFormat.getInstance(Locale.US)"); in main() 53 write(file,(Object)nfc,"currencyInstance","//NumberFormat.getCurrencyInstance(Locale.US)"); in main() 54 write(file,(Object)nfp,"percentInstance","//NumberFormat.getPercentInstance(Locale.US)"); in main() 55 write(file,(Object)nfsp,"scientificInstance","//NumberFormat.getScientificInstance(Locale.US)"); in main() 56 file.write(footer.getBytes()); in main() 63 private static void write(FileOutputStream file,Object o ,String name,String comment){ in write() method in WriteNumberFormatSerialTestData 78 //file.write(myArr); in write() 79 file.write(("\n "+comment).getBytes()); in write() 80 file.write(ne in write() [all...] |
| /third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
| H A D | WriteNumberFormatSerialTestData.java | 48 file.write(header.getBytes()); in main() 49 write(file,(Object)nf,"generalInstance", "//NumberFormat.getInstance(Locale.US)"); in main() 50 write(file,(Object)nfc,"currencyInstance","//NumberFormat.getCurrencyInstance(Locale.US)"); in main() 51 write(file,(Object)nfp,"percentInstance","//NumberFormat.getPercentInstance(Locale.US)"); in main() 52 write(file,(Object)nfsp,"scientificInstance","//NumberFormat.getScientificInstance(Locale.US)"); in main() 53 file.write(footer.getBytes()); in main() 60 private static void write(FileOutputStream file,Object o ,String name,String comment){ in write() method in WriteNumberFormatSerialTestData 75 //file.write(myArr); in write() 76 file.write(("\n "+comment).getBytes()); in write() 77 file.write(ne in write() [all...] |
| /third_party/skia/gn/ |
| H A D | compile_sksl_tests.py | 77 worklist.write(input + "\n") 78 worklist.write(target + ".glsl\n") 79 worklist.write(settings + "\n\n") 81 worklist.write(input + "\n") 82 worklist.write(target + ".metal\n") 83 worklist.write(settings + "\n\n") 85 worklist.write(input + "\n") 86 worklist.write(target + ".asm" + extensionForSpirvAsm(ext) + "\n") 87 worklist.write(settings + "\n\n") 89 worklist.write(inpu [all...] |
| /kernel/linux/linux-6.6/scripts/gdb/linux/ |
| H A D | vmalloc.py | 35 gdb.write("0x%x-0x%x %10d vm_map_ram\n" % (vmap_area['va_start'], vmap_area['va_end'], 39 gdb.write("0x%x-0x%x %10d" % (v['addr'], v['addr'] + v['size'], v['size'])) 41 gdb.write(" %s" % str(v['caller']).split(' ')[-1]) 43 gdb.write(" pages=%d" % v['nr_pages']) 45 gdb.write(" phys=0x%x" % v['phys_addr']) 47 gdb.write(" ioremap") 49 gdb.write(" vmalloc") 51 gdb.write(" vmap") 53 gdb.write(" user") 55 gdb.write(" dm [all...] |
| /third_party/rust/crates/cxx/gen/cmd/src/syntax/ |
| H A D | symbol.rs | 36 segment.write(&mut symbol); in from_idents() 44 fn write(&self, symbol: &mut Symbol); in write() functions 48 fn write(&self, symbol: &mut Symbol) { in write() functions 54 fn write(&self, symbol: &mut Symbol) { in write() functions 60 fn write(&self, symbol: &mut Symbol) { in write() functions 66 fn write(&self, symbol: &mut Symbol) { in write() functions 72 fn write(&self, symbol: &mut Symbol) { in write() functions 80 fn write(&self, symbol: &mut Symbol) { in write() functions 81 self.namespace.write(symbol); in write() 82 self.cxx.write(symbo in write() 87 fn write(&self, symbol: &mut Symbol) { write() functions 98 fn write(&self, symbol: &mut Symbol) { write() functions [all...] |
| /third_party/rust/crates/cxx/gen/lib/src/syntax/ |
| H A D | symbol.rs | 36 segment.write(&mut symbol); in from_idents() 44 fn write(&self, symbol: &mut Symbol); in write() functions 48 fn write(&self, symbol: &mut Symbol) { in write() functions 54 fn write(&self, symbol: &mut Symbol) { in write() functions 60 fn write(&self, symbol: &mut Symbol) { in write() functions 66 fn write(&self, symbol: &mut Symbol) { in write() functions 72 fn write(&self, symbol: &mut Symbol) { in write() functions 80 fn write(&self, symbol: &mut Symbol) { in write() functions 81 self.namespace.write(symbol); in write() 82 self.cxx.write(symbo in write() 87 fn write(&self, symbol: &mut Symbol) { write() functions 98 fn write(&self, symbol: &mut Symbol) { write() functions [all...] |
| /third_party/rust/crates/cxx/gen/build/src/syntax/ |
| H A D | symbol.rs | 36 segment.write(&mut symbol); in from_idents() 44 fn write(&self, symbol: &mut Symbol); in write() functions 48 fn write(&self, symbol: &mut Symbol) { in write() functions 54 fn write(&self, symbol: &mut Symbol) { in write() functions 60 fn write(&self, symbol: &mut Symbol) { in write() functions 66 fn write(&self, symbol: &mut Symbol) { in write() functions 72 fn write(&self, symbol: &mut Symbol) { in write() functions 80 fn write(&self, symbol: &mut Symbol) { in write() functions 81 self.namespace.write(symbol); in write() 82 self.cxx.write(symbo in write() 87 fn write(&self, symbol: &mut Symbol) { write() functions 98 fn write(&self, symbol: &mut Symbol) { write() functions [all...] |