Searched refs:parseOptional (Results 1 – 2 of 2) sorted by relevance
1074 parseOptional(mmr.extractMetadata(METADATA_KEY_CD_TRACK_NUMBER))); in withRetrieverValues()1076 parseOptional(mmr.extractMetadata(METADATA_KEY_ALBUM))); in withRetrieverValues()1078 parseOptional(mmr.extractMetadata(METADATA_KEY_ARTIST)), in withRetrieverValues()1079 parseOptional(mmr.extractMetadata(METADATA_KEY_ALBUMARTIST)))); in withRetrieverValues()1081 parseOptional(mmr.extractMetadata(METADATA_KEY_AUTHOR))); in withRetrieverValues()1083 parseOptional(mmr.extractMetadata(METADATA_KEY_COMPOSER))); in withRetrieverValues()1085 parseOptional(mmr.extractMetadata(METADATA_KEY_GENRE))); in withRetrieverValues()1087 parseOptional(mmr.extractMetadata(METADATA_KEY_TITLE))); in withRetrieverValues()1091 parseOptional(mmr.extractMetadata(METADATA_KEY_DURATION))); in withRetrieverValues()1093 parseOptional(mmr.extractMetadata(METADATA_KEY_NUM_TRACKS))); in withRetrieverValues()[all …]
23 import static com.android.providers.media.scan.ModernMediaScanner.parseOptional;161 assertFalse(parseOptional(null).isPresent()); in testParseOptional()162 assertFalse(parseOptional("").isPresent()); in testParseOptional()163 assertFalse(parseOptional(" ").isPresent()); in testParseOptional()164 assertFalse(parseOptional("-1").isPresent()); in testParseOptional()166 assertFalse(parseOptional(-1).isPresent()); in testParseOptional()167 assertTrue(parseOptional(0).isPresent()); in testParseOptional()168 assertTrue(parseOptional(1).isPresent()); in testParseOptional()170 assertEquals("meow", parseOptional("meow").get()); in testParseOptional()171 assertEquals(42, (int) parseOptional(42).get()); in testParseOptional()