Skip to content

Commit d5c582c

Browse files
author
John Spurlock
committed
Additions to Dream public api.
- lightsOut() -> setLightsOut(boolean) (deprecated lightsOut, will remove once all baked-in dreams are updated) - Added ability to keep the screen bright (default = false). - Lights out is now true by default. - Consistent setters(setXxx) + getters(isXxx) for interactive, lightsOut, fullscreen, and screenBright dream attributes. Can set attributes at any time (even before window is created). - Fleshed out javadocs for public api. - Reordered things a bit. - Added example of manifest dream declaration ready for copypasta. - Removed unused action constant, added category constant. Bug:7172816 Bug:7111868 Change-Id: I721db7a1a5e5ad047a3723b4d5141ef53b0970af
1 parent 7566abd commit d5c582c

File tree

2 files changed

+230
-66
lines changed

2 files changed

+230
-66
lines changed

api/current.txt

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20270,8 +20270,11 @@ package android.service.dreams {
2027020270
method public void finish();
2027120271
method public android.view.Window getWindow();
2027220272
method public android.view.WindowManager getWindowManager();
20273+
method public boolean isFullscreen();
2027320274
method public boolean isInteractive();
20274-
method protected void lightsOut();
20275+
method public boolean isLowProfile();
20276+
method public boolean isScreenBright();
20277+
method protected deprecated void lightsOut();
2027520278
method public void onActionModeFinished(android.view.ActionMode);
2027620279
method public void onActionModeStarted(android.view.ActionMode);
2027720280
method public void onAttachedToWindow();
@@ -20292,11 +20295,14 @@ package android.service.dreams {
2029220295
method public void setContentView(int);
2029320296
method public void setContentView(android.view.View);
2029420297
method public void setContentView(android.view.View, android.view.ViewGroup.LayoutParams);
20298+
method public void setFullscreen(boolean);
2029520299
method public void setInteractive(boolean);
20300+
method public void setLowProfile(boolean);
20301+
method public void setScreenBright(boolean);
2029620302
field public static final java.lang.String ACTION_DREAMING_STARTED = "android.intent.action.DREAMING_STARTED";
2029720303
field public static final java.lang.String ACTION_DREAMING_STOPPED = "android.intent.action.DREAMING_STOPPED";
20304+
field public static final java.lang.String CATEGORY_DREAM = "android.intent.category.DREAM";
2029820305
field public static final java.lang.String METADATA_NAME_CONFIG_ACTIVITY = "android.service.dreams.config_activity";
20299-
field public static final java.lang.String SERVICE_INTERFACE = "android.service.dreams.Dream";
2030020306
}
2030120307

2030220308
}

0 commit comments

Comments
 (0)