Searched refs:fileSize (Results 1 - 25 of 25) sorted by relevance

/frameworks/base/media/java/android/media/
H A DMediaScannerClient.java24 public void scanFile(String path, long lastModified, long fileSize, argument
H A DMediaScanner.java476 long fileSize, boolean isDirectory, boolean noMedia) {
479 mFileSize = fileSize;
550 public void scanFile(String path, long lastModified, long fileSize, argument
554 doScanFile(path, null, lastModified, fileSize, isDirectory, false, noMedia);
558 long fileSize, boolean isDirectory, boolean scanAlways, boolean noMedia) {
563 fileSize, isDirectory, noMedia);
475 beginFile(String path, String mimeType, long lastModified, long fileSize, boolean isDirectory, boolean noMedia) argument
557 doScanFile(String path, String mimeType, long lastModified, long fileSize, boolean isDirectory, boolean scanAlways, boolean noMedia) argument
/frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/
H A DMtpDeviceRecord.java58 static boolean isPartialReadSupported(@Nullable int[] supportedList, long fileSize) { argument
62 if (0 <= fileSize &&
63 fileSize <= 0xffffffffL &&
H A DMtpDocumentsProvider.java249 long fileSize;
251 fileSize = getFileSize(documentId);
253 fileSize = -1;
256 device.operationsSupported, fileSize)) {
/frameworks/base/core/java/android/util/apk/
H A DZipUtils.java66 long fileSize = zip.length();
67 if (fileSize < ZIP_EOCD_REC_MIN_SIZE) {
113 long fileSize = zip.length();
114 if (fileSize < ZIP_EOCD_REC_MIN_SIZE) {
119 maxCommentSize = (int) Math.min(maxCommentSize, fileSize - ZIP_EOCD_REC_MIN_SIZE);
123 long bufOffsetInFile = fileSize - buf.capacity();
/frameworks/base/core/tests/coretests/src/android/app/
H A DDownloadManagerFunctionalTest.java99 int fileSize = 1024;
100 byte[] blobData = generateData(fileSize, DataType.BINARY);
112 int fileSize = 1024;
113 byte[] blobData = generateData(fileSize, DataType.TEXT);
131 int fileSize = fileData.length;
138 verifyFileSize(pfd, fileSize);
318 int fileSize = 1024;
319 byte[] blobData = generateData(fileSize, DataType.BINARY);
338 int fileSize = 1024;
339 byte[] blobData = generateData(fileSize, DataTyp
[all...]
H A DDownloadManagerStressTest.java122 long fileSize = 50000000L; // note: kept relatively small to not exceed /cache dir size
123 Log.i(TAG, "creating a file of size: " + fileSize);
124 File largeFile = createFileOnSD(null, fileSize, DataType.TEXT, null);
125 Log.i(TAG, "DONE creating a file of size: " + fileSize);
H A DDownloadManagerBaseTest.java350 long fileSize = actual.getStatSize();
352 assertTrue(fileSize <= Integer.MAX_VALUE);
353 assertEquals(expected.length, fileSize);
356 assertEquals(input.read(actualData), fileSize);
483 int fileSize = fileData.length;
491 verifyFileSize(pfd, fileSize);
586 protected File createFileOnSD(String filename, long fileSize, DataType type, argument
609 long remaining = fileSize;
627 Log.i(TAG, "while creating " + fileSize + " file, " +
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/base/
H A DInputStreamSource.java63 int fileSize = 0;
73 fileSize += bytesRead;
82 mOutputFormat.setDimensions(fileSize);
/frameworks/base/core/java/com/android/internal/backup/
H A DIObbBackupService.aidl43 long fileSize, int type, in String path, long mode, long mtime,
/frameworks/native/opengl/libs/EGL/
H A Degl_cache.cpp246 size_t fileSize = headerSize + cacheSize; local
248 uint8_t* buf = new uint8_t [fileSize];
272 if (write(fd, buf, fileSize) == -1) {
308 size_t fileSize = statBuf.st_size; local
309 if (fileSize > maxTotalSize * 2) {
316 uint8_t* buf = reinterpret_cast<uint8_t*>(mmap(NULL, fileSize,
326 size_t cacheSize = fileSize - headerSize;
343 munmap(buf, fileSize);
348 munmap(buf, fileSize);
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
H A DWifiCertManager.java117 final long fileSize = file.exists() ? file.length() : 0;
118 if (fileSize == 0 || fileSize >= Integer.MAX_VALUE) {
/frameworks/base/packages/SharedStorageBackup/src/com/android/sharedstoragebackup/
H A DObbBackupService.java106 long fileSize, int type, String path, long mode, long mtime,
117 FullBackup.restoreFile(data, fileSize, type, -1, mtime, outFile);
/frameworks/av/include/media/
H A Dmediascanner.h118 long long fileSize, bool isDirectory, bool noMedia) = 0;
/frameworks/base/media/jni/
H A Dandroid_media_MediaScanner.cpp149 long long fileSize, bool isDirectory, bool noMedia)
152 path, lastModified, fileSize, isDirectory);
161 fileSize, isDirectory, noMedia);
148 scanFile(const char* path, long long lastModified, long long fileSize, bool isDirectory, bool noMedia) argument
/frameworks/base/packages/Osu/src/com/android/hotspot2/osu/
H A DSPVerifier.java110 int fileSize = -1;
124 fileSize = (int) castObject(first, Asn1Integer.class).getValue();
142 mFileSize = complement(fileSize);
180 ", fileSize=" + mFileSize +
/frameworks/base/core/tests/coretests/src/android/content/pm/
H A DAppCacheTest.java273 long getFileNumBlocks(long fileSize, long blkSize) { argument
274 long ret = fileSize/blkSize;
275 if(ret*blkSize < fileSize) {
355 long fileSize = createdFileBlks-existingFileBlks;
356 //verify fileSize number of bytes have been cleared from cache
357 if(localLOGV) Log.i(TAG, "deletedFileBlks="+fileSize+" shouldFreeBlks="+shouldFree);
358 if((fileSize > (shouldFree-blkSize) && (fileSize < (shouldFree+blkSize)))) {
/frameworks/av/media/libstagefright/
H A DMP3Extractor.cpp352 off64_t fileSize; local
353 if (mDataSource->getSize(&fileSize) == OK) {
354 off64_t dataLength = fileSize - mFirstFramePos;
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
H A DDocumentsActivity.java233 final MenuItem fileSize = menu.findItem(R.id.menu_file_size);
246 fileSize.setVisible(fileSize.isVisible() && !picking);
H A DBaseActivity.java172 final MenuItem fileSize = menu.findItem(R.id.menu_file_size);
177 fileSize.setVisible(!mState.forceSize);
186 fileSize.setTitle(LocalPreferences.getDisplayFileSize(this)
/frameworks/base/core/jni/
H A Dcom_android_internal_content_NativeLibraryHelper.cpp107 isFileDifferent(const char* filePath, uint32_t fileSize, time_t modifiedTime, argument
120 if (static_cast<uint64_t>(st->st_size) != static_cast<uint64_t>(fileSize)) {
/frameworks/base/libs/androidfw/
H A DBackupHelpers.cpp220 int fileSize; local
226 fileSize = lseek(fd, 0, SEEK_END);
233 bytesLeft = fileSize + sizeof(metadata);
249 bytesLeft -= sizeof(metadata); // bytesLeft should == fileSize now
279 " You aren't doing proper locking!", realFilename, fileSize, fileSize-bytesLeft);
/frameworks/av/cmds/stagefright/
H A Dstagefright.cpp860 off64_t fileSize = lseek64(fd, 0, SEEK_END); local
861 CHECK_GE(fileSize, 0ll);
863 CHECK_EQ(retriever->setDataSource(fd, 0, fileSize), (status_t)OK);
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/
H A DStubProvider.java205 final long fileSize = document.file.length();
209 document.rootInfo.size -= fileSize;
/frameworks/base/services/backup/java/com/android/server/backup/
H A DBackupManagerService.java3499 long fileSize, int type, String path, long mode, long mtime,
3504 mService.restoreObbFile(pkgName, data, fileSize, type, path, mode, mtime,
3498 restoreObbFile(String pkgName, ParcelFileDescriptor data, long fileSize, int type, String path, long mode, long mtime, int token, IBackupManager callbackBinder) argument

Completed in 608 milliseconds