/prebuilts/go/darwin-x86/doc/progs/ |
slices.go | 12 func AppendByte(slice []byte, data ...byte) []byte { 13 m := len(slice) 15 if n > cap(slice) { // if necessary, reallocate 18 copy(newSlice, slice) 19 slice = newSlice 21 slice = slice[0:n] 22 copy(slice[m:n], data) 23 return slice 28 // Filter returns a new slice holding onl [all...] |
/prebuilts/go/linux-x86/doc/progs/ |
slices.go | 12 func AppendByte(slice []byte, data ...byte) []byte { 13 m := len(slice) 15 if n > cap(slice) { // if necessary, reallocate 18 copy(newSlice, slice) 19 slice = newSlice 21 slice = slice[0:n] 22 copy(slice[m:n], data) 23 return slice 28 // Filter returns a new slice holding onl [all...] |
/frameworks/support/slices/core/src/main/java/androidx/slice/compat/ |
SliceProviderWrapperContainer.java | 17 package androidx.slice.compat; 19 import static androidx.slice.SliceConvert.wrap; 22 import android.app.slice.Slice; 23 import android.app.slice.SliceProvider; 24 import android.app.slice.SliceSpec; 32 import androidx.slice.SliceConvert; 48 private androidx.slice.SliceProvider mSliceProvider; 50 public SliceProviderWrapper(androidx.slice.SliceProvider provider, 68 public Slice onBindSlice(Uri sliceUri, Set<SliceSpec> supportedVersions) [all...] |
/prebuilts/go/darwin-x86/src/sort/ |
slice.go | 11 // Slice sorts the provided slice given the provided less function. 16 // The function panics if the provided interface is not a slice. 17 func Slice(slice interface{}, less func(i, j int) bool) { 18 rv := reflect.ValueOf(slice) 19 swap := reflect.Swapper(slice) 24 // SliceStable sorts the provided slice given the provided less 27 // The function panics if the provided interface is not a slice. 28 func SliceStable(slice interface{}, less func(i, j int) bool) [all...] |
/prebuilts/go/linux-x86/src/sort/ |
slice.go | 11 // Slice sorts the provided slice given the provided less function. 16 // The function panics if the provided interface is not a slice. 17 func Slice(slice interface{}, less func(i, j int) bool) { 18 rv := reflect.ValueOf(slice) 19 swap := reflect.Swapper(slice) 24 // SliceStable sorts the provided slice given the provided less 27 // The function panics if the provided interface is not a slice. 28 func SliceStable(slice interface{}, less func(i, j int) bool) [all...] |
/build/blueprint/proptools/ |
escape.go | 19 // NinjaEscape takes a slice of strings that may contain characters that are meaningful to ninja 23 // new slice containing the escaped strings is returned. 24 func NinjaEscape(slice []string) []string { 25 slice = append([]string(nil), slice...) 26 for i, s := range slice { 27 slice[i] = ninjaEscaper.Replace(s) 29 return slice 35 // ShellEscape takes a slice of strings that may contain characters that are meaningful to bash and 38 // quote, and then a single quote to restarting quoting. A new slice containing the escaped string [all...] |
/frameworks/support/slices/view/src/main/java/androidx/slice/ |
SliceMetadata.java | 17 package androidx.slice; 19 import static android.app.slice.Slice.HINT_ACTIONS; 20 import static android.app.slice.Slice.HINT_HORIZONTAL; 21 import static android.app.slice.Slice.HINT_PARTIAL; 22 import static android.app.slice.Slice.HINT_SHORTCUT; 23 import static android.app.slice.Slice.SUBTYPE_MAX [all...] |
SliceManagerWrapper.java | 17 package androidx.slice; 19 import static androidx.slice.SliceConvert.unwrap; 20 import static androidx.slice.widget.SliceLiveData.SUPPORTED_SPECS; 22 import android.app.slice.SliceSpec; 45 private final android.app.slice.SliceManager mManager; 49 this(context, context.getSystemService(android.app.slice.SliceManager.class)); 52 SliceManagerWrapper(Context context, android.app.slice.SliceManager manager) { 69 public @NonNull Set<androidx.slice.SliceSpec> getPinnedSpecs(@NonNull Uri uri) { 77 public androidx.slice.Slice bindSlice(@NonNull Uri uri) [all...] |
SliceUtils.java | 17 package androidx.slice; 19 import static android.app.slice.Slice.HINT_ACTIONS; 20 import static android.app.slice.Slice.HINT_PARTIAL; 21 import static android.app.slice.Slice.HINT_SHORTCUT; 22 import static android.app.slice.SliceItem.FORMAT_ACTION; 23 import static android.app.slice.SliceItem.FORMAT_IMAGE; 24 import static android.app.slice.SliceItem.FORMAT_REMOTE_INPUT [all...] |
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/ |
bricked.rs | 78 uint slice;
89 slice = 0x80000000 & rsGetElementAt_uint(bricks, slice_pos - BRICK_SIZE);
90 out |= slice >> 31;
93 slice = 1 & rsGetElementAt_uint(bricks, slice_pos + BRICK_SIZE);
94 out |= slice << 31;
98 int off_neg_y = -1; // simple case -1 slice;
107 slice = rsGetElementAt_uint(bricks, slice_pos + off_neg_y);
108 out |= slice;
118 slice = rsGetElementAt_uint(bricks, slice_pos + off_pos_y);
119 out |= slice;
[all...] |
/external/libcxx/test/std/numerics/numarray/class.slice/cons.slice/ |
default.pass.cpp | 12 // class slice; 14 // slice(); 21 std::slice s;
|
start_size_stride.pass.cpp | 12 // class slice; 14 // slice(size_t start, size_t size, size_t stride); 21 std::slice s(1, 3, 2);
|
/frameworks/support/slices/core/src/main/java/androidx/slice/ |
SliceSpecs.java | 17 package androidx.slice; 22 * Constants for each of the slice specs 29 * Most basic slice, only has icon, title, and summary. 31 public static final SliceSpec BASIC = new SliceSpec("androidx.slice.BASIC", 1); 37 public static final SliceSpec LIST = new SliceSpec("androidx.slice.LIST", 1); 43 public static final SliceSpec MESSAGING = new SliceSpec("androidx.slice.MESSAGING", 1);
|
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/numerics/numarray/class.slice/cons.slice/ |
default.pass.cpp | 12 // class slice; 14 // slice(); 21 std::slice s;
|
start_size_stride.pass.cpp | 12 // class slice; 14 // slice(size_t start, size_t size, size_t stride); 21 std::slice s(1, 3, 2);
|
/system/netd/libnetdutils/ |
Slice.cpp | 19 #include "netdutils/Slice.h" 34 std::string toString(const Slice s) { 38 std::string toHex(const Slice s, int wrap) { 39 Slice tail = s; 54 std::ostream& operator<<(std::ostream& os, const Slice& slice) { 55 return os << std::hex << "Slice[base: " << reinterpret_cast<void*>(slice.base()) 56 << ", limit: " << reinterpret_cast<void*>(slice.limit()) << ", size: 0x" 57 << slice.size() << "]" << std::dec [all...] |
/external/perfetto/src/tracing/core/ |
packet_stream_validator.cc | 32 for (const Slice& slice : slices) 33 size += slice.size;
|
/frameworks/support/slices/core/src/androidTest/java/androidx/slice/ |
SliceTestProvider.java | 17 package androidx.slice; 19 import static android.app.slice.Slice.HINT_LARGE; 20 import static android.app.slice.Slice.HINT_LIST; 21 import static android.app.slice.Slice.HINT_NO_TINT; 22 import static android.app.slice.Slice.HINT_TITLE; 29 import androidx.slice.Slice.Builder [all...] |
/external/perfetto/include/perfetto/tracing/core/ |
slice.h | 33 struct Slice { 34 Slice() : start(nullptr), size(0) {} 35 Slice(const void* st, size_t sz) : start(st), size(sz) {} 38 explicit Slice(std::unique_ptr<std::string> str) 41 Slice(Slice&& other) noexcept = default; 43 // Create a Slice which owns |size| bytes of memory. 44 static Slice Allocate(size_t size) { 45 Slice slice; local [all...] |
/frameworks/support/slices/view/src/main/java/androidx/slice/widget/ |
ShortcutView.java | 17 package androidx.slice.widget; 19 import static android.app.slice.Slice.HINT_LARGE; 20 import static android.app.slice.Slice.HINT_NO_TINT; 21 import static android.app.slice.Slice.HINT_TITLE; 22 import static android.app.slice.Slice.SUBTYPE_COLOR; 23 import static android.app.slice.SliceItem.FORMAT_ACTION 154 Slice slice = mListContent.getSlice(); local [all...] |
/external/v8/src/interpreter/ |
constant-array-builder.cc | 72 // Print all the entries in the slice to help debug duplicates. 110 ConstantArraySlice* slice = idx_slice_[--i]; local 111 if (slice->size() > 0) { 112 return slice->start_index() + slice->size(); 120 for (ConstantArraySlice* slice : idx_slice_) { 121 if (index <= slice->max_index()) { 122 return slice; 131 const ConstantArraySlice* slice = IndexToSlice(index); local 132 DCHECK_LT(index, slice->capacity()) 234 ConstantArraySlice* slice = nullptr; local 258 ConstantArraySlice* slice = IndexToSlice(index); local 288 ConstantArraySlice* slice = OperandSizeToSlice(operand_size); local [all...] |
/external/flatbuffers/go/ |
encode.go | 21 // GetByte decodes a little-endian byte from a byte slice. 26 // GetBool decodes a little-endian bool from a byte slice. 31 // GetUint8 decodes a little-endian uint8 from a byte slice. 37 // GetUint16 decodes a little-endian uint16 from a byte slice. 44 // GetUint32 decodes a little-endian uint32 from a byte slice. 53 // GetUint64 decodes a little-endian uint64 from a byte slice. 66 // GetInt8 decodes a little-endian int8 from a byte slice. 72 // GetInt16 decodes a little-endian int16 from a byte slice. 79 // GetInt32 decodes a little-endian int32 from a byte slice. 88 // GetInt64 decodes a little-endian int64 from a byte slice [all...] |
/frameworks/support/slices/core/src/main/java/androidx/slice/core/ |
SliceActionImpl.java | 17 package androidx.slice.core; 19 import static android.app.slice.Slice.HINT_LARGE; 20 import static android.app.slice.Slice.HINT_NO_TINT; 21 import static android.app.slice.Slice.HINT_SELECTED; 22 import static android.app.slice.Slice.HINT_SHORTCUT; 23 import static android.app.slice.Slice.HINT_TITLE [all...] |
/external/tensorflow/tensorflow/go/ |
shape_test.go | 28 slice []int64 34 slice: make([]int64, 0), 40 slice: []int64{-1, 2, -1, 4}, 46 slice: []int64{2, 3}, 53 if got, want := test.shape.NumDimensions(), len(test.slice); got != want { 56 if gotSlice, err := test.shape.ToSlice(); err != nil || !reflect.DeepEqual(gotSlice, test.slice) { 57 t.Errorf("Got (%#v, %v), want (%#v, nil)", gotSlice, err, test.slice)
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/ |
SliceTester.java | 19 import static android.app.slice.Slice.HINT_TITLE; 20 import static android.app.slice.Slice.SUBTYPE_COLOR; 21 import static android.app.slice.SliceItem.FORMAT_INT; 22 import static android.app.slice.SliceItem.FORMAT_TEXT; 40 import androidx.slice.Slice; 41 import androidx.slice.SliceItem; 42 import androidx.slice.SliceMetadata [all...] |