MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / getUri

Method getUri

src/plugins/sdcard/src/android/SDcard.java:1049–1054  ·  view source on GitHub ↗
(String src, String docId)

Source from the content-addressed store, hash-verified

1047 }
1048
1049 private Uri getUri(String src, String docId) {
1050 Uri srcUri = Uri.parse(src);
1051 String srcId = DocumentsContract.getTreeDocumentId(srcUri);
1052 srcUri = DocumentsContract.buildDocumentUriUsingTree(srcUri, srcId);
1053 return DocumentsContract.buildDocumentUriUsingTree(srcUri, docId);
1054 }
1055
1056 private void exists(String path, CallbackContext callback) {
1057 DocumentFile file = DocumentFile.fromSingleUri(context, Uri.parse(path));

Callers 12

formatUriMethod · 0.95
runMethod · 0.95
copyMethod · 0.95
createJSONRequestMethod · 0.80
serveFileMethod · 0.80
getInputStreamMethod · 0.80
runMethod · 0.80
onActivityResultMethod · 0.80
copyFileMethod · 0.80
getPathMethod · 0.80
runMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected