/cts/tests/simplecpu/jni/ |
D | CpuNativeJni.cpp | 33 #define swapcode(TYPE, parmi, parmj, n) { \ argument 34 long i = (n) / sizeof (TYPE); \ 48 swapfunc(char *a, char *b, int n, int swaptype) in swapfunc() argument 51 swapcode(long, a, b, n) in swapfunc() 53 swapcode(char, a, b, n) in swapfunc() 64 #define vecswap(a, b, n) if ((n) > 0) swapfunc(a, b, n, swaptype) argument 75 qsort_local(void *aa, size_t n, size_t es, int (*cmp)(const void *, const void *)) in qsort_local() argument 83 if (n < 7) { in qsort_local() 84 for (pm = (char *)a + es; pm < (char *) a + n * es; pm += es) in qsort_local() 90 pm = (char *)a + (n / 2) * es; in qsort_local() [all …]
|
/cts/tests/tests/rsblas/assets/ |
D | blas_gen.py | 58 def sMatGen(m, n, scale): argument 59 a = mat(random.randint(1, 10, size=(m, n)).astype('f4')/scale) 63 def dMatGen(m, n, scale): argument 64 a = mat(random.randint(1, 10, size=(m, n)).astype('f8')/scale) 68 def cMatGen(m, n, scale): argument 69 a_real = mat(random.randint(1, 10, size=(m, n)).astype('f4')/scale) 70 a_img = mat(random.randint(1, 10, size=(m, n)).astype('f4')/scale) 75 def zMatGen(m, n, scale): argument 76 a_real = mat(random.randint(1, 10, size=(m, n)).astype('f8')/scale) 77 a_img = mat(random.randint(1, 10, size=(m, n)).astype('f8')/scale) [all …]
|
/cts/tests/tests/rsblas/src/android/renderscript/cts/ |
D | BNNMTest.java | 48 for (int n = 0; n < count; ++n) { in addByteNoise() 50 final int originalValue = data[n]; in addByteNoise() 63 data[n] = (byte)(newValue); in addByteNoise() 129 private byte[] runBNNM(int m, int n, int k, byte[] a_byte, int a_offset, byte[] b_byte, in runBNNM() argument 134 Type b_type = builder.setX(k).setY(n).create(); in runBNNM() 135 Type c_type = builder.setX(n).setY(m).create(); in runBNNM() 148 int c_count = (m * n); in runBNNM() 205 final int n = b_cols; in testSmallMatrices() local 208 byte[] c_byte_output = runBNNM(m, n, k, a_data, a_offset, b_data, b_offset, in testSmallMatrices() 250 final int n = b_cols; in testMediumMatrices1() local [all …]
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/ |
D | BlurStack.java | 197 for (int n = 0; n < layerInfo.length; ++n) { in toString() 198 int front = layerInfo[n].frontDepth; in toString() 199 int back = layerInfo[n].backDepth; in toString() 200 s += "\nlayer " + n + " num of disparities " + (front - back + 1) + "\n"; in toString() 203 s += "layer " + n + " disparity " + d + " disk radius " in toString() 342 for (int n = 0; n < numLayers; ++n) { in groupDepthLevelsIntoLayers() 343 if (n < layerInfoInFrontOfFocus.size()) { in groupDepthLevelsIntoLayers() 346 int m = (layerInfoInFrontOfFocus.size() - 1) - n; in groupDepthLevelsIntoLayers() 347 layerInfo[n] = layerInfoInFrontOfFocus.get(m); in groupDepthLevelsIntoLayers() 348 } else if (n == layerInfoInFrontOfFocus.size()) { in groupDepthLevelsIntoLayers() [all …]
|
/cts/tests/tests/os/jni/ |
D | android_os_cts_SPMITest.cpp | 33 int n = scandir(path, &namelist, NULL, NULL); in android_os_cts_SPMITest_leakPointer() local 34 if (n <= 0) { in android_os_cts_SPMITest_leakPointer() 39 for (i = 0; i < n; ++i) { in android_os_cts_SPMITest_leakPointer() 44 while (n--) { in android_os_cts_SPMITest_leakPointer() 45 free(namelist[n]); in android_os_cts_SPMITest_leakPointer()
|
/cts/hostsidetests/systemui/src/android/host/systemui/ |
D | StatsdNotificationAtomTest.java | 89 AtomsProto.NotificationReported n = data.get(0).getAtom().getNotificationReported(); in testNotificationReported() local 90 assertThat(n.getPackageName()).isEqualTo(NOTIFICATION_TEST_PKG); in testNotificationReported() 91 assertThat(n.getUid()).isEqualTo(DeviceUtils.getAppUid(getDevice(), NOTIFICATION_TEST_PKG)); in testNotificationReported() 92 assertThat(n.getNotificationIdHash()).isEqualTo(0); // smallHash(0x7F020000) in testNotificationReported() 93 assertThat(n.getChannelIdHash()).isEqualTo(SmallHash.hash(NOTIFICATION_CHANNEL_ID)); in testNotificationReported() 94 assertThat(n.getGroupIdHash()).isEqualTo(0); in testNotificationReported() 95 assertFalse(n.getIsGroupSummary()); in testNotificationReported() 96 assertThat(n.getCategory()).isEmpty(); in testNotificationReported() 97 assertThat(n.getStyle()).isEqualTo(0); in testNotificationReported() 98 assertThat(n.getNumPeople()).isEqualTo(0); in testNotificationReported()
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2019-2014/ |
D | poc.cpp | 42 for (int n = 0; n < NCI_NFCID2_LEN; ++n) { in main() local 43 p_cb->peer_nfcid2[n] = DEFAULT_VALUE; in main()
|
/cts/tests/tests/graphics/jni/ |
D | android_graphics_cts_SyncTest.cpp | 40 jsize n = env->GetArrayLength(fds_array); in syncPoll() local 41 if (env->GetArrayLength(status_array) != n) in syncPoll() 43 std::unique_ptr<pollfd[]> pollfds = std::make_unique<pollfd[]>(n); in syncPoll() 46 for (jsize i = 0; i < n; i++) { in syncPoll() 54 ret = poll(pollfds.get(), n, -1 /* infinite timeout */); in syncPoll() 60 for (jsize i = 0; i < n; i++) { in syncPoll()
|
/cts/tests/location/location_gnss/src/android/location/cts/gnss/asn1/base/ |
D | Asn1Tag.java | 156 int n = buf.get() & 0xFF; in readLength() local 157 if (n < (1 << 7)) { in readLength() 159 return n; in readLength() 162 n = n & 0x7F; in readLength() 163 if (n > 5) { in readLength() 164 throw new IllegalArgumentException("Length length too big: " + n + " octets"); in readLength() 166 byte[] val = new byte[n]; in readLength() 167 for (int i = 0; i < n; i++) { in readLength()
|
/cts/tests/tests/graphics/src/android/graphics/cts/utils/ |
D | Frame.java | 110 private Frame(float n, float aw, float nbb, float ncb, float c, float nc, float[] rgbD, in Frame() argument 112 mN = n; in Frame() 167 float n = CamUtils.yFromLstar(backgroundLstar) / whitepoint[1]; in make() local 171 float z = 1.48f + (float) Math.sqrt(n); in make() 174 float nbb = 0.725f / (float) Math.pow(n, 0.2); in make() 189 return new Frame(n, aw, nbb, ncb, c, nc, rgbD, fl, (float) Math.pow(fl, 0.25), z); in make()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/ |
D | Util.java | 68 int n = nextPowerOfTwo(Math.max(data1.length, data2.length)); in computeCrossCorrelation() local 69 Complex[] data1Fft = fft.transform(padZeros(data1, n)); in computeCrossCorrelation() 70 Complex[] data2Fft = fft.transform(padZeros(data2, n)); in computeCrossCorrelation() 71 Complex[] dottedData = new Complex[n]; in computeCrossCorrelation() 72 for (int i = 0; i < n; i++) { in computeCrossCorrelation() 109 public static int nextPowerOfTwo(int n) { in nextPowerOfTwo() argument 110 return 1 << (32 - Integer.numberOfLeadingZeros(n - 1)); in nextPowerOfTwo()
|
/cts/apps/CameraITS/tests/scene2_a/ |
D | test_format_combos.py | 106 n = 0 116 successes.append((n, r, f, b)) 117 logging.debug('Success[%02d]', n) 124 logging.error('Failure[%02d]', n) 128 failures.append((n, r, f, b)) 133 n += 1
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2020-0226/ |
D | poc.cpp | 47 for (uint8_t n = 0; n < kCount; ++n) { in main() local
|
/cts/tests/AlarmManager/src/android/alarmmanager/cts/ |
D | PersistableEventHistory.java | 72 synchronized long getNthLastEventTime(int n) { in getNthLastEventTime() argument 73 if (n <= 0 || n > mHistory.size()) { in getNthLastEventTime() 76 return mHistory.get(mHistory.size() - n); in getNthLastEventTime()
|
D | AlarmReceiver.java | 84 static long getNthLastAlarmTime(int n) { in getNthLastAlarmTime() argument 85 return sHistory.getNthLastEventTime(n); in getNthLastAlarmTime() 88 static long getNthLastCompatAlarmTime(int n) { in getNthLastCompatAlarmTime() argument 89 return sCompatHistory.getNthLastEventTime(n); in getNthLastCompatAlarmTime()
|
/cts/tests/tests/rsblas/libbnnmdata/ |
D | test_data.cpp | 23 const int n = 192; variable 31 const int b_count = (n * k); 32 const int c_count = (m * n);
|
/cts/tests/openglperf2/ |
D | cob_exporter.py | 51 n = vertex.normal.xyz 53 … f.write(struct.pack(">ffffffff", v[0], v[1], v[2], n[0], n[1], n[2], t[0], 1 - t[1]))
|
/cts/tests/sensor/src/android/hardware/cts/ |
D | SensorManagerStaticTest.java | 290 float [] n = mat9Mul(Rr, Rt); in testGetRotationMatrix() local 295 n[0] + n[4] + n[8], 3.f, 1e-4f); in testGetRotationMatrix() local 397 float [] n = mat9Mul(m9, mat9T(m9)); in testGetRotationMatrixFromVector() local 399 n[0]+ n[4] + n[8], 3.f, 1e-4f); in testGetRotationMatrixFromVector() 624 float [] n = new float[16]; in mat9to16() local 627 n[i+i/3] = m[i]; in mat9to16() 629 n[15] = 1.f; in mat9to16() 630 return n; in mat9to16() 636 float [] n = new float[9]; in mat16to9() local 639 n[i] = m[i + i/3]; in mat16to9() [all …]
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2020-0450/ |
D | poc.cpp | 103 for (int n = 0; n < I93_MAX_BLOCK_LENGH; ++n) { in rw_i93_send_cmd_write_single_block() local 104 if (p_data[n] == DEFAULT_VALUE) { in rw_i93_send_cmd_write_single_block()
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/d1new/ |
D | KernelDataForRenderScriptd1new.java | 131 for (int n = 0; n < kernelLength; ++n) { in generateDiskKernelArray() 132 kernel[n] /= sumKernelValues; in generateDiskKernelArray()
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/f32/ |
D | KernelDataForRenderScriptF32.java | 130 for (int n = 0; n < kernelLength; ++n) { in generateDiskKernelArray() 131 kernel[n] /= sumKernelValues; in generateDiskKernelArray()
|
/cts/hostsidetests/securitybulletin/res/ |
D | cve_2017_0859.mp4 | 4 �$Kp�����C@2j1Ի�'ç�j8N��5H��y3���EX$CԮ����ܿ�4d@n���S�߶��?����{��̃�$Kp�����o��W�Ť�n��;*�…
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2021-0318/ |
D | poc.cpp | 102 uint32_t n = reply.readUint32(); in get_sensor_list() local 103 v.setCapacity(n); in get_sensor_list() 104 while (n > 0) { in get_sensor_list() 105 n--; in get_sensor_list()
|
/cts/tests/tests/classloaderfactory/src/android/app/classloaderfactory/cts/ |
D | AppComponentFactoryTest.java | 50 int n; in writeSecondaryApkToDisk() local 51 while ((n = is.read(buffer)) >= 0) { in writeSecondaryApkToDisk() 52 os.write(buffer, 0, n); in writeSecondaryApkToDisk()
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/ |
D | InputConnectionSplitter.java | 47 public CharSequence getTextBeforeCursor(int n, int flags) { in getTextBeforeCursor() argument 48 mForNotify.getTextBeforeCursor(n, flags); in getTextBeforeCursor() 49 return super.getTextBeforeCursor(n, flags); in getTextBeforeCursor() 53 public CharSequence getTextAfterCursor(int n, int flags) { in getTextAfterCursor() argument 54 mForNotify.getTextBeforeCursor(n, flags); in getTextAfterCursor() 55 return super.getTextBeforeCursor(n, flags); in getTextAfterCursor()
|