Home
last modified time | relevance | path

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

12

/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/adb/client/
Dincremental_server.cpp240 SendResult SendDataBlock(FileId fileId, BlockIdx blockIdx, bool flush = false);
242 bool SendTreeBlock(FileId fileId, int32_t fileBlockIdx, BlockIdx blockIdx);
243 bool SendTreeBlocksForDataBlock(FileId fileId, BlockIdx blockIdx);
353 bool IncrementalServer::SendTreeBlocksForDataBlock(const FileId fileId, const BlockIdx blockIdx) { in SendTreeBlocksForDataBlock() argument
354 auto& file = files_[fileId]; in SendTreeBlocksForDataBlock()
370 if (!SendTreeBlock(fileId, blockIdx, leaf_idx)) { in SendTreeBlocksForDataBlock()
381 if (!SendTreeBlock(fileId, blockIdx, i)) { in SendTreeBlocksForDataBlock()
389 bool IncrementalServer::SendTreeBlock(FileId fileId, int32_t fileBlockIdx, BlockIdx blockIdx) { in SendTreeBlock() argument
390 const auto& file = files_[fileId]; in SendTreeBlock()
402 buffer.header.file_id = toBigEndian(fileId); in SendTreeBlock()
[all …]
/packages/modules/OnDevicePersonalization/src/com/android/ondevicepersonalization/services/download/mdd/
DOnDevicePersonalizationFileGroupPopulator.java81 String[] fileId, in createDataFileGroup() argument
87 if (fileId.length != byteSize.length in createDataFileGroup()
88 || fileId.length != checksum.length in createDataFileGroup()
89 || fileId.length != url.length in createDataFileGroup()
90 || checksumType.length != fileId.length) { in createDataFileGroup()
105 for (int i = 0; i < fileId.length; ++i) { in createDataFileGroup()
108 .setFileId(fileId[i]) in createDataFileGroup()
215 String fileId = groupName; in refreshFileGroups() local
226 new String[] {fileId}, in refreshFileGroups()
/packages/modules/OnDevicePersonalization/tests/manualtests/src/com/android/ondevicepersonalization/services/download/mdd/
DMobileDataDownloadTest.java62 String[] fileId, in createDataFileGroup() argument
67 if (fileId.length != byteSize.length in createDataFileGroup()
68 || fileId.length != checksum.length in createDataFileGroup()
69 || fileId.length != url.length) { in createDataFileGroup()
82 for (int i = 0; i < fileId.length; ++i) { in createDataFileGroup()
85 .setFileId(fileId[i]) in createDataFileGroup()
/packages/modules/Nfc/NfcNci/nci/jni/
DNativeT4tNfcee.cpp154 jboolean NativeT4tNfcee::performT4tClearData(uint8_t* fileId) { in performT4tClearData() argument
164 status = NFA_T4tNfcEeClear(fileId); in performT4tClearData()
231 jint NativeT4tNfcee::t4tWriteData(JNIEnv* e, jobject object, jbyteArray fileId, in t4tWriteData() argument
238 validatePreCondition(OP_WRITE, fileId, data); in t4tWriteData()
241 ScopedByteArrayRO bytes(e, fileId); in t4tWriteData()
306 jbyteArray fileId) { in t4tReadData() argument
311 T4TNFCEE_STATUS_t t4tNfceeStatus = validatePreCondition(OP_READ, fileId); in t4tReadData()
314 ScopedByteArrayRO bytes(e, fileId); in t4tReadData()
477 jbyteArray fileId, in validatePreCondition() argument
487 } else if (fileId == NULL) { in validatePreCondition()
DNativeT4tNfcee.h87 int t4tWriteData(JNIEnv* e, jobject o, jbyteArray fileId, jbyteArray data);
110 jboolean performT4tClearData(uint8_t* fileId);
151 jbyteArray t4tReadData(JNIEnv* e, jobject o, jbyteArray fileId);
284 jbyteArray fileId,
DNativeT4tNfceeManager.cpp90 jint t4tNfceeManager_doWriteData(JNIEnv* e, jobject o, jbyteArray fileId, in t4tNfceeManager_doWriteData() argument
94 return NativeT4tNfcee::getInstance().t4tWriteData(e, o, fileId, data); in t4tNfceeManager_doWriteData()
110 jbyteArray t4tNfceeManager_doReadData(JNIEnv* e, jobject o, jbyteArray fileId) { in t4tNfceeManager_doReadData() argument
112 return NativeT4tNfcee::getInstance().t4tReadData(e, o, fileId); in t4tNfceeManager_doReadData()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiConfigStore.java270 @StoreFileId int fileId, UserHandle userHandle, boolean shouldEncryptCredentials) { in createFile() argument
277 File file = new File(storeDir, STORE_ID_TO_FILE_NAME.get(fileId)); in createFile()
282 return new StoreFile(file, fileId, userHandle, encryptionUtil); in createFile()
288 for (int fileId : storeFileIds) { in createFiles()
290 createFile(storeDir, fileId, userHandle, shouldEncryptCredentials); in createFiles()
477 private static Integer getMigrationStoreFileId(@StoreFileId int fileId) { in getMigrationStoreFileId() argument
478 switch (fileId) { in getMigrationStoreFileId()
492 private static byte[] readDataFromMigrationSharedStoreFile(@StoreFileId int fileId) in readDataFromMigrationSharedStoreFile() argument
494 Integer migrationStoreFileId = getMigrationStoreFileId(fileId); in readDataFromMigrationSharedStoreFile()
502 private static byte[] readDataFromMigrationUserStoreFile(@StoreFileId int fileId, in readDataFromMigrationUserStoreFile() argument
[all …]
/packages/modules/Nfc/framework/java/android/nfc/
DT4tNdefNfcee.java152 public @WriteDataStatus int writeData(@IntRange(from = 0, to = 65535) int fileId, in writeData()
155 … NfcAdapter.getNdefNfceeService().writeData(fileId, data), WRITE_DATA_ERROR_INTERNAL); in writeData()
177 public byte[] readData(@IntRange(from = 0, to = 65535) int fileId) { in readData()
179 NfcAdapter.getNdefNfceeService().readData(fileId), null); in readData()
DIT4tNdefNfcee.aidl27 int writeData(in int fileId, in byte[] data); in writeData() argument
28 byte[] readData(in int fileId); in readData() argument
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
DUpdateHandler.java413 final long fileId = intent.getLongExtra(DownloadManager.EXTRA_DOWNLOAD_ID, NOT_AN_ID); in downloadFinished() local
414 Log.i(TAG, "downloadFinished() : DownloadId = " + fileId); in downloadFinished()
415 if (NOT_AN_ID == fileId) return; // Spurious wake-up: ignore in downloadFinished()
418 final CompletedDownloadInfo downloadInfo = getCompletedDownloadInfo(manager, fileId); in downloadFinished()
423 DebugLogUtils.l("Received result for download ", fileId); in downloadFinished()
435 downloadSuccessful = handleDownloadedFile(context, record, manager, fileId); in downloadFinished()
446 publishUpdateWordListCompleted(context, downloadSuccessful, fileId, in downloadFinished()
452 manager.remove(fileId); in downloadFinished()
480 final boolean downloadSuccessful, final long fileId, in publishUpdateWordListCompleted() argument
490 MetadataDbHelper.deleteDownloadingEntry(db, fileId); in publishUpdateWordListCompleted()
[all …]
DDownloadManagerWrapper.java71 public ParcelFileDescriptor openDownloadedFile(final long fileId) throws FileNotFoundException { in openDownloadedFile() argument
74 return mDownloadManager.openDownloadedFile(fileId); in openDownloadedFile()
79 Log.e(TAG, "Can't open downloaded file with ID " + fileId, e); in openDownloadedFile()
/packages/modules/Uwb/service/java/com/android/server/uwb/
DUwbConfigStore.java460 @StoreFileId int fileId) { in createFile() argument
467 File file = new File(storeDir, STORE_ID_TO_FILE_NAME.get(fileId)); in createFile()
468 return new StoreFile(file, fileId); in createFile()
474 for (int fileId : storeFileIds) { in createFiles()
476 createFile(storeDir, fileId); in createFiles()
809 public StoreFile(File file, @StoreFileId int fileId) { in StoreFile() argument
812 mFileId = fileId; in StoreFile()
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/
DUwbConfigStoreTest.java166 MockStoreFile(@UwbConfigStore.StoreFileId int fileId) { in MockStoreFile() argument
167 super(new File("MockStoreFile"), fileId); in MockStoreFile()
201 MockStoreData(@UwbConfigStore.StoreFileId int fileId) { in MockStoreData() argument
202 mFileId = fileId; in MockStoreData()
/packages/modules/Nfc/NfcNci/nci/src/com/android/nfc/dhimpl/
DNativeT4tNfceeManager.java21 public native int doWriteData(byte[] fileId, byte[] data); in doWriteData() argument
23 public native byte[] doReadData(byte[] fileId); in doReadData() argument
DNativeNfcManager.java286 public int doWriteData(byte[] fileId, byte[] data) { in doWriteData() argument
287 return mT4tNfceeMgr.doWriteData(fileId, data); in doWriteData()
291 public byte[] doReadData(byte[] fileId) { in doReadData() argument
292 return mT4tNfceeMgr.doReadData(fileId); in doReadData()
/packages/providers/MediaProvider/src/com/android/providers/media/util/
DMimeTypeFixHandler.java201 FileMimeTypeUpdate(long fileId, String newMimeType) { in updateUnsupportedMimeTypes() argument
202 this.mFileId = fileId; in updateUnsupportedMimeTypes()
217 long fileId = cursor.getLong(cursor.getColumnIndexOrThrow( in updateUnsupportedMimeTypes() local
232 filesToUpdate.add(new FileMimeTypeUpdate(fileId, newMimeType)); in updateUnsupportedMimeTypes()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/
DMediaGrantsTest.java656 private void assertGrantExistsForPackage(Long fileId, String packageName,
658 try (Cursor c = getMediaGrantRow(fileId, packageName, userId)) {
668 assertEquals(fileIdValue, fileId);
674 private long getGenerationForMediaGrant(Long fileId, String packageName, in getGenerationForMediaGrant() argument
678 try (Cursor c = getMediaGrantRow(fileId, packageName, userId)) { in getGenerationForMediaGrant()
690 private Cursor getMediaGrantRow(Long fileId, String packageName, in getMediaGrantRow() argument
707 Long.toString(fileId), in getMediaGrantRow()
733 private void updateFileValues(Long fileId, String columnToBeModified, String modifiedValue) { in updateFileValues() argument
743 Long.toString(fileId)), in updateFileValues()
/packages/modules/AdServices/adservices/apk/java/com/android/adservices/ui/
DOTAResourcesManager.java138 Context context, Map<String, ClientFile> otaFilesMap, String fileId) { in getOtaFile() argument
140 ClientFile otaFile = otaFilesMap.get(fileId); in getOtaFile()
142 LogUtil.d(fileId + " not found"); in getOtaFile()
/packages/modules/Nfc/NfcNci/src/com/android/nfc/
DDeviceHost.java201 int doWriteData(byte[] fileId, byte[] data); in doWriteData() argument
208 byte[] doReadData(byte[] fileId); in doReadData() argument
/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/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/download/
DMobileDataDownloadTest.java806 String[] fileId, in createDataFileGroup() argument
811 if (fileId.length != byteSize.length in createDataFileGroup()
812 || fileId.length != checksum.length in createDataFileGroup()
813 || fileId.length != url.length) { in createDataFileGroup()
826 for (int i = 0; i < fileId.length; ++i) { in createDataFileGroup()
829 .setFileId(fileId[i]) in createDataFileGroup()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/topics/classifier/
DModelManager.java710 private InputStream readDownloadedFile(String fileId) { in readDownloadedFile() argument
712 ClientFile downloadedFile = mDownloadedFiles.get(fileId); in readDownloadedFile()
714 sLogger.e("Failed to find downloaded %s file", fileId); in readDownloadedFile()
725 sLogger.e(e, "Failed to load fileId = %s", fileId); in readDownloadedFile()
/packages/modules/OnDevicePersonalization/tests/servicetests/src/com/android/ondevicepersonalization/services/download/mdd/
DOnDevicePersonalizationFileGroupPopulatorTest.java170 String fileId = groupName; in addTestFileGroup() local
183 new String[]{fileId}, in addTestFileGroup()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiConfigStoreTest.java984 MockStoreFile(@WifiConfigStore.StoreFileId int fileId) { in MockStoreFile() argument
985 super(new File("MockStoreFile"), fileId, UserHandle.ALL, mEncryptionUtil); in MockStoreFile()
1026 MockStoreData(@WifiConfigStore.StoreFileId int fileId) { in MockStoreData() argument
1027 mFileId = fileId; in MockStoreData()

12