Home
last modified time | relevance | path

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

/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/contentpreview/
DUriMetadataReaderTest.kt42 testSubject.getMetadata(uri).let { fileInfo -> in <lambda>() method
43 assertWithMessage("Wrong uri").that(fileInfo.uri).isEqualTo(uri) in <lambda>()
44 assertWithMessage("Wrong mime type").that(fileInfo.mimeType).isEqualTo(mimeType) in <lambda>()
45 assertWithMessage("Wrong preview URI").that(fileInfo.previewUri).isEqualTo(uri) in <lambda>()
57 testSubject.getMetadata(uri).let { fileInfo -> in <lambda>() method
58 assertWithMessage("Wrong uri").that(fileInfo.uri).isEqualTo(uri) in <lambda>()
59 assertWithMessage("Wrong mime type").that(fileInfo.mimeType).isEqualTo(mimeType) in <lambda>()
60 assertWithMessage("Wrong preview URI").that(fileInfo.previewUri).isEqualTo(uri) in <lambda>()
77 testSubject.getMetadata(uri).let { fileInfo -> in <lambda>() method
78 assertWithMessage("Wrong uri").that(fileInfo.uri).isEqualTo(uri) in <lambda>()
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/opp/
DBluetoothOppObexClientSession.java363 BluetoothOppSendFileInfo fileInfo = BluetoothOppUtility.getSendFileInfo(mInfo.mUri); in processShareInfo() local
364 if (fileInfo.mFileName == null || fileInfo.mLength == 0) { in processShareInfo()
366 Constants.updateShareStatus(mContext1, mInfo.mId, fileInfo.mStatus); in processShareInfo()
370 Log.v(TAG, "filename :" + fileInfo.mFileName); in processShareInfo()
371 Log.v(TAG, "length :" + fileInfo.mLength); in processShareInfo()
372 Log.v(TAG, "mimetype :" + fileInfo.mMimetype); in processShareInfo()
377 updateValues.put(BluetoothShare.FILENAME_HINT, fileInfo.mFileName); in processShareInfo()
378 updateValues.put(BluetoothShare.TOTAL_BYTES, fileInfo.mLength); in processShareInfo()
379 updateValues.put(BluetoothShare.MIMETYPE, fileInfo.mMimetype); in processShareInfo()
388 return fileInfo; in processShareInfo()
[all …]
DBluetoothOppObexServerSession.java469 private int receiveFile(BluetoothOppReceiveFileInfo fileInfo, Operation op) { in receiveFile() argument
494 updateValues.put(BluetoothShare._DATA, fileInfo.mFileName); in receiveFile()
509 mContext.getContentResolver(), fileInfo.mInsertUri); in receiveFile()
529 while ((!mInterrupted) && (position != fileInfo.mLength)) { in receiveFile()
542 percent = position * 100 / fileInfo.mLength; in receiveFile()
593 if (position == fileInfo.mLength) { in receiveFile()
594 Log.d(TAG, "Receiving file completed for " + fileInfo.mFileName); in receiveFile()
597 Log.d(TAG, "Reading file failed at " + position + " of " + fileInfo.mLength); in receiveFile()
623 BluetoothOppReceiveFileInfo fileInfo = in processShareInfo() local
626 Log.v(TAG, "filename :" + fileInfo.mFileName); in processShareInfo()
[all …]
DBluetoothOppUtility.java446 String fileInfo = sendFileInfo.toString(); in generateUri() local
447 int atIndex = fileInfo.lastIndexOf("@"); in generateUri()
448 fileInfo = fileInfo.substring(atIndex); in generateUri()
449 uri = Uri.parse(uri + fileInfo); in generateUri()
DBluetoothOppTransfer.java487 BluetoothOppSendFileInfo fileInfo = in markBatchFailed() local
490 if (fileInfo.mFileName != null) { in markBatchFailed()
491 updateValues.put(BluetoothShare.FILENAME_HINT, fileInfo.mFileName); in markBatchFailed()
492 updateValues.put(BluetoothShare.TOTAL_BYTES, fileInfo.mLength); in markBatchFailed()
493 updateValues.put(BluetoothShare.MIMETYPE, fileInfo.mMimetype); in markBatchFailed()
/packages/modules/IntentResolver/java/src/com/android/intentresolver/contentpreview/
DJavaFlowHelper.kt37 .map { fileInfo -> in fileInfo() method
39 ContentPreviewUi.getPreviewType(typeClassifier, fileInfo.mimeType), in fileInfo()
40 requireNotNull(fileInfo.previewUri), in fileInfo()
DUnifiedContentPreviewUi.java165 for (FileInfo fileInfo : files) { in updatePreviewWithFiles()
167 getPreviewType(mTypeClassifier, fileInfo.getMimeType()); in updatePreviewWithFiles()
DFilesPlusTextContentPreviewUi.java118 for (FileInfo fileInfo : files) { in updatePreviewMetadata()
120 getPreviewType(mTypeClassifier, fileInfo.getMimeType()); in updatePreviewMetadata()
/packages/services/Telephony/testapps/EmbmsTestDownloadApp/src/com/android/phone/testapps/embmsdownload/
DEmbmsTestDownloadApp.java314 public void onProgressUpdated(DownloadRequest request, FileInfo fileInfo, in onCreate()
318 "Progress Updated (" + fileInfo + ") cd: " + currentDecodedSize in onCreate()
342 public void onStatusUpdated(DownloadRequest request, FileInfo fileInfo, in onCreate()
345 "State Updated (" + fileInfo + ") state: " + state, in onCreate()
369 public void onStatusUpdated(DownloadRequest request, FileInfo fileInfo, in onCreate()
372 "State Updated (" + fileInfo + ") state: " + state, in onCreate()
380 public void onProgressUpdated(DownloadRequest request, FileInfo fileInfo, in onCreate()
384 "Progress Updated (" + fileInfo + ") cd: " + currentDecodedSize in onCreate()
/packages/modules/StatsD/statsd/src/storage/
DStorageManager.cpp841 struct stat fileInfo; in enforceDbGuardrails() local
843 if (stat(fullPathName.c_str(), &fileInfo) != 0) { in enforceDbGuardrails()
850 fileInfo.st_size); in enforceDbGuardrails()
851 if (fileInfo.st_mtime <= deleteThresholdSec) { in enforceDbGuardrails()
855 if (fileInfo.st_size >= maxBytes) { in enforceDbGuardrails()
869 struct stat fileInfo; in hasFile() local
870 return stat(file, &fileInfo) == 0; in hasFile()