(Uri uri, String mode)
| 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 |
nothing calls this directly
no test coverage detected