Searched refs:parseOptional (Results 1 – 2 of 2) sorted by relevance
1125 parseOptional(mmr.extractMetadata(METADATA_KEY_CD_TRACK_NUMBER))); in withRetrieverValues()1127 parseOptional(mmr.extractMetadata(METADATA_KEY_ALBUM))); in withRetrieverValues()1129 parseOptional(mmr.extractMetadata(METADATA_KEY_ARTIST)), in withRetrieverValues()1130 parseOptional(mmr.extractMetadata(METADATA_KEY_ALBUMARTIST)))); in withRetrieverValues()1132 parseOptional(mmr.extractMetadata(METADATA_KEY_AUTHOR))); in withRetrieverValues()1134 parseOptional(mmr.extractMetadata(METADATA_KEY_COMPOSER))); in withRetrieverValues()1136 parseOptional(mmr.extractMetadata(METADATA_KEY_GENRE))); in withRetrieverValues()1138 parseOptional(mmr.extractMetadata(METADATA_KEY_TITLE))); in withRetrieverValues()1142 parseOptional(mmr.extractMetadata(METADATA_KEY_DURATION))); in withRetrieverValues()1144 parseOptional(mmr.extractMetadata(METADATA_KEY_NUM_TRACKS))); in withRetrieverValues()[all …]
23 import static com.android.providers.media.scan.ModernMediaScanner.parseOptional;160 assertFalse(parseOptional(null).isPresent()); in testParseOptional()161 assertFalse(parseOptional("").isPresent()); in testParseOptional()162 assertFalse(parseOptional(" ").isPresent()); in testParseOptional()163 assertFalse(parseOptional("-1").isPresent()); in testParseOptional()165 assertFalse(parseOptional(-1).isPresent()); in testParseOptional()166 assertTrue(parseOptional(0).isPresent()); in testParseOptional()167 assertTrue(parseOptional(1).isPresent()); in testParseOptional()169 assertEquals("meow", parseOptional("meow").get()); in testParseOptional()170 assertEquals(42, (int) parseOptional(42).get()); in testParseOptional()