Example usage for android.service.dreams DreamService DREAM_SERVICE

List of usage examples for android.service.dreams DreamService DREAM_SERVICE

Introduction

In this page you can find the example usage for android.service.dreams DreamService DREAM_SERVICE.

Prototype

String DREAM_SERVICE

To view the source code for android.service.dreams DreamService DREAM_SERVICE.

Click Source Link

Document

The name of the dream manager service.

Usage

From source file:com.android.tv.settings.accessories.AddAccessoryActivity.java

@Override
public void onCreate(Bundle savedInstanceState) {
    setLayoutProperties(R.layout.add_accessory_custom_two_pane_dialog, R.id.content_fragment,
            R.id.action_fragment);//from   www .j  a va2  s.  c  o  m

    super.onCreate(savedInstanceState);

    mDreamManager = IDreamManager.Stub.asInterface(ServiceManager.checkService(DreamService.DREAM_SERVICE));

    mFragmentManager = getFragmentManager();

    mBtDevices = new ArrayList<BluetoothDevice>();

    mActions = new ArrayList<Action>();

    mNoInputMode = getIntent().getBooleanExtra(INTENT_EXTRA_NO_INPUT_MODE, false);
    mHwKeyDown = false;

    mActions.clear();

    mActionFragment = ActionFragment.newInstance(mActions);
    mContentFragment = AddAccessoryContentFragment.newInstance(false);
    setContentAndActionFragments(mContentFragment, mActionFragment);
    mShowingMultiFragment = false;

    mActionsAnimationDone = false;
    mFragmentTransactionPending = false;
}