Home
last modified time | relevance | path

Searched refs:fileLength (Results 1 – 10 of 10) sorted by relevance

/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/opp/
DBluetoothOppReceiveFileInfoTest.java113 long fileLength = 100; in generateFileInfo_wrongHint_fileError() local
124 mCursor.addRow(new Object[] {hint, fileLength, mimeType}); in generateFileInfo_wrongHint_fileError()
161 long fileLength = 100; in generateFileInfo_noInsertUri_returnFileError() local
172 mCursor.addRow(new Object[] {hint, fileLength, mimeType}); in generateFileInfo_noInsertUri_returnFileError()
200 long fileLength = 100; in generateFileInfo_withInsertUri_workCorrectly() local
212 mCursor.addRow(new Object[] {hint, fileLength, mimeType}); in generateFileInfo_withInsertUri_workCorrectly()
235 assertThat(info.mLength).isEqualTo(fileLength); in generateFileInfo_withInsertUri_workCorrectly()
244 long fileLength = 100; in generateFileInfo_longFileName_trimFileName() local
256 mCursor.addRow(new Object[] {hint, fileLength, mimeType}); in generateFileInfo_longFileName_trimFileName()
279 assertThat(info.mLength).isEqualTo(fileLength); in generateFileInfo_longFileName_trimFileName()
DBluetoothOppSendFileInfoTest.java142 long fileLength = 0; in generateFileInfo_withUncorrectableMismatch_returnsSendFileInfoError() local
150 mCursor.addRow(new Object[] {fileName, fileLength}); in generateFileInfo_withUncorrectableMismatch_returnsSendFileInfoError()
174 long fileLength = 0; in generateFileInfo_withCorrectableMismatch_returnInfoWithCorrectLength() local
183 mCursor.addRow(new Object[] {fileName, fileLength}); in generateFileInfo_withCorrectableMismatch_returnInfoWithCorrectLength()
/packages/apps/Test/connectivity/PMC/src/com/android/pmc/
DWifiDownloadReceiver.java117 int fileLength = connection.getContentLength(); in doInBackground() local
119 if (fileLength != bytesRead) { in doInBackground()
120 return "Expected file of size " + fileLength + " but only received " in doInBackground()
123 Log.d(PMCMainActivity.TAG, "Downloaded file size " + fileLength); in doInBackground()
125 mBytesCount += fileLength; in doInBackground()
/packages/apps/Camera2/src/com/android/camera/session/
DStackSaverImpl.java74 long fileLength = outputImagePath.length(); in saveStackedImage() local
75 if (fileLength > 0) { in saveStackedImage()
77 captureTimeEpoch, mGpsLocation, imageOrientation, fileLength, bitmap, in saveStackedImage()
/packages/apps/Camera2/tests/src/com/android/camera/functional/
DImageCaptureIntentTest.java87 int fileLength = (int) file.length(); in testExtraOutput() local
88 assertTrue(fileLength > 0); in testExtraOutput()
89 jpegData = new byte[fileLength]; in testExtraOutput()
/packages/apps/LegacyCamera/tests/src/com/android/camera/functional/
DImageCaptureIntentTest.java88 int fileLength = (int) file.length(); in testExtraOutput() local
89 assertTrue(fileLength > 0); in testExtraOutput()
90 jpegData = new byte[fileLength]; in testExtraOutput()
/packages/modules/OnDevicePersonalization/federatedcompute/src/com/android/federatedcompute/services/common/
DFileUtils.java71 long fileLength = file.length(); in readFileAsByteArray() local
72 ByteArrayOutputStream outputStream = new ByteArrayOutputStream((int) fileLength); in readFileAsByteArray()
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/exif/
DExifInterface.java1034 long fileLength = file.length(); in rewriteExif() local
1035 if (fileLength < exifSize) { in rewriteExif()
/packages/apps/Messaging/src/com/android/messaging/util/exif/
DExifInterface.java1034 long fileLength = file.length(); in rewriteExif() local
1035 if (fileLength < exifSize) { in rewriteExif()
/packages/apps/Camera2/src/com/android/camera/exif/
DExifInterface.java1019 long fileLength = file.length(); in rewriteExif() local
1020 if (fileLength < exifSize) { in rewriteExif()