Home
last modified time | relevance | path

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

/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
DPublicApiFunctionalTest.java188 int initialLength = 5; in testInterruptedDownload() local
189 enqueueInterruptedDownloadResponses(initialLength); in testInterruptedDownload()
193 assertEquals(initialLength, in testInterruptedDownload()
205 headers.contains("Range: bytes=" + initialLength + "-")); in testInterruptedDownload()
218 private void enqueueInterruptedDownloadResponses(int initialLength) { in enqueueInterruptedDownloadResponses() argument
220 enqueueResponse(buildPartialResponse(0, initialLength)); in enqueueInterruptedDownloadResponses()
222 enqueueResponse(buildPartialResponse(initialLength, FILE_CONTENT.length())); in enqueueInterruptedDownloadResponses()
/packages/apps/UnifiedEmail/src/com/android/mail/providers/
DAccount.java533 final int initialLength = cursor.getCount(); in getAllAccounts() local
534 if (initialLength <= 0 || !cursor.moveToFirst()) { in getAllAccounts()
539 final Account[] allAccounts = new Account[initialLength]; in getAllAccounts()
545 assert (i == initialLength); in getAllAccounts()