Lines Matching defs:hint
94 String filename = null, hint = null;
102 hint = metadataCursor.getString(0);
137 filename = choosefilename(hint);
239 private static String choosefilename(String hint) {
242 // First, try to use the hint from the application, if there's one
243 if (filename == null && !(hint == null) && !hint.endsWith("/") && !hint.endsWith("\\")) {
246 hint = hint.replace('\\', '/');
248 hint = hint.replaceAll("\\s", " ");
250 // filename hint i.e. :"<>*?| with something safe.
251 hint = hint.replaceAll("[:\"<>*?|]", "_");
252 if (V) Log.v(Constants.TAG, "getting filename from hint");
253 int index = hint.lastIndexOf('/') + 1;
255 filename = hint.substring(index);
257 filename = hint;