Lines Matching refs:path

105     // In memory cache of path<->id mappings, to speed up inserts during media scan
212 // First clear the file path to disable the _DELETE_FILE database hook.
252 // requires the path, which we don't have here, so instead we just
254 // TODO: include the path in the callback and only remove the affected
573 mPendingThumbs.remove(d.path);
653 // However version 91 was reused in a divergent development path for gingerbread,
837 "_data TEXT," + // _data is path for file based playlists, or null
1689 * @param data The input path
1700 // Lowercase the path for hashing. This avoids duplicate buckets if the
1703 String path = parentFile.toString().toLowerCase();
1709 values.put(ImageColumns.BUCKET_ID, path.hashCode());
1714 * @param data The input path
1759 String path = c.getString(1);
1762 MediaThumbRequest req = requestMediaThumbnail(path, origUri,
1799 // For uri dispatched to this method, the 4th path segment is always
1965 //Log.i("@@@@", "taking fast path for counting songs");
2146 //Log.i("@@@@", "taking fast path for counting artists");
2195 //Log.i("@@@@", "taking fast path for counting albums");
2524 private long insertDirectory(SQLiteDatabase db, String path) {
2527 values.put(FileColumns.DATA, path);
2528 values.put(FileColumns.PARENT, getParent(db, path));
2529 values.put(FileColumns.STORAGE_ID, getStorageId(path));
2530 File file = new File(path);
2539 private long getParent(SQLiteDatabase db, String path) {
2540 int lastSlash = path.lastIndexOf('/');
2542 String parentPath = path.substring(0, lastSlash);
2585 private int getStorageId(String path) {
2588 if (path.startsWith(test)) {
2590 if (path.length() == length || path.charAt(length) == '/') {
2636 String path = values.getAsString(MediaStore.MediaColumns.DATA);
2641 s, s, path, 0, null, artistCache, uri);
2661 albumhash = path.substring(0, path.lastIndexOf('/')).hashCode();
2667 s, cacheName, path, albumhash, artist, albumCache, uri);
2700 String path = values.getAsString(MediaStore.MediaColumns.DATA);
2701 if (path != null) {
2702 computeBucketValues(path, values);
2716 if (title == null && path != null) {
2717 title = MediaFile.getFileTitle(path);
2725 if (TextUtils.isEmpty(path)) {
2729 // create a file path for the benefit of MTP
2730 path = mExternalStoragePaths[0]
2732 values.put(MediaStore.MediaColumns.DATA, path);
2733 values.put(FileColumns.PARENT, getParent(db, path));
2735 Log.e(TAG, "path is empty in insertFile()");
2738 format = MediaFile.getFormatCode(path, mimeType);
2748 if (mimeType == null && path != null) {
2749 mimeType = MediaFile.getMimeTypeForFile(path);
2754 if (mediaType == FileColumns.MEDIA_TYPE_NONE && !MediaScanner.isNoMediaPath(path)) {
2772 if (name == null && path == null) {
2773 // MediaScanner will compute the name from the path if we have one
2778 if (path == null) {
2779 // path might be null for playlists created on the device
2782 "no path was provided when inserting new file");
2787 if (path != null) {
2788 File file = new File(path);
2797 if (path != null) {
2798 long parentId = getParent(db, path);
2804 int storageId = getStorageId(path);
3194 private MediaThumbRequest requestMediaThumbnail(String path, Uri uri, int priority, long magic) {
3199 getContext().getContentResolver(), path, uri, priority, magic);
3225 private boolean ensureFileExists(String path) {
3226 File file = new File(path);
3230 // we will not attempt to create the first directory in the path
3232 int secondSlash = path.indexOf('/', 1);
3234 String directoryPath = path.substring(0, secondSlash);
3554 String path = values.getAsString(MediaStore.MediaColumns.DATA);
3561 if (path == null) {
3564 + " path could give wrong album key");
3566 //Log.w(TAG, "Specify path to avoid extra query");
3575 path = c.getString(0);
3585 if (path != null) {
3586 albumHash = path.substring(0, path.lastIndexOf('/')).hashCode();
3598 s, cacheName, path, albumHash, artist, albumCache, uri);
3652 // if this is a request from MediaScanner, DATA should contains file path
3829 String path;
3834 private void makeThumbAsync(SQLiteDatabase db, String path, long album_id) {
3836 if (mPendingThumbs.contains(path)) {
3842 mPendingThumbs.add(path);
3847 d.path = path;
3867 private static byte[] getCompressedAlbumArt(Context context, String path) {
3871 File f = new File(path);
3888 if (compressed == null && path != null) {
3889 int lastSlash = path.lastIndexOf('/');
3892 String artPath = path.substring(0, lastSlash);
4031 private ParcelFileDescriptor getThumb(SQLiteDatabase db, String path, long album_id,
4035 d.path = path;
4042 byte[] compressed = getCompressedAlbumArt(getContext(), d.path);
4138 * @param path The full path to the file being inserted in to the audio table
4147 String rawName, String cacheName, String path, int albumHash,
4167 // if present, otherwise on the path.
4191 if (path != null && isAlbum && ! isUnknown) {
4193 makeThumbAsync(db, path, rowId);
4343 String path = mExternalStoragePaths[0];
4344 int volumeID = FileUtils.getFatVolumeId(path);
4345 if (LOCAL_LOGV) Log.v(TAG, path + " volume ID: " + volumeID);
4503 // path for writing contents of in memory temp database