summaryrefslogtreecommitdiff
path: root/packages/SystemUI/src/com/android/systemui/Somnambulator.java
Commit message (Collapse)AuthorAgeFilesLines
* Replace Somnambulator functionality with shell commands.Bryce Lee2022-07-121-22/+4
| | | | | | | | | | | | | | | | This changelist removes the ability for Somnambulator to enter dreams. Somnambulator itself was removed from use in ag/238189, where this functionality was moved to UiModeManager. Somnambulator was maintained to resolve the dock intent (but not necessarily launch) and also to be a way for launching dreams for development/test. This changelist preserves the intent resolution, while providing the ability to launch dreams through a shell command as root. Fixes: 225878553 Test: verify dreams work through docking with change. Test: adb shell cmd dreams start-dreaming Test: adb shell cmd dreams stop-dreaming Change-Id: Ia88de2e1548c12079690860a2bb75e4e79d10e66
* Final icon for (Day)dreams.Daniel Sandler2012-10-261-1/+1
| | | | | Bug: 7395321 Change-Id: I20ec252a1bf69664a6687016d281ad680d76a48f
* Dreams/Sleep Mode is now Daydreams.Daniel Sandler2012-10-231-1/+1
| | | | | Bug: 7395321 Change-Id: I3173cd9205df94217911a2d432d1be1db9e3d539
* Do not launch Somnambulator as a dock app.Jeff Brown2012-10-111-40/+14
| | | | | | | | | | | | | | Fixes a black flash that occurred when the device was docked because the UiModeManagerService was launching the Somnambulator to start the dream when docked. This caused an unnecessary activity transition and could in fact make dreaming less reliable than if the UiModeManagerService started the dream itself. Moved common code from UiModeManagerService and Somnambulator to Sandman to ensure it is kept in sync. Bug: 7328545 Change-Id: I46102784e2ab1acc0241d43a48abf0581278af24
* New icon for "Sleep now."Daniel Sandler2012-10-071-1/+1
| | | | | | | | | Should only be shown in the docking intent chooser, but if you use AnyCut to link to the Somnambulator you'll see it there as well. Bug: 7267723 Change-Id: I4be7572e4785f35b4ac1ad91d03a617d5d2fe3c1
* Fix issue #7255954: API Review: rename Dream to DreamServiceDianne Hackborn2012-09-281-2/+2
| | | | Change-Id: I89ecf2c3ec4fef09c0495aa68de11576f9cfd872
* Add the SystemUI's dream-starter as a DESK_DOCK app.Daniel Sandler2012-09-281-9/+33
| | | | | | | | The circle is complete: dock mode is back, and it will launch Dreams by default. Bug: 7163049 Change-Id: I3c681ac701d65b03f882d92d06389d4528e34747
* Make DreamManagerService more robust.Jeff Brown2012-09-261-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Clearly isolated the DreamManagerService and DreamController responsibilities. DreamManagerService contains just enough logic to manage the global synchronous behaviors. All of the asynchronous behaviors are in DreamController. Added a new PowerManager function called nap() to request the device to start napping. If it is a good time to nap, then the PowerManagerService will call startDream() on the DreamManagerService to start dreaming. Fixed a possible multi-user issue by explicitly tracking for which user a dream service is being started and stopping dreams when the current user changes. The user id is also passed to bindService() to ensure that the dream has the right environment. Fix interactions with docks and the UI mode manager. It is important that we always send the ACTION_DOCK_EVENT broadcast to the system so that it can configure audio routing and the like. When docked, the UI mode manager starts a dock app if there is one, otherwise it starts a dream. This change resolves issues with dreams started for reasons other than a user activity timeout. Bug: 7204211 Change-Id: I3193cc8190982c0836319176fa2e9c4dcad9c01f
* New "Start dreams" launcher shortcut.Daniel Sandler2012-09-061-0/+61
Change-Id: Ice46fc8b99dae615e421ccf4eb6ca6f2a76cbe5f