// Path: android/YotaCast/yotaphone_titanium_sdk/src/com/yotadevices/sdk/Constants.java
// public static class SystemBSFlags {
//     public final static int SYSTEM_BS_UI_FLAG_VISIBLE = 0;
// 
//     @Deprecated
//     /**
//      * It's deprecated. No effect
//      */
//     public final static int SYSTEM_BS_UI_FLAG_HIDE_STATUS_BAR = 0x00000001;
//     public final static int SYSTEM_BS_UI_FLAG_HIDE_NAVIGATION = 0x00000002;
//     public final static int SYSTEM_BS_UI_FLAG_TRANSLUCENT_NAVIGATION = 0x00000004;
// }
// 
// Path: android/YotaCast/yotaphone_titanium_sdk/src/com/yotadevices/sdk/Constants.java
// public enum VolumeButtonsEvent {
//     /**
//      * On "Volume Plus press" event
//      */
//     VOLUME_PLUS_DOWN,
//     /**
//      * On "Volume Minus press" event
//      */
//     VOLUME_MINUS_DOWN,
//     /**
//      * On "Volume Plus release” event
//      */
//     VOLUME_PLUS_UP,
//     /**
//      * On "Volume Minus release" event
//      */
//     VOLUME_MINUS_UP,
//     /**
//      * @hide
//      */
//     VOLUME_PLUS_LONG_PRESS,
//     /**
//      * @hide
//      */
//     VOLUME_MINUS_LONG_PRESS,
// 
//     /**
//      * Unknown volume button action
//      */
//     UNKNOW;
// 
//     /**
//      * @hide
//      */
//     public static VolumeButtonsEvent valueOf(int event) {
//         switch (event) {
//         case 0:
//             return VOLUME_PLUS_DOWN;
//         case 1:
//             return VOLUME_MINUS_DOWN;
//         case 2:
//             return VOLUME_PLUS_UP;
//         case 3:
//             return VOLUME_MINUS_UP;
//         case 4:
//             return VOLUME_PLUS_LONG_PRESS;
//         case 5:
//             return VOLUME_MINUS_LONG_PRESS;
//         default:
//             return UNKNOW;
//         }
//     }
// }
// 
// Path: android/YotaCast/yotaphone_titanium_sdk/src/com/yotadevices/sdk/exception/SuperNotCalledException.java
// public final class SuperNotCalledException extends AndroidRuntimeException {
// 	public SuperNotCalledException(String msg) {
// 		super(msg);
// 	}
// }
// 
// Path: android/YotaCast/yotaphone_titanium_sdk/src/com/yotadevices/sdk/helper/HelperConstant.java
// public class HelperConstant {
// 
//     public static final String FRAMEWORK_SDK_ACTION = "yotaphone.intent.action.GET_SDK_BINDER";
//     public static final String FRAMEWORK_SERVICE_ACTION = "yotaphone.intent.action.GET_SERVICE_BINDER";
// 
// }


