Searched refs:rating (Results 1 – 7 of 7) sorted by relevance
/cts/tests/tests/tv/src/android/media/tv/cts/ |
D | TvContentRatingTest.java | 39 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 …]
|
D | TvInputServiceTest.java | 140 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()
|
D | TvContractTest.java | 159 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/ |
D | MediaMetadata2Test.java | 45 final Rating2 rating = Rating2.newThumbRating(true); in testBuilder() local 51 builder.putRating(MediaMetadata2.METADATA_KEY_USER_RATING, rating); in testBuilder() 57 assertEquals(rating, metadata.getRating(MediaMetadata2.METADATA_KEY_USER_RATING)); in testBuilder()
|
D | MediaControllerTest.java | 201 final Rating rating = Rating.newStarRating(Rating.RATING_5_STARS, 3f); in testTransportControlsAndMediaSessionCallback() local 202 controls.setRating(rating); in testTransportControlsAndMediaSessionCallback() 205 assertEquals(rating.getRatingStyle(), mCallback.mRating.getRatingStyle()); in testTransportControlsAndMediaSessionCallback() 206 assertEquals(rating.getStarRating(), mCallback.mRating.getStarRating()); in testTransportControlsAndMediaSessionCallback() 501 public void onSetRating(Rating rating) { in onSetRating() argument 504 mRating = rating; in onSetRating()
|
D | MediaController2Test.java | 825 final Rating2 rating = Rating2.newStarRating(ratingType, ratingValue); in testSetRating() local 835 assertEquals(rating, ratingOut); in testSetRating() 845 controller.setRating(mediaId, rating); in testSetRating()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/tv/ |
D | MockTvInputService.java | 146 static void setBlockRating(TvContentRating rating) { in setBlockRating() argument 148 sRating = rating; in setBlockRating()
|