Home
last modified time | relevance | path

Searched refs:array (Results 1 – 25 of 59) sorted by relevance

123

/tools/tradefederation/core/src/com/android/tradefed/util/
DArrayUtil.java45 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/framework/acts/test_utils/audio_analysis_lib/
Daudio_analysis.py66 signal = numpy.array(signal)
170 def peak_detection(array, window_size): argument
192 length = len(array)
194 def mid_is_peak(array, mid, left, right): argument
213 value_mid = array[int(mid)]
219 if array[index] >= value_mid:
231 array[index] > array[next_peak_candidate_index]):
234 if array[next_peak_candidate_index] >= value_mid:
250 if array[int(mid)] == 0:
254 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/
DLittleEndianUtilsTest.java39 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/test/connectivity/acts/framework/tests/
Daudio_analysis_unittest.py31 def dummy_peak_detection(self, array, window_size): argument
52 length = len(array)
54 def mid_is_peak(array, mid, left, right): argument
68 value_mid = array[int(mid)]
72 if array[index] >= value_mid:
80 if mid_is_peak(array, mid, left, right):
81 results.append((mid, array[int(mid)]))
87 array = [0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 5, 3, 2, 1, 1, 1, 1, 1]
88 result = audio_analysis.peak_detection(array, 4)
93 array = numpy.random.uniform(0, 1, 1000000)
[all …]
/tools/loganalysis/tests/src/com/android/loganalysis/item/
DMonkeyLogItemTest.java59 private boolean in(String value, JSONArray array) throws JSONException { in in() argument
60 for (int i = 0; i < array.length(); i++) { in in()
61 if (value.equals(array.get(i))) { in in()
/tools/tradefederation/core/src/com/android/tradefed/result/
DByteArrayInputStreamSource.java25 public ByteArrayInputStreamSource(byte[] array) { in ByteArrayInputStreamSource() argument
26 mArray = array; in ByteArrayInputStreamSource()
/tools/apksig/src/test/java/com/android/apksig/internal/test/
DMoreAsserts.java41 && (actual.arrayOffset() == 0) && (actual.array().length == actual.remaining())) { in assertByteBufferEquals()
42 actualArr = actual.array(); in assertByteBufferEquals()
/tools/dexter/testdata/expected/
Dtry_catch.asm114 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[]
Dexit_hooks.asm54 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 …]
Dtry_catch.rewrite115 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[]
Dtry_catch.exit_hook120 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[]
Dexit_hooks.rewrite54 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 …]
Dtry_catch.compact_cfg141 11| new-array v5, v5, java.lang.Object[]
164 25| new-array v5, v5, java.lang.Object[]
188 39| new-array v5, v5, java.lang.Object[]
199 50| new-array v5, v5, java.lang.Object[]
214 64| new-array v5, v5, java.lang.Object[]
Dtry_catch.scratch_regs129 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[]
Dexit_hooks.compact_cfg59 14| new-array v3, v3, java.lang.Object[]
75 37| new-array v3, v3, java.lang.Object[]
91 60| new-array v3, v3, java.lang.Object[]
109 87| new-array v3, v3, java.lang.Object[]
265 10| new-array v4, v4, java.lang.Object[]
307 10| new-array v4, v4, java.lang.Object[]
323 22| new-array v4, v4, java.lang.Object[]
359 6| new-array v4, v4, java.lang.Object[]
392 6| new-array v3, v3, java.lang.Object[]
426 6| new-array v3, v3, java.lang.Object[]
[all …]
Dexit_hooks.exit_hook56 14| new-array v3, v3, java.lang.Object[]
72 37| new-array v3, v3, java.lang.Object[]
88 60| new-array v3, v3, java.lang.Object[]
106 87| new-array v3, v3, java.lang.Object[]
239 10| new-array v4, v4, java.lang.Object[]
275 10| new-array v4, v4, java.lang.Object[]
288 25| new-array v4, v4, java.lang.Object[]
321 6| new-array v4, v4, java.lang.Object[]
354 6| new-array v3, v3, java.lang.Object[]
388 6| new-array v3, v3, java.lang.Object[]
[all …]
Dexit_hooks.scratch_regs60 14| new-array v3, v3, java.lang.Object[]
76 37| new-array v3, v3, java.lang.Object[]
92 60| new-array v3, v3, java.lang.Object[]
110 87| new-array v3, v3, java.lang.Object[]
256 28| new-array v11, v11, java.lang.Object[]
296 28| new-array v11, v11, java.lang.Object[]
308 40| new-array v11, v11, java.lang.Object[]
346 15| new-array v6, v6, java.lang.Object[]
380 15| new-array v8, v8, java.lang.Object[]
415 15| new-array v8, v8, java.lang.Object[]
[all …]
Dhello_nodebug.asm97 6| new-array v4, v4, java.lang.Object[]
106 24| new-array v4, v4, java.lang.Object[]
121 49| new-array v4, v4, java.lang.Object[]
149 16| array-length v5, v5
164 34| new-array v7, v7, java.lang.Object[]
Dtry_catch.verbose_cfg159 11| new-array v5, v5, java.lang.Object[]
190 25| new-array v5, v5, java.lang.Object[]
220 39| new-array v5, v5, java.lang.Object[]
237 50| new-array v5, v5, java.lang.Object[]
260 64| new-array v5, v5, java.lang.Object[]
Dhello.asm147 6| new-array v4, v4, java.lang.Object[]
158 24| new-array v4, v4, java.lang.Object[]
177 49| new-array v4, v4, java.lang.Object[]
214 16| array-length v5, v5
231 34| new-array v7, v7, java.lang.Object[]
265 7| new-array v4, v4, java.lang.Object[]
Dexit_hooks.verbose_cfg83 14| new-array v3, v3, java.lang.Object[]
111 37| new-array v3, v3, java.lang.Object[]
139 60| new-array v3, v3, java.lang.Object[]
171 87| new-array v3, v3, java.lang.Object[]
343 10| new-array v4, v4, java.lang.Object[]
397 10| new-array v4, v4, java.lang.Object[]
421 22| new-array v4, v4, java.lang.Object[]
467 6| new-array v4, v4, java.lang.Object[]
512 6| new-array v3, v3, java.lang.Object[]
558 6| new-array v3, v3, java.lang.Object[]
[all …]
Dhello.wrap_invoke147 6| new-array v4, v4, java.lang.Object[]
158 24| new-array v4, v4, java.lang.Object[]
177 49| new-array v4, v4, java.lang.Object[]
214 16| array-length v5, v5
231 34| new-array v7, v7, java.lang.Object[]
265 7| new-array v4, v4, java.lang.Object[]
Dhello.rewrite147 6| new-array v4, v4, java.lang.Object[]
158 24| new-array v4, v4, java.lang.Object[]
177 49| new-array v4, v4, java.lang.Object[]
214 16| array-length v5, v5
231 34| new-array v7, v7, java.lang.Object[]
265 7| new-array v4, v4, java.lang.Object[]
/tools/apksig/src/apksigner/java/com/android/apksigner/
DHexEncoding.java55 return encode(data.array(), data.arrayOffset() + data.position(), data.remaining()); in encodeRemaining()
/tools/apksig/src/test/java/com/android/apksig/internal/util/
DChainedDataSourceTest.java118 HexEncoding.encode(buffer.array()) + " vs " + HexEncoding.encode(buffer2.array()), in assertByteBufferEquals()

123