Lines Matching refs:State
71 enum State { enum in MusicProvider
75 private State mCurrentState = State.NON_INITIALIZED;
94 if (mCurrentState != State.INITIALIZED) { in getGenres()
106 if (mCurrentState != State.INITIALIZED || !mMusicListByGenre.containsKey(genre)) { in getMusicsByGenre()
120 if (mCurrentState != State.INITIALIZED) { in searchMusics()
150 return mCurrentState == State.INITIALIZED; in isInitialized()
161 if (mCurrentState == State.INITIALIZED) { in retrieveMedia()
181 if (mCurrentState == State.NON_INITIALIZED) { in retrieveMediaAsync()
182 mCurrentState = State.INITIALIZING; in retrieveMediaAsync()
203 mCurrentState = State.INITIALIZED; in retrieveMediaAsync()
208 if (mCurrentState != State.INITIALIZED) { in retrieveMediaAsync()
211 mCurrentState = State.NON_INITIALIZED; in retrieveMediaAsync()
215 callback.onMusicCatalogReady(mCurrentState == State.INITIALIZED); in retrieveMediaAsync()