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.common.contacts; 18 19 import android.content.Context; 20 import android.net.Uri; 21 import android.provider.ContactsContract.Data; 22 23 import java.util.Collection; 24 25 /** 26 * @deprecated Contacts affinity information is no longer supported as of 27 * Android version {@link android.os.Build.VERSION_CODES#Q}, so this class is no-op now. 28 */ 29 @Deprecated 30 public class DataUsageStatUpdater { 31 private static final String TAG = DataUsageStatUpdater.class.getSimpleName(); 32 33 /** 34 * Copied from API in ICS (not available before it). You can use values here if you are sure 35 * it is supported by the device. 36 */ 37 public static final class DataUsageFeedback { 38 static final Uri FEEDBACK_URI = 39 Uri.withAppendedPath(Data.CONTENT_URI, "usagefeedback"); 40 41 static final String USAGE_TYPE = "type"; 42 public static final String USAGE_TYPE_CALL = "call"; 43 public static final String USAGE_TYPE_LONG_TEXT = "long_text"; 44 public static final String USAGE_TYPE_SHORT_TEXT = "short_text"; 45 } 46 DataUsageStatUpdater(Context context)47 public DataUsageStatUpdater(Context context) { 48 } 49 updateWithRfc822Address(Collection<CharSequence> texts)50 public boolean updateWithRfc822Address(Collection<CharSequence> texts){ 51 return false; 52 } 53 updateWithAddress(Collection<String> addresses)54 public boolean updateWithAddress(Collection<String> addresses) { 55 return false; 56 } 57 updateWithPhoneNumber(Collection<String> numbers)58 public boolean updateWithPhoneNumber(Collection<String> numbers) { 59 return false; 60 } 61 } 62