1 /* 2 * Copyright (C) 2008 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.mediaframeworktest.unit; 18 19 class MediaPlayerStateErrors { 20 public static final int MEDIA_PLAYER_ERROR = 100; 21 public static enum MediaPlayerState { 22 IDLE, 23 IDLE_AFTER_RESET, 24 INITIALIZED, 25 PREPARED, 26 PREPARED_AFTER_STOP, 27 STARTED, 28 STARTED_AFTER_PAUSE, 29 PAUSED, 30 STOPPED, 31 PLAYBACK_COMPLETED, 32 ERROR, 33 } 34 35 // Error occurs in the states below? 36 public boolean errorInIdleState = false; 37 public boolean errorInIdleStateAfterReset = false; 38 public boolean errorInInitializedState = false; 39 public boolean errorInPreparedState = false; 40 public boolean errorInStartedState = false; 41 public boolean errorInPausedState = false; 42 public boolean errorInStartedStateAfterPause = false; 43 public boolean errorInStoppedState = false; 44 public boolean errorInPreparedStateAfterStop = false; 45 public boolean errorInPlaybackCompletedState = false; 46 public boolean errorInErrorState = false; 47 } 48