Home
last modified time | relevance | path

Searched refs:slice (Results 101 - 125 of 2333) sorted by relevance

12345678910>>...94

/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/sfntly/table/opentype/component/
H A DTagOffsetsTable.java23 recordList = new TagOffsetRecordList(data.slice(headerSize() + base)); in TagOffsetsTable()
81 ReadableFontData newBase = data.slice(record.offset); in subTableForRecord()
119 computeSizeFromData(internalReadData().slice(headerSize() + base)); in subDataSizeToSerialize()
133 return serializeFromBuilders(newData.slice(writtenBytes)); in subSerialize()
135 return serializeFromData(newData.slice(writtenBytes)); in subSerialize()
179 data = data.slice(base); in initFromData()
267 subTableFillPos += builder.subSerialize(newData.slice(subTableFillPos)); in serializeFromBuilders()
276 ReadableFontData data = internalReadData().slice(base); in serializeFromData()
284 ReadableFontData newData = dataIsCanonical ? data.slice(offset, length) : data.slice(offse in createSubTableBuilder()
[all...]
/third_party/python/Lib/ctypes/test/
H A Dtest_slicing.py52 self.assertRaises(TypeError, setitem, a, slice(0, 5), "abcde")
54 self.assertRaises(TypeError, setitem, a, slice(0, 5),
57 self.assertRaises(TypeError, setitem, a, slice(0, 5),
60 self.assertRaises(ValueError, setitem, a, slice(0, 5), range(32))
78 res, slice(None, None, None))
80 res, slice(0, None, None))
82 res, slice(None, 5, -1))
84 res, slice(-5, None, None))
87 res, slice(0, 5), "abcde")
145 res, slice(
[all...]
/third_party/protobuf/python/google/protobuf/pyext/
H A Drepeated_scalar_container.cc278 static PyObject* Subscript(PyObject* pself, PyObject* slice) { in Subscript() argument
286 if (PyInt_Check(slice)) { in Subscript()
287 from = to = PyInt_AsLong(slice); in Subscript()
290 if (PyLong_Check(slice)) { in Subscript()
291 from = to = PyLong_AsLong(slice); in Subscript()
292 } else if (PySlice_Check(slice)) { in Subscript()
295 if (PySlice_GetIndicesEx(slice, in Subscript()
298 if (PySlice_GetIndicesEx(reinterpret_cast<PySliceObject*>(slice), in Subscript()
427 static int AssSubscript(PyObject* pself, PyObject* slice, PyObject* value) { in Subscript() argument
444 if (PyInt_Check(slice)) { in Subscript()
[all...]
/third_party/mesa3d/src/gallium/drivers/vc4/
H A Dvc4_resource.c81 struct vc4_resource_slice *slice = &rsc->slices[ptrans->level]; in vc4_resource_transfer_unmap() local
84 vc4_store_tiled_image(rsc->bo->map + slice->offset + in vc4_resource_transfer_unmap()
86 slice->stride, in vc4_resource_transfer_unmap()
88 slice->tiling, rsc->cpp, in vc4_resource_transfer_unmap()
180 struct vc4_resource_slice *slice = &rsc->slices[level]; in vc4_resource_transfer_map() local
198 buf + slice->offset + in vc4_resource_transfer_map()
200 slice->stride, in vc4_resource_transfer_map()
201 slice->tiling, rsc->cpp, in vc4_resource_transfer_map()
206 ptrans->stride = slice->stride; in vc4_resource_transfer_map()
209 return buf + slice in vc4_resource_transfer_map()
232 struct vc4_resource_slice *slice = &rsc->slices[level]; vc4_texture_subdata() local
371 struct vc4_resource_slice *slice = &rsc->slices[i]; vc4_setup_slices() local
622 struct vc4_resource_slice *slice = &rsc->slices[0]; vc4_resource_from_handle() local
[all...]
/third_party/mesa3d/src/freedreno/fdl/
H A Dfreedreno_layout.c62 struct fdl_slice *slice = &layout->slices[level]; in fdl_dump_layout() local
72 slice->size0, ubwc_slice->size0, in fdl_dump_layout()
73 slice->size0 / fdl_pitch(layout, level), slice->offset, in fdl_dump_layout()
/third_party/skia/third_party/externals/brotli/java/org/brotli/wrapper/enc/
H A DBrotliEncoderChannel.java68 ByteBuffer slice = src.slice(); in write()
69 ((Buffer) slice).limit(limit); in write()
70 inputBuffer.put(slice); in write()
/third_party/jerryscript/tests/jerry/es2015/
H A Darray-species.js34 assertEquals(MyArray, new MyArray().slice().constructor);
47 assertEquals(MyArray, new MyOtherArray().slice().constructor);
64 Array.prototype.slice.call(new MyNonArray()).constructor);
74 // slice, splice, and concat actually do explicitly define the length.
75 assertEquals(0, Array.prototype.slice.call(new MyNonArray()).length);
125 assertThrows(() => new FrozenArray([1]).slice(0, 1), TypeError);
175 new MyObservedArray().slice().constructor);
/kernel/linux/linux-5.10/drivers/misc/cxl/
H A Dmain.c65 ctx->afu->adapter->adapter_num, ctx->afu->slice, ctx->pe); in _cxl_slbia()
80 int card, slice, id; in cxl_slbia_core() local
88 for (slice = 0; slice < adapter->slices; slice++) { in cxl_slbia_core()
89 afu = adapter->afu[slice]; in cxl_slbia_core()
243 struct cxl_afu *cxl_alloc_afu(struct cxl *adapter, int slice) in cxl_alloc_afu() argument
253 afu->slice = slice; in cxl_alloc_afu()
/kernel/linux/linux-6.6/drivers/misc/cxl/
H A Dmain.c66 ctx->afu->adapter->adapter_num, ctx->afu->slice, ctx->pe); in _cxl_slbia()
81 int card, slice, id; in cxl_slbia_core() local
89 for (slice = 0; slice < adapter->slices; slice++) { in cxl_slbia_core()
90 afu = adapter->afu[slice]; in cxl_slbia_core()
244 struct cxl_afu *cxl_alloc_afu(struct cxl *adapter, int slice) in cxl_alloc_afu() argument
254 afu->slice = slice; in cxl_alloc_afu()
/third_party/node/test/parallel/
H A Dtest-whatwg-encoding-custom-textdecoder.js31 res += dec.decode(buf.slice(0, 8), { stream: true });
32 res += dec.decode(buf.slice(8));
48 res += dec.decode(buf.slice(0, 8), { stream: true });
49 res += dec.decode(buf.slice(8));
71 assert.throws(() => dec.decode(buf.slice(0, 8)),
82 dec.decode(buf.slice(0, 8), { stream: true });
83 dec.decode(buf.slice(8));
/third_party/mesa3d/src/intel/dev/
H A Dintel_device_info.h201 * Number of subslices for each slice (used to be uniform until CNL).
206 * Maximum number of subslices per slice present on this device (can be
213 * Maximum number of subslices per slice present on this device (can be
438 int slice) in intel_device_info_slice_available()
440 assert(slice < INTEL_DEVICE_MAX_SLICES); in intel_device_info_slice_available()
441 return (devinfo->slice_masks & (1U << slice)) != 0; in intel_device_info_slice_available()
446 int slice, int subslice) in intel_device_info_subslice_available()
448 return (devinfo->subslice_masks[slice * devinfo->subslice_slice_stride + in intel_device_info_subslice_available()
454 int slice, int subslice, int eu) in intel_device_info_eu_available()
456 unsigned subslice_offset = slice * devinf in intel_device_info_eu_available()
437 intel_device_info_slice_available(const struct intel_device_info *devinfo, int slice) intel_device_info_slice_available() argument
445 intel_device_info_subslice_available(const struct intel_device_info *devinfo, int slice, int subslice) intel_device_info_subslice_available() argument
453 intel_device_info_eu_available(const struct intel_device_info *devinfo, int slice, int subslice, int eu) intel_device_info_eu_available() argument
[all...]
/third_party/node/deps/npm/node_modules/ip-address/dist/
H A Dipv6.js58 function compact(address, slice) {
63 if (i < slice[0]) {
66 else if (i > slice[1]) {
166 groups.push(hex.slice(i * 4, (i + 1) * 4));
414 return this.binaryZeroPad().slice(start, end);
456 .slice(0, characters)
533 const lastGroup = groups.slice(-1)[0];
635 return ipv4_1.Address4.fromHex(new jsbn_1.BigInteger(binary.slice(96, 128).join(''), 2).toString(16));
645 const address6 = new Address6(this.parsedAddress.slice(0, 6).join(':'), 6);
691 const nonce = new jsbn_1.BigInteger(flagsBase2.slice(
[all...]
/kernel/linux/linux-6.6/rust/alloc/vec/
H A Dspec_extend.rs6 use core::slice::{self};
101 impl<'a, T: 'a, A: Allocator> SpecExtend<&'a T, slice::Iter<'a, T>> for Vec<T, A>
105 fn spec_extend(&mut self, iterator: slice::Iter<'a, T>) { in spec_extend()
106 let slice = iterator.as_slice(); in spec_extend()
107 unsafe { self.append_elements(slice) };
111 impl<'a, T: 'a, A: Allocator> TrySpecExtend<&'a T, slice::Iter<'a, T>> for Vec<T, A>
115 fn try_spec_extend(&mut self, iterator: slice::Iter<'a, T>) -> Result<(), TryReserveError> { in try_spec_extend()
116 let slice = iterator.as_slice(); in try_spec_extend()
117 unsafe { self.try_append_elements(slice) }
/third_party/ffmpeg/tests/fate/
H A Dapi.mak15 FATE_API_SAMPLES_LIBAVFORMAT-$(call DEMDEC, H264, H264) += fate-api-h264-slice
16 fate-api-h264-slice: $(APITESTSDIR)/api-h264-slice-test$(EXESUF)
17 fate-api-h264-slice: CMD = run $(APITESTSDIR)/api-h264-slice-test$(EXESUF) 2 $(TARGET_SAMPLES)/h264/crew_cif.nal
H A Dlibswscale.mak9 SWS_SLICE_TEST-$(call DEMDEC, MATROSKA, VP9) += fate-sws-slice-yuv422-12bit-rgb48
10 fate-sws-slice-yuv422-12bit-rgb48: CMD = run tools/scale_slice_test$(EXESUF) $(TARGET_SAMPLES)/vp9-test-vectors/vp93-2-20-12bit-yuv422.webm 150 100 rgb48
12 SWS_SLICE_TEST-$(call DEMDEC, IMAGE_BMP_PIPE, BMP) += fate-sws-slice-bgr0-nv12
13 fate-sws-slice-bgr0-nv12: CMD = run tools/scale_slice_test$(EXESUF) $(TARGET_SAMPLES)/bmp/test32bf.bmp 32 64 nv12
15 fate-sws-slice: $(SWS_SLICE_TEST-yes)
/third_party/skia/third_party/externals/brotli/java/org/brotli/wrapper/dec/
H A DDecoder.java118 ByteBuffer slice = buffer.slice(); in consume()
119 int limit = Math.min(slice.remaining(), dst.remaining()); in consume()
120 ((Buffer) slice).limit(limit); in consume()
121 dst.put(slice); in consume()
/third_party/typescript/tests/baselines/reference/
H A DdestructuringArrayBindingPatternAndAssignment1ES5.js76 if (!ar) ar = Array.prototype.slice.call(from, 0, i);
80 return to.concat(ar || Array.prototype.slice.call(from));
97 var b8 = foo().slice(0);
107 var _m = [1, 2, 3, 4, "hello"], c10 = _m.slice(3);
108 var _o = [1, 2, "string"], c11 = _o[0], c12 = _o[1], c13 = _o.slice(2);
H A DdiscriminantsAndPrimitives.js76 n.alternatives.slice()
79 n.elements.slice() // n should be narrowed to Pattern
119 n.alternatives.slice();
122 n.elements.slice(); // n should be narrowed to Pattern
/third_party/node/deps/npm/node_modules/iconv-lite/encodings/
H A Ddbcs-codec.js43 this.decodeTables[0] = UNASSIGNED_NODE.slice(0); // Create root node.
58 this.decodeTables.push(UNASSIGNED_NODE.slice(0));
61 this.decodeTables.push(UNASSIGNED_NODE.slice(0));
156 this.decodeTables.push(node = UNASSIGNED_NODE.slice(0));
218 this.encodeTable[high] = UNASSIGNED_NODE.slice(0); // Create bucket on demand.
436 return newBuf.slice(0, j);
467 return newBuf.slice(0, j);
555 ? Array.prototype.slice.call(buf, seqStart)
556 : prevBytes.slice(seqStart + prevOffset).concat(Array.prototype.slice
[all...]
/third_party/python/Lib/test/
H A Dtest_class.py302 self.assertCallStack([('__getitem__', (testme, slice(None, 42)))])
306 self.assertCallStack([('__setitem__', (testme, slice(None, 42),
311 self.assertCallStack([('__delitem__', (testme, slice(None, 42)))])
315 self.assertCallStack([('__getitem__', (testme, slice(2, 1024, 10)))])
319 self.assertCallStack([('__setitem__', (testme, slice(2, 1024, 10),
323 self.assertCallStack([('__delitem__', (testme, slice(2, 1024, 10)))])
327 self.assertCallStack([('__getitem__', (testme, (slice(None, 42, None),
329 slice(None, 24, None),
333 self.assertCallStack([('__setitem__', (testme, (slice(None, 42, None),
335 slice(Non
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ProfileData/
H A DGCOV.h73 StringRef File = Buffer->getBuffer().slice(0, 4); in readGCNOFormat()
84 StringRef File = Buffer->getBuffer().slice(0, 4); in readGCDAFormat()
95 StringRef VersionStr = Buffer->getBuffer().slice(Cursor, Cursor + 4); in readGCOVVersion()
118 StringRef Tag = Buffer->getBuffer().slice(Cursor, Cursor + 4); in readFunctionTag()
130 StringRef Tag = Buffer->getBuffer().slice(Cursor, Cursor + 4); in readBlockTag()
142 StringRef Tag = Buffer->getBuffer().slice(Cursor, Cursor + 4); in readEdgeTag()
154 StringRef Tag = Buffer->getBuffer().slice(Cursor, Cursor + 4); in readLineTag()
166 StringRef Tag = Buffer->getBuffer().slice(Cursor, Cursor + 4); in readArcTag()
178 StringRef Tag = Buffer->getBuffer().slice(Cursor, Cursor + 4); in readObjectTag()
190 StringRef Tag = Buffer->getBuffer().slice(Curso in readProgramTag()
[all...]
/kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/isp/kernels/sc/sc_1.0/
H A Dia_css_sc.host.c85 u32 slice, rest, i; in ia_css_sc_config() local
92 slice = min(rest, ((uint32_t)ISP_SLICE_NELEMS)); in ia_css_sc_config()
93 rest = rest - slice; in ia_css_sc_config()
94 to->interped_gain_hor_slice_bqs[i] = slice; in ia_css_sc_config()
/third_party/rust/crates/cxx/src/
H A Dresult.rs10 use core::slice;
62 let slice = slice::from_raw_parts_mut(err.ptr.as_ptr(), err.len); in exception()
63 let s = str::from_utf8_unchecked_mut(slice); in exception()
/third_party/skia/third_party/externals/brotli/java/org/brotli/wrapper/common/
H A DSetRfcDictionaryTest.java32 System.err.println(Dictionary.getData().slice().remaining()); in testRfcDictionaryChecksums()
34 md5.update(Dictionary.getData().slice()); in testRfcDictionaryChecksums()
38 sha1.update(Dictionary.getData().slice()); in testRfcDictionaryChecksums()
42 sha256.update(Dictionary.getData().slice()); in testRfcDictionaryChecksums()
/third_party/rust/crates/rustix/src/backend/libc/io/
H A Dio_slice.rs9 use core::slice;
44 unsafe { slice::from_raw_parts(self.vec.iov_base as *mut u8, self.vec.iov_len) } in as_slice()
80 unsafe { slice::from_raw_parts(self.vec.iov_base as *mut u8, self.vec.iov_len) } in as_slice()
85 unsafe { slice::from_raw_parts_mut(self.vec.iov_base as *mut u8, self.vec.iov_len) } in as_mut_slice()

Completed in 12 milliseconds

12345678910>>...94