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
17package com.android.dialer.calllog;
18
19import android.provider.ContactsContract.PhoneLookup;
20
21/**
22 * The query to look up the {@link ContactInfo} for a given number in the Call Log.
23 */
24final class PhoneQuery {
25    public static final String[] _PROJECTION = new String[] {
26            PhoneLookup._ID,
27            PhoneLookup.DISPLAY_NAME,
28            PhoneLookup.TYPE,
29            PhoneLookup.LABEL,
30            PhoneLookup.NUMBER,
31            PhoneLookup.NORMALIZED_NUMBER,
32            PhoneLookup.PHOTO_ID,
33            PhoneLookup.LOOKUP_KEY,
34            PhoneLookup.PHOTO_URI};
35
36    public static final int PERSON_ID = 0;
37    public static final int NAME = 1;
38    public static final int PHONE_TYPE = 2;
39    public static final int LABEL = 3;
40    public static final int MATCHED_NUMBER = 4;
41    public static final int NORMALIZED_NUMBER = 5;
42    public static final int PHOTO_ID = 6;
43    public static final int LOOKUP_KEY = 7;
44    public static final int PHOTO_URI = 8;
45}
46