/frameworks/base/core/tests/coretests/src/android/app/ |
D | DownloadManagerFunctionalTest.java | 95 int fileSize = 1024; in testBinaryDownloadToSystemCache() local 96 byte[] blobData = generateData(fileSize, DataType.BINARY); in testBinaryDownloadToSystemCache() 108 int fileSize = 1024; in testTextDownloadToSystemCache() local 109 byte[] blobData = generateData(fileSize, DataType.TEXT); in testTextDownloadToSystemCache() 127 int fileSize = fileData.length; in verifyDownload() local 134 verifyFileSize(pfd, fileSize); in verifyDownload() 307 int fileSize = 1024; in testRemoveDownload() local 308 byte[] blobData = generateData(fileSize, DataType.BINARY); in testRemoveDownload() 327 int fileSize = 1024; in testSetTitle() local 328 byte[] blobData = generateData(fileSize, DataType.BINARY); in testSetTitle() [all …]
|
D | DownloadManagerStressTest.java | 120 long fileSize = 50000000L; // note: kept relatively small to not exceed /cache dir size in testDownloadLargeFile() local 121 Log.i(TAG, "creating a file of size: " + fileSize); in testDownloadLargeFile() 122 File largeFile = createFileOnSD(null, fileSize, DataType.TEXT, null); in testDownloadLargeFile() 123 Log.i(TAG, "DONE creating a file of size: " + fileSize); in testDownloadLargeFile()
|
D | DownloadManagerBaseTest.java | 351 long fileSize = actual.getStatSize(); in verifyFileContents() local 353 assertTrue(fileSize <= Integer.MAX_VALUE); in verifyFileContents() 354 assertEquals(expected.length, fileSize); in verifyFileContents() 357 assertEquals(input.read(actualData), fileSize); in verifyFileContents() local 484 int fileSize = fileData.length; in verifyAndCleanupSingleFileDownload() local 492 verifyFileSize(pfd, fileSize); in verifyAndCleanupSingleFileDownload() 587 protected File createFileOnSD(String filename, long fileSize, DataType type, in createFileOnSD() argument 610 long remaining = fileSize; in createFileOnSD() 628 Log.i(TAG, "while creating " + fileSize + " file, " + in createFileOnSD()
|
/frameworks/native/opengl/libs/EGL/ |
D | egl_cache.cpp | 248 size_t fileSize = headerSize + cacheSize; in saveBlobCacheLocked() local 250 uint8_t* buf = new uint8_t [fileSize]; in saveBlobCacheLocked() 275 if (write(fd, buf, fileSize) == -1) { in saveBlobCacheLocked() 311 size_t fileSize = statBuf.st_size; in loadBlobCacheLocked() local 312 if (fileSize > maxTotalSize * 2) { in loadBlobCacheLocked() 318 uint8_t* buf = reinterpret_cast<uint8_t*>(mmap(NULL, fileSize, in loadBlobCacheLocked() 328 size_t cacheSize = fileSize - headerSize; in loadBlobCacheLocked() 346 munmap(buf, fileSize); in loadBlobCacheLocked() 351 munmap(buf, fileSize); in loadBlobCacheLocked()
|
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/base/ |
D | InputStreamSource.java | 64 int fileSize = 0; in process() local 74 fileSize += bytesRead; in process() 83 mOutputFormat.setDimensions(fileSize); in process()
|
/frameworks/av/libvideoeditor/osal/src/ |
D | LVOSA_FileReader_optim.c | 93 M4OSA_FilePosition fileSize; /**< Size of the file */ member 242 if(pos >= apContext->fileSize) in M4OSA_FileReader_BufferFill() 446 (M4OSA_DataOption*) &apContext->fileSize); in M4OSA_FileReader_CalculateSize() 464 apContext->fileSize = apContext->FS->pFctPtr_Tell(apContext->aFileDesc, &errno); in M4OSA_FileReader_CalculateSize() 465 apContext->readFilePos = apContext->fileSize; in M4OSA_FileReader_CalculateSize() 610 apContext->fileSize = 0; in M4OSA_fileReadOpen_optim() 687 if((*pSize > 0) && (apContext->absolutePos >= apContext->fileSize)) in M4OSA_fileReadData_optim() 874 apContext->absolutePos = apContext->fileSize + *pPosition; in M4OSA_fileReadSeek_optim() 879 if(((apContext->absolutePos + *pPosition) > apContext->fileSize) || in M4OSA_fileReadSeek_optim() 1023 (*(M4OSA_UInt32 *)pOptionValue) = apContext->fileSize; in M4OSA_fileReadGetOption_optim() [all …]
|
/frameworks/base/media/java/android/media/ |
D | MediaScannerClient.java | 24 public void scanFile(String path, long lastModified, long fileSize, in scanFile() argument
|
D | MediaScanner.java | 443 long fileSize, boolean isDirectory, boolean noMedia) { in beginFile() argument 446 mFileSize = fileSize; in beginFile() 517 public void scanFile(String path, long lastModified, long fileSize, 521 doScanFile(path, null, lastModified, fileSize, isDirectory, false, noMedia); 525 long fileSize, boolean isDirectory, boolean scanAlways, boolean noMedia) { 530 fileSize, isDirectory, noMedia);
|
/frameworks/base/packages/SharedStorageBackup/src/com/android/sharedstoragebackup/ |
D | ObbBackupService.java | 106 long fileSize, int type, String path, long mode, long mtime, 117 FullBackup.restoreFile(data, fileSize, type, -1, mtime, outFile);
|
/frameworks/base/core/java/com/android/internal/backup/ |
D | IObbBackupService.aidl | 43 long fileSize, int type, in String path, long mode, long mtime, in restoreObbFile() argument
|
/frameworks/base/core/tests/coretests/src/android/content/pm/ |
D | AppCacheTest.java | 271 long getFileNumBlocks(long fileSize, long blkSize) { in getFileNumBlocks() argument 272 long ret = fileSize/blkSize; in getFileNumBlocks() 273 if(ret*blkSize < fileSize) { in getFileNumBlocks() 353 long fileSize = createdFileBlks-existingFileBlks; in testAppCacheClear() local 355 if(localLOGV) Log.i(TAG, "deletedFileBlks="+fileSize+" shouldFreeBlks="+shouldFree); in testAppCacheClear() 356 if((fileSize > (shouldFree-blkSize) && (fileSize < (shouldFree+blkSize)))) { in testAppCacheClear()
|
/frameworks/base/media/jni/ |
D | android_media_MediaScanner.cpp | 147 long long fileSize, bool isDirectory, bool noMedia) in scanFile() argument 150 path, lastModified, fileSize, isDirectory); in scanFile() 159 fileSize, isDirectory, noMedia); in scanFile()
|
/frameworks/av/include/media/ |
D | mediascanner.h | 92 long long fileSize, bool isDirectory, bool noMedia) = 0;
|
/frameworks/av/media/libstagefright/ |
D | MP3Extractor.cpp | 339 off64_t fileSize; in MP3Extractor() local 340 if (mDataSource->getSize(&fileSize) == OK) { in MP3Extractor() 341 durationUs = 8000LL * (fileSize - mFirstFramePos) / bitrate; in MP3Extractor()
|
/frameworks/base/core/jni/ |
D | com_android_internal_content_NativeLibraryHelper.cpp | 99 isFileDifferent(const char* filePath, size_t fileSize, time_t modifiedTime, in isFileDifferent() argument 112 if (st->st_size != fileSize) { in isFileDifferent()
|
/frameworks/base/libs/androidfw/ |
D | BackupHelpers.cpp | 223 int fileSize; in write_update_file() local 231 fileSize = lseek(fd, 0, SEEK_END); in write_update_file() 238 bytesLeft = fileSize + sizeof(metadata); in write_update_file() 284 " You aren't doing proper locking!", realFilename, fileSize, fileSize-bytesLeft); in write_update_file()
|
/frameworks/av/cmds/stagefright/ |
D | stagefright.cpp | 836 off64_t fileSize = lseek64(fd, 0, SEEK_END); in main() local 837 CHECK_GE(fileSize, 0ll); in main() 839 CHECK_EQ(retriever->setDataSource(fd, 0, fileSize), (status_t)OK); in main()
|
/frameworks/av/libvideoeditor/vss/stagefrightshells/src/ |
D | VideoEditor3gpReader.cpp | 1498 off64_t fileSize = 0; in VideoEditor3gpReader_getNextStreamHandler() local 1499 pC->mDataSource->getSize(&fileSize); in VideoEditor3gpReader_getNextStreamHandler() 1500 pC->mFileSize = fileSize; in VideoEditor3gpReader_getNextStreamHandler()
|
/frameworks/base/media/jni/mediaeditor/ |
D | VideoEditorMain.cpp | 3362 M4OSA_UInt32 fileSize = 0; in M4MA_generateAudioGraphFile() local 3397 (M4OSA_Void**)&fileSize); in M4MA_generateAudioGraphFile() 3501 if ((((totalBytesRead*100)/fileSize)) != prevProgress) { in M4MA_generateAudioGraphFile() 3513 prevProgress = (((totalBytesRead*100)/fileSize)); in M4MA_generateAudioGraphFile()
|
/frameworks/base/media/java/android/media/videoeditor/ |
D | VideoEditorImpl.java | 412 final long fileSize = (mDurationMs * (bitrate + audioBitrate)) / 8000; in export() local 413 if (MAX_SUPPORTED_FILE_SIZE <= fileSize) { in export()
|
/frameworks/base/services/java/com/android/server/ |
D | BackupManagerService.java | 2378 long fileSize, int type, String path, long mode, long mtime, in restoreObbFile() argument 2383 mService.restoreObbFile(pkgName, data, fileSize, type, path, mode, mtime, in restoreObbFile()
|
/frameworks/base/docs/html/google/play/ |
D | expansion-files.jd | 689 <li>{@code doesFileExist(Context c, String fileName, long fileSize)}</li>
|