Merge "DO NOT MERGE: add interim startDream api." into tm-qpr-dev
This commit is contained in:
@@ -287,6 +287,7 @@ package android.app {
|
||||
method @RequiresPermission(android.Manifest.permission.WRITE_DREAM_STATE) public void setDreamOverlay(@Nullable android.content.ComponentName);
|
||||
method @RequiresPermission(android.Manifest.permission.WRITE_SECURE_SETTINGS) public void setScreensaverEnabled(boolean);
|
||||
method @RequiresPermission(android.Manifest.permission.WRITE_DREAM_STATE) public void setSystemDreamComponent(@Nullable android.content.ComponentName);
|
||||
method @RequiresPermission(android.Manifest.permission.WRITE_DREAM_STATE) public void startDream(@Nullable android.content.ComponentName);
|
||||
method @RequiresPermission(android.Manifest.permission.WRITE_DREAM_STATE) public void startDream();
|
||||
method @RequiresPermission(android.Manifest.permission.WRITE_DREAM_STATE) public void stopDream();
|
||||
}
|
||||
|
||||
@@ -84,6 +84,25 @@ public class DreamManager {
|
||||
com.android.internal.R.bool.config_dreamsSupported);
|
||||
}
|
||||
|
||||
/**
|
||||
* Starts dreaming.
|
||||
*
|
||||
* This API is equivalent to {@link DreamManager#startDream()} but with a nullable component
|
||||
* name to be compatible with TM CTS tests.
|
||||
*
|
||||
* <p>This is only used for testing the dream service APIs.
|
||||
*
|
||||
* @see DreamManager#startDream()
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@TestApi
|
||||
@UserHandleAware
|
||||
@RequiresPermission(android.Manifest.permission.WRITE_DREAM_STATE)
|
||||
public void startDream(@Nullable ComponentName name) {
|
||||
startDream();
|
||||
}
|
||||
|
||||
/**
|
||||
* Starts dreaming.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user