/cts/tests/tests/renderscriptlegacy/src/android/renderscriptlegacy/cts/ |
D | RSUtils.java | 48 public static void genRandomDoubles(long seed, double min, double max, double array[], in genRandomDoubles() argument 56 for (int i = 0; i < array.length; i++) { in genRandomDoubles() 64 array[i] = rand; in genRandomDoubles() 68 for (int i = 0; i < array.length; i++) { in genRandomDoubles() 70 array[i] = min + rand * (max - min); in genRandomDoubles() 77 array[r.nextInt(array.length)] = d; in genRandomDoubles() 80 array[r.nextInt(array.length)] = min; in genRandomDoubles() 81 array[r.nextInt(array.length)] = max; in genRandomDoubles() 83 array[r.nextInt(array.length)] = Double.NaN; in genRandomDoubles() 84 array[r.nextInt(array.length)] = Double.POSITIVE_INFINITY; in genRandomDoubles() [all …]
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
D | RSUtils.java | 48 public static void genRandomDoubles(long seed, double min, double max, double array[], in genRandomDoubles() argument 56 for (int i = 0; i < array.length; i++) { in genRandomDoubles() 64 array[i] = rand; in genRandomDoubles() 68 for (int i = 0; i < array.length; i++) { in genRandomDoubles() 70 array[i] = min + rand * (max - min); in genRandomDoubles() 77 array[r.nextInt(array.length)] = d; in genRandomDoubles() 80 array[r.nextInt(array.length)] = min; in genRandomDoubles() 81 array[r.nextInt(array.length)] = max; in genRandomDoubles() 83 array[r.nextInt(array.length)] = Double.NaN; in genRandomDoubles() 84 array[r.nextInt(array.length)] = Double.POSITIVE_INFINITY; in genRandomDoubles() [all …]
|
D | setelementat.rs | 14 rs_allocation array; 37 rsSetElementAt(array, &source, i); 47 rsSetElementAt(array, &source, xtemp, y);
|
D | ScriptGroupTest.java | 323 int[] array = new int[ARRAY_SIZE * 4]; in testBuilder2PointWiseKernelToKernelDependency() local 326 array[i] = i; in testBuilder2PointWiseKernelToKernelDependency() 330 input.copyFrom(array); in testBuilder2PointWiseKernelToKernelDependency() 372 int[] array = new int[ARRAY_SIZE * 4]; in testBuilder2GatherScatterAcrossKernelsViaGlobals() local 375 array[i*4] = i * 7; in testBuilder2GatherScatterAcrossKernelsViaGlobals() 376 array[i*4 + 1] = i * 7; in testBuilder2GatherScatterAcrossKernelsViaGlobals() 377 array[i*4 + 2] = i * 7; in testBuilder2GatherScatterAcrossKernelsViaGlobals() 378 array[i*4 + 3] = i * 7; in testBuilder2GatherScatterAcrossKernelsViaGlobals() 382 input.copyFrom(array); in testBuilder2GatherScatterAcrossKernelsViaGlobals() 428 int[] array = new int[ARRAY_SIZE * 4]; in testBuilder2KernelOutputToGlobal() local [all …]
|
/cts/tests/tests/rscpp/src/android/cts/rscpp/ |
D | RSUtils.java | 29 public static void genRandom(long seed, int factor, int offset, float array[]) { in genRandom() argument 31 for (int i = 0; i < array.length; i++) { in genRandom() 32 array[i] = r.nextFloat() * factor + offset; in genRandom() 36 public static void genRandom(long seed, int factor, int offset, float array[], in genRandom() argument 39 for (int i = 0; i < array.length / stride; i++) { in genRandom() 42 array[i * stride + j] = 0; in genRandom() 44 array[i * stride + j] = r.nextFloat() * factor + offset; in genRandom() 49 public static void genRandom(long seed, int max, int factor, int offset, int array[]) { in genRandom() argument 51 for (int i = 0; i < array.length; i++) { in genRandom() 52 array[i] = (r.nextInt(max) * factor + offset); in genRandom() [all …]
|
/cts/tests/tests/media/libaudiojni/ |
D | sl-utils.h | 64 jbyte *envGetArrayElements(JNIEnv *env, jbyteArray array, jboolean *isCopy) { in envGetArrayElements() argument 65 return env->GetByteArrayElements(array, isCopy); in envGetArrayElements() 69 void envReleaseArrayElements(JNIEnv *env, jbyteArray array, jbyte *elems, jint mode) { in envReleaseArrayElements() argument 70 env->ReleaseByteArrayElements(array, elems, mode); in envReleaseArrayElements() 74 jshort *envGetArrayElements(JNIEnv *env, jshortArray array, jboolean *isCopy) { in envGetArrayElements() argument 75 return env->GetShortArrayElements(array, isCopy); in envGetArrayElements() 79 void envReleaseArrayElements(JNIEnv *env, jshortArray array, jshort *elems, jint mode) { in envReleaseArrayElements() argument 80 env->ReleaseShortArrayElements(array, elems, mode); in envReleaseArrayElements() 84 jfloat *envGetArrayElements(JNIEnv *env, jfloatArray array, jboolean *isCopy) { in envGetArrayElements() argument 85 return env->GetFloatArrayElements(array, isCopy); in envGetArrayElements() [all …]
|
/cts/tests/tests/jni/src/android/jni/cts/ |
D | JniInstanceTest.java | 115 short[] array = target.returnShortArray(); in test_returnShortArray() local 116 assertSame(short[].class, array.getClass()); in test_returnShortArray() 117 assertEquals(3, array.length); in test_returnShortArray() 118 assertEquals(10, array[0]); in test_returnShortArray() 119 assertEquals(20, array[1]); in test_returnShortArray() 120 assertEquals(30, array[2]); in test_returnShortArray() 127 String[] array = target.returnStringArray(); in test_returnStringArray() local 128 assertSame(String[].class, array.getClass()); in test_returnStringArray() 129 assertEquals(100, array.length); in test_returnStringArray() 130 assertEquals("blort", array[0]); in test_returnStringArray() [all …]
|
D | JniStaticTest.java | 122 short[] array = StaticNonce.returnShortArray(); in test_returnShortArray() local 123 assertSame(short[].class, array.getClass()); in test_returnShortArray() 124 assertEquals(3, array.length); in test_returnShortArray() 125 assertEquals(10, array[0]); in test_returnShortArray() 126 assertEquals(20, array[1]); in test_returnShortArray() 127 assertEquals(30, array[2]); in test_returnShortArray() 134 String[] array = StaticNonce.returnStringArray(); in test_returnStringArray() local 135 assertSame(String[].class, array.getClass()); in test_returnStringArray() 136 assertEquals(100, array.length); in test_returnStringArray() 137 assertEquals("blort", array[0]); in test_returnStringArray() [all …]
|
/cts/apps/CameraITS/pymodules/its/ |
D | dng.py | 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]]) 144 XYZCAL_A = numpy.array([1.098675, 1.0, 0.355916]) 145 XYZCAL_D65 = numpy.array([0.950456, 1.0, 1.089058]) 152 CC = numpy.array([cal[0:3],cal[3:6],cal[6:9]])
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | LayerDrawableTest.java | 52 Drawable[] array = new Drawable[] { bitmapDrawable, colorDrawable }; in testConstructor() local 53 LayerDrawable layerDrawable = new LayerDrawable(array); in testConstructor() 54 assertEquals(array.length, layerDrawable.getNumberOfLayers()); in testConstructor() 58 array = new Drawable[0]; in testConstructor() 59 layerDrawable = new LayerDrawable(array); in testConstructor() 70 Drawable[] array = new Drawable[0]; in testInflate() local 71 LayerDrawable layerDrawable = new LayerDrawable(array); in testInflate() 89 layerDrawable = new LayerDrawable(array); in testInflate() 127 Drawable[] array = new Drawable[] { bitmapDrawable, colorDrawable }; in testFindDrawableByLayerId() local 128 LayerDrawable layerDrawable = new LayerDrawable(array); in testFindDrawableByLayerId() [all …]
|
/cts/tests/tests/preference2/src/android/preference2/cts/ |
D | ListPreferenceTest.java | 44 R.array.entries_list_preference); in testGetEntries() 51 R.array.entryvalues_list_preference); in testGetEntryValues() 60 private synchronized String[] convertToStringArray(CharSequence[] array){ in convertToStringArray() argument 61 String[] strArray = new String[array.length]; in convertToStringArray() 62 for(int i = 0; i < array.length; i++){ in convertToStringArray() 63 strArray[i] = (String) array[i]; in convertToStringArray()
|
/cts/tests/tests/util/src/android/util/cts/ |
D | ArrayMapTest.java | 148 private static void compareMaps(HashMap map, ArrayMap array) { in compareMaps() argument 149 if (map.size() != array.size()) { in compareMaps() 150 fail("Bad size: expected " + map.size() + ", got " + array.size()); in compareMaps() 156 Object gotValue = array.get(entry.getKey()); in compareMaps() 163 for (int i=0; i<array.size(); i++) { in compareMaps() 164 Object gotValue = array.valueAt(i); in compareMaps() 165 Object key = array.keyAt(i); in compareMaps() 173 if (map.entrySet().hashCode() != array.entrySet().hashCode()) { in compareMaps() 176 + Integer.toHexString(array.entrySet().hashCode())); in compareMaps() 179 if (!map.entrySet().equals(array.entrySet())) { in compareMaps() [all …]
|
D | ArraySetTest.java | 126 private static <E> void compareSets(HashSet<E> set, ArraySet<E> array) { in compareSets() argument 127 assertEquals("Bad size", set.size(), array.size()); in compareSets() 131 assertTrue("ArraySet missing value: " + entry, array.contains(entry)); in compareSets() 135 for (E entry : array) { in compareSets() 141 for (int i = 0; i < array.size(); ++i) { in compareSets() 142 E entry = array.valueAt(i); in compareSets() 147 if (set.hashCode() != array.hashCode()) { in compareSets() 148 assertEquals("Set hash codes differ", set.hashCode(), array.hashCode()); in compareSets() 151 assertTrue("HashSet.equals(ArraySet) failed", set.equals(array)); in compareSets() 152 assertTrue("ArraySet.equals(HashSet) failed", array.equals(set)); in compareSets() [all …]
|
/cts/tests/tests/media/src/android/media/cts/ |
D | IvfWriter.java | 154 private static void lay16Bits(byte[] array, int index, int value){ in lay16Bits() argument 155 array[index] = (byte) (value); in lay16Bits() 156 array[index + 1] = (byte) (value >> 8); in lay16Bits() 168 private static void lay32Bits(byte[] array, int index, int value){ in lay32Bits() argument 170 array[index + i] = (byte) (value >> (i * 8)); in lay32Bits() 183 private static void lay64bits(byte[] array, int index, long value){ in lay64bits() argument 185 array[index + i] = (byte) (value >> (i * 8)); in lay64bits()
|
/cts/tests/tests/content/src/android/content/res/cts/ |
D | ArrayTest.java | 67 checkStringArray(R.array.strings, new String[] {"zero", "1", "here"}); in testStrings() 68 checkTextArray(R.array.strings, new String[] {"zero", "1", "here"}); in testStrings() 69 checkStringArray(R.array.integers, new String[] {null, null, null}); in testStrings() 70 checkTextArray(R.array.integers, new String[] {null, null, null}); in testStrings() 75 checkIntArray(R.array.strings, new int[] {0, 0, 0}); in testIntegers() 76 checkIntArray(R.array.integers, new int[] {0, 1, 101}); in testIntegers()
|
/cts/apps/CameraITS/tests/inprog/scene2/ |
D | test_dng_tags.py | 51 print "HAL reported gains:\n", numpy.array(gains) 52 print "HAL reported ccm:\n", numpy.array(ccm).reshape(3,3) 53 print "HAL reported cal:\n", numpy.array(cal).reshape(3,3) 69 cm_ref = numpy.array(its.objects.rational_to_float( 71 fm_ref = numpy.array(its.objects.rational_to_float( 73 asn_ref = numpy.array(its.objects.rational_to_float(
|
/cts/tests/tests/view/src/android/view/cts/ |
D | ViewGroup_LayoutParamsTest.java | 54 TypedArray array = mContext.getTheme().obtainStyledAttributes(R.style.Whatever, attrs); in testSetBaseAttributes() local 55 mockLayoutParams.setBaseAttributes(array, R.styleable.style1_type6, in testSetBaseAttributes() 58 assertEquals(array.getDimensionPixelSize(R.styleable.style1_type6, defValue), in testSetBaseAttributes() 60 assertEquals(array.getDimensionPixelSize(R.styleable.style1_type7, defValue), in testSetBaseAttributes() 62 array.recycle(); in testSetBaseAttributes()
|
/cts/apps/CameraITS/tests/scene0/ |
D | test_gyro_bias.py | 51 times = numpy.array([(e["time"] - gyro_events[0]["time"])/1000000000.0 53 xs = numpy.array([e["x"] for e in gyro_events]) 54 ys = numpy.array([e["y"] for e in gyro_events]) 55 zs = numpy.array([e["z"] for e in gyro_events])
|
/cts/tests/tests/rscpp/librscpptest/ |
D | setelementat.rs | 13 rs_allocation array; 36 rsSetElementAt(array, &source, i); 46 rsSetElementAt(array, &source, xtemp, y);
|
/cts/suite/cts/deviceTests/browserbench/assets/octane/ |
D | crypto.js | 59 this.array = new Array(); 78 var this_array = this.array; 79 var w_array = w.array; 92 var this_array = this.array; 93 var w_array = w.array; 109 var this_array = this.array; 110 var w_array = w.array; 127 var this_array = this.array; 128 var w_array = w.array; 181 var this_array = this.array; [all …]
|
/cts/tests/tests/provider/src/android/provider/cts/contacts/ |
D | CommonDatabaseUtils.java | 62 private static void fillArray(Cursor cursor, String[] array) { in fillArray() argument 63 for (int i = 0; i < array.length; i++) { in fillArray() 64 array[i] = cursor.getString(i); in fillArray()
|
/cts/tests/tests/openglperf/src/android/openglperf/cts/ |
D | Sphere.java | 152 private int max(int[] array) { in max() argument 153 int max = array[0]; in max() 154 for (int i = 1; i < array.length; i++) { in max() 155 if (array[i] > max) max = array[i]; in max()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/ |
D | Util.java | 136 public static int findClosest(double[] array, double value) { in findClosest() argument 137 double[] diffArray = new double[array.length]; in findClosest() 138 for (int i = 0; i < array.length; i++) { in findClosest() 139 diffArray[i] = Math.abs(value - array[i]); in findClosest() 142 for (int i = 1; i < array.length; i++) { in findClosest()
|
/cts/tests/tests/hardware/src/android/hardware/camera2/cts/helpers/ |
D | AssertHelpers.java | 199 private static <T> List<T> buildList(T[] array) { in buildList() argument 200 return new ArrayList<T>(Arrays.asList(array)); in buildList() 203 private static List<Integer> buildList(int[] array) { in buildList() argument 204 List<Integer> list = new ArrayList<Integer>(array.length); in buildList() 205 for (Integer val : array) { in buildList()
|
D | CameraErrorCollector.java | 350 T[] array, T min) { in expectValuesGreaterOrEqual() argument 351 expectValuesGreaterOrEqual(msg, Arrays.asList(array), min); in expectValuesGreaterOrEqual() 380 public <T extends Comparable<? super T>> void expectValuesInRange(String msg, T[] array, in expectValuesInRange() argument 382 expectValuesInRange(msg, Arrays.asList(array), min, max); in expectValuesInRange() 393 public void expectValuesInRange(String msg, int[] array, int min, int max) { in expectValuesInRange() argument 394 ArrayList<Integer> l = new ArrayList<>(array.length); in expectValuesInRange() 395 for (int i : array) { in expectValuesInRange() 610 public <T extends Comparable<? super T>> void checkArrayMonotonicityAndNotAllEqual(T[] array, in checkArrayMonotonicityAndNotAllEqual() argument 613 for (int i = 0; i < array.length - 1; i++) { in checkArrayMonotonicityAndNotAllEqual() 614 int compareResult = array[i + 1].compareTo(array[i]); in checkArrayMonotonicityAndNotAllEqual() [all …]
|