/tools/trebuchet/core/common/src/main/kotlin/trebuchet/util/ |
D | ByteArrayList.kt | 28 get() = array.size 31 array = array.copyOf(maxOf(value, (capacity * 1.5).toInt())) 35 private var array: ByteArray = ByteArray(initialCapacity) variable 38 return array[index] in get() 43 array[size] = b in put() 49 System.arraycopy(buf, offset, array, size, length) in put() 58 val slice = array.asSlice(size) in reset() 59 array = ByteArray(initialCapacity) in reset()
|
/tools/loganalysis/src/com/android/loganalysis/util/ |
D | ArrayUtil.java | 46 for (String[] array : arrays) { in buildArray() 47 length += array.length; in buildArray() 51 for (String[] array : arrays) { in buildArray() 52 System.arraycopy(array, 0, newArray, offset, array.length); in buildArray() 53 offset += array.length; in buildArray()
|
/tools/tradefederation/core/common_util/com/android/tradefed/util/ |
D | ArrayUtil.java | 45 for (String[] array : arrays) { in buildArray() 46 length += array.length; in buildArray() 50 for (String[] array : arrays) { in buildArray() 51 System.arraycopy(array, 0, newArray, offset, array.length); in buildArray() 52 offset += array.length; in buildArray()
|
/tools/test/connectivity/acts_tests/acts_contrib/test_utils_tests/ |
D | audio_analysis_integrationtest.py | 33 def dummy_peak_detection(self, array, window_size): argument 54 length = len(array) 56 def mid_is_peak(array, mid, left, right): argument 70 value_mid = array[int(mid)] 74 if array[index] >= value_mid: 82 if mid_is_peak(array, mid, left, right): 83 results.append((mid, array[int(mid)])) 89 array = [0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 5, 3, 2, 1, 1, 1, 1, 1] 90 result = audio_analysis.peak_detection(array, 4) 95 array = numpy.random.uniform(0, 1, 1000000) [all …]
|
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/audio_analysis_lib/ |
D | audio_analysis.py | 71 signal = numpy.array(signal) 175 def peak_detection(array, window_size): argument 197 length = len(array) 199 def mid_is_peak(array, mid, left, right): argument 218 value_mid = array[int(mid)] 224 if array[index] >= value_mid: 236 or array[index] > array[next_peak_candidate_index]): 239 if array[next_peak_candidate_index] >= value_mid: 255 if array[int(mid)] == 0: 259 is_peak, next_candidate_idx = mid_is_peak(array, mid, left, right) [all …]
|
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/zip/utils/ |
D | LittleEndianUtilsTest.java | 39 assertArrayEquals(new byte[] { 2, 1 }, out.array()); in write2Le() 43 assertArrayEquals(new byte[] { (byte) 0xdc, (byte) 0xfe }, out.array()); in write2Le() 63 ByteBuffer in = ByteBuffer.wrap(out.array()); in readWrite2Le() 81 assertArrayEquals(new byte[] { 4, 3, 2, 1 }, out.array()); in write4Le() 86 out.array()); in write4Le() 106 ByteBuffer in = ByteBuffer.wrap(out.array()); in readWrite4Le()
|
/tools/security/remote_provisioning/hwtrust/src/cbor/rkp/ |
D | protected_data.rs | 79 let mut array = match value_from_bytes(plaintext_cbor) { in from_cbor_bytes() localVariable 88 if array.len() != 2 && array.len() != 3 { in from_cbor_bytes() 93 let uds_certs = if array.len() != 3 { in from_cbor_bytes() 96 let uds_certs_field = FieldValue::from_optional_value("UdsCerts", array.pop()); in from_cbor_bytes() 101 Value::Array(FieldValue::from_optional_value("DiceChain", array.pop()).into_array()?); in from_cbor_bytes() 108 FieldValue::from_optional_value("SignedMac", array.pop()).into_cose_sign1()?, in from_cbor_bytes()
|
/tools/metalava/metalava/src/test/java/com/android/tools/metalava/binarycompatibility/ |
D | BinaryCompatibilityInterfaceMethodsTest.kt | 430 … fun `Change last parameter from array type T(array) to variable arity T(elipse) (Compatible)`() { in Change last parameter from array type T(array) to variable arity T(elipse) (Compatible)() 452 …fun `Change last parameter from variable arity T(elipse) to array type T(array) (Incompatible)`() { in Change last parameter from variable arity T(elipse) to array type T(array) (Incompatible)()
|
D | BinaryCompatibilityClassMethodsAndConstructors.kt | 637 … fun `Change last parameter from array type T(array) to variable arity T(elipse) (Compatible)`() { in Change last parameter from array type T(array) to variable arity T(elipse) (Compatible)() 659 …fun `Change last parameter from variable arity T(elipse) to array type T(array) (Incompatible)`() { in Change last parameter from variable arity T(elipse) to array type T(array) (Incompatible)()
|
/tools/test/connectivity/acts_tests/tests/google/fuchsia/wlan/facade/ |
D | WlanFacadeTest.py | 20 import array 58 country_string = str(array.array('b', country_bytes),
|
/tools/tradefederation/core/common_util/com/android/tradefed/result/ |
D | ByteArrayInputStreamSource.java | 25 public ByteArrayInputStreamSource(byte[] array) { in ByteArrayInputStreamSource() argument 26 mArray = array; in ByteArrayInputStreamSource()
|
/tools/tradefederation/contrib/src/com/android/media/tests/ |
D | AudioLoopbackImageAnalyzer.java | 434 private static Pair<Integer, Integer> getBounds(int[] array, int lowerBound, int upperBound) { in getBounds() argument 441 upperBound = array.length - 1; in getBounds() 446 if (array[i] > 0) { in getBounds() 454 if (array[i] > 0) { in getBounds() 463 private static void filter(int[] array, final int threshold) { in filter() argument 465 for (int i = 0; i < array.length; i++) { in filter() 466 final int v = array[i]; in filter() 468 array[i] = 0; in filter()
|
/tools/apksig/src/test/java/com/android/apksig/internal/test/ |
D | MoreAsserts.java | 41 && (actual.arrayOffset() == 0) && (actual.array().length == actual.remaining())) { in assertByteBufferEquals() 42 actualArr = actual.array(); in assertByteBufferEquals()
|
/tools/trebuchet/core/common/src/main/kotlin/trebuchet/extractors/ |
D | ZlibExtractor.kt | 60 val array = ByteArray(estSize) in <lambda>() constant 61 val len = inflater.inflate(array) in <lambda>() 69 yield(array.asSlice(len)) in <lambda>()
|
/tools/tradefederation/core/javatests/com/android/tradefed/util/zip/ |
D | CentralDirectoryInfoTest.java | 84 return buffer.array(); in createCentralDirectoryData() 130 byte[] data = createCentralDirectoryData(true, extra.array(), 0); in centralDirectoryInfo_useZip64() 147 byte[] data = createCentralDirectoryData(true, extra.array(), 0); in centralDirectoryInfo_useZip64_multipleEntriesInExtraField() 161 byte[] data = createCentralDirectoryData(true, extra.array(), 0); in centralDirectoryInfo_noZip64Field_throwException()
|
/tools/dexter/testdata/expected/ |
D | exit_hooks.asm | 54 14| new-array v3, v3, java.lang.Object[] 70 37| new-array v3, v3, java.lang.Object[] 86 60| new-array v3, v3, java.lang.Object[] 104 87| new-array v3, v3, java.lang.Object[] 230 10| new-array v4, v4, java.lang.Object[] 264 10| new-array v4, v4, java.lang.Object[] 276 22| new-array v4, v4, java.lang.Object[] 308 6| new-array v4, v4, java.lang.Object[] 339 6| new-array v3, v3, java.lang.Object[] 371 6| new-array v3, v3, java.lang.Object[] [all …]
|
D | try_catch.asm | 114 11| new-array v5, v5, java.lang.Object[] 131 25| new-array v5, v5, java.lang.Object[] 149 39| new-array v5, v5, java.lang.Object[] 158 50| new-array v5, v5, java.lang.Object[] 171 64| new-array v5, v5, java.lang.Object[]
|
D | try_catch.rewrite | 115 11| new-array v5, v5, java.lang.Object[] 132 25| new-array v5, v5, java.lang.Object[] 150 40| new-array v5, v5, java.lang.Object[] 159 51| new-array v5, v5, java.lang.Object[] 172 66| new-array v5, v5, java.lang.Object[]
|
D | try_catch.exit_hook | 120 11| new-array v5, v5, java.lang.Object[] 138 28| new-array v5, v5, java.lang.Object[] 156 43| new-array v5, v5, java.lang.Object[] 165 54| new-array v5, v5, java.lang.Object[] 178 69| new-array v5, v5, java.lang.Object[]
|
D | exit_hooks.rewrite | 54 14| new-array v3, v3, java.lang.Object[] 70 37| new-array v3, v3, java.lang.Object[] 86 60| new-array v3, v3, java.lang.Object[] 104 87| new-array v3, v3, java.lang.Object[] 232 10| new-array v4, v4, java.lang.Object[] 266 10| new-array v4, v4, java.lang.Object[] 278 22| new-array v4, v4, java.lang.Object[] 310 6| new-array v4, v4, java.lang.Object[] 341 6| new-array v3, v3, java.lang.Object[] 373 6| new-array v3, v3, java.lang.Object[] [all …]
|
D | try_catch.scratch_regs | 129 20| new-array v12, v12, java.lang.Object[] 146 34| new-array v12, v12, java.lang.Object[] 164 49| new-array v12, v12, java.lang.Object[] 173 60| new-array v12, v12, java.lang.Object[] 186 75| new-array v12, v12, java.lang.Object[]
|
/tools/security/remote_provisioning/hwtrust/src/ |
D | cbor.rs | 40 let array = val.as_array().unwrap(); in value_from_bytes_valid_succeeds() localVariable 41 assert_eq!(array.len(), 2); in value_from_bytes_valid_succeeds()
|
/tools/metalava/metalava-model-testsuite/src/main/java/com/android/tools/metalava/model/testsuite/annotationitem/ |
D | CommonAnnotationItemTest.kt | 426 fun `annotation array values with single element`() { in annotation array values with single element() 467 fun `annotation array values with single array element`() { in annotation array values with single array element() 976 fun `annotation toSource() for array values with single element`() { in annotation toSource() for array values with single element() 1017 fun `annotation toSource() for array values with single array element`() { in annotation toSource() for array values with single array element()
|
/tools/security/gdb/gdb_json_printer/ |
D | README.md | 12 g++ test_examples/array.cpp -O0 -g -o test_examples/array 76 * the printer treats all arrays as pointers now. We expected it to have ability to extract array/bu…
|
/tools/platform-compat/java/com/android/annotationvisitor/ |
D | RepeatedAnnotationHandler.java | 53 ArrayElementValue array = (ArrayElementValue) value.getValue(); in handleAnnotation() local 56 for (ElementValue v : array.getElementValuesArray()) { in handleAnnotation()
|