Home
last modified time | relevance | path

Searched refs:results (Results 1 – 25 of 325) sorted by relevance

12345678910>>...13

/frameworks/base/tests/ProtoInputStreamTests/src/com/android/test/protoinputstream/
DProtoInputStreamDoubleTest.java98 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 …]
DProtoInputStreamFloatTest.java89 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 …]
DProtoInputStreamSFixed64Test.java87 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 …]
DProtoInputStreamSInt64Test.java82 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 …]
DProtoInputStreamInt64Test.java85 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 …]
DProtoInputStreamFixed64Test.java87 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 …]
DProtoInputStreamUInt64Test.java84 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 …]
DProtoInputStreamEnumTest.java74 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 …]
DProtoInputStreamSInt32Test.java72 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 …]
DProtoInputStreamInt32Test.java74 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 …]
DProtoInputStreamUInt32Test.java74 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 …]
DProtoInputStreamFixed32Test.java72 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 …]
DProtoInputStreamSFixed32Test.java72 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 …]
DProtoInputStreamBytesTest.java74 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 …]
DProtoInputStreamStringTest.java70 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 …]
DProtoInputStreamBoolTest.java66 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/native/services/surfaceflinger/tests/
DLayerState_test.cpp92 ScreenCaptureResults results; in TEST() local
93 results.buffer = sp<GraphicBuffer>::make(100u, 200u, PIXEL_FORMAT_RGBA_8888, 1u, 0u); in TEST()
94 results.fenceResult = sp<Fence>::make(dup(fileno(tmpfile()))); in TEST()
95 results.capturedSecureLayers = true; in TEST()
96 results.capturedDataspace = ui::Dataspace::DISPLAY_P3; in TEST()
99 results.writeToParcel(&p); in TEST()
107 ASSERT_EQ(results.buffer->getWidth(), results2.buffer->getWidth()); in TEST()
108 ASSERT_EQ(results.buffer->getHeight(), results2.buffer->getHeight()); in TEST()
109 ASSERT_EQ(results.buffer->getPixelFormat(), results2.buffer->getPixelFormat()); in TEST()
110 ASSERT_TRUE(results.fenceResult.ok()); in TEST()
[all …]
/frameworks/base/core/java/android/widget/
DCursorFilter.java51 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/
DScrollCaptureSearchResultsTest.java73 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 …]
DViewGroupScrollCaptureTest.java123 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/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/
DShellInitTest.java55 ArrayList<Integer> results = new ArrayList<>(); in testAddInitCallbacks_expectCalledInOrder() local
57 results.add(1); in testAddInitCallbacks_expectCalledInOrder()
60 results.add(2); in testAddInitCallbacks_expectCalledInOrder()
63 results.add(3); in testAddInitCallbacks_expectCalledInOrder()
66 assertTrue(results.get(0) == 1); in testAddInitCallbacks_expectCalledInOrder()
67 assertTrue(results.get(1) == 2); in testAddInitCallbacks_expectCalledInOrder()
68 assertTrue(results.get(2) == 3); in testAddInitCallbacks_expectCalledInOrder()
84 ArrayList<Integer> results = new ArrayList<>(); in testDoubleInit_expectNoOp() local
86 results.add(1); in testDoubleInit_expectNoOp()
89 assertTrue(results.size() == 1); in testDoubleInit_expectNoOp()
[all …]
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/
DBandwidthTest.java136 Bundle results = new Bundle(); in downloadFile() local
137 results.putString("device_id", mDeviceId); in downloadFile()
138 results.putString("timestamp", ts); in downloadFile()
139 results.putInt("size", FILE_SIZE); in downloadFile()
140 addStatsToResults(PROF_LABEL, prof_stats, results, mUid); in downloadFile()
141 addStatsToResults(PROC_LABEL, proc_stats, results, mUid); in downloadFile()
142 getInstrumentation().sendStatus(INSTRUMENTATION_IN_PROGRESS, results); in downloadFile()
190 Bundle results = new Bundle(); in uploadFile() local
191 results.putString("device_id", mDeviceId); in uploadFile()
192 results.putString("timestamp", ts); in uploadFile()
[all …]
/frameworks/base/tools/powermodel/test/com/android/powermodel/
DCsvParserTest.java32 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/
DAggregateEventHistoryImpl.java60 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/packages/SystemUI/multivalentTests/src/com/android/systemui/keyguard/domain/interactor/
DKeyguardTransitionInteractorTest.kt471 val results by in isInTransitionToState() constant
485 assertThat(results) in isInTransitionToState()
496 assertThat(results) in isInTransitionToState()
508 assertThat(results) in isInTransitionToState()
520 assertThat(results) in isInTransitionToState()
535 assertThat(results) in isInTransitionToState()
549 assertThat(results) in isInTransitionToState()
564 val results by in isInTransitionFromScene() constant
570 assertThat(results) in isInTransitionFromScene()
579 assertThat(results) in isInTransitionFromScene()
[all …]

12345678910>>...13