Home
last modified time | relevance | path

Searched refs:currentBytes (Results 1 – 13 of 13) sorted by relevance

/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/
DJobPanelControllerTest.kt89 currentBytes = 0, in testSingleJob()
102 currentBytes = 4 in testSingleJob()
113 currentBytes = 10 in testSingleJob()
132 currentBytes = 0, in testMultipleJobs()
141 currentBytes = 0, in testMultipleJobs()
154 currentBytes = 4 in testMultipleJobs()
165 currentBytes = 10 in testMultipleJobs()
176 currentBytes = 30 in testMultipleJobs()
187 currentBytes = 40 in testMultipleJobs()
/packages/apps/DocumentsUI/src/com/android/documentsui/
DJobPanelController.kt120 var currentBytes = 0L in <lambda>() variable
131 if (jobProgress.requiredBytes != -1L && jobProgress.currentBytes != -1L) { in <lambda>()
133 currentBytes += jobProgress.currentBytes in <lambda>()
141 mTotalProgress = (MAX_PROGRESS * currentBytes / requiredBytes).toInt() in <lambda>()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/
DMutableJobProgress.kt26 var currentBytes: Long = -1, variable in com.android.documentsui.testing.MutableJobProgress
31 JobProgress(id, state, msg, hasFailures, currentBytes, requiredBytes, msRemaining)
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/opp/
DBluetoothOppObexClientSessionTest.java110 int currentBytes = 42; in startThenStop_startsAndStopsClientThread() local
126 currentBytes, in startThenStop_startsAndStopsClientThread()
178 int currentBytes = 42; in clientThreadSendFile_clientSessionDisconnected_returnsObexDataError() local
194 currentBytes, in clientThreadSendFile_clientSessionDisconnected_returnsObexDataError()
DBluetoothOppObexServerSessionTest.java151 int currentBytes = 42; in addShare_updatesShareInfo() local
167 currentBytes, in addShare_updatesShareInfo()
264 int currentBytes = 42; in onPut_returnsObexHttpOk() local
280 currentBytes, in onPut_returnsObexHttpOk()
/packages/apps/DocumentsUI/src/com/android/documentsui/services/
DJobProgress.kt31 @JvmField val currentBytes: Long = -1, constant in com.android.documentsui.services.JobProgress
46 writeLong(currentBytes) in writeToParcel()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/opp/
DBluetoothOppShareInfo.java83 long currentBytes, in BluetoothOppShareInfo() argument
97 mCurrentBytes = currentBytes; in BluetoothOppShareInfo()
DBluetoothOppUtility.java344 public static String formatProgressText(long totalBytes, long currentBytes) { in formatProgressText() argument
349 percent = currentBytes / (double) totalBytes; in formatProgressText()
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/services/
DAbstractCopyJobTest.java88 assertEquals(HAM_BYTES.length + FRUITY_BYTES.length, progress.currentBytes); in runCopyFilesTest()
109 assertEquals(FRUITY_BYTES.length, progress.currentBytes); in runCopyVirtualTypedFileTest()
131 assertEquals(0, progress.currentBytes); in runCopyVirtualNonTypedFileTest()
156 assertEquals(-1, progress.currentBytes); in runCopyEmptyDirTest()
DCopyJobTest.java66 assertEquals(-1, progress.currentBytes); in testCopy_BackendSideVirtualTypedFile_Fallback()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadThread.java759 final long currentBytes = mInfoDelta.mCurrentBytes; in updateProgress() local
763 final long sampleSpeed = ((currentBytes - mSpeedSampleBytes) * 1000) in updateProgress()
778 mSpeedSampleBytes = currentBytes; in updateProgress()
781 final long bytesDelta = currentBytes - mLastUpdateBytes; in updateProgress()
790 mLastUpdateBytes = currentBytes; in updateProgress()
DDownloadNotifier.java315 final long currentBytes = cursor.getLong(UpdateQuery.CURRENT_BYTES); in updateWithLocked() local
319 current += currentBytes; in updateWithLocked()
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/
DJobPanelUiTest.kt82 currentBytes = 4, in testJobPanelAppearsOnClick()