Home | History | Annotate | Download | only in opp

Lines Matching refs:hint

94         String filename = null, hint = null, mimeType = null;
102 hint = metadataCursor.getString(0);
138 filename = choosefilename(hint);
244 private static String choosefilename(String hint) {
247 // First, try to use the hint from the application, if there's one
248 if (filename == null && !(hint == null) && !hint.endsWith("/") && !hint.endsWith("\\")) {
251 hint = hint.replace('\\', '/');
253 hint = hint.replaceAll("\\s", " ");
255 // filename hint i.e. :"<>*?| with something safe.
256 hint = hint.replaceAll("[:\"<>*?|]", "_");
257 if (V) Log.v(Constants.TAG, "getting filename from hint");
258 int index = hint.lastIndexOf('/') + 1;
260 filename = hint.substring(index);
262 filename = hint;