Home
last modified time | relevance | path

Searched full:slice (Results 1 – 25 of 7584) sorted by relevance

12345678910>>...304

/external/perfetto/src/trace_processor/perfetto_sql/stdlib/slices/
Dwith_context.sql18 -- Slice
19 id ID(slice.id),
20 -- Alias for `slice.ts`.
22 -- Alias for `slice.dur`.
24 -- Alias for `slice.category`.
26 -- Alias for `slice.name`.
28 -- Alias for `slice.track_id`.
46 -- Alias for `slice.depth`.
48 -- Alias for `slice.parent_id`.
49 parent_id JOINID(slice.id),
[all …]
/external/grpc-grpc/test/core/slice/
Dslice_test.cc19 #include "src/core/lib/slice/slice.h"
34 #include <grpc/slice.h>
40 #include "src/core/lib/slice/slice_internal.h"
41 #include "src/core/lib/slice/slice_refcount.h"
49 grpc_slice slice; in TEST() local
52 slice = grpc_slice_malloc(length); in TEST()
53 // If there is a length, slice.data must be non-NULL. If length is zero in TEST()
56 EXPECT_NE(slice.data.refcounted.bytes, nullptr); in TEST()
58 // Returned slice length must be what was requested. in TEST()
59 EXPECT_EQ(GRPC_SLICE_LENGTH(slice), length); in TEST()
[all …]
/external/perfetto/src/trace_processor/metrics/sql/android/jank/
Dslices.sql24 slice.*,
25 slice.ts + slice.dur AS ts_end
30 JOIN slice
31 ON slice.track_id = thread_track.id
34 AND slice.ts + slice.dur >= boundary.ts AND slice.ts <= boundary.ts_end
35 WHERE slice.dur > 0;
43 slice.*,
44 slice.ts + slice.dur AS ts_end
48 JOIN slice
49 ON slice.track_id = thread_track.id
[all …]
/external/rust/android-crates-io/crates/etherparse/src/transport/
Dudp_slice.rs3 /// Slice containing the UDP headers & payload.
6 slice: &'a [u8], field
10 /// Decode length from UDP header and restrict slice to the length
13 /// Note that this method fall backs to the length of the slice
15 pub fn from_slice(slice: &'a [u8]) -> Result<UdpSlice<'a>, LenError> { in from_slice()
16 // slice header in from_slice()
17 let header = UdpHeaderSlice::from_slice(slice)?; in from_slice()
19 // validate the length of the slice in from_slice()
21 if slice.len() < len { in from_slice()
24 len: slice.len(), in from_slice()
[all …]
/external/grpc-grpc/src/core/lib/slice/
Dslice.h29 #include <grpc/event_engine/slice.h>
30 #include <grpc/slice.h>
35 #include "src/core/lib/slice/slice_internal.h"
36 #include "src/core/lib/slice/slice_refcount.h"
38 // Herein lies grpc_core::Slice and its team of thin wrappers around grpc_slice.
43 // Slice - provides a wrapper around an unknown type of slice.
46 // StaticSlice - provides a wrapper around a static slice. Not refcounted,
51 // This slice implementation is an extension of the EventEngine Slice
52 // implementation defined in <grpc/event_engine/slice.h>. Changes to this
53 // implementation might warrant changes to the public EventEngine Slice
[all …]
/external/rust/android-crates-io/crates/grpcio-sys/grpc/src/core/lib/slice/
Dslice.h29 #include <grpc/event_engine/slice.h>
30 #include <grpc/slice.h>
35 #include "src/core/lib/slice/slice_internal.h"
36 #include "src/core/lib/slice/slice_refcount.h"
38 // Herein lies grpc_core::Slice and its team of thin wrappers around grpc_slice.
43 // Slice - provides a wrapper around an unknown type of slice.
46 // StaticSlice - provides a wrapper around a static slice. Not refcounted,
51 // This slice implementation is an extension of the EventEngine Slice
52 // implementation defined in <grpc/event_engine/slice.h>. Changes to this
53 // implementation might warrant changes to the public EventEngine Slice
[all …]
/external/rust/android-crates-io/crates/grpcio-sys/grpc/include/grpcpp/support/
Dslice.h22 #include <grpc/slice.h>
30 /// A slice represents a contiguous reference counted array of bytes.
31 /// It is cheap to take references to a slice, and it is cheap to create a
32 /// slice pointing to a subset of another slice.
33 class Slice final {
35 /// Construct an empty slice.
36 Slice() : slice_(grpc_empty_slice()) {} in Slice() function
38 ~Slice() { grpc_slice_unref(slice_); } in ~Slice()
41 /// Construct a slice from \a slice, adding a reference.
42 Slice(grpc_slice slice, AddRef) : slice_(grpc_slice_ref(slice)) {} in Slice() argument
[all …]
/external/rust/android-crates-io/crates/grpcio-sys/grpc/spm-cpp-include/grpcpp/support/
Dslice.h22 #include <grpc/slice.h>
30 /// A slice represents a contiguous reference counted array of bytes.
31 /// It is cheap to take references to a slice, and it is cheap to create a
32 /// slice pointing to a subset of another slice.
33 class Slice final {
35 /// Construct an empty slice.
36 Slice() : slice_(grpc_empty_slice()) {} in Slice() function
38 ~Slice() { grpc_slice_unref(slice_); } in ~Slice()
41 /// Construct a slice from \a slice, adding a reference.
42 Slice(grpc_slice slice, AddRef) : slice_(grpc_slice_ref(slice)) {} in Slice() argument
[all …]
/external/grpc-grpc/include/grpcpp/support/
Dslice.h22 #include <grpc/slice.h>
30 /// A slice represents a contiguous reference counted array of bytes.
31 /// It is cheap to take references to a slice, and it is cheap to create a
32 /// slice pointing to a subset of another slice.
33 class Slice final {
35 /// Construct an empty slice.
36 Slice() : slice_(grpc_empty_slice()) {} in Slice() function
38 ~Slice() { grpc_slice_unref(slice_); } in ~Slice()
41 /// Construct a slice from \a slice, adding a reference.
42 Slice(grpc_slice slice, AddRef) : slice_(grpc_slice_ref(slice)) {} in Slice() argument
[all …]
/external/python/cpython3/Lib/test/
Dtest_slice.py1 # tests for slice objects; in particular the indices method.
16 Helper function to convert a slice argument to an integer, and raise
24 "slice indices must be integers or "
27 def slice_indices(slice, length): argument
29 Reference implementation for the slice.indices method.
34 step = 1 if slice.step is None else evaluate_slice_index(slice.step)
40 raise ValueError("slice step cannot be zero")
47 if slice.start is None:
50 start = evaluate_slice_index(slice.start)
54 if slice.stop is None:
[all …]
/external/cronet/stable/base/tracing/stdlib/chrome/scroll_jank/
Dscroll_jank_v3_cause.sql7 -- Id of the parent slice.
10 -- Alias for `slice.id`.
12 -- Alias for `slice.type`.
14 -- Alias for `slice.ts`.
16 -- Alias for `slice.dur`.
18 -- Alias for `slice.category`.
20 -- Alias for `slice.name`.
22 -- Alias for `slice.track_id`.
24 -- Alias for `slice.depth`.
26 -- Alias for `slice.parent_id`.
[all …]
/external/cronet/tot/base/tracing/stdlib/chrome/scroll_jank/
Dscroll_jank_v3_cause.sql7 -- Id of the parent slice.
10 -- Alias for `slice.id`.
12 -- Alias for `slice.type`.
14 -- Alias for `slice.ts`.
16 -- Alias for `slice.dur`.
18 -- Alias for `slice.category`.
20 -- Alias for `slice.name`.
22 -- Alias for `slice.track_id`.
24 -- Alias for `slice.depth`.
26 -- Alias for `slice.parent_id`.
[all …]
/external/rust/android-crates-io/crates/etherparse/src/link/
Dethernet2_slice.rs3 /// Slice containing an Ethernet 2 headers & payload.
7 slice: &'a [u8], field
11 /// Try creating a [`Ethernet2Slice`] from a slice containing the
14 pub fn from_slice_without_fcs(slice: &'a [u8]) -> Result<Ethernet2Slice<'a>, LenError> { in from_slice_without_fcs()
16 if slice.len() < Ethernet2Header::LEN { in from_slice_without_fcs()
19 len: slice.len(), in from_slice_without_fcs()
20 len_source: LenSource::Slice, in from_slice_without_fcs()
26 Ok(Ethernet2Slice { fcs_len: 0, slice }) in from_slice_without_fcs()
29 /// Try creating a [`Ethernet2Slice`] from a slice containing the
36 pub fn from_slice_with_crc32_fcs(slice: &'a [u8]) -> Result<Ethernet2Slice<'a>, LenError> { in from_slice_with_crc32_fcs()
[all …]
Dsingle_vlan_header_slice.rs2 use core::slice::from_raw_parts;
4 ///A slice containing a single vlan header of a network package.
7 slice: &'a [u8], field
11 ///Creates a vlan header slice from a slice.
13 pub fn from_slice(slice: &'a [u8]) -> Result<SingleVlanHeaderSlice<'a>, err::LenError> { in from_slice()
15 if slice.len() < SingleVlanHeader::LEN { in from_slice()
18 len: slice.len(), in from_slice()
19 len_source: LenSource::Slice, in from_slice()
28 // Safe as the slice length is checked beforehand to have in from_slice()
30 slice: unsafe { from_raw_parts(slice.as_ptr(), SingleVlanHeader::LEN) }, in from_slice()
[all …]
/external/perfetto/src/trace_processor/perfetto_sql/stdlib/chrome/scroll_jank/
Dscroll_jank_v3_cause.sql7 -- Id of the parent slice.
11 -- Alias for `slice.id`.
13 -- Alias for `slice.ts`.
15 -- Alias for `slice.dur`.
17 -- Alias for `slice.category`.
19 -- Alias for `slice.name`.
21 -- Alias for `slice.track_id`.
23 -- Alias for `slice.depth`.
25 -- Alias for `slice.parent_id`.
27 -- Alias for `slice.arg_set_id`.
[all …]
/external/rust/android-crates-io/crates/etherparse/src/net/
Dip_auth_header_slice.rs2 use core::slice::from_raw_parts;
11 /// A slice containing an IP Authentication Header (rfc4302)
14 slice: &'a [u8], field
18 /// Creates a ip authentication header slice from a slice.
20 slice: &'a [u8], in from_slice()
24 // check slice length in from_slice()
25 if slice.len() < IpAuthHeader::MIN_LEN { in from_slice()
28 len: slice.len(), in from_slice()
29 len_source: LenSource::Slice, in from_slice()
36 // Safe the slice length gets checked to be at least 12 beforehand. in from_slice()
[all …]
Dipv6_fragment_header_slice.rs2 use core::slice::from_raw_parts;
4 /// Slice containing an IPv6 fragment header.
7 /// Slice containing the packet data.
8 slice: &'a [u8], field
12 /// Creates a hop by hop header slice from a slice.
13 pub fn from_slice(slice: &'a [u8]) -> Result<Ipv6FragmentHeaderSlice<'a>, err::LenError> { in from_slice()
15 if slice.len() < 8 { in from_slice()
18 len: slice.len(), in from_slice()
19 len_source: LenSource::Slice, in from_slice()
26 // Safe as slice length is checked to be at least 8 before this in from_slice()
[all …]
Dipv4_header_slice.rs1 use core::slice::from_raw_parts;
7 /// A slice containing an ipv4 header of a network package.
10 slice: &'a [u8], field
14 /// Creates a slice containing an ipv4 header (including header options).
19 /// * [`crate::Ipv4Slice::from_slice`] (just identifies slice ranges)
27 /// for a laxer version which falls back to slice length only when the total_length
29 pub fn from_slice(slice: &'a [u8]) -> Result<Ipv4HeaderSlice<'a>, err::ipv4::HeaderSliceError> { in from_slice()
34 if slice.len() < Ipv4Header::MIN_LEN { in from_slice()
37 len: slice.len(), in from_slice()
38 len_source: LenSource::Slice, in from_slice()
[all …]
/external/perfetto/ui/src/components/details/
Dthread_slice_details_tab.ts29 import {getSlice, SliceDetails} from '../sql_utils/slice';
36 import {SliceRef} from '../widgets/slice';
48 shouldDisplay(slice: SliceDetails): boolean;
49 run(slice: SliceDetails, trace: Trace): void;
52 function getTidFromSlice(slice: SliceDetails): number | undefined {
53 return slice.thread?.tid;
56 function getPidFromSlice(slice: SliceDetails): number | undefined {
57 return slice.process?.pid;
60 function getProcessNameFromSlice(slice: SliceDetails): string | undefined {
61 return slice.process?.name;
[all …]
/external/grpc-grpc/include/grpc/event_engine/
Dslice.h27 #include <grpc/slice.h>
31 // This public slice definition largely based of the internal grpc_core::Slice
33 // internal grpc_core::Slice type as well.
39 class Slice; variable
44 // Returns an empty slice.
48 // It does export immutable access into the slice, such that this can be shared
87 // Size of the slice
103 explicit BaseSlice(const grpc_slice& slice) : slice_(slice) {} in BaseSlice() argument
107 void SetCSlice(const grpc_slice& slice) { slice_ = slice; } in SetCSlice() argument
190 explicit MutableSlice(const grpc_slice& slice);
[all …]
/external/rust/android-crates-io/crates/grpcio-sys/grpc/include/grpc/event_engine/
Dslice.h29 #include <grpc/slice.h>
32 // This public slice definition largely based of the internal grpc_core::Slice
34 // internal grpc_core::Slice type as well.
40 class Slice; variable
45 // Returns an empty slice.
49 // It does export immutable access into the slice, such that this can be shared
88 // Size of the slice
104 explicit BaseSlice(const grpc_slice& slice) : slice_(slice) {} in BaseSlice() argument
108 void SetCSlice(const grpc_slice& slice) { slice_ = slice; } in SetCSlice() argument
186 explicit MutableSlice(const grpc_slice& slice);
[all …]
/external/rust/android-crates-io/crates/grpcio-sys/grpc/spm-core-include/grpc/event_engine/
Dslice.h29 #include <grpc/slice.h>
32 // This public slice definition largely based of the internal grpc_core::Slice
34 // internal grpc_core::Slice type as well.
40 class Slice; variable
45 // Returns an empty slice.
49 // It does export immutable access into the slice, such that this can be shared
88 // Size of the slice
104 explicit BaseSlice(const grpc_slice& slice) : slice_(slice) {} in BaseSlice() argument
108 void SetCSlice(const grpc_slice& slice) { slice_ = slice; } in SetCSlice() argument
186 explicit MutableSlice(const grpc_slice& slice);
[all …]
/external/rust/android-crates-io/crates/rayon/src/slice/
Dchunks.rs5 /// Parallel iterator over immutable non-overlapping chunks of a slice
9 slice: &'data [T], field
13 pub(super) fn new(chunk_size: usize, slice: &'data [T]) -> Self { in new()
14 Self { chunk_size, slice } in new()
48 div_round_up(self.slice.len(), self.chunk_size) in len()
57 slice: self.slice, in with_producer()
64 slice: &'data [T], field
69 type IntoIter = ::std::slice::Chunks<'data, T>;
72 self.slice.chunks(self.chunk_size) in into_iter()
76 let elem_index = Ord::min(index * self.chunk_size, self.slice.len()); in split_at()
[all …]
Drchunks.rs5 /// Parallel iterator over immutable non-overlapping chunks of a slice, starting at the end.
9 slice: &'data [T], field
13 pub(super) fn new(chunk_size: usize, slice: &'data [T]) -> Self { in new()
14 Self { chunk_size, slice } in new()
48 div_round_up(self.slice.len(), self.chunk_size) in len()
57 slice: self.slice, in with_producer()
64 slice: &'data [T], field
69 type IntoIter = ::std::slice::RChunks<'data, T>;
72 self.slice.rchunks(self.chunk_size) in into_iter()
76 let elem_index = self.slice.len().saturating_sub(index * self.chunk_size); in split_at()
[all …]
/external/perfetto/src/trace_processor/perfetto_sql/stdlib/android/
Dstatsd.sql19 -- A subset of the slice table containing statsd atom instant events.
21 -- Unique identifier for this slice.
23 -- The timestamp at the start of the slice.
25 -- The duration of the slice.
27 -- The id of the argument set associated with this slice.
29 …-- The value of the CPU instruction counter at the start of the slice. This column will only be po…
31 …-- The change in value of the CPU instruction counter between the start and end of the slice. This…
33 -- The id of the track this slice is located on.
35 …-- The "category" of the slice. If this slice originated with track_event, this column contains th…
37 -- The name of the slice. The name describes what was happening during the slice.
[all …]

12345678910>>...304