summaryrefslogtreecommitdiffstats
path: root/services
Commit message (Collapse)AuthorAgeFilesLines
* BootReceiver: add ro.boot.bootreason property to SYSTEM_LAST_KMSGColin Cross2014-05-091-5/+24
| | | | | | | | | | | | | | Instead of requiring the kernel to join last_kmsg and the reboot reason together, allow both to be passed to userspace and have userspace combine them the way the log parsers want them. Existing devices with no ro.boot.bootreason property and kernel support for putting the reason in last_kmsg will continue to use the kernel's formatting. Bug: 13813279 Change-Id: I079b0107feb1533c6a54044ca6a114741127dfbc (cherry picked from commit 431614cb6b2170fc715757dc6f964fdbb140ee7d)
* Prevent crashing when disabling MCU during dream wakeupHeather Lee Wilson2014-05-061-2/+3
| | | | | | | | | AmbientMode attempting to send message to DozeHardware no longer results in an uncaught IllegalStateException. The exception was crashing Android Wear when DozeHardware had already been released by PowerManagementService at time of AmbientMode's message. Change-Id: I5956a453802b5b764e88638f6b6d899cbc94cc8d
* Merge "Plumb display state and interactive information to BatteryStats. (DO ↵Jeff Brown2014-05-063-17/+34
|\ | | | | | | NOT MERGE)" into klp-modular-dev
| * Plumb display state and interactive information to BatteryStats. (DO NOT MERGE)Jeff Brown2014-05-063-17/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | Fixes an issue where dozing was treated the same as the screen being fully on. Now dozing is treated the same as the screen being fully off which is slightly better. The decision of how to represent this state is now internal to the battery stats so it can be improved later. Removed noteInputEvent() since it is unused. Bug: 14480844 Change-Id: Iee8cf8dce1a1f91c62678bb6d3d9fe567ad6db42
* | Merge "Pause and resume ActivityView when visibility changes" into ↵Craig Mautner2014-05-051-3/+8
|\ \ | | | | | | | | | klp-modular-dev
| * | Pause and resume ActivityView when visibility changesCraig Mautner2014-05-051-3/+8
| |/ | | | | | | | | | | | | | | | | | | Once a Surface has been established the activity in an ActivityView must be paused and resumed as the view goes in and out of visibility = View.GONE. Fixes bug 14034658. Change-Id: Icab43678053c225db70f051dceacd4d024df2153
* | Add null check to embeddedAllowed checkCraig Mautner2014-05-051-1/+1
|/ | | | | | | | | If the component being checked has been removed an NPE will be thrown. This checks for that situation and handles it. Fixes bug 14562234. Change-Id: Ica5713378f356ac8441862d455b7d284ea111212
* Clean up some terminology related to interactive state.Jeff Brown2014-05-011-2/+2
| | | | Change-Id: Ife4445685a5314dea64332a3490fa8dd3ffd89a2
* Merge "Move logical address allocation logic into native service from HAL" ↵Jinsuk Kim2014-04-291-49/+167
|\ | | | | | | into klp-modular-dev
| * Move logical address allocation logic into native service from HALJinsuk Kim2014-04-211-49/+167
| | | | | | | | | | | | | | | | | | | | | | Logical address logic is independent from hardware, and the algorithm is standardized in the spec. Moved the logic to service so that all HAL implementations doesn't have to duplicated logic inside. Related change in HAL definition is in: https://googleplex-android-review.git.corp.google.com/#/c/447951/ Change-Id: I9699309719f3214fc2dbdf219faad484c0c1c5bf
* | Merge "Various CTS fixes" into klp-modular-devAdam Lesinski2014-04-281-5/+4
|\ \
| * | Various CTS fixesAdam Lesinski2014-04-251-5/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | WallpaperManager should always do a null check on the service object. SystemServer should always bring up the DevicePolicyManagerService, and let the service do appropriate default no-ops if the feature is not supported. Change-Id: Iaaf12b60ed375fe2e341ec11faa10c9344d7d9da
* | | Throw exception from startActivity if not allowed.Craig Mautner2014-04-251-0/+34
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The ActivityView.startActivity method may defer calling ActivityContainer.startActivity if the ActivityView is not yet visible. If the activity being started doesn't have allowEmbedded attribute set to true then the SecurityException will not be thrown until the ActivityView is visible. In such a case the caller of ActivityView.startActivity cannot catch the SecurityException. This fix checks the attribute at the time ActivityView.startActivity is called. Fixes bug 14317210. Change-Id: I7fff23e39b67a9a0aa1b2e555920d02ae38906d9
* | Merge "Too soon." into klp-modular-devCraig Mautner2014-04-251-4/+0
|\ \
| * | Too soon.Craig Mautner2014-04-251-4/+0
| | | | | | | | | | | | Change-Id: I1abb1d4841e4e6342c3b861d33ae22e22ed0a161
* | | Merge "Add test for attribute android:allowEmbedded" into klp-modular-devCraig Mautner2014-04-251-0/+4
|\ \ \ | |/ /
| * | Add test for attribute android:allowEmbeddedCraig Mautner2014-04-241-0/+4
| | | | | | | | | | | | | | | | | | | | | Throw a SecurityException if it is not true for an activity launched using ActivityContainer.startActivity(). Change-Id: Id1d70e630195a49a3eccdc64a0beccc420400332
* | | Merge "Use rotation to position circular display mask" into klp-modular-devMichael Kolb2014-04-242-7/+27
|\ \ \ | |/ / |/| |
| * | Use rotation to position circular display maskMichael Kolb2014-04-242-7/+27
| | | | | | | | | | | | | | | | | | Bug: 14231785 Change-Id: Ib6d69f3b9c2a638731539f1c1e51b56ad1698adc
* | | Force ActivityView activities to start in new taskCraig Mautner2014-04-231-1/+4
|/ / | | | | | | | | | | | | | | | | | | | | | | Activities were associating with existing tasks when their components matched. This was causing them to be launched into existing stacks rather than into their ActivityView. Adding these flags forces the launches to be in unique tasks on their ActivityView. Fixes bug 14252286. Change-Id: I9ba65a4a2da198435748c0a17396d3f7f8c75f5e
* | Merge "Fix HDMI hotplug display blanking behavior." into klp-modular-devJeff Brown2014-04-231-2/+10
|\ \
| * | Fix HDMI hotplug display blanking behavior.Jeff Brown2014-04-221-2/+10
| | | | | | | | | | | | | | | Bug: 14109146 Change-Id: Ie7de4fb05da210e8c74c795f7896cf9951701aeb
* | | Javac (at least for 1.7.0_51 on Mac) wants fully qualified class nameYing Wang2014-04-221-1/+1
| | | | | | | | | | | | | | | | | | | | | It looks like a Javac bug. Bug: 14255510 Change-Id: Id3899994226049ff77854fd2a13a6d1b687a0392
* | | Fix black ActivityViewCraig Mautner2014-04-212-11/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | Don't add the surface to the VirtualDisplay until the activity has drawn. That will keep the TextureView from turning black. Fixes bug 12821632. Change-Id: Ia06e9f91be3e14ad724f735ae4e201ac798863a2
* | | Fix ActivityView lifecycleCraig Mautner2014-04-214-117/+165
|/ / | | | | | | | | | | | | | | | | | | Major changes to maintain the VirtualDisplay across repeated attach/detach cycles of an ActivityView. This keeps the activities and VirtualDisplays in the ActivityView from getting into bad states. Fixes bug 14107002. Change-Id: Idc2aaf85ac496eab0eeb436736cb10a2020040e8
* | Add support for dynamically setting the virtual display surface.Jeff Brown2014-04-162-3/+39
| | | | | | | | | | | | | | | | | | Previously, the surface that backs a virtual display had to be set at the time when the display was created. This change now makes it possible to set or remove the surface later. The virtual display is treated as if it were "off" while no surface is attached to it. Change-Id: Ib4fdbbb8b4ee79f0fb9ceb648f9bda4a8fa6a2ca
* | Merge "Allowed custom secure-adb confirmation via Activity or Service. It ↵Aaron Whyte2014-04-161-13/+53
|\ \ | | | | | | | | | used to only be available via an Activity." into klp-modular-dev
| * | Allowed custom secure-adb confirmation via Activity or Service.Aaron Whyte2014-04-161-13/+53
| | | | | | | | | | | | | | | | | | It used to only be available via an Activity. Change-Id: Id79a99a70e721f3b567e75d45ffeba779264ec1e
* | | Fix ActivityContainer callback parcelling.Craig Mautner2014-04-162-5/+34
|/ / | | | | | | | | | | | | | | The Binder interface for passing a callback was not implemented properly. Also the callback for ActivityContainer now has a new API. Change-Id: I6b719be0cb57542f022a3cc14e8f4efde60b1a50
* | Add support for custom TXT records in NSDChristopher Lane2014-04-141-5/+21
|/ | | | Change-Id: I8e6dc9852ad4d273c71ad6a63a7fbd28a206806d
* Use the display's actual state in the view hierarchy.Jeff Brown2014-04-111-18/+0
| | | | | | | | | | | | | | Previously, the view hierarchy would suppress drawing whenever the PowerManager.isScreenOn() method returned false. However, this method really describes the interactive state of the device rather than the actual display state. This is especially a problem when there are multiple displays but it also breaks drawing while in doze mode. This change makes the view hierarchy consider the actual state of the display instead on an individual basis. Bug: 13133142 Change-Id: I69870b6b14a3504607a30562aa48c3452f777c1f
* Fix build.Narayan Kamath2014-04-111-3/+3
| | | | | | isScreenOn was changed to isInteractive. Change-Id: I381d0b0ca745b61e64ac6309c2a6307696f52be0
* Merge "Delegate HdmiCecService method impl to HdmiCecDevice subclass" into ↵Jinsuk Kim2014-04-114-19/+91
|\ | | | | | | klp-modular-dev
| * Delegate HdmiCecService method impl to HdmiCecDevice subclassJinsuk Kim2014-04-114-19/+91
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Most of the methods in the interface IHdmiCecService should be implemented based on the device type. This CL makes a change such that the HdmiCecDevice just has stub methods that should be overriden by subclasses. Other changes: - Fixed a bug of <Inactive Source> not sending its physical address in its message body. Also the command should have been sent to TV only rather than broadcast. - Put back sendGiveDevicePowerStatus interface method. It allows the client to keep track of the other device(like TV) power status more closely. Devices goes through the status from standby -> transient to on -> on but the CEC spec doesn't require that they broacast it actively. The restored method can be used to let the playback device to get up-to-date power status of TV/display when it is booting up. This method should work the same across all the device types. So it was implemented in the service, not delegated to HdmiCecDevice. - Send <Report Physical Address> when a new logical device is registered, which is required by CEC spec: "it should report the association between its logical and physical address by broadcasting <Report Physical Address> Change-Id: Iac1d2cf5783d947f2dcd6965a54670fbdb8e6a63
* | Merge "Plumb display power state through display manager." into klp-modular-devJeff Brown2014-04-1119-466/+407
|\ \
| * | Plumb display power state through display manager.Jeff Brown2014-04-1019-466/+407
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Declare a new method, Display.getState() to retrieve the actual power state of a display. Improved documentation for Intent.ACTION_SCREEN_ON and Intent.ACTION_SCREEN_OFF to clarify what they really mean in terms of the interactive state of the device. Deprecated PowerManager.isScreenOn() and replaced it with PowerManager.isInteractive() with a more suggestive name and better documentation. Redirect display power state changes to go through the display manager first and only then head over to the power manager for legacy compatibility. Eliminated the bright here and woke here policy flags since they were unused. Simplified the input dispatch policy somewhat. Ensure that screen wake locks are respected up until the point when dozing really begins. Fixed a regression in DreamService where onDreamingStarted might be called before onWindowAttached. Bug: 13133142 Bug: 13472578 Bug: 13929355 Bug: 13760290 Change-Id: Iabef96921dd554ce3768fb18619cefc3230b5fb0
* | | Merge "Merge "NsdService does not clean up after exiting clients"" into ↵Jesse Gunsch2014-04-091-17/+64
|\ \ \ | |/ / |/| | | | | klp-modular-dev
| * | Merge "NsdService does not clean up after exiting clients"Dave Platt2014-04-081-17/+64
| |/
* | Move certain internal activity manager methods to new class.Jeff Brown2014-04-082-54/+28
| | | | | | | | | | | | | | | | | | | | | | This is a little bit of refactoring in preparation for changing how the power manager notifies system components about changes in power state. Deleted the startRunning method since it is no longer useful. Bug: 13133142 Change-Id: I7f845c61ecc7ee890154ed0cbd90795de609b7ea
* | Move display power controller to display manager service. (DO NOT MERGE)Jeff Brown2014-04-089-336/+145
|/ | | | | | | | | | This refactoring is in preparation for enabling the display manager to have more control over the blanking state of individual displays. There are no functional changes. Some bits will be cleaned up in a subsequent patch. Bug: 13133142 Change-Id: Ib811835e8757449c7899ac61807029baaf998161
* Introduce new UI_MODE_TYPE_WATCH and qualifier.John Spurlock2014-04-041-2/+8
| | | | | | | Default ui mode to watch if we have FEATURE_WATCH. Bug:13395758 Change-Id: Ie5ff95de60e69e91ad3612c7d2f1fca7f49061bd
* Use build property for CEC device OSD nameJinsuk Kim2014-04-033-65/+30
| | | | | | | | | | | | | | Previously OSD name was based on device type. This CL makes it independent of device type. CEC spec says "A device that implements more than one type of CEC functionality should respond with the same OSD name for each logical address. It is recommended that the name refers to the complete physical product rather than the individual CEC functionality". Now the default name comes from system build property. I removed setOsdName() from aidl for now since it won't be in use. Change-Id: I3c9fb877fad4bc5efef56268d155a3f37a865fc2
* Merge "Maintain display power status for playback device" into klp-modular-devJinsuk Kim2014-04-024-13/+197
|\
| * Maintain display power status for playback deviceJinsuk Kim2014-04-024-13/+197
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With this CL, the power status of TV/display is keep tracked of by hdmi cec server part, specfically HdmiCecDevicePlayback. Turned the HdmiCecDevice to abstract class from which classes of concrete device type(HdmiCecDevicePlayback, HdmiCecDeviceTV) are inherited. The display power status code is put in HdmiCecDevicePlayback only. HdmiCecDeviceTv will have its own logic that manages power status of devices connected to it. For now it only has a bare minimum code. Will be worked on in follow up CLs. Other changes: - Replaced sendGiveDevicePowerStatus() with isTvOn() so that the status can be queried by clients. - Defensively check the availability of HdmiCecService so that HdmiCecManager.getClient() returns null in case the service couldn't be initialized. This ensures clients of the service gets the nulled-out HdmiCecClient when called in the state/configuration where the service is not available, thus proceed accordingly. Change-Id: Idaf69e73cfbd639c0b40b1bd4b6146f011246180
* | Add circular anti-aliasing mask to circular displayMichael Kolb2014-04-012-0/+155
| | | | | | | | | | | | | | | | Bug: 13635645 Add a 2 px wide anti-aliased circle as a Layer to WindowManagerService Change-Id: Ic8d319ca43c222f5b2e69af896749b8f2018ce3e
* | Merge "Replace individual methods with a consolidated CEC nativeSendmessage" ↵Jinsuk Kim2014-03-312-127/+75
|\ \ | |/ | | | | into klp-modular-dev
| * Replace individual methods with a consolidated CEC nativeSendmessageJinsuk Kim2014-03-272-127/+75
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It saves us from having to add numerous native methods to HdmiCecService. A new native method that reports physical address was added in consequence to be able to build the message in Java side. Other changes: - Substituted more concrete type (cec_device_type_t) to int. - Fixed the issue about byte endianness in handling physical address/vendor id. The bytes of variable mPhysicalAddress in native service were being reversed previously but still worked because they were reversed again when copied out to outgoing messages. Vendor id had a bug of bytes being reversed. In order to fix the issue, the way they are copied to byte array was changed so that it becomes independent to byte endianness. - CL's for header/HAL implementation changes are: https://googleplex-android-review.git.corp.google.com/#/c/437667 https://googleplex-android-review.git.corp.google.com/#/c/437668 Change-Id: Id1ac683fe54597a2c707f30492c7f86e5392504d
* | Merge "hdmi: cec: add permission name to dump permission denial message" ↵Adam Hampson2014-03-281-1/+2
|\ \ | | | | | | | | | into klp-modular-dev
| * | hdmi: cec: add permission name to dump permission denial messageAdam Hampson2014-03-271-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | The android.security.cts.ServicePermissionsTest--testDumpProtected test was failing on this service because it is looking for the permission name in the denial message. Change-Id: I4b4d38cd27b782470d1f21e36104164d2c8962a3 Signed-off-by: Adam Hampson <ahampson@google.com>
* | | Made secure-adb's new-public-key activity configurable.Aaron Whyte2014-03-281-8/+13
| | | | | | | | | | | | | | | | | | | | | | | | Some devices do not have lockscreens themselves, so the plan is to have them do RPCs to companion devices that can have lockscreens, for allowing or rejecting unwhitelisted adb public keys. Change-Id: I6f7504313074e6748c0bd467a29ac3a311036f4d