Lines Matching refs:State
72 enum State { enum in MusicProvider
76 private volatile State mCurrentState = State.NON_INITIALIZED;
94 if (mCurrentState != State.INITIALIZED) { in getGenres()
105 if (mCurrentState != State.INITIALIZED || !mMusicListByGenre.containsKey(genre)) { in getMusicsByGenre()
117 if (mCurrentState != State.INITIALIZED) { in searchMusic()
170 return mCurrentState == State.INITIALIZED; in isInitialized()
179 if (mCurrentState == State.INITIALIZED) { in retrieveMediaAsync()
186 new AsyncTask<Void, Void, State>() { in retrieveMediaAsync()
188 protected State doInBackground(Void... params) { in retrieveMediaAsync()
194 protected void onPostExecute(State current) { in retrieveMediaAsync()
196 callback.onMusicCatalogReady(current == State.INITIALIZED); in retrieveMediaAsync()
219 if (mCurrentState == State.NON_INITIALIZED) { in retrieveMedia()
220 mCurrentState = State.INITIALIZING; in retrieveMedia()
237 mCurrentState = State.INITIALIZED; in retrieveMedia()
242 if (mCurrentState != State.INITIALIZED) { in retrieveMedia()
245 mCurrentState = State.NON_INITIALIZED; in retrieveMedia()