Home
last modified time | relevance | path

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

/packages/modules/adb/client/
Dincremental_server.cpp239 SendResult SendDataBlock(FileId fileId, BlockIdx blockIdx, bool flush = false);
241 bool SendTreeBlock(FileId fileId, int32_t fileBlockIdx, BlockIdx blockIdx);
242 bool SendTreeBlocksForDataBlock(FileId fileId, BlockIdx blockIdx);
352 bool IncrementalServer::SendTreeBlocksForDataBlock(const FileId fileId, const BlockIdx blockIdx) { in SendTreeBlocksForDataBlock() argument
353 auto& file = files_[fileId]; in SendTreeBlocksForDataBlock()
369 if (!SendTreeBlock(fileId, blockIdx, leaf_idx)) { in SendTreeBlocksForDataBlock()
380 if (!SendTreeBlock(fileId, blockIdx, i)) { in SendTreeBlocksForDataBlock()
388 bool IncrementalServer::SendTreeBlock(FileId fileId, int32_t fileBlockIdx, BlockIdx blockIdx) { in SendTreeBlock() argument
389 const auto& file = files_[fileId]; in SendTreeBlock()
401 buffer.header.file_id = toBigEndian(fileId); in SendTreeBlock()
[all …]
/packages/apps/Messaging/src/com/android/messaging/datamodel/
DFileProvider.java48 protected static boolean isValidFileId(final String fileId) { in isValidFileId() argument
50 for (int index = (fileId.startsWith("/") ? 1 : 0); index < fileId.length(); index++) { in isValidFileId()
51 final Character c = fileId.charAt(index); in isValidFileId()
83 final long fileId = Math.abs(RANDOM_ID.nextLong()); in buildFileUri() local
86 builder.appendPath(String.valueOf(fileId)); in buildFileUri()
100 final String fileId = uri.getPath(); in delete() local
101 if (isValidFileId(fileId)) { in delete()
102 final File file = getFile(fileId, getExtensionFromUri(uri)); in delete()
111 final String fileId = uri.getPath(); in openFile() local
112 if (isValidFileId(fileId)) { in openFile()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiConfigStore.java307 @StoreFileId int fileId, UserHandle userHandle, boolean shouldEncryptCredentials) { in createFile() argument
314 File file = new File(storeDir, STORE_ID_TO_FILE_NAME.get(fileId)); in createFile()
319 return new StoreFile(file, fileId, userHandle, encryptionUtil); in createFile()
325 for (int fileId : storeFileIds) { in createFiles()
327 createFile(storeDir, fileId, userHandle, shouldEncryptCredentials); in createFiles()
552 private static Integer getMigrationStoreFileId(@StoreFileId int fileId) { in getMigrationStoreFileId() argument
553 switch (fileId) { in getMigrationStoreFileId()
567 private static byte[] readDataFromMigrationSharedStoreFile(@StoreFileId int fileId) in readDataFromMigrationSharedStoreFile() argument
569 Integer migrationStoreFileId = getMigrationStoreFileId(fileId); in readDataFromMigrationSharedStoreFile()
577 private static byte[] readDataFromMigrationUserStoreFile(@StoreFileId int fileId, in readDataFromMigrationUserStoreFile() argument
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
DUpdateHandler.java419 final long fileId = intent.getLongExtra(DownloadManager.EXTRA_DOWNLOAD_ID, NOT_AN_ID); in downloadFinished() local
420 Log.i(TAG, "downloadFinished() : DownloadId = " + fileId); in downloadFinished()
421 if (NOT_AN_ID == fileId) return; // Spurious wake-up: ignore in downloadFinished()
424 final CompletedDownloadInfo downloadInfo = getCompletedDownloadInfo(manager, fileId); in downloadFinished()
429 DebugLogUtils.l("Received result for download ", fileId); in downloadFinished()
441 downloadSuccessful = handleDownloadedFile(context, record, manager, fileId); in downloadFinished()
452 publishUpdateWordListCompleted(context, downloadSuccessful, fileId, in downloadFinished()
458 manager.remove(fileId); in downloadFinished()
486 final boolean downloadSuccessful, final long fileId, in publishUpdateWordListCompleted() argument
496 MetadataDbHelper.deleteDownloadingEntry(db, fileId); in publishUpdateWordListCompleted()
[all …]
DDownloadManagerWrapper.java69 public ParcelFileDescriptor openDownloadedFile(final long fileId) throws FileNotFoundException { in openDownloadedFile() argument
72 return mDownloadManager.openDownloadedFile(fileId); in openDownloadedFile()
77 Log.e(TAG, "Can't open downloaded file with ID " + fileId, e); in openDownloadedFile()
/packages/apps/Dialer/java/com/android/dialer/util/
DDialerUtils.java212 long fileId = Math.abs(RANDOM.nextLong()); in createShareableFile() local
217 return new File(parentDir, String.valueOf(fileId)); in createShareableFile()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiConfigStoreTest.java1063 MockStoreFile(@WifiConfigStore.StoreFileId int fileId) { in MockStoreFile() argument
1064 super(new File("MockStoreFile"), fileId, UserHandle.ALL, mEncryptionUtil); in MockStoreFile()
1105 MockStoreData(@WifiConfigStore.StoreFileId int fileId) { in MockStoreData() argument
1106 mFileId = fileId; in MockStoreData()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DDictionaryInfoUtils.java312 final String fileId = localeAndFileId[1];
314 final String cacheFilename = cacheDirectoryForLocale + File.separator + fileId;
/packages/apps/Messaging/src/com/android/messaging/sms/
DMmsUtils.java2643 String fileId = null;
2647 fileId = new String(retrieveConf.getMessageId());
2649 fileId = new String(retrieveConf.getTransactionId());
2652 if (TextUtils.isEmpty(fileId)) {
2653 fileId = UUID.randomUUID().toString();
2655 return fileId;
/packages/providers/MediaProvider/apex/framework/java/android/provider/
DMediaStore.java1735 public static final Uri getMtpObjectsUri(@NonNull String volumeName, long fileId) { in getMtpObjectsUri() argument
1736 return MediaStore.Files.getContentUri(volumeName, fileId); in getMtpObjectsUri()
1741 public static final Uri getMtpReferencesUri(@NonNull String volumeName, long fileId) { in getMtpReferencesUri() argument
1742 return MediaStore.Files.getContentUri(volumeName, fileId); in getMtpReferencesUri()