Skip to content

Commit be87e2f

Browse files
author
Dianne Hackborn
committed
Fix issue #7255954: API Review: rename Dream to DreamService
Change-Id: I89ecf2c3ec4fef09c0495aa68de11576f9cfd872
1 parent 106a692 commit be87e2f

File tree

13 files changed

+664
-646
lines changed

13 files changed

+664
-646
lines changed

api/current.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5777,6 +5777,8 @@ package android.content {
57775777
field public static final java.lang.String ACTION_DEVICE_STORAGE_OK = "android.intent.action.DEVICE_STORAGE_OK";
57785778
field public static final java.lang.String ACTION_DIAL = "android.intent.action.DIAL";
57795779
field public static final java.lang.String ACTION_DOCK_EVENT = "android.intent.action.DOCK_EVENT";
5780+
field public static final java.lang.String ACTION_DREAMING_STARTED = "android.intent.action.DREAMING_STARTED";
5781+
field public static final java.lang.String ACTION_DREAMING_STOPPED = "android.intent.action.DREAMING_STOPPED";
57805782
field public static final java.lang.String ACTION_EDIT = "android.intent.action.EDIT";
57815783
field public static final java.lang.String ACTION_EXTERNAL_APPLICATIONS_AVAILABLE = "android.intent.action.EXTERNAL_APPLICATIONS_AVAILABLE";
57825784
field public static final java.lang.String ACTION_EXTERNAL_APPLICATIONS_UNAVAILABLE = "android.intent.action.EXTERNAL_APPLICATIONS_UNAVAILABLE";
@@ -20317,8 +20319,8 @@ package android.security {
2031720319

2031820320
package android.service.dreams {
2031920321

20320-
public class Dream extends android.app.Service implements android.view.Window.Callback {
20321-
ctor public Dream();
20322+
public class DreamService extends android.app.Service implements android.view.Window.Callback {
20323+
ctor public DreamService();
2032220324
method public void addContentView(android.view.View, android.view.ViewGroup.LayoutParams);
2032320325
method public boolean dispatchGenericMotionEvent(android.view.MotionEvent);
2032420326
method public boolean dispatchKeyEvent(android.view.KeyEvent);
@@ -20358,10 +20360,8 @@ package android.service.dreams {
2035820360
method public void setInteractive(boolean);
2035920361
method public void setLowProfile(boolean);
2036020362
method public void setScreenBright(boolean);
20361-
field public static final java.lang.String ACTION_DREAMING_STARTED = "android.intent.action.DREAMING_STARTED";
20362-
field public static final java.lang.String ACTION_DREAMING_STOPPED = "android.intent.action.DREAMING_STOPPED";
20363-
field public static final java.lang.String CATEGORY_DREAM = "android.intent.category.DREAM";
2036420363
field public static final java.lang.String DREAM_META_DATA = "android.service.dream";
20364+
field public static final java.lang.String SERVICE_INTERFACE = "android.service.dreams.DreamService";
2036520365
}
2036620366

2036720367
}

core/java/android/content/Intent.java

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1389,6 +1389,24 @@ public static Intent createChooser(Intent target, CharSequence title) {
13891389
@SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
13901390
public static final String ACTION_SCREEN_ON = "android.intent.action.SCREEN_ON";
13911391

1392+
/**
1393+
* Broadcast Action: Sent after the system stops dreaming.
1394+
*
1395+
* <p class="note">This is a protected intent that can only be sent by the system.
1396+
* It is only sent to registered receivers.</p>
1397+
*/
1398+
@SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
1399+
public static final String ACTION_DREAMING_STOPPED = "android.intent.action.DREAMING_STOPPED";
1400+
1401+
/**
1402+
* Broadcast Action: Sent after the system starts dreaming.
1403+
*
1404+
* <p class="note">This is a protected intent that can only be sent by the system.
1405+
* It is only sent to registered receivers.</p>
1406+
*/
1407+
@SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
1408+
public static final String ACTION_DREAMING_STARTED = "android.intent.action.DREAMING_STARTED";
1409+
13921410
/**
13931411
* Broadcast Action: Sent when the user is present after device wakes up (e.g when the
13941412
* keyguard is gone).

0 commit comments

Comments
 (0)