Searched refs:safeParseId (Results 1 – 3 of 3) sorted by relevance
36 assertThat(ContentUriUtils.safeParseId(Uri.EMPTY)).isEqualTo(-1); in safeParseId_empty()41 assertThat(ContentUriUtils.safeParseId(Uri.parse("foo/bad"))).isEqualTo(-1); in safeParseId_bad()46 assertThat(ContentUriUtils.safeParseId(Uri.parse("foo/123"))).isEqualTo(123); in safeParseId_123()
37 public static long safeParseId(Uri uri) { in safeParseId() method in ContentUriUtils
1527 long channelIdFromIntent = ContentUriUtils.safeParseId(mInitChannelUri); in handleIntent()2930 mChannelDataManager.getChannel(ContentUriUtils.safeParseId(channel));