| /external/guava/guava/src/com/google/common/base/ |
| Strings.java | 168 "Required array size too large: " + longSize); 171 final char[] array = new char[size]; local 172 string.getChars(0, len, array, 0); 175 System.arraycopy(array, 0, array, n, n); 177 System.arraycopy(array, 0, array, n, size - n); 178 return new String(array);
|
| /external/skia/tests/ |
| PathCoverageTest.cpp | 111 static bool one_d_pe(const int* array, const unsigned int count, 114 path[1] = SkPoint::Make(SkIntToScalar(array[0]), SkIntToScalar(array[1])); 115 path[2] = SkPoint::Make(SkIntToScalar(array[2]), SkIntToScalar(array[3])); 120 path[2] = SkPoint::Make(SkIntToScalar(array[i]), 121 SkIntToScalar(array[i+1]));
|
| /external/skqp/tests/ |
| PathCoverageTest.cpp | 111 static bool one_d_pe(const int* array, const unsigned int count, 114 path[1] = SkPoint::Make(SkIntToScalar(array[0]), SkIntToScalar(array[1])); 115 path[2] = SkPoint::Make(SkIntToScalar(array[2]), SkIntToScalar(array[3])); 120 path[2] = SkPoint::Make(SkIntToScalar(array[i]), 121 SkIntToScalar(array[i+1]));
|
| /external/tensorflow/tensorflow/compiler/xla/service/cpu/ |
| cpu_runtime_test.cc | 41 std::unique_ptr<Array2D<float>> MaybeTransposeArray2D(const Array2D<T>& array, 43 int64 output_height = array.height(); 44 int64 output_width = array.width(); 49 for (int y = 0; y < array.height(); y++) { 50 for (int x = 0; x < array.width(); x++) { 52 (*output)(x, y) = array(y, x); 54 (*output)(y, x) = array(y, x); 88 // 'data' buffer in the transposed array is the original array in column major 94 // dimension sizes to ensure the returned array is properly dimensioned [all...] |
| /external/tensorflow/tensorflow/contrib/distributions/python/kernel_tests/bijectors/ |
| affine_linear_operator_test.py | 34 x = np.array([[1, 0, -1], [2, 3, 4]], dtype=np.float32) 47 shift = np.array([-1, 0, 1], dtype=np.float32) 48 diag = np.array([[1, 2, 3], 54 x = np.array([[1, 0, -1], [2, 3, 4]], dtype=np.float32) 67 shift = np.array([-1, 0, 1], dtype=np.float32) 68 tril = np.array([[[1, 0, 0], 79 x = np.array([[[1, 0, -1],
|
| /external/tensorflow/tensorflow/core/kernels/ |
| adjust_contrast_op.h | 38 Eigen::array<int, 4> scalar_broadcast; 44 Eigen::array<int, 2> reduction_axis; 47 Eigen::array<int, 4> broadcast_dims; 100 Eigen::array<int, 4> scalar_broadcast; 106 Eigen::array<int, 2> reduction_axis; 109 Eigen::array<int, 4> broadcast_dims; 119 Eigen::array<int, 4> reduced_dims_first;
|
| /external/zopfli/src/zopfli/ |
| hash.c | 91 void ZopfliUpdateHash(const unsigned char* array, size_t pos, size_t end, 99 array[pos + ZOPFLI_MIN_MATCH - 1] : 0); 113 array[pos] == array[pos + amount + 1] && amount < (unsigned short)(-1)) { 130 void ZopfliWarmupHash(const unsigned char* array, size_t pos, size_t end, 133 UpdateHashValue(h, array[pos + 0]); 134 UpdateHashValue(h, array[pos + 1]);
|
| /frameworks/layoutlib/bridge/src/android/graphics/ |
| NinePatch_Delegate.java | 94 // get the array and add it to the cache 95 byte[] array = baos.toByteArray(); 96 sChunkCache.put(array, new SoftReference<>(chunk)); 97 return array; 104 * the array is deserialized into a {@link NinePatchChunk} object. 106 * @param array the serialized representation of the chunk. 109 public static NinePatchChunk getChunk(byte[] array) { 110 SoftReference<NinePatchChunk> chunkRef = sChunkCache.get(array); 113 ByteArrayInputStream bais = new ByteArrayInputStream(array); 121 sChunkCache.put(array, new SoftReference<>(chunk)) [all...] |
| /libcore/ojluni/src/main/java/java/util/stream/ |
| SortedOps.java | 287 * Sorting sinks first accept all elements, buffering then into an array 331 private T[] array; field in class:SortedOps.SizedRefSortingSink 343 array = (T[]) new Object[(int) size]; 348 Arrays.sort(array, 0, offset, comparator); 352 downstream.accept(array[i]); 356 downstream.accept(array[i]); 359 array = null; 364 array[offset++] = t; 429 private int[] array; field in class:SortedOps.SizedIntSortingSink 440 array = new int[(int) size] 527 private long[] array; field in class:SortedOps.SizedLongSortingSink 625 private double[] array; field in class:SortedOps.SizedDoubleSortingSink [all...] |
| /system/chre/apps/chqts/src/shared/ |
| nano_string_test.cc | 155 char array[kAsciiLen + 1]; local 156 array[kAsciiLen] = kUnsetValue; 157 uint32ToHexAscii(array, sizeof(array), value); 158 EXPECT_EQ(kUnsetValue, array[kAsciiLen]); 159 array[kAsciiLen] = '\0'; 160 EXPECT_STREQ(str, array);
|
| /external/tensorflow/tensorflow/contrib/estimator/python/estimator/ |
| multi_head_test.py | 116 'head1': np.array([[-1., 1.], [-1.5, 1.]], dtype=np.float32), 117 'head2': np.array([[2., -2., 2.], [-3., 2., -2.]], dtype=np.float32) 125 features={'x': np.array(((42,),), dtype=np.int32)}, 168 logits = np.array( 170 expected_logits1 = np.array([[-1., 1.], [-1.5, 1.]], dtype=np.float32) 171 expected_logits2 = np.array([[2., -2., 2.], [-3., 2., -2.]], 179 features={'x': np.array(((42,),), dtype=np.int32)}, 222 logits = np.array( 226 expected_logits1 = np.array( 230 expected_logits2 = np.array( [all...] |
| /external/deqp/framework/opengl/ |
| gluVarType.cpp | 53 m_data.array.size = arraySize; 54 m_data.array.elementType = new VarType(elementType); 66 delete m_data.array.elementType; 75 delete m_data.array.elementType; 82 m_data.array.elementType = new VarType(*other.m_data.array.elementType); 83 m_data.array.size = other.m_data.array.size; 96 case TYPE_ARRAY: return m_data.array.elementType->getScalarSize()*m_data.array.size [all...] |
| /external/eigen/Eigen/src/Geometry/ |
| AlignedBox.h | 95 EIGEN_DEVICE_FUNC inline bool isEmpty() const { return (m_min.array() > m_max.array()).any(); } 185 return (m_min.array()<=p_n.array()).all() && (p_n.array()<=m_max.array()).all(); 190 { return (m_min.array()<=(b.min)().array()).all() && ((b.max)().array()<=m_max.array()).all(); [all...] |
| /external/tensorflow/tensorflow/compiler/tests/ |
| scatter_nd_op_test.py | 94 indices = np.array(all_indices[:num_updates]) 132 indices = np.array([[4], [3], [1], [7]], dtype=np.int32) 133 updates = np.array([9, 10, 11, 12], dtype=np.float32) 134 expected = np.array([0, 11, 0, 10, 9, 0, 0, 12], dtype=np.int32) 138 indices = np.array([[1, 0], [1, 1]], dtype=np.int32) 139 updates = np.array([11., 12.], dtype=np.float32) 140 expected = np.array([[0., 0.], [11., 12.], [0., 0.]], dtype=np.float32) 144 indices = np.array([[1]], dtype=np.int32) 145 updates = np.array([[11., 12.]], dtype=np.float32) 146 expected = np.array([[0., 0.], [11., 12.], [0., 0.]] [all...] |
| /frameworks/rs/support/java/src/android/support/v8/renderscript/ |
| Allocation.java | 87 throw new RSIllegalArgumentException("Object passed is not an array of primitives."); 91 throw new RSIllegalArgumentException("Object passed is not an Array of primitives."); 268 * Specifies the mapping between the Allocation's cells and an array's elements 269 * when data is copied from the Allocation to the array, or vice-versa. 273 * copying data from the Allocation to an array or vice-versa less efficient. 278 * i.e. the first 3 vector components of each cell, will be mapped between the array 282 * <p> For example, when copying an integer array to an Allocation of two {@link 285 * The array must have at least 8 integers, with the first 4 integers copied 290 * The array just needs to have at least 6 integers, with the first 3 integers 294 * <p> Similarly, when copying a byte array to an Allocation of two {@lin 1128 mRS.nAllocationData1D(getIDSafe(), off, mSelectedLOD, count, array, dataSize, dt, local 1464 array, sizeBytes, dt, local 1721 array, sizeBytes, dt, local 1814 mRS.nAllocationRead(getID(mRS), array, dt, mType.mElement.mType.mSize, usePadding); local 2002 mRS.nAllocationRead1D(getIDSafe(), off, mSelectedLOD, count, array, dataSize, dt, local 2306 array, sizeBytes, dt, mType.mElement.mType.mSize, usePadding); local [all...] |
| /external/autotest/client/cros/cellular/mbim_compliance/ |
| mbim_data_transfer.py | 9 import array 73 @param data_packets: Array of data packets. Each packet is a byte array 98 ndp_entries - Array of NDP entry header objects. 99 payload - Array of packets where each packet is a byte array. 208 @param payload: Array of packets to sent to the device. Each packet 209 contains the raw byte array of IP packet to be sent. 218 @returns the raw MBIM NTB byte array. 243 raw_ntb_frame_payload = array.array('B', [] [all...] |
| /external/guava/guava-gwt/test-super/com/google/common/primitives/super/com/google/common/primitives/ |
| DoublesTest.java | 291 double[] array = {(double) 0, (double) 1, Math.PI}; local 294 assertTrue(Arrays.equals(array, Doubles.toArray(three))); 296 assertTrue(Arrays.equals(array, Doubles.toArray(Doubles.asList(array)))); 325 double[] array = {(double) 0, (double) 1, (double) 2}; local 334 assertTrue(Arrays.equals(array, Doubles.toArray(bytes))); 335 assertTrue(Arrays.equals(array, Doubles.toArray(shorts))); 336 assertTrue(Arrays.equals(array, Doubles.toArray(ints))); 337 assertTrue(Arrays.equals(array, Doubles.toArray(floats))); 338 assertTrue(Arrays.equals(array, Doubles.toArray(longs))) 343 double[] array = {(double) 0, (double) 1}; local 352 double[] array = { (double) 0, (double) 1, (double) 2 }; local 366 double[] array = { (double) 0, (double) 1, (double) 2, (double) 3 }; local [all...] |
| FloatsTest.java | 281 float[] array = {(float) 0, (float) 1, (float) 3}; local 284 assertTrue(Arrays.equals(array, Floats.toArray(three))); 286 assertTrue(Arrays.equals(array, Floats.toArray(Floats.asList(array)))); 315 float[] array = {(float) 0, (float) 1, (float) 2}; local 324 assertTrue(Arrays.equals(array, Floats.toArray(bytes))); 325 assertTrue(Arrays.equals(array, Floats.toArray(shorts))); 326 assertTrue(Arrays.equals(array, Floats.toArray(ints))); 327 assertTrue(Arrays.equals(array, Floats.toArray(floats))); 328 assertTrue(Arrays.equals(array, Floats.toArray(longs))) 333 float[] array = {(float) 0, (float) 1}; local 342 float[] array = { (float) 0, (float) 1, (float) 2 }; local 356 float[] array = { (float) 0, (float) 1, (float) 2, (float) 3 }; local [all...] |
| IntsTest.java | 271 int[] array = {(int) 0, (int) 1, (int) 0xdeadbeef}; local 274 assertTrue(Arrays.equals(array, Ints.toArray(three))); 276 assertTrue(Arrays.equals(array, Ints.toArray(Ints.asList(array)))); 305 int[] array = {0, 1, 2}; local 314 assertTrue(Arrays.equals(array, Ints.toArray(bytes))); 315 assertTrue(Arrays.equals(array, Ints.toArray(shorts))); 316 assertTrue(Arrays.equals(array, Ints.toArray(ints))); 317 assertTrue(Arrays.equals(array, Ints.toArray(floats))); 318 assertTrue(Arrays.equals(array, Ints.toArray(longs))) 323 int[] array = {(int) 0, (int) 1}; local 332 int[] array = { (int) 0, (int) 1, (int) 2 }; local 346 int[] array = { (int) 0, (int) 1, (int) 2, (int) 3 }; local [all...] |
| ShortsTest.java | 279 short[] array = {(short) 0, (short) 1, (short) 3}; local 282 assertTrue(Arrays.equals(array, Shorts.toArray(three))); 284 assertTrue(Arrays.equals(array, Shorts.toArray(Shorts.asList(array)))); 313 short[] array = {(short) 0, (short) 1, (short) 2}; local 322 assertTrue(Arrays.equals(array, Shorts.toArray(bytes))); 323 assertTrue(Arrays.equals(array, Shorts.toArray(shorts))); 324 assertTrue(Arrays.equals(array, Shorts.toArray(ints))); 325 assertTrue(Arrays.equals(array, Shorts.toArray(floats))); 326 assertTrue(Arrays.equals(array, Shorts.toArray(longs))) 331 short[] array = {(short) 0, (short) 1}; local 340 short[] array = { (short) 0, (short) 1, (short) 2 }; local 354 short[] array = { (short) 0, (short) 1, (short) 2, (short) 3 }; local [all...] |
| /art/test/957-methodhandle-transforms/src/ |
| Main.java | 270 int[] array = new int[1]; local 271 array[0] = 42; 272 int value = (int) getter.invoke(array, 0); 278 value = (int) getter.invoke(array, -1); 292 long[] array = new long[1]; local 293 array[0] = 42; 294 long value = (long) getter.invoke(array, 0); 302 short[] array = new short[1]; local 303 array[0] = 42; 304 short value = (short) getter.invoke(array, 0) 312 char[] array = new char[1]; local 342 float[] array = new float[1]; local 352 double[] array = new double[1]; local 362 String[] array = new String[3]; local 379 int[] array = new int[2]; local 405 long[] array = new long[1]; local 414 short[] array = new short[1]; local 423 char[] array = new char[1]; local 450 float[] array = new float[1]; local 459 double[] array = new double[1]; local 468 String[] array = new String[3]; local [all...] |
| /external/tensorflow/tensorflow/contrib/distributions/python/kernel_tests/ |
| inverse_gamma_test.py | 52 x = np.array([2.5, 2.5, 4.0, 0.1, 1.0, 2.0], dtype=np.float32) 68 alpha_v = np.array([2.0, 4.0]) 69 beta_v = np.array([3.0, 4.0]) 70 x = np.array([[2.5, 2.5, 4.0, 0.1, 1.0, 2.0]], dtype=np.float32).T 88 alpha_v = np.array([2.0, 4.0]) 90 x = np.array([[2.5, 2.5, 4.0, 0.1, 1.0, 2.0]], dtype=np.float32).T 110 x = np.array([2.5, 2.5, 4.0, 0.1, 1.0, 2.0], dtype=np.float32) 121 alpha_v = np.array([5.5, 3.0, 2.5]) 122 beta_v = np.array([1.0, 4.0, 5.0]) 130 alpha_v = np.array([5.5, 3.0, 2.5] [all...] |
| /external/opencv/cv/src/ |
| cvapprox.cpp | 72 _CvPtInfo *array, *first = 0, *current = 0, *prev_current = 0; local 110 array = (_CvPtInfo *) buffer; 140 current = current->next = array + i; 141 array[i].s = s; 142 array[i].pt = pt; 165 i = (int)(current - array); 166 pt0 = array[i].pt; 183 dx = array[i2].pt.x - array[i1].pt.x; 184 dy = array[i2].pt.y - array[i1].pt.y [all...] |
| /external/tensorflow/tensorflow/python/training/ |
| rmsprop_test.py | 96 var0_np = np.array([1.0, 2.0], dtype=dtype.as_numpy_dtype) 97 grads0_np = np.array([0.1, 0.2], dtype=dtype.as_numpy_dtype) 98 var1_np = np.array([3.0, 4.0], dtype=dtype.as_numpy_dtype) 99 grads1_np = np.array([0.01, 0.2], dtype=dtype.as_numpy_dtype) 132 mg0_np = np.array([0.0, 0.0], dtype=dtype.as_numpy_dtype) 133 mg1_np = np.array([0.0, 0.0], dtype=dtype.as_numpy_dtype) 134 rms0_np = np.array([1.0, 1.0], dtype=dtype.as_numpy_dtype) 135 rms1_np = np.array([1.0, 1.0], dtype=dtype.as_numpy_dtype) 136 mom0_np = np.array([0.0, 0.0], dtype=dtype.as_numpy_dtype) 137 mom1_np = np.array([0.0, 0.0], dtype=dtype.as_numpy_dtype [all...] |
| /libnativehelper/include_jni/ |
| jni.h | [all...] |