HomeSort by relevance Sort by last modified time
    Searched refs:array (Results 226 - 250 of 7929) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /cts/tests/tests/rscpp/src/android/cts/rscpp/
RSUtils.java 29 public static void genRandom(long seed, int factor, int offset, float array[]) {
31 for (int i = 0; i < array.length; i++) {
32 array[i] = r.nextFloat() * factor + offset;
36 public static void genRandom(long seed, int factor, int offset, float array[],
39 for (int i = 0; i < array.length / stride; i++) {
42 array[i * stride + j] = 0;
44 array[i * stride + j] = r.nextFloat() * factor + offset;
49 public static void genRandom(long seed, int max, int factor, int offset, int array[]) {
51 for (int i = 0; i < array.length; i++) {
52 array[i] = (r.nextInt(max) * factor + offset)
    [all...]
  /frameworks/base/core/tests/coretests/src/android/util/
LongSparseLongArrayTest.java 36 final LongSparseLongArray array = new LongSparseLongArray(5); local
39 array.put(value, value);
43 assertEquals(value, array.get(value, -1));
44 assertEquals(-1, array.get(-value, -1));
49 final LongSparseLongArray array = new LongSparseLongArray(5); local
52 array.put(value, value);
56 assertEquals(value, array.get(value, -1));
57 assertEquals(-1, array.get(-value, -1));
62 final LongSparseLongArray array = new LongSparseLongArray(5); local
65 array.put(value, value)
81 final LongSparseLongArray array = new LongSparseLongArray(r.nextInt(128)); local
    [all...]
  /cts/apps/CameraITS/pymodules/its/
dng.py 46 CM: The 3x3 ColorMatrix for the specified illuminant, as a numpy array
47 FM: The 3x3 ForwardMatrix for the specified illuminant, as a numpy array
55 W = numpy.array([
62 HH = numpy.array([
73 H_D65 = numpy.array([
77 H_A = numpy.array([
89 G = numpy.array([[gains[0],0,0], [0,gains[1],0], [0,0,gains[3]]])
92 S = numpy.array([ccm[0:3], ccm[3:6], ccm[6:9]])
98 CC = numpy.array([cal[0:3],cal[3:6],cal[6:9]])
133 CM: The computed 3x3 ColorMatrix for the illuminant, as a numpy array
    [all...]
  /external/hamcrest/hamcrest-library/src/test/java/org/hamcrest/collection/
IsArrayTest.java 8 import static org.hamcrest.collection.IsArray.array;
16 return array(equalTo("irrelevant"));
20 assertMatches("should match array with matching elements",
21 array(equalTo("a"), equalTo("b"), equalTo("c")), new String[]{"a", "b", "c"});
25 assertDoesNotMatch("should not match array with different elements",
26 array(equalTo("a"), equalTo("b")), new String[]{"b", "c"});
30 assertDoesNotMatch("should not match larger array",
31 array(equalTo("a"), equalTo("b")), new String[]{"a", "b", "c"});
32 assertDoesNotMatch("should not match smaller array",
33 array(equalTo("a"), equalTo("b")), new String[]{"a"})
    [all...]
  /cts/tests/tests/jni/src/android/jni/cts/
JniInstanceTest.java 115 short[] array = target.returnShortArray(); local
116 assertSame(short[].class, array.getClass());
117 assertEquals(3, array.length);
118 assertEquals(10, array[0]);
119 assertEquals(20, array[1]);
120 assertEquals(30, array[2]);
127 String[] array = target.returnStringArray(); local
128 assertSame(String[].class, array.getClass());
129 assertEquals(100, array.length);
130 assertEquals("blort", array[0])
    [all...]
  /frameworks/base/keystore/java/android/security/keystore/
ArrayUtils.java 27 public static String[] nullToEmpty(String[] array) {
28 return (array != null) ? array : EmptyArray.STRING;
31 public static String[] cloneIfNotEmpty(String[] array) {
32 return ((array != null) && (array.length > 0)) ? array.clone() : array;
35 public static byte[] cloneIfNotEmpty(byte[] array) {
36 return ((array != null) && (array.length > 0)) ? array.clone() : array
    [all...]
  /hardware/qcom/msm8998/json-c/
arraylist.c 35 if(!(arr->array = (void**)calloc(sizeof(void*), arr->size))) {
47 if(arr->array[i]) arr->free_fn(arr->array[i]);
48 free(arr->array);
56 return arr->array[i];
68 if(!(t = realloc(arr->array, new_size*sizeof(void*)))) return -1;
69 arr->array = (void**)t;
70 (void)memset(arr->array + arr->size, 0, (new_size-arr->size)*sizeof(void*));
79 if(arr->array[idx]) arr->free_fn(arr->array[idx])
    [all...]
  /external/tensorflow/tensorflow/compiler/tests/
unary_ops_test.py 37 """Converts a numpy array from NHWC format to `data_format`."""
56 inp: numpy input array to use as input to 'op'.
57 expected: numpy array representing the expected output of 'op'.
85 np.array([1, 2, 3, 4], dtype=dtype),
86 np.array([[1, 0, 0, 0], [0, 2, 0, 0], [0, 0, 3, 0], [0, 0, 0, 4]],
91 np.array([[0, 7, 14], [21, 28, 35]], dtype=dtype))
93 array_ops.diag, np.array([[1, 2], [3, 4]], dtype=dtype),
94 np.array(
101 np.array([[-1, 1]], dtype=dtype),
102 expected=np.array([[-1, 1]], dtype=dtype)
    [all...]
  /external/guava/guava/src/com/google/common/primitives/
Ints.java 132 * {@code array}.
134 * @param array an array of {@code int} values, possibly empty
136 * @return {@code true} if {@code array[i] == target} for some value of {@code
139 public static boolean contains(int[] array, int target) {
140 for (int value : array) {
150 * {@code array}.
152 * @param array an array of {@code int} values, possibly empty
154 * @return the least index {@code i} for which {@code array[i] == target}, o
487 int[] array = new int[len]; local
519 final int[] array; field in class:Ints.IntArrayAsList
    [all...]
Longs.java 99 * {@code array}.
101 * @param array an array of {@code long} values, possibly empty
103 * @return {@code true} if {@code array[i] == target} for some value of {@code
106 public static boolean contains(long[] array, long target) {
107 for (long value : array) {
117 * {@code array}.
119 * @param array an array of {@code long} values, possibly empty
121 * @return the least index {@code i} for which {@code array[i] == target}, o
520 long[] array = new long[len]; local
552 final long[] array; field in class:Longs.LongArrayAsList
    [all...]
  /external/guava/guava-gwt/src-super/com/google/common/primitives/super/com/google/common/primitives/
Ints.java 131 * {@code array}.
133 * @param array an array of {@code int} values, possibly empty
135 * @return {@code true} if {@code array[i] == target} for some value of {@code
138 public static boolean contains(int[] array, int target) {
139 for (int value : array) {
149 * {@code array}.
151 * @param array an array of {@code int} values, possibly empty
153 * @return the least index {@code i} for which {@code array[i] == target}, o
435 int[] array = new int[len]; local
467 final int[] array; field in class:Ints.IntArrayAsList
    [all...]
  /art/compiler/optimizing/
x86_memory_gen.cc 35 // Replace the length by the array itself, so that we can do compares to memory.
43 HInstruction* array = array_len->InputAt(0); variable
44 DCHECK_EQ(array->GetType(), DataType::Type::kReference);
46 // Don't apply this optimization when the array is nullptr.
47 if (array->IsConstant() || (array->IsNullCheck() && array->InputAt(0)->IsConstant())) {
52 if (array->IsNullCheck() && do_implicit_null_checks_) {
  /external/compiler-rt/test/asan/TestCases/Posix/
halt_on_error_suppress_equal_pcs.cc 19 #define ACCESS_ARRAY_FIVE_ELEMENTS(array, i) \
20 array[i] = i; \
21 array[i + 1] = i + 1; \
22 array[i + 2] = i + 2; \
23 array[i + 3] = i + 3; \
24 array[i + 4] = i + 4; \
  /external/eigen/test/
first_aligned.cpp 13 void test_first_aligned_helper(Scalar *array, int size)
16 VERIFY(((size_t(array) + sizeof(Scalar) * internal::first_default_aligned(array, size)) % packet_size) == 0);
20 void test_none_aligned_helper(Scalar *array, int size)
22 EIGEN_UNUSED_VARIABLE(array);
24 VERIFY(internal::packet_traits<Scalar>::size == 1 || internal::first_default_aligned(array, size) == size);
  /frameworks/base/core/java/com/android/internal/util/
HexDump.java 24 public static String dumpHexString(byte[] array)
26 return dumpHexString(array, 0, array.length);
29 public static String dumpHexString(byte[] array, int offset, int length)
62 byte b = array[i];
100 public static String toHexString(byte[] array)
102 return toHexString(array, 0, array.length, true);
105 public static String toHexString(byte[] array, boolean upperCase)
107 return toHexString(array, 0, array.length, upperCase)
    [all...]
  /frameworks/support/core/ktx/src/androidTest/java/androidx/core/content/res/
TypedArrayTest.kt 35 val array = context.obtainStyledAttributes(attrs, R.styleable.TypedArrayTypes)
37 assertTrue(array.getBooleanOrThrow(R.styleable.TypedArrayTypes_boolean_present))
40 array.getBooleanOrThrow(R.styleable.TypedArrayTypes_boolean_absent)
46 val array = context.obtainStyledAttributes(attrs, R.styleable.TypedArrayTypes)
48 assertEquals(Color.WHITE, array.getColorOrThrow(R.styleable.TypedArrayTypes_color_present))
51 array.getColorOrThrow(R.styleable.TypedArrayTypes_color_absent)
57 val array = context.obtainStyledAttributes(attrs, R.styleable.TypedArrayTypes)
58 val stateList = array.getColorStateListOrThrow(R.styleable.TypedArrayTypes_color_present)
63 array.getColorStateListOrThrow(R.styleable.TypedArrayTypes_color_absent)
69 val array = context.obtainStyledAttributes(attrs, R.styleable.TypedArrayTypes
    [all...]
  /frameworks/support/tv-provider/src/main/java/androidx/tvprovider/media/tv/
CollectionUtils.java 31 * Returns an array with the arrays concatenated together.
38 for (T[] array : rest) {
39 totalLength += array.length;
43 for (T[] array : rest) {
44 System.arraycopy(array, 0, result, offset, array.length);
45 offset += array.length;
  /packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/utils/
ArrayUtils.java 27 * Checks that value is present as at least one of the elements of the array.
28 * @param array the array to check in
30 * @return true if the value is present in the array
32 public static <T> boolean contains(T[] array, T value) {
33 return indexOf(array, value) != -1;
37 * Return first index of {@code value} in {@code array}, or {@code -1} if
40 public static <T> int indexOf(T[] array, T value) {
41 if (array == null) return -1;
42 for (int i = 0; i < array.length; i++)
    [all...]
  /toolchain/binutils/binutils-2.27/ld/testsuite/ld-tic6x/
attr-array-16-16.d 1 #name: C6X array attribute merging, 16 16
4 #source: attr-array-16.s
5 #source: attr-array-16.s
attr-array-16-416.d 1 #name: C6X array attribute merging, 16 416
4 #source: attr-array-16.s
5 #source: attr-array-416.s
attr-array-16-816.d 1 #name: C6X array attribute merging, 16 816
4 #source: attr-array-16.s
5 #source: attr-array-816.s
attr-array-4-4.d 1 #name: C6X array attribute merging, 4 4
4 #source: attr-array-4.s
5 #source: attr-array-4.s
attr-array-4-416.d 1 #name: C6X array attribute merging, 4 416
4 #source: attr-array-4.s
5 #source: attr-array-416.s
attr-array-4-48.d 1 #name: C6X array attribute merging, 4 48
4 #source: attr-array-4.s
5 #source: attr-array-48.s
attr-array-416-16.d 1 #name: C6X array attribute merging, 416 16
4 #source: attr-array-416.s
5 #source: attr-array-16.s

Completed in 1319 milliseconds

1 2 3 4 5 6 7 8 91011>>