diff options
author | Yorke Lee <yorkelee@google.com> | 2014-03-04 08:23:08 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-03-04 08:23:08 +0000 |
commit | 3f9f21714cc34f1c8822d6d3e6c51e1fb89ae8c9 (patch) | |
tree | ada26b45053b6c13ef5a0d930ecfeba97fdeaf34 | |
parent | 0b9af237969cc7920fa7886f9f7c1b0f7159a1fc (diff) | |
parent | d988a7de1552687be60305e2be420b7256b43a6e (diff) |
am d988a7de: am 2c1f343c: Remove private references from Dialer
* commit 'd988a7de1552687be60305e2be420b7256b43a6e':
Remove private references from Dialer
3 files changed, 6 insertions, 5 deletions
diff --git a/src/com/android/dialer/calllog/PhoneNumberUtilsWrapper.java b/src/com/android/dialer/calllog/PhoneNumberUtilsWrapper.java index 3eacfec87..2133f0f9d 100644 --- a/src/com/android/dialer/calllog/PhoneNumberUtilsWrapper.java +++ b/src/com/android/dialer/calllog/PhoneNumberUtilsWrapper.java @@ -20,7 +20,7 @@ import android.provider.CallLog; import android.telephony.PhoneNumberUtils; import android.text.TextUtils; -import com.google.android.collect.Sets; +import com.google.common.collect.Sets; import java.util.Set; diff --git a/src/com/android/dialer/list/PhoneFavoritesTileAdapter.java b/src/com/android/dialer/list/PhoneFavoritesTileAdapter.java index cd4fb00e2..a85fc6a60 100644 --- a/src/com/android/dialer/list/PhoneFavoritesTileAdapter.java +++ b/src/com/android/dialer/list/PhoneFavoritesTileAdapter.java @@ -43,13 +43,12 @@ import com.android.contacts.common.list.ContactTileAdapter.DisplayType; import com.android.contacts.common.list.ContactTileView; import com.android.dialer.list.SwipeHelper.OnItemGestureListener; import com.android.dialer.list.SwipeHelper.SwipeHelperCallback; -import com.android.internal.annotations.VisibleForTesting; +import com.google.common.annotations.VisibleForTesting; import com.google.common.collect.ComparisonChain; import java.util.ArrayList; import java.util.Comparator; -import java.util.HashMap; import java.util.LinkedList; import java.util.List; import java.util.PriorityQueue; diff --git a/src/com/android/dialer/voicemail/VoicemailPlaybackPresenter.java b/src/com/android/dialer/voicemail/VoicemailPlaybackPresenter.java index ef29f1397..ebda0eb3c 100644 --- a/src/com/android/dialer/voicemail/VoicemailPlaybackPresenter.java +++ b/src/com/android/dialer/voicemail/VoicemailPlaybackPresenter.java @@ -16,8 +16,6 @@ package com.android.dialer.voicemail; -import static android.util.MathUtils.constrain; - import android.content.Context; import android.database.ContentObserver; import android.media.AudioManager; @@ -627,4 +625,8 @@ public class VoicemailPlaybackPresenter { mWakeLock.release(); } } + + private static int constrain(int amount, int low, int high) { + return amount < low ? low : (amount > high ? high : amount); + } } |