diff options
author | calderwoodra <calderwoodra@google.com> | 2017-10-18 04:49:12 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2017-10-18 04:49:12 +0000 |
commit | df419c43b14e58e5241867e3bd2962a7b555f74f (patch) | |
tree | 7606a99d60659b38dbc4895e1826afac70e550de /java/com/android/dialer/searchfragment/testing/TestCursorSchema.java | |
parent | 7f1dd720b96504ce706e4d7d8867211048bf5cfa (diff) | |
parent | 4b46ec2258373c76c44c900a3cfe93c1d28935a8 (diff) |
Merge changes Ib92b055d,I5c9f66ff
am: 4b46ec2258
Change-Id: I8cbfb88558d46cbdd3ed696b56774913d1839a78
Diffstat (limited to 'java/com/android/dialer/searchfragment/testing/TestCursorSchema.java')
-rw-r--r-- | java/com/android/dialer/searchfragment/testing/TestCursorSchema.java | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/java/com/android/dialer/searchfragment/testing/TestCursorSchema.java b/java/com/android/dialer/searchfragment/testing/TestCursorSchema.java new file mode 100644 index 000000000..375fdb50c --- /dev/null +++ b/java/com/android/dialer/searchfragment/testing/TestCursorSchema.java @@ -0,0 +1,47 @@ +/* + * Copyright (C) 2017 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License + */ + +package com.android.dialer.searchfragment.testing; + +import android.provider.ContactsContract.Data; + +/** Testing class containing cp2 cursor testing utilities. */ +public final class TestCursorSchema { + + /** + * If new rows are added to {@link + * com.android.dialer.searchfragment.common.Projections#DATA_PROJECTION}, this schema should be + * updated. + */ + // TODO(67909522): remove these extra columns and remove all references to "Phone." + public static final String[] SCHEMA = + new String[] { + Data._ID, // 0 + "data2", // 1 Phone Type + "data3", // 2 Phone Label + "data1", // 3 Phone Number, Organization Company + Data.DISPLAY_NAME_PRIMARY, // 4 + Data.PHOTO_ID, // 5 + Data.PHOTO_THUMBNAIL_URI, // 6 + Data.LOOKUP_KEY, // 7 + Data.CARRIER_PRESENCE, // 8 + Data.CONTACT_ID, // 9 + Data.MIMETYPE, // 10 + Data.SORT_KEY_PRIMARY, // 11 + "company_name", // 12, no constant because Organization.COMPANY.equals("data1") + "nick_name" // 13, no constant because Nickname.NAME.equals("data1") + }; +} |