Home
last modified time | relevance | path

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

12345678910>>...12

/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 …]
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 …]
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 …]
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 …]
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 …]
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 …]
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 …]
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 …]
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 …]
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 …]
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 …]
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 …]
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/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/scanner/
DScanScheduleUtilFilterTest.java132 ScanData[] results = ScanScheduleUtil.filterResultsForSettings(mChannelHelper, in filterScanDataEmptyWithNoBucketInfo() local
134 assertScanDataFreqsEquals(null, results); in filterScanDataEmptyWithNoBucketInfo()
144 ScanData[] results = ScanScheduleUtil.filterResultsForSettings(mChannelHelper, in filterScanDataSingleNotMatchingWithNoBucketInfo() local
146 assertScanDataFreqsEquals(null, results); in filterScanDataSingleNotMatchingWithNoBucketInfo()
156 ScanData[] results = ScanScheduleUtil.filterResultsForSettings(mChannelHelper, in filterScanDataSingleNotMatchingWithDefinitlyScannedBucketIndex() local
158 assertScanDataFreqsEquals(new int[][]{ { } }, results); in filterScanDataSingleNotMatchingWithDefinitlyScannedBucketIndex()
168 ScanData[] results = ScanScheduleUtil.filterResultsForSettings(mChannelHelper, in filterScanDataSingleNotMatchingWithBucketDefinitlyScanned() local
170 assertScanDataFreqsEquals(new int[][]{ { } }, results); in filterScanDataSingleNotMatchingWithBucketDefinitlyScanned()
180 ScanData[] results = ScanScheduleUtil.filterResultsForSettings(mChannelHelper, in filterScanDataSingleMatchingWithNoBucketInfo() local
183 assertScanDataFreqsEquals(new int[][]{ { 2412 } }, results); in filterScanDataSingleMatchingWithNoBucketInfo()
[all …]
/frameworks/base/packages/Tethering/src/com/android/networkstack/tethering/
DOffloadHardwareInterface.java250 final CbResults results = new CbResults(); in initOffloadConfig() local
254 results.mSuccess = success; in initOffloadConfig()
255 results.mErrMsg = errMsg; in initOffloadConfig()
265 record("initOffloadConfig, setHandles results:", results); in initOffloadConfig()
266 return results.mSuccess; in initOffloadConfig()
314 final CbResults results = new CbResults(); in initOffloadControl() local
319 results.mSuccess = success; in initOffloadControl()
320 results.mErrMsg = errMsg; in initOffloadControl()
327 record(logmsg, results); in initOffloadControl()
328 return results.mSuccess; in initOffloadControl()
[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/bandwidthtests/src/com/android/bandwidthtest/
DBandwidthTest.java135 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/base/services/net/java/android/net/util/
DDhcpResultsCompatUtil.java45 final DhcpResults results = new DhcpResults(p.baseConfiguration); in fromStableParcelable()
46 results.leaseDuration = p.leaseDuration; in fromStableParcelable()
47 results.mtu = p.mtu; in fromStableParcelable()
48 results.serverAddress = (Inet4Address) unparcelAddress(p.serverAddress); in fromStableParcelable()
49 results.vendorInfo = p.vendorInfo; in fromStableParcelable()
50 results.serverHostName = p.serverHostName; in fromStableParcelable()
51 results.captivePortalApiUrl = p.captivePortalApiUrl; in fromStableParcelable()
52 return results; in fromStableParcelable()
/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/cmds/statsd/tests/
DUidMap_test.cpp173 static void protoOutputStreamToUidMapping(ProtoOutputStream* proto, UidMapping* results) { in protoOutputStreamToUidMapping() argument
184 results->ParseFromArray(bytes.data(), bytes.size()); in protoOutputStreamToUidMapping()
213 UidMapping results; in TEST() local
214 protoOutputStreamToUidMapping(&proto, &results); in TEST()
215 ASSERT_EQ(1, results.snapshots_size()); in TEST()
216 EXPECT_EQ("v1", results.snapshots(0).package_info(0).version_string()); in TEST()
241 UidMapping results; in TEST() local
242 protoOutputStreamToUidMapping(&proto, &results); in TEST()
243 ASSERT_EQ(1, results.snapshots(0).package_info_size()); in TEST()
244 EXPECT_EQ(true, results.snapshots(0).package_info(0).deleted()); in TEST()
[all …]
/frameworks/base/wifi/java/android/net/wifi/
DRttManager.java764 public ParcelableRttResults(RttResult[] results) { in ParcelableRttResults() argument
765 mResults = results; in ParcelableRttResults()
874 RttResult results[] = new RttResult[num];
876 results[i] = new RttResult();
877 results[i].bssid = in.readString();
878 results[i].burstNumber = in.readInt();
879 results[i].measurementFrameNumber = in.readInt();
880 results[i].successMeasurementFrameNumber = in.readInt();
881 results[i].frameNumberPerBurstPeer = in.readInt();
882 results[i].status = in.readInt();
[all …]

12345678910>>...12