/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 | 245 size_t fileSize = headerSize + cacheSize; in saveBlobCacheLocked() local 247 uint8_t* buf = new uint8_t [fileSize]; in saveBlobCacheLocked() 271 if (write(fd, buf, fileSize) == -1) { in saveBlobCacheLocked() 307 size_t fileSize = statBuf.st_size; in loadBlobCacheLocked() local 308 if (fileSize > maxTotalSize * 2) { in loadBlobCacheLocked() 314 uint8_t* buf = reinterpret_cast<uint8_t*>(mmap(NULL, fileSize, in loadBlobCacheLocked() 324 size_t cacheSize = fileSize - headerSize; in loadBlobCacheLocked() 341 munmap(buf, fileSize); in loadBlobCacheLocked() 346 munmap(buf, fileSize); in loadBlobCacheLocked()
|
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/base/ |
D | InputStreamSource.java | 63 int fileSize = 0; in process() local 73 fileSize += bytesRead; in process() 82 mOutputFormat.setDimensions(fileSize); in process()
|
/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/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/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/media/jni/ |
D | android_media_MediaScanner.cpp | 149 long long fileSize, bool isDirectory, bool noMedia) in scanFile() argument 152 path, lastModified, fileSize, isDirectory); in scanFile() 161 fileSize, isDirectory, noMedia); in scanFile()
|
/frameworks/av/include/media/ |
D | mediascanner.h | 118 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/libs/androidfw/ |
D | BackupHelpers.cpp | 223 int fileSize; in write_update_file() local 229 fileSize = lseek(fd, 0, SEEK_END); in write_update_file() 236 bytesLeft = fileSize + sizeof(metadata); in write_update_file() 282 " You aren't doing proper locking!", realFilename, fileSize, fileSize-bytesLeft); in write_update_file()
|
/frameworks/base/core/jni/ |
D | com_android_internal_content_NativeLibraryHelper.cpp | 107 isFileDifferent(const char* filePath, size_t fileSize, time_t modifiedTime, in isFileDifferent() argument 120 if (st->st_size != fileSize) { in isFileDifferent()
|
/frameworks/av/cmds/stagefright/ |
D | stagefright.cpp | 835 off64_t fileSize = lseek64(fd, 0, SEEK_END); in main() local 836 CHECK_GE(fileSize, 0ll); in main() 838 CHECK_EQ(retriever->setDataSource(fd, 0, fileSize), (status_t)OK); in main()
|
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/ |
D | DocumentsActivity.java | 551 final MenuItem fileSize = menu.findItem(R.id.menu_file_size); in onPrepareOptionsMenu() local 606 fileSize.setTitle(LocalPreferences.getDisplayFileSize(this) in onPrepareOptionsMenu() 610 fileSize.setVisible(fileSizeVisible); in onPrepareOptionsMenu()
|
/frameworks/base/services/backup/java/com/android/server/backup/ |
D | BackupManagerService.java | 3035 long fileSize, int type, String path, long mode, long mtime, in restoreObbFile() argument 3040 mService.restoreObbFile(pkgName, data, fileSize, type, path, mode, mtime, in restoreObbFile()
|
/frameworks/base/docs/html/google/play/ |
D | expansion-files.jd | 695 <li>{@code doesFileExist(Context c, String fileName, long fileSize)}</li>
|