diff options
author | Jae Seo <jaeseo@google.com> | 2017-02-14 02:27:44 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2017-02-14 02:27:44 +0000 |
commit | daf40d88db9e33bd32cca8622b26bdfd47acf103 (patch) | |
tree | b7659cfd744afeabcabeaf1a07458b1f53878b83 | |
parent | 7d31e354ea354295cc2c4f8ee84123bf8f57db85 (diff) | |
parent | 57fc9514a7dca3e5456736bcf850b842ce357d87 (diff) | |
download | TV-daf40d88db9e33bd32cca8622b26bdfd47acf103.tar.gz |
Remove use of junit.framework.Assert in non-test code am: 2728397759
am: 57fc9514a7
Change-Id: Ic26080d733768d511e4c9300daa7897aa45b9a99
-rw-r--r-- | src/com/android/tv/search/TvProviderSearch.java | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/com/android/tv/search/TvProviderSearch.java b/src/com/android/tv/search/TvProviderSearch.java index 3804f2de..2ceec19a 100644 --- a/src/com/android/tv/search/TvProviderSearch.java +++ b/src/com/android/tv/search/TvProviderSearch.java @@ -38,8 +38,6 @@ import com.android.tv.search.LocalSearchProvider.SearchResult; import com.android.tv.util.PermissionUtils; import com.android.tv.util.Utils; -import junit.framework.Assert; - import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; @@ -191,10 +189,6 @@ public class TvProviderSearch implements SearchInterface { @WorkerThread private List<SearchResult> searchChannels(String query, String[] columnForExactMatching, String[] columnForPartialMatching, Set<Long> channelsFound, int limit) { - Assert.assertTrue( - (columnForExactMatching != null && columnForExactMatching.length > 0) || - (columnForPartialMatching != null && columnForPartialMatching.length > 0)); - String[] projection = { Channels._ID, Channels.COLUMN_DISPLAY_NUMBER, @@ -314,10 +308,6 @@ public class TvProviderSearch implements SearchInterface { String[] columnForPartialMatching, Set<Long> channelsFound, int limit) { if (DEBUG) Log.d(TAG, "Searching programs: '" + query + "'"); long time = SystemClock.elapsedRealtime(); - Assert.assertTrue( - (columnForExactMatching != null && columnForExactMatching.length > 0) || - (columnForPartialMatching != null && columnForPartialMatching.length > 0)); - String[] projection = { Programs.COLUMN_CHANNEL_ID, Programs.COLUMN_TITLE, |