1dd9dc5ae60a991ab7e4203c4b539d1dd4811b59aAndrew Lee/* 2dd9dc5ae60a991ab7e4203c4b539d1dd4811b59aAndrew Lee * Copyright (C) 2015 The Android Open Source Project 3dd9dc5ae60a991ab7e4203c4b539d1dd4811b59aAndrew Lee * 4dd9dc5ae60a991ab7e4203c4b539d1dd4811b59aAndrew Lee * Licensed under the Apache License, Version 2.0 (the "License"); 5dd9dc5ae60a991ab7e4203c4b539d1dd4811b59aAndrew Lee * you may not use this file except in compliance with the License. 6dd9dc5ae60a991ab7e4203c4b539d1dd4811b59aAndrew Lee * You may obtain a copy of the License at 7dd9dc5ae60a991ab7e4203c4b539d1dd4811b59aAndrew Lee * 8dd9dc5ae60a991ab7e4203c4b539d1dd4811b59aAndrew Lee * http://www.apache.org/licenses/LICENSE-2.0 9dd9dc5ae60a991ab7e4203c4b539d1dd4811b59aAndrew Lee * 10dd9dc5ae60a991ab7e4203c4b539d1dd4811b59aAndrew Lee * Unless required by applicable law or agreed to in writing, software 11dd9dc5ae60a991ab7e4203c4b539d1dd4811b59aAndrew Lee * distributed under the License is distributed on an "AS IS" BASIS, 12dd9dc5ae60a991ab7e4203c4b539d1dd4811b59aAndrew Lee * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13dd9dc5ae60a991ab7e4203c4b539d1dd4811b59aAndrew Lee * See the License for the specific language governing permissions and 14dd9dc5ae60a991ab7e4203c4b539d1dd4811b59aAndrew Lee * limitations under the License 15dd9dc5ae60a991ab7e4203c4b539d1dd4811b59aAndrew Lee */ 16dd9dc5ae60a991ab7e4203c4b539d1dd4811b59aAndrew Lee 17ccca31529c07970e89419fb85a9e8153a5396838Eric Erfanianpackage com.android.incallui.bindings; 18dd9dc5ae60a991ab7e4203c4b539d1dd4811b59aAndrew Lee 19ccca31529c07970e89419fb85a9e8153a5396838Eric Erfanianimport android.location.Address; 20ccca31529c07970e89419fb85a9e8153a5396838Eric Erfanianimport android.util.Pair; 21ccca31529c07970e89419fb85a9e8153a5396838Eric Erfanianimport java.util.Calendar; 22ccca31529c07970e89419fb85a9e8153a5396838Eric Erfanianimport java.util.List; 23dd9dc5ae60a991ab7e4203c4b539d1dd4811b59aAndrew Lee 24ccca31529c07970e89419fb85a9e8153a5396838Eric Erfanian/** Utility functions to help manipulate contact data. */ 25ccca31529c07970e89419fb85a9e8153a5396838Eric Erfanianpublic interface ContactUtils { 26dd9dc5ae60a991ab7e4203c4b539d1dd4811b59aAndrew Lee 27ccca31529c07970e89419fb85a9e8153a5396838Eric Erfanian boolean retrieveContactInteractionsFromLookupKey(String lookupKey, Listener listener); 28dd9dc5ae60a991ab7e4203c4b539d1dd4811b59aAndrew Lee 29ccca31529c07970e89419fb85a9e8153a5396838Eric Erfanian interface Listener { 30ccca31529c07970e89419fb85a9e8153a5396838Eric Erfanian 31ccca31529c07970e89419fb85a9e8153a5396838Eric Erfanian void onContactInteractionsFound(Address address, List<Pair<Calendar, Calendar>> openingHours); 32ccca31529c07970e89419fb85a9e8153a5396838Eric Erfanian } 33dd9dc5ae60a991ab7e4203c4b539d1dd4811b59aAndrew Lee} 34