diff options
author | twyen <twyen@google.com> | 2017-12-14 17:20:12 -0800 |
---|---|---|
committer | Copybara-Service <copybara-piper@google.com> | 2017-12-14 17:42:57 -0800 |
commit | 937bd02d7cb045cea9aa21a76f3425a68468eeeb (patch) | |
tree | 214f38d755e7f7fde9a85997af3e886d718c87f2 /java/com/android/dialer/function | |
parent | 77217824a09b4c93d0103c57acfa13368a7b8807 (diff) |
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
Diffstat (limited to 'java/com/android/dialer/function')
-rw-r--r-- | java/com/android/dialer/function/Consumer.java | 24 |
1 files changed, 24 insertions, 0 deletions
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<T> { + + /** Consumes a value. */ + void accept(T value); +} |