From 937bd02d7cb045cea9aa21a76f3425a68468eeeb Mon Sep 17 00:00:00 2001 From: twyen Date: Thu, 14 Dec 2017 17:20:12 -0800 Subject: Implement PeopleApiPhoneLookup This CL rewrites com.google.android.dialer.reverselookup and uses gRPC instead to perform People API queries. Bug: 70355819 Test: PeopleApiPhoneLookupTest, PeopleApiPHoneLookupInfoTransformerTest PiperOrigin-RevId: 179122466 Change-Id: I769c8b420b9d71b9787d844380b2aceb7ff2c63c --- java/com/android/dialer/function/Consumer.java | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 java/com/android/dialer/function/Consumer.java (limited to 'java/com/android/dialer/function') diff --git a/java/com/android/dialer/function/Consumer.java b/java/com/android/dialer/function/Consumer.java new file mode 100644 index 000000000..fafe3eede --- /dev/null +++ b/java/com/android/dialer/function/Consumer.java @@ -0,0 +1,24 @@ +/* + * 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.function; + +/** Functional interface for consuming generic values. */ +public interface Consumer { + + /** Consumes a value. */ + void accept(T value); +} -- cgit v1.2.3