Home
last modified time | relevance | path

Searched refs:rating (Results 1 – 5 of 5) sorted by relevance

/cts/tests/tests/tv/src/android/media/tv/cts/
DTvContentRatingTest.java39 TvContentRating rating = TvContentRating.createRating(DOMAIN, RATING_SYSTEM, MAIN_RATING_1, in testCreateRating() local
41 assertEquals(DOMAIN, rating.getDomain()); in testCreateRating()
42 assertEquals(RATING_SYSTEM, rating.getRatingSystem()); in testCreateRating()
43 assertEquals(MAIN_RATING_1, rating.getMainRating()); in testCreateRating()
44 List<String> subRatings = rating.getSubRatings(); in testCreateRating()
55 TvContentRating rating = TvContentRating.unflattenFromString(flattened); in testFlattenAndUnflatten() local
57 assertEquals(DOMAIN, rating.getDomain()); in testFlattenAndUnflatten()
58 assertEquals(RATING_SYSTEM, rating.getRatingSystem()); in testFlattenAndUnflatten()
59 assertEquals(MAIN_RATING_1, rating.getMainRating()); in testFlattenAndUnflatten()
60 List<String> subRatings = rating.getSubRatings(); in testFlattenAndUnflatten()
[all …]
DTvInputServiceTest.java140 public void onContentBlocked(String inputId, TvContentRating rating) { in onContentBlocked() argument
142 mContentBlockedRating = rating; in onContentBlocked()
896 final TvContentRating rating = TvContentRating.createRating("android.media.tv", "US_TVPG", in verifyCallbackContentBlocked() local
898 session.notifyContentBlocked(rating); in verifyCallbackContentBlocked()
903 && Objects.equals(mCallback.mContentBlockedRating, rating); in verifyCallbackContentBlocked()
DTvContractTest.java159 TvContentRating rating = TvContentRating.createRating("android.media.tv", "US_TVPG", in createDummyProgramValues() local
161 values.put(Programs.COLUMN_CONTENT_RATING, rating.flattenToString()); in createDummyProgramValues()
200 TvContentRating rating = TvContentRating.createRating("android.media.tv", "US_TVPG", in createDummyBasePreviewProgramValues() local
202 values.put(PreviewPrograms.COLUMN_CONTENT_RATING, rating.flattenToString()); in createDummyBasePreviewProgramValues()
246 TvContentRating rating = TvContentRating.createRating("android.media.tv", "US_TVPG", in createDummyRecordedProgramValues() local
248 values.put(RecordedPrograms.COLUMN_CONTENT_RATING, rating.flattenToString()); in createDummyRecordedProgramValues()
/cts/tests/tests/media/src/android/media/cts/
DMediaControllerTest.java265 final Rating rating = Rating.newStarRating(Rating.RATING_5_STARS, 3f); in testTransportControlsAndMediaSessionCallback() local
266 controls.setRating(rating); in testTransportControlsAndMediaSessionCallback()
269 assertEquals(rating.getRatingStyle(), mCallback.mRating.getRatingStyle()); in testTransportControlsAndMediaSessionCallback()
270 assertEquals(rating.getStarRating(), mCallback.mRating.getStarRating()); in testTransportControlsAndMediaSessionCallback()
571 public void onSetRating(Rating rating) { in onSetRating() argument
574 mRating = rating; in onSetRating()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/tv/
DMockTvInputService.java146 static void setBlockRating(TvContentRating rating) { in setBlockRating() argument
148 sRating = rating; in setBlockRating()