Home | History | Annotate | Download | only in calllog
      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             Calls.CACHED_PHOTO_URI              // 23
     50     };
     51 
     52     public static final int ID = 0;
     53     public static final int NUMBER = 1;
     54     public static final int DATE = 2;
     55     public static final int DURATION = 3;
     56     public static final int CALL_TYPE = 4;
     57     public static final int COUNTRY_ISO = 5;
     58     public static final int VOICEMAIL_URI = 6;
     59     public static final int GEOCODED_LOCATION = 7;
     60     public static final int CACHED_NAME = 8;
     61     public static final int CACHED_NUMBER_TYPE = 9;
     62     public static final int CACHED_NUMBER_LABEL = 10;
     63     public static final int CACHED_LOOKUP_URI = 11;
     64     public static final int CACHED_MATCHED_NUMBER = 12;
     65     public static final int CACHED_NORMALIZED_NUMBER = 13;
     66     public static final int CACHED_PHOTO_ID = 14;
     67     public static final int CACHED_FORMATTED_NUMBER = 15;
     68     public static final int IS_READ = 16;
     69     public static final int NUMBER_PRESENTATION = 17;
     70     public static final int ACCOUNT_COMPONENT_NAME = 18;
     71     public static final int ACCOUNT_ID = 19;
     72     public static final int FEATURES = 20;
     73     public static final int DATA_USAGE = 21;
     74     public static final int TRANSCRIPTION = 22;
     75     public static final int CACHED_PHOTO_URI = 23;
     76 }
     77