Lines Matching refs:uids

67         final int[] uids = {1, 22, 333, 4444, 5555};
70 final long[][] times = increaseTime(new long[uids.length][cores]);
71 when(mProcReader.readBytes()).thenReturn(getUidTimesBytes(uids, clusters, times));
73 for (int i = 0; i < uids.length; i++) {
74 cb.verify(uids[i], getTotal(clusters, times[i]));
82 when(mProcReader.readBytes()).thenReturn(getUidTimesBytes(uids, clusters, times1));
84 for (int i = 0; i < uids.length; i++) {
85 cb.verify(uids[i], getTotal(clusters, subtract(times1[i], times[i])));
92 when(mProcReader.readBytes()).thenReturn(getUidTimesBytes(uids, clusters, times1));
99 when(mProcReader.readBytes()).thenReturn(getUidTimesBytes(uids, clusters, times2));
107 when(mProcReader.readBytes()).thenReturn(getUidTimesBytes(uids, clusters, times3));
109 for (int i = 0; i < uids.length; i++) {
110 cb.verify(uids[i], getTotal(clusters, subtract(times3[i], times2[i])));
121 final int[] uids = {1, 22, 333, 4444, 5555};
124 final long[][] times = increaseTime(new long[uids.length][cores]);
125 when(mProcReader.readBytes()).thenReturn(getUidTimesBytes(uids, clusters, times));
127 for (int i = 0; i < uids.length; i++) {
128 cb.verify(uids[i], getTotal(clusters, times[i]));
136 when(mProcReader.readBytes()).thenReturn(getUidTimesBytes(uids, clusters, times1));
138 for (int i = 0; i < uids.length; i++) {
139 cb.verify(uids[i], getTotal(clusters, times1[i]));
148 final int[] uids = {1, 22, 333, 4444, 5555};
151 final long[][] times = increaseTime(new long[uids.length][cores]);
152 when(mProcReader.readBytes()).thenReturn(getUidTimesBytes(uids, clusters, times));
154 for (int i = 0; i < uids.length; i++) {
155 mCallback.verify(uids[i], getTotal(clusters, times[i]));
163 final long[][] times1 = new long[uids.length][];
167 when(mProcReader.readBytes()).thenReturn(getUidTimesBytes(uids, clusters, times1));
176 when(mProcReader.readBytes()).thenReturn(getUidTimesBytes(uids, clusters, times2));
178 for (int i = 0; i < uids.length; i++) {
179 mCallback.verify(uids[i], getTotal(clusters, subtract(times2[i], times[i])));
187 times3[uids.length - 1][cores - 1] *= -1;
188 when(mProcReader.readBytes()).thenReturn(getUidTimesBytes(uids, clusters, times3));
190 for (int i = 0; i < uids.length - 1; i++) {
191 mCallback.verify(uids[i], getTotal(clusters, subtract(times3[i], times2[i])));
199 times3[uids.length - 1][i] = times2[uids.length - 1][i] + uids[uids.length - 1] * 2520;
201 when(mProcReader.readBytes()).thenReturn(getUidTimesBytes(uids, clusters, times3));
203 mCallback.verify(uids[uids.length - 1],
204 getTotal(clusters, subtract(times3[uids.length - 1], times2[uids.length - 1])));
210 System.arraycopy(times3[uids.length - 1], 0, times4[uids.length - 1], 0, cores);
211 times4[uids.length - 1][cores - 1] -= 100;
212 when(mProcReader.readBytes()).thenReturn(getUidTimesBytes(uids, clusters, times4));
214 for (int i = 0; i < uids.length - 1; i++) {
215 mCallback.verify(uids[i], getTotal(clusters, subtract(times4[i], times3[i])));
223 times4[uids.length - 1][i] = times3[uids.length - 1][i] + uids[uids.length - 1] * 2520;
225 when(mProcReader.readBytes()).thenReturn(getUidTimesBytes(uids, clusters, times4));
227 mCallback.verify(uids[uids.length - 1],
228 getTotal(clusters, subtract(times3[uids.length - 1], times2[uids.length - 1])));
301 * Format uids and times (in 10ms) into the following format:
308 private ByteBuffer getUidTimesBytes(int[] uids, int[] clusters, long[][] times) {
309 int size = (1 + clusters.length + uids.length * (times[0].length + 1)) * 4;
316 for (int i = 0; i < uids.length; i++) {
317 buf.putInt(uids[i]);