Searched refs:initialLength (Results 1 - 2 of 2) sorted by relevance

/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
H A DPublicApiFunctionalTest.java182 int initialLength = 5;
183 enqueueInterruptedDownloadResponses(initialLength);
187 assertEquals(initialLength,
199 headers.contains("Range: bytes=" + initialLength + "-"));
212 private void enqueueInterruptedDownloadResponses(int initialLength) { argument
213 // the first response has normal headers but unexpectedly closes after initialLength bytes
214 enqueueResponse(buildPartialResponse(0, initialLength));
216 enqueueResponse(buildPartialResponse(initialLength, FILE_CONTENT.length()));
/packages/apps/UnifiedEmail/src/com/android/mail/providers/
H A DAccount.java513 final int initialLength = cursor.getCount();
514 if (initialLength <= 0 || !cursor.moveToFirst()) {
519 final Account[] allAccounts = new Account[initialLength];
525 assert (i == initialLength);

Completed in 186 milliseconds