aboutsummaryrefslogtreecommitdiff
path: root/tests/common/src/com/android/tv/testing/Utils.java
diff options
context:
space:
mode:
authorNick Chalko <nchalko@google.com>2016-02-26 13:38:57 -0800
committerNick Chalko <nchalko@google.com>2016-02-26 13:39:22 -0800
commitba5845f23b8fbc985890f892961abc8b39886611 (patch)
treeda373b9fe1955a2c7008c2e65df5ec3f5b087454 /tests/common/src/com/android/tv/testing/Utils.java
parent1abddd9f6225298066094e20a6c29061b6af4590 (diff)
downloadTV-ba5845f23b8fbc985890f892961abc8b39886611.tar.gz
Sync to ub-tv-interns at cc7c29d2a24a1343498f6d95ca5a79e003e6aefe
Change-Id: I580da190231e47c65b69f425b30ec4685eb50ce4
Diffstat (limited to 'tests/common/src/com/android/tv/testing/Utils.java')
-rw-r--r--tests/common/src/com/android/tv/testing/Utils.java25
1 files changed, 0 insertions, 25 deletions
diff --git a/tests/common/src/com/android/tv/testing/Utils.java b/tests/common/src/com/android/tv/testing/Utils.java
index 9e1bd3e9..6bc4e24e 100644
--- a/tests/common/src/com/android/tv/testing/Utils.java
+++ b/tests/common/src/com/android/tv/testing/Utils.java
@@ -95,31 +95,6 @@ public final class Utils {
return null;
}
- public static TvContentRating[] stringToContentRatings(String commaSeparatedRatings) {
- if (TextUtils.isEmpty(commaSeparatedRatings)) {
- return null;
- }
- String[] ratings = commaSeparatedRatings.split("\\s*,\\s*");
- TvContentRating[] contentRatings = new TvContentRating[ratings.length];
- for (int i = 0; i < contentRatings.length; ++i) {
- contentRatings[i] = TvContentRating.unflattenFromString(ratings[i]);
- }
- return contentRatings;
- }
-
- public static String contentRatingsToString(TvContentRating[] contentRatings) {
- if (contentRatings == null || contentRatings.length == 0) {
- return null;
- }
- final String DELIMITER = ",";
- StringBuilder ratings = new StringBuilder(contentRatings[0].flattenToString());
- for (int i = 1; i < contentRatings.length; ++i) {
- ratings.append(DELIMITER);
- ratings.append(contentRatings[i].flattenToString());
- }
- return ratings.toString();
- }
-
/**
* Return the Random class which is needed to make random data for testing.
* Default seed of the random is today's date.