HomeSort by relevance Sort by last modified time
    Searched refs:slice (Results 1 - 25 of 2545) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /frameworks/base/core/java/android/app/slice/
Slice.aidl 17 package android.app.slice;
19 parcelable Slice;
SliceSpec.aidl 17 package android.app.slice;
ISliceListener.aidl 17 package android.app.slice;
19 import android.app.slice.ISliceManager;
20 import android.app.slice.Slice;
24 void onSliceUpdated(in Slice s);
  /prebuilts/go/darwin-x86/test/
slice3err.go 10 var slice []int var
20 _ = array[::] // ERROR "middle index required in 3-index slice" "final index required in 3-index slice"
21 _ = array[i::] // ERROR "middle index required in 3-index slice" "final index required in 3-index slice"
22 _ = array[:j:] // ERROR "final index required in 3-index slice"
23 _ = array[i:j:] // ERROR "final index required in 3-index slice"
24 _ = array[::k] // ERROR "middle index required in 3-index slice"
25 _ = array[i::k] // ERROR "middle index required in 3-index slice"
29 _ = slice[:
    [all...]
  /prebuilts/go/linux-x86/test/
slice3err.go 10 var slice []int var
20 _ = array[::] // ERROR "middle index required in 3-index slice" "final index required in 3-index slice"
21 _ = array[i::] // ERROR "middle index required in 3-index slice" "final index required in 3-index slice"
22 _ = array[:j:] // ERROR "final index required in 3-index slice"
23 _ = array[i:j:] // ERROR "final index required in 3-index slice"
24 _ = array[::k] // ERROR "middle index required in 3-index slice"
25 _ = array[i::k] // ERROR "middle index required in 3-index slice"
29 _ = slice[:
    [all...]
  /cts/tests/tests/slice/src/android/slice/cts/
Launcher.java 15 package android.slice.cts;
  /external/python/cpython3/Lib/test/
test_slice.py 1 # tests for slice objects; in particular the indices method.
15 Helper function to convert a slice argument to an integer, and raise
23 "slice indices must be integers or "
26 def slice_indices(slice, length):
28 Reference implementation for the slice.indices method.
33 step = 1 if slice.step is None else evaluate_slice_index(slice.step)
39 raise ValueError("slice step cannot be zero")
46 if slice.start is None:
49 start = evaluate_slice_index(slice.start
    [all...]
  /tools/apksig/src/test/java/com/android/apksig/util/
DataSourceTestBase.java 60 DataSource slice = ds.slice(3, 5); local
61 assertGetByteBufferEquals("lo123", slice, 0, 5);
69 assertSliceEquals("", slice, 0, 0);
70 assertSliceEquals("", slice, 1, 0);
71 assertSliceEquals("", slice, slice.size() - 2, 0);
72 assertSliceEquals("", slice, slice.size() - 1, 0);
73 assertSliceEquals("", slice, slice.size(), 0)
98 DataSource slice = ds.slice(3, 4); \/\/ "t123" local
134 DataSource slice = ds.slice(1, 5); \/\/ "est12" local
172 DataSource slice = ds.slice(2, 7); \/\/ "cdefghi" local
224 DataSource slice = ds.slice(offset, size); local
    [all...]
  /external/python/cpython2/Lib/test/
test_slice.py 1 # tests for slice objects; in particular the indices method.
14 self.assertRaises(TypeError, slice)
15 self.assertRaises(TypeError, slice, 1, 2, 3, 4)
18 self.assertEqual(repr(slice(1, 2, 3)), "slice(1, 2, 3)")
22 self.assertRaises(TypeError, hash, slice(5))
24 slice(5).__hash__()
27 s1 = slice(1, 2, 3)
28 s2 = slice(1, 2, 3)
29 s3 = slice(1, 2, 4
    [all...]
  /device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
test_slice.py 1 # tests for slice objects; in particular the indices method.
12 self.assertRaises(TypeError, slice)
13 self.assertRaises(TypeError, slice, 1, 2, 3, 4)
16 self.assertEqual(repr(slice(1, 2, 3)), "slice(1, 2, 3)")
20 self.assertRaises(TypeError, hash, slice(5))
21 self.assertRaises(TypeError, slice(5).__hash__)
24 s1 = slice(1, 2, 3)
25 s2 = slice(1, 2, 3)
26 s3 = slice(1, 2, 4)
    [all...]
  /prebuilts/gdb/darwin-x86/lib/python2.7/test/
test_slice.py 1 # tests for slice objects; in particular the indices method.
12 self.assertRaises(TypeError, slice)
13 self.assertRaises(TypeError, slice, 1, 2, 3, 4)
16 self.assertEqual(repr(slice(1, 2, 3)), "slice(1, 2, 3)")
20 self.assertRaises(TypeError, hash, slice(5))
21 self.assertRaises(TypeError, slice(5).__hash__)
24 s1 = slice(1, 2, 3)
25 s2 = slice(1, 2, 3)
26 s3 = slice(1, 2, 4
    [all...]
  /prebuilts/gdb/linux-x86/lib/python2.7/test/
test_slice.py 1 # tests for slice objects; in particular the indices method.
12 self.assertRaises(TypeError, slice)
13 self.assertRaises(TypeError, slice, 1, 2, 3, 4)
16 self.assertEqual(repr(slice(1, 2, 3)), "slice(1, 2, 3)")
20 self.assertRaises(TypeError, hash, slice(5))
21 self.assertRaises(TypeError, slice(5).__hash__)
24 s1 = slice(1, 2, 3)
25 s2 = slice(1, 2, 3)
26 s3 = slice(1, 2, 4
    [all...]
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/
test_slice.py 1 # tests for slice objects; in particular the indices method.
12 self.assertRaises(TypeError, slice)
13 self.assertRaises(TypeError, slice, 1, 2, 3, 4)
16 self.assertEqual(repr(slice(1, 2, 3)), "slice(1, 2, 3)")
20 self.assertRaises(TypeError, hash, slice(5))
21 self.assertRaises(TypeError, slice(5).__hash__)
24 s1 = slice(1, 2, 3)
25 s2 = slice(1, 2, 3)
26 s3 = slice(1, 2, 4
    [all...]
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/
test_slice.py 1 # tests for slice objects; in particular the indices method.
12 self.assertRaises(TypeError, slice)
13 self.assertRaises(TypeError, slice, 1, 2, 3, 4)
16 self.assertEqual(repr(slice(1, 2, 3)), "slice(1, 2, 3)")
20 self.assertRaises(TypeError, hash, slice(5))
21 self.assertRaises(TypeError, slice(5).__hash__)
24 s1 = slice(1, 2, 3)
25 s2 = slice(1, 2, 3)
26 s3 = slice(1, 2, 4
    [all...]
  /prebuilts/go/darwin-x86/test/fixedbugs/
issue4251.go 7 // Issue 4251: slice with inverted range is an error.
12 return s[2:1] // ERROR "invalid slice index|inverted slice range"
16 return a[2:1] // ERROR "invalid slice index|inverted slice range"
20 return s[2:1] // ERROR "invalid slice index|inverted slice range"
issue4232.go 15 _ = a[-1:] // ERROR "invalid slice index -1|index out of bounds"
16 _ = a[:-1] // ERROR "invalid slice index -1|index out of bounds"
20 _ = a[9:12] // ERROR "invalid slice index 12|index out of bounds"
21 _ = a[11:12] // ERROR "invalid slice index 11|index out of bounds"
22 _ = a[1<<100 : 1<<110] // ERROR "overflows int" "invalid slice index 1 << 100|index out of bounds"
25 _ = s[-1] // ERROR "invalid slice index -1|index out of bounds"
26 _ = s[-1:] // ERROR "invalid slice index -1|index out of bounds"
27 _ = s[:-1] // ERROR "invalid slice index -1|index out of bounds"
33 _ = s[1<<100 : 1<<110] // ERROR "overflows int" "invalid slice index 1 << 100|index out of bounds"
37 _ = c[-1:] // ERROR "invalid slice index -1|index out of bounds
    [all...]
  /prebuilts/go/linux-x86/test/fixedbugs/
issue4251.go 7 // Issue 4251: slice with inverted range is an error.
12 return s[2:1] // ERROR "invalid slice index|inverted slice range"
16 return a[2:1] // ERROR "invalid slice index|inverted slice range"
20 return s[2:1] // ERROR "invalid slice index|inverted slice range"
issue4232.go 15 _ = a[-1:] // ERROR "invalid slice index -1|index out of bounds"
16 _ = a[:-1] // ERROR "invalid slice index -1|index out of bounds"
20 _ = a[9:12] // ERROR "invalid slice index 12|index out of bounds"
21 _ = a[11:12] // ERROR "invalid slice index 11|index out of bounds"
22 _ = a[1<<100 : 1<<110] // ERROR "overflows int" "invalid slice index 1 << 100|index out of bounds"
25 _ = s[-1] // ERROR "invalid slice index -1|index out of bounds"
26 _ = s[-1:] // ERROR "invalid slice index -1|index out of bounds"
27 _ = s[:-1] // ERROR "invalid slice index -1|index out of bounds"
33 _ = s[1<<100 : 1<<110] // ERROR "overflows int" "invalid slice index 1 << 100|index out of bounds"
37 _ = c[-1:] // ERROR "invalid slice index -1|index out of bounds
    [all...]
  /frameworks/support/slices/core/src/main/java/androidx/slice/
SliceConvert.java 16 package androidx.slice;
19 import static android.app.slice.SliceItem.FORMAT_ACTION;
20 import static android.app.slice.SliceItem.FORMAT_IMAGE;
21 import static android.app.slice.SliceItem.FORMAT_INT;
22 import static android.app.slice.SliceItem.FORMAT_LONG;
23 import static android.app.slice.SliceItem.FORMAT_REMOTE_INPUT;
24 import static android.app.slice.SliceItem.FORMAT_SLICE;
25 import static android.app.slice.SliceItem.FORMAT_TEXT;
35 * Convert between {@link androidx.slice.Slice} and {@link android.app.slice.Slice
    [all...]
  /external/tensorflow/tensorflow/core/util/
tensor_slice_set.cc 33 Status TensorSliceSet::Register(const TensorSlice& slice, const string& tag,
36 TF_RETURN_IF_ERROR(slice.SliceTensorShape(shape_, &result_shape));
37 string str = slice.DebugString();
40 slices_hull_ = slice;
42 // We check if there is any intersection between this slice and any of the
44 if (slices_hull_.Overlaps(slice)) {
46 if (slice.Overlaps(x.second.slice)) {
47 return errors::Internal("Overlapping slices: existing slice = ",
48 x.first, ", new slice = ", str)
    [all...]
saved_tensor_slice_util.cc 28 string EncodeTensorNameSlice(const string& name, const TensorSlice& slice) {
30 // All the tensor slice keys will start with a 0
33 tensorflow::strings::OrderedCode::WriteNumIncreasing(&buffer, slice.dims());
34 for (int d = 0; d < slice.dims(); ++d) {
38 slice.start(d));
40 slice.length(d));
46 tensorflow::TensorSlice* slice) {
69 slice->SetFullSlice(x);
83 slice->set_start(d, start);
84 slice->set_length(d, length)
    [all...]
  /external/mesa3d/src/gallium/drivers/ilo/
ilo_resource.h 44 * the new writer. When set in slice flags (ilo_texture_slice::flags),
56 * never set in slice flags.
65 * When set in resolve flags, the new writer will clear. When set in slice
66 * flags, the slice has been cleared to ilo_texture_slice::clear_value.
72 * A 3D image slice, cube face, or array layer.
78 * Slice clear value. It is served for two purposes
146 unsigned level, unsigned slice)
149 assert(slice < ((tex->base.target == PIPE_TEXTURE_3D) ?
152 return &tex->slices[level][slice];
162 struct ilo_texture_slice *slice local
178 struct ilo_texture_slice *slice = local
    [all...]
  /system/netd/libnetdutils/
MemBlockTest.cpp 24 #include "netdutils/Slice.h"
37 for (Slice slice = result.get(); !slice.empty(); slice = drop(slice, 1)) {
38 slice.base()[0] = ARBITRARY_VALUE;
43 void checkAllZeros(Slice slice) {
44 for (; !slice.empty(); slice = drop(slice, 1))
50 Slice slice = block.get(); local
85 Slice slice = dnsPacket.get(); local
    [all...]
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/
SliceSliceDirectByteBufferTest.java 25 buf = buf.slice();
27 buf = buf.slice();
  /tools/apksig/src/main/java/com/android/apksig/internal/asn1/
Asn1OpaqueObject.java 28 mEncoded = encoded.slice();
36 return mEncoded.slice();

Completed in 681 milliseconds

1 2 3 4 5 6 7 8 91011>>