1 /* 2 * Copyright 2018 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 package com.android.pump.db; 18 19 import androidx.annotation.NonNull; 20 21 interface MediaProvider { getAudioById(long id)22 @NonNull Audio getAudioById(long id); getArtistById(long id)23 @NonNull Artist getArtistById(long id); getAlbumById(long id)24 @NonNull Album getAlbumById(long id); getGenreById(long id)25 @NonNull Genre getGenreById(long id); getPlaylistById(long id)26 @NonNull Playlist getPlaylistById(long id); 27 getMovieById(long id)28 @NonNull Movie getMovieById(long id); getSeriesById(@onNull String title)29 @NonNull Series getSeriesById(@NonNull String title); getSeriesById(@onNull String title, int year)30 @NonNull Series getSeriesById(@NonNull String title, int year); getEpisodeById(long id)31 @NonNull Episode getEpisodeById(long id); getOtherById(long id)32 @NonNull Other getOtherById(long id); 33 } 34