/frameworks/base/tests/ProtoInputStreamTests/src/com/android/test/protoinputstream/ |
D | ProtoInputStreamDoubleTest.java | 98 double[] results = new double[9]; in testRead() local 105 results[1] = pi.readDouble(fieldId2); in testRead() 108 results[2] = pi.readDouble(fieldId3); in testRead() 111 results[3] = pi.readDouble(fieldId4); in testRead() 114 results[4] = pi.readDouble(fieldId5); in testRead() 117 results[5] = pi.readDouble(fieldId6); in testRead() 120 results[6] = pi.readDouble(fieldId7); in testRead() 123 results[7] = pi.readDouble(fieldId8); in testRead() 126 results[8] = pi.readDouble(fieldId9); in testRead() 136 assertEquals(0.0, results[0]); in testRead() [all …]
|
D | ProtoInputStreamFloatTest.java | 89 float[] results = new float[9]; in testRead() local 96 results[1] = pi.readFloat(fieldId2); in testRead() 99 results[2] = pi.readFloat(fieldId3); in testRead() 102 results[3] = pi.readFloat(fieldId4); in testRead() 105 results[4] = pi.readFloat(fieldId5); in testRead() 108 results[5] = pi.readFloat(fieldId6); in testRead() 111 results[6] = pi.readFloat(fieldId7); in testRead() 114 results[7] = pi.readFloat(fieldId8); in testRead() 117 results[8] = pi.readFloat(fieldId9); in testRead() 127 assertEquals(0.0f, results[0]); in testRead() [all …]
|
D | ProtoInputStreamUInt64Test.java | 84 long[] results = new long[7]; in testRead() local 91 results[1] = pi.readLong(fieldId2); in testRead() 94 results[2] = pi.readLong(fieldId3); in testRead() 97 results[3] = pi.readLong(fieldId4); in testRead() 100 results[4] = pi.readLong(fieldId5); in testRead() 103 results[5] = pi.readLong(fieldId6); in testRead() 106 results[6] = pi.readLong(fieldId7); in testRead() 117 assertEquals(0, results[0]); in testRead() 118 assertEquals(1, results[1]); in testRead() 119 assertEquals(-1, results[2]); in testRead() [all …]
|
D | ProtoInputStreamSFixed64Test.java | 87 long[] results = new long[7]; in testRead() local 94 results[1] = pi.readLong(fieldId2); in testRead() 97 results[2] = pi.readLong(fieldId3); in testRead() 100 results[3] = pi.readLong(fieldId4); in testRead() 103 results[4] = pi.readLong(fieldId5); in testRead() 106 results[5] = pi.readLong(fieldId6); in testRead() 109 results[6] = pi.readLong(fieldId7); in testRead() 120 assertEquals(0, results[0]); in testRead() 121 assertEquals(1, results[1]); in testRead() 122 assertEquals(-1, results[2]); in testRead() [all …]
|
D | ProtoInputStreamSInt64Test.java | 82 long[] results = new long[7]; in testRead() local 89 results[1] = pi.readLong(fieldId2); in testRead() 92 results[2] = pi.readLong(fieldId3); in testRead() 95 results[3] = pi.readLong(fieldId4); in testRead() 98 results[4] = pi.readLong(fieldId5); in testRead() 101 results[5] = pi.readLong(fieldId6); in testRead() 104 results[6] = pi.readLong(fieldId7); in testRead() 115 assertEquals(0, results[0]); in testRead() 116 assertEquals(1, results[1]); in testRead() 117 assertEquals(-1, results[2]); in testRead() [all …]
|
D | ProtoInputStreamInt64Test.java | 85 long[] results = new long[7]; in testRead() local 92 results[1] = pi.readLong(fieldId2); in testRead() 95 results[2] = pi.readLong(fieldId3); in testRead() 98 results[3] = pi.readLong(fieldId4); in testRead() 101 results[4] = pi.readLong(fieldId5); in testRead() 104 results[5] = pi.readLong(fieldId6); in testRead() 107 results[6] = pi.readLong(fieldId7); in testRead() 118 assertEquals(0, results[0]); in testRead() 119 assertEquals(1, results[1]); in testRead() 120 assertEquals(-1, results[2]); in testRead() [all …]
|
D | ProtoInputStreamFixed64Test.java | 87 long[] results = new long[7]; in testRead() local 94 results[1] = pi.readLong(fieldId2); in testRead() 97 results[2] = pi.readLong(fieldId3); in testRead() 100 results[3] = pi.readLong(fieldId4); in testRead() 103 results[4] = pi.readLong(fieldId5); in testRead() 106 results[5] = pi.readLong(fieldId6); in testRead() 109 results[6] = pi.readLong(fieldId7); in testRead() 120 assertEquals(0, results[0]); in testRead() 121 assertEquals(1, results[1]); in testRead() 122 assertEquals(-1, results[2]); in testRead() [all …]
|
D | ProtoInputStreamEnumTest.java | 74 int[] results = new int[5]; in testRead() local 81 results[1] = pi.readInt(fieldId2); in testRead() 84 results[2] = pi.readInt(fieldId3); in testRead() 87 results[3] = pi.readInt(fieldId4); in testRead() 90 results[4] = pi.readInt(fieldId5); in testRead() 101 assertEquals(0, results[0]); in testRead() 102 assertEquals(1, results[1]); in testRead() 103 assertEquals(-1, results[2]); in testRead() 104 assertEquals(Integer.MIN_VALUE, results[3]); in testRead() 105 assertEquals(Integer.MAX_VALUE, results[4]); in testRead() [all …]
|
D | ProtoInputStreamSInt32Test.java | 72 int[] results = new int[5]; in testRead() local 79 results[1] = pi.readInt(fieldId2); in testRead() 82 results[2] = pi.readInt(fieldId3); in testRead() 85 results[3] = pi.readInt(fieldId4); in testRead() 88 results[4] = pi.readInt(fieldId5); in testRead() 99 assertEquals(0, results[0]); in testRead() 100 assertEquals(1, results[1]); in testRead() 101 assertEquals(-1, results[2]); in testRead() 102 assertEquals(Integer.MIN_VALUE, results[3]); in testRead() 103 assertEquals(Integer.MAX_VALUE, results[4]); in testRead() [all …]
|
D | ProtoInputStreamUInt32Test.java | 74 int[] results = new int[5]; in testRead() local 81 results[1] = pi.readInt(fieldId2); in testRead() 84 results[2] = pi.readInt(fieldId3); in testRead() 87 results[3] = pi.readInt(fieldId4); in testRead() 90 results[4] = pi.readInt(fieldId5); in testRead() 101 assertEquals(0, results[0]); in testRead() 102 assertEquals(1, results[1]); in testRead() 103 assertEquals(-1, results[2]); in testRead() 104 assertEquals(Integer.MIN_VALUE, results[3]); in testRead() 105 assertEquals(Integer.MAX_VALUE, results[4]); in testRead() [all …]
|
D | ProtoInputStreamSFixed32Test.java | 72 int[] results = new int[5]; in testRead() local 79 results[1] = pi.readInt(fieldId2); in testRead() 82 results[2] = pi.readInt(fieldId3); in testRead() 85 results[3] = pi.readInt(fieldId4); in testRead() 88 results[4] = pi.readInt(fieldId5); in testRead() 99 assertEquals(0, results[0]); in testRead() 100 assertEquals(1, results[1]); in testRead() 101 assertEquals(-1, results[2]); in testRead() 102 assertEquals(Integer.MIN_VALUE, results[3]); in testRead() 103 assertEquals(Integer.MAX_VALUE, results[4]); in testRead() [all …]
|
D | ProtoInputStreamFixed32Test.java | 72 int[] results = new int[5]; in testRead() local 79 results[1] = pi.readInt(fieldId2); in testRead() 82 results[2] = pi.readInt(fieldId3); in testRead() 85 results[3] = pi.readInt(fieldId4); in testRead() 88 results[4] = pi.readInt(fieldId5); in testRead() 99 assertEquals(0, results[0]); in testRead() 100 assertEquals(1, results[1]); in testRead() 101 assertEquals(-1, results[2]); in testRead() 102 assertEquals(Integer.MIN_VALUE, results[3]); in testRead() 103 assertEquals(Integer.MAX_VALUE, results[4]); in testRead() [all …]
|
D | ProtoInputStreamInt32Test.java | 74 int[] results = new int[5]; in testRead() local 81 results[1] = pi.readInt(fieldId2); in testRead() 84 results[2] = pi.readInt(fieldId3); in testRead() 87 results[3] = pi.readInt(fieldId4); in testRead() 90 results[4] = pi.readInt(fieldId5); in testRead() 101 assertEquals(0, results[0]); in testRead() 102 assertEquals(1, results[1]); in testRead() 103 assertEquals(-1, results[2]); in testRead() 104 assertEquals(Integer.MIN_VALUE, results[3]); in testRead() 105 assertEquals(Integer.MAX_VALUE, results[4]); in testRead() [all …]
|
D | ProtoInputStreamBytesTest.java | 74 byte[][] results = new byte[4][]; in testRead() 79 results[0] = pi.readBytes(fieldId1); in testRead() 82 results[1] = pi.readBytes(fieldId2); in testRead() 85 results[2] = pi.readBytes(fieldId3); in testRead() 88 results[3] = pi.readBytes(fieldId4); in testRead() 99 assertTrue("Expected: [] Actual: " + Arrays.toString(results[0]), in testRead() 100 Arrays.equals(new byte[]{}, results[0])); in testRead() 101 assertTrue("Expected: [] Actual: " + Arrays.toString(results[1]), in testRead() 102 Arrays.equals(new byte[]{}, results[1])); in testRead() 103 assertTrue("Expected: [0, 1, 2, 3, 4, 5] Actual: " + Arrays.toString(results[2]), in testRead() [all …]
|
D | ProtoInputStreamStringTest.java | 70 String[] results = new String[4]; in testRead() local 75 results[0] = pi.readString(fieldId1); in testRead() 78 results[1] = pi.readString(fieldId2); in testRead() 81 results[2] = pi.readString(fieldId3); in testRead() 84 results[3] = pi.readString(fieldId4); in testRead() 95 assertNull(results[0]); in testRead() 96 assertNull(results[1]); in testRead() 97 assertEquals("abcd\u3110!", results[2]); in testRead() 98 assertEquals("Hi", results[3]); in testRead() 196 String[][] results = new String[4][2]; in testRepeated() local [all …]
|
D | ProtoInputStreamBoolTest.java | 66 boolean[] results = new boolean[2]; in testRead() 73 results[1] = pi.readBoolean(fieldId2); in testRead() 84 assertEquals(false, results[0]); in testRead() 85 assertEquals(true, results[1]); in testRead() 178 boolean[][] results = new boolean[3][2]; in testRepeated() 184 results[0][indices[0]++] = pi.readBoolean(fieldId1); in testRepeated() 187 results[1][indices[1]++] = pi.readBoolean(fieldId2); in testRepeated() 190 results[2][indices[2]++] = pi.readBoolean(fieldId3); in testRepeated() 201 assertEquals(false, results[0][0]); in testRepeated() 202 assertEquals(false, results[0][1]); in testRepeated() [all …]
|
/frameworks/base/core/java/android/widget/ |
D | CursorFilter.java | 51 FilterResults results = new FilterResults(); in performFiltering() local 53 results.count = cursor.getCount(); in performFiltering() 54 results.values = cursor; in performFiltering() 56 results.count = 0; in performFiltering() 57 results.values = null; in performFiltering() 59 return results; in performFiltering() 63 protected void publishResults(CharSequence constraint, FilterResults results) { in publishResults() argument 66 if (results.values != null && results.values != oldCursor) { in publishResults() 67 mClient.changeCursor((Cursor) results.values); in publishResults()
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | ScrollCaptureSearchResultsTest.java | 73 ScrollCaptureSearchResults results = new ScrollCaptureSearchResults(mDirectExec); in testNoTargets() local 74 assertTrue(results.isComplete()); in testNoTargets() 76 assertNull("Expected null due to empty queue", results.getTopResult()); in testNoTargets() 81 ScrollCaptureSearchResults results = new ScrollCaptureSearchResults(mDirectExec); in testNoValidTargets() local 94 results.addTarget(target1); in testNoValidTargets() 95 results.addTarget(target2); in testNoValidTargets() 97 assertTrue(results.isComplete()); in testNoValidTargets() 98 assertNull("Expected null due to no valid targets", results.getTopResult()); in testNoValidTargets() 103 ScrollCaptureSearchResults results = new ScrollCaptureSearchResults(mDirectExec); in testSingleTarget() local 110 results.addTarget(target); in testSingleTarget() [all …]
|
D | ViewGroupScrollCaptureTest.java | 123 ScrollCaptureSearchResults results = new ScrollCaptureSearchResults(DIRECT_EXECUTOR); in testDispatchScrollCaptureSearch_noCallback_hintAuto() local 126 viewGroup.dispatchScrollCaptureSearch(localVisibleRect, windowOffset, results::addTarget); in testDispatchScrollCaptureSearch_noCallback_hintAuto() 128 assertTrue(results.isComplete()); in testDispatchScrollCaptureSearch_noCallback_hintAuto() 131 ScrollCaptureTarget target = results.getTopResult(); in testDispatchScrollCaptureSearch_noCallback_hintAuto() 158 ScrollCaptureSearchResults results = new ScrollCaptureSearchResults(DIRECT_EXECUTOR); in testDispatchScrollCaptureSearch_noCallback_hintExclude() local 159 assertTrue(results.isComplete()); in testDispatchScrollCaptureSearch_noCallback_hintExclude() 162 viewGroup.dispatchScrollCaptureSearch(localVisibleRect, windowOffset, results::addTarget); in testDispatchScrollCaptureSearch_noCallback_hintExclude() 166 assertTrue("Results should be empty.", results.isEmpty()); in testDispatchScrollCaptureSearch_noCallback_hintExclude() 191 ScrollCaptureSearchResults results = new ScrollCaptureSearchResults(DIRECT_EXECUTOR); in testDispatchScrollCaptureSearch_withCallback_hintAuto() local 194 viewGroup.dispatchScrollCaptureSearch(localVisibleRect, windowOffset, results::addTarget); in testDispatchScrollCaptureSearch_withCallback_hintAuto() [all …]
|
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/ |
D | BandwidthTest.java | 135 Bundle results = new Bundle(); in downloadFile() local 136 results.putString("device_id", mDeviceId); in downloadFile() 137 results.putString("timestamp", ts); in downloadFile() 138 results.putInt("size", FILE_SIZE); in downloadFile() 139 addStatsToResults(PROF_LABEL, prof_stats, results, mUid); in downloadFile() 140 addStatsToResults(PROC_LABEL, proc_stats, results, mUid); in downloadFile() 141 getInstrumentation().sendStatus(INSTRUMENTATION_IN_PROGRESS, results); in downloadFile() 189 Bundle results = new Bundle(); in uploadFile() local 190 results.putString("device_id", mDeviceId); in uploadFile() 191 results.putString("timestamp", ts); in uploadFile() [all …]
|
/frameworks/native/services/surfaceflinger/tests/ |
D | LayerState_test.cpp | 92 ScreenCaptureResults results; in TEST() local 93 results.buffer = new GraphicBuffer(100, 200, PIXEL_FORMAT_RGBA_8888, 1, 0); in TEST() 94 results.fence = new Fence(dup(fileno(tmpfile()))); in TEST() 95 results.capturedSecureLayers = true; in TEST() 96 results.capturedDataspace = ui::Dataspace::DISPLAY_P3; in TEST() 97 results.result = BAD_VALUE; in TEST() 100 results.writeToParcel(&p); in TEST() 108 ASSERT_EQ(results.buffer->getWidth(), results2.buffer->getWidth()); in TEST() 109 ASSERT_EQ(results.buffer->getHeight(), results2.buffer->getHeight()); in TEST() 110 ASSERT_EQ(results.buffer->getPixelFormat(), results2.buffer->getPixelFormat()); in TEST() [all …]
|
/frameworks/base/tools/powermodel/test/com/android/powermodel/ |
D | CsvParserTest.java | 32 ArrayList<ArrayList<String>> results = new ArrayList<ArrayList<String>>(); field in CsvParserTest.LineCollector 40 results.add(fields); in onLine() 44 private void assertEquals(String[][] expected, ArrayList<ArrayList<String>> results) { in assertEquals() argument 45 final String[][] resultArray = new String[results.size()][]; in assertEquals() 46 for (int i=0; i<results.size(); i++) { in assertEquals() 47 final ArrayList<String> list = results.get(i); in assertEquals() 70 }, collector.results); in testEmpty() 82 }, collector.results); in testOnlyNewline() 96 }, collector.results); in testTwoLines() 110 }, collector.results); in testEscapedEmpty() [all …]
|
/frameworks/base/services/people/java/com/android/server/people/data/ |
D | AggregateEventHistoryImpl.java | 60 List<Event> results = new ArrayList<>(); in queryEvents() local 67 results = combineEventLists(results, queryResults); in queryEvents() 69 return results; in queryEvents() 81 List<Event> results = new ArrayList<>(); in combineEventLists() local 85 results.add(lhs.get(i++)); in combineEventLists() 87 results.add(rhs.get(j++)); in combineEventLists() 91 results.addAll(lhs.subList(i, lhs.size())); in combineEventLists() 93 results.addAll(rhs.subList(j, rhs.size())); in combineEventLists() 95 return results; in combineEventLists()
|
/frameworks/base/core/tests/coretests/src/android/os/ |
D | PerformanceCollectorTest.java | 181 Bundle results = writer.timingResults; in testAddMeasurementLong() local 182 assertEquals(4, results.size()); in testAddMeasurementLong() 183 assertTrue(results.containsKey("testAddMeasurementLongZero")); in testAddMeasurementLong() 184 assertEquals(0, results.getLong("testAddMeasurementLongZero")); in testAddMeasurementLong() 185 assertTrue(results.containsKey("testAddMeasurementLongPos")); in testAddMeasurementLong() 186 assertEquals(348573, results.getLong("testAddMeasurementLongPos")); in testAddMeasurementLong() 187 assertTrue(results.containsKey("testAddMeasurementLongNeg")); in testAddMeasurementLong() 188 assertEquals(-19354, results.getLong("testAddMeasurementLongNeg")); in testAddMeasurementLong() 202 Bundle results = writer.timingResults; in testAddMeasurementFloat() local 203 assertEquals(4, results.size()); in testAddMeasurementFloat() [all …]
|
/frameworks/base/core/tests/coretests/src/android/app/appsearch/ |
D | AppSearchSessionUnitTest.java | 150 List<SearchResult> results = getNextPageFuture.get().getResultValue(); in testGetEmptyNextPage() local 151 assertThat(results).hasSize(1); in testGetEmptyNextPage() 152 assertThat(results.get(0).getGenericDocument()).isEqualTo(document1); in testGetEmptyNextPage() 157 results = getNextPageFuture.get().getResultValue(); in testGetEmptyNextPage() 158 assertThat(results).isEmpty(); in testGetEmptyNextPage() 210 List<SearchResult> results = getNextPageFuture.get().getResultValue(); in testGetEmptyNextPage_multiPages() local 211 assertThat(results).hasSize(2); in testGetEmptyNextPage_multiPages() 212 outDocs.add(results.get(0).getGenericDocument()); in testGetEmptyNextPage_multiPages() 213 outDocs.add(results.get(1).getGenericDocument()); in testGetEmptyNextPage_multiPages() 218 results = getNextPageFuture.get().getResultValue(); in testGetEmptyNextPage_multiPages() [all …]
|