1 /*
2  * Copyright (C) 2013 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 package com.android.camera.data;
18 
19 import android.net.Uri;
20 import android.provider.MediaStore;
21 
22 public class VideoDataQuery {
23     public static final Uri CONTENT_URI = MediaStore.Video.Media.EXTERNAL_CONTENT_URI;
24 
25     public static final int COL_ID = 0;
26     public static final int COL_TITLE = 1;
27     public static final int COL_MIME_TYPE = 2;
28     public static final int COL_DATE_TAKEN = 3;
29     public static final int COL_DATE_MODIFIED = 4;
30     public static final int COL_DATA = 5;
31     public static final int COL_WIDTH = 6;
32     public static final int COL_HEIGHT = 7;
33     public static final int COL_SIZE = 8;
34     public static final int COL_LATITUDE = 9;
35     public static final int COL_LONGITUDE = 10;
36     public static final int COL_DURATION = 11;
37 
38     /**
39      * These values should be kept in sync with column IDs (COL_*) above.
40      */
41     public static final String[] QUERY_PROJECTION = {
42           MediaStore.Video.VideoColumns._ID,           // 0, int
43           MediaStore.Video.VideoColumns.TITLE,         // 1, string
44           MediaStore.Video.VideoColumns.MIME_TYPE,     // 2, string
45           MediaStore.Video.VideoColumns.DATE_TAKEN,    // 3, int
46           MediaStore.Video.VideoColumns.DATE_MODIFIED, // 4, int
47           MediaStore.Video.VideoColumns.DATA,          // 5, string
48           MediaStore.Video.VideoColumns.WIDTH,         // 6, int
49           MediaStore.Video.VideoColumns.HEIGHT,        // 7, int
50           MediaStore.Video.VideoColumns.SIZE,          // 8 long
51           MediaStore.Video.VideoColumns.LATITUDE,      // 9 double
52           MediaStore.Video.VideoColumns.LONGITUDE,     // 10 double
53           MediaStore.Video.VideoColumns.DURATION       // 11 long
54     };
55 }
56