import com.yotadevices.sdk.Constants.SystemBSFlags;
import com.yotadevices.sdk.Constants.VolumeButtonsEvent;
import com.yotadevices.sdk.exception.SuperNotCalledException;
import com.yotadevices.sdk.helper.HelperConstant;
import android.app.Service;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.ServiceConnection;
import android.os.Bundle;
import android.os.Handler;
import android.os.IBinder;
import android.os.Message;
import android.os.Messenger;
import android.util.Log;
import android.view.KeyEvent;
import android.view.View;
import android.view.ViewGroup.LayoutParams;
import android.view.WindowManager;

    int getSytemBSUiVisibility() {
        return mSystemUiVisibility;
    }

    /**
     * Runs the specified action on the UI thread. If the current thread is the
     * UI thread, then the action is executed immediately. If the current thread
     * is not the UI thread, the action is posted to the event queue of the UI
     * thread. Parameters: action the action to run on the UI thread
     * 
     * @param action
     */
    public void runOnUiThread(Runnable action) {
        h.post(action);
    }

    /**
     * Check to see whether this BSActivity is in the process of finishing,
     * either because you called finish() on it or someone else has requested
     * that it finished. This is often used in onBSPause() to determine whether
     * the BSActivity is simply pausing or completely finishing.
     * 
     * @return If the BSActivity is finishing, returns true; else returns false.
     */
    public boolean isFinishing() {
        return isFinishing;
    }

    void setFinishing(boolean finish) {
// Path: android/YotaCast/yotaphone_titanium_sdk/src/com/yotadevices/sdk/Constants.java
// public static class SystemBSFlags {
//     public final static int SYSTEM_BS_UI_FLAG_VISIBLE = 0;
// 
//     @Deprecated
//     /**
//      * It's deprecated. No effect
//      */
//     public final static int SYSTEM_BS_UI_FLAG_HIDE_STATUS_BAR = 0x00000001;
//     public final static int SYSTEM_BS_UI_FLAG_HIDE_NAVIGATION = 0x00000002;
//     public final static int SYSTEM_BS_UI_FLAG_TRANSLUCENT_NAVIGATION = 0x00000004;
// }
// 
// Path: android/YotaCast/yotaphone_titanium_sdk/src/com/yotadevices/sdk/Constants.java
// public enum VolumeButtonsEvent {
//     /**
//      * On "Volume Plus press" event
//      */
//     VOLUME_PLUS_DOWN,
//     /**
//      * On "Volume Minus press" event
//      */
//     VOLUME_MINUS_DOWN,
//     /**
//      * On "Volume Plus release” event
//      */
//     VOLUME_PLUS_UP,
//     /**
//      * On "Volume Minus release" event
//      */
//     VOLUME_MINUS_UP,
//     /**
//      * @hide
//      */
//     VOLUME_PLUS_LONG_PRESS,
//     /**
//      * @hide
//      */
//     VOLUME_MINUS_LONG_PRESS,
// 
//     /**
//      * Unknown volume button action
//      */
//     UNKNOW;
// 
//     /**
//      * @hide
//      */
//     public static VolumeButtonsEvent valueOf(int event) {
//         switch (event) {
//         case 0:
//             return VOLUME_PLUS_DOWN;
//         case 1:
//             return VOLUME_MINUS_DOWN;
//         case 2:
//             return VOLUME_PLUS_UP;
//         case 3:
//             return VOLUME_MINUS_UP;
//         case 4:
//             return VOLUME_PLUS_LONG_PRESS;
//         case 5:
//             return VOLUME_MINUS_LONG_PRESS;
//         default:
//             return UNKNOW;
//         }
//     }
// }
// 
// Path: android/YotaCast/yotaphone_titanium_sdk/src/com/yotadevices/sdk/exception/SuperNotCalledException.java
// public final class SuperNotCalledException extends AndroidRuntimeException {
// 	public SuperNotCalledException(String msg) {
// 		super(msg);
// 	}
// }
// 
// Path: android/YotaCast/yotaphone_titanium_sdk/src/com/yotadevices/sdk/helper/HelperConstant.java
// public class HelperConstant {
// 
//     public static final String FRAMEWORK_SDK_ACTION = "yotaphone.intent.action.GET_SDK_BINDER";
//     public static final String FRAMEWORK_SERVICE_ACTION = "yotaphone.intent.action.GET_SERVICE_BINDER";
// 
// }


// Path: android/YotaCast/yotaphone_titanium_sdk/src/com/yotadevices/sdk/BSActivity.java
import com.yotadevices.sdk.Constants.SystemBSFlags;
import com.yotadevices.sdk.Constants.VolumeButtonsEvent;
import com.yotadevices.sdk.exception.SuperNotCalledException;
import com.yotadevices.sdk.helper.HelperConstant;
import android.app.Service;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.ServiceConnection;
import android.os.Bundle;
import android.os.Handler;
import android.os.IBinder;
import android.os.Message;
import android.os.Messenger;
import android.util.Log;
import android.view.KeyEvent;
import android.view.View;
import android.view.ViewGroup.LayoutParams;
import android.view.WindowManager;


    int getSytemBSUiVisibility() {
        return mSystemUiVisibility;
    }

    /**
     * Runs the specified action on the UI thread. If the current thread is the
     * UI thread, then the action is executed immediately. If the current thread
     * is not the UI thread, the action is posted to the event queue of the UI
     * thread. Parameters: action the action to run on the UI thread
     * 
     * @param action
     */
    public void runOnUiThread(Runnable action) {
        h.post(action);
    }

    /**
     * Check to see whether this BSActivity is in the process of finishing,
     * either because you called finish() on it or someone else has requested
     * that it finished. This is often used in onBSPause() to determine whether
     * the BSActivity is simply pausing or completely finishing.
     * 
     * @return If the BSActivity is finishing, returns true; else returns false.
     */
    public boolean isFinishing() {
        return isFinishing;
    }

    void setFinishing(boolean finish) {
        isFinishing = finish;