• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2011 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.dialer.calllog;
18 
19 import android.provider.CallLog.Calls;
20 
21 /**
22  * The query for the call log table.
23  */
24 public final class CallLogQuery {
25     public static final String[] _PROJECTION = new String[] {
26             Calls._ID,                          // 0
27             Calls.NUMBER,                       // 1
28             Calls.DATE,                         // 2
29             Calls.DURATION,                     // 3
30             Calls.TYPE,                         // 4
31             Calls.COUNTRY_ISO,                  // 5
32             Calls.VOICEMAIL_URI,                // 6
33             Calls.GEOCODED_LOCATION,            // 7
34             Calls.CACHED_NAME,                  // 8
35             Calls.CACHED_NUMBER_TYPE,           // 9
36             Calls.CACHED_NUMBER_LABEL,          // 10
37             Calls.CACHED_LOOKUP_URI,            // 11
38             Calls.CACHED_MATCHED_NUMBER,        // 12
39             Calls.CACHED_NORMALIZED_NUMBER,     // 13
40             Calls.CACHED_PHOTO_ID,              // 14
41             Calls.CACHED_FORMATTED_NUMBER,      // 15
42             Calls.IS_READ,                      // 16
43             Calls.NUMBER_PRESENTATION,          // 17
44             Calls.PHONE_ACCOUNT_COMPONENT_NAME, // 18
45             Calls.PHONE_ACCOUNT_ID,             // 19
46             Calls.FEATURES,                     // 20
47             Calls.DATA_USAGE,                   // 21
48             Calls.TRANSCRIPTION                 // 22
49     };
50 
51     public static final int ID = 0;
52     public static final int NUMBER = 1;
53     public static final int DATE = 2;
54     public static final int DURATION = 3;
55     public static final int CALL_TYPE = 4;
56     public static final int COUNTRY_ISO = 5;
57     public static final int VOICEMAIL_URI = 6;
58     public static final int GEOCODED_LOCATION = 7;
59     public static final int CACHED_NAME = 8;
60     public static final int CACHED_NUMBER_TYPE = 9;
61     public static final int CACHED_NUMBER_LABEL = 10;
62     public static final int CACHED_LOOKUP_URI = 11;
63     public static final int CACHED_MATCHED_NUMBER = 12;
64     public static final int CACHED_NORMALIZED_NUMBER = 13;
65     public static final int CACHED_PHOTO_ID = 14;
66     public static final int CACHED_FORMATTED_NUMBER = 15;
67     public static final int IS_READ = 16;
68     public static final int NUMBER_PRESENTATION = 17;
69     public static final int ACCOUNT_COMPONENT_NAME = 18;
70     public static final int ACCOUNT_ID = 19;
71     public static final int FEATURES = 20;
72     public static final int DATA_USAGE = 21;
73     public static final int TRANSCRIPTION = 22;
74 }
75