MCPcopy Create free account
hub / github.com/XCSoar/XCSoar / openFile

Method openFile

android/src/FileProvider.java:120–131  ·  view source on GitHub ↗
(Uri uri, String mode)

Source from the content-addressed store, hash-verified

118 }
119
120 @Override
121 public ParcelFileDescriptor openFile(Uri uri, String mode)
122 throws FileNotFoundException {
123 File file = getFileForUri(uri);
124 if (file == null)
125 throw new FileNotFoundException("Not found");
126
127 if (!mode.equals("r"))
128 throw new UnsupportedOperationException("Write not implemented");
129
130 return ParcelFileDescriptor.open(file, ParcelFileDescriptor.MODE_READ_ONLY);
131 }
132
133 private static native String getWaypointFileForUri(int id, String filename);
134

Callers

nothing calls this directly

Calls 3

getFileForUriMethod · 0.95
equalsMethod · 0.80
openMethod · 0.45

Tested by

no test coverage detected