18573 Commits

Author SHA1 Message Date
RoboErik
b7c014c291 Move return out of debug conditional
Accidentally put the return for not sending volume changes into
the debug conditional.

bug:16379124
Change-Id: I473f6fdf7577ca26559ab9b02f4dc0613ef702e3
2014-07-22 23:00:14 +00:00
Christopher Tate
dcb7a9511c Merge "Always check restore against the latest backend metadata" into lmp-dev 2014-07-22 16:29:55 +00:00
Christopher Tate
f7cbb1fc25 Always check restore against the latest backend metadata
Bug 16484934

Change-Id: I472a7db89a94b9804f6ea94c25da206dd111a497
2014-07-22 15:12:02 -07:00
Robin Lee
9c2be6c7ba Stop double-loading device admins
loadSettingsLocked() was being called twice for USER_OWNER at
systemReady(), doubling the number of admin entries at every boot.

Also guards against double-adding admins which appear twice in the
same XML file, favouring more recently-refreshed entries for
backward compatibility.

Previously an application calling in with 'refreshing = true' would
double-insert whatever admin was being refreshed into its user's list
of device admins. This is fixed too.

@bug 16416936

Change-Id: Idd147aa130e6bce7bcc40532f0a7fb07117b3151
2014-07-22 21:35:09 +00:00
Alexandra Gherghina
0e9ac20d7e Do Not Merge Per-user API for master sync
Change-Id: I6a8088eb3bfddae4c8e38904dd26baf3c7c09c9e
(cherry picked from commit 222aea8bd997807784dc99ca53f63280d384fdf0)
2014-07-22 20:15:45 +00:00
Sreeram Ramachandran
a77760d74a Fix WiFi-Direct.
Add a new command to let netd know about routes on a p2p interface.

Bug: 15413694

Change-Id: I36effc438d5ac193a77174493bf196cb68a5b97a
2014-07-22 11:24:29 -07:00
Craig Mautner
dc00cbe2c1 Create API for launching from recents
Relaunch apps from recents using the same uid and package as was used
in the original launch.

Fixes bug 16358208.

Change-Id: I340800bfee79926b197929360d69f1d570bbf1eb
2014-07-22 18:13:34 +00:00
Craig Mautner
f14e5a2fad Add empty ArrayList check.
Fixes bug 15768779.

Change-Id: I3e4c48aa0fff99025e9ba1725e3d1f3523749dbd
2014-07-22 18:09:45 +00:00
destradaa
c79dd82e55 Merge "Add uncertainty for GPS received TOW field. b/16463499" into lmp-dev 2014-07-22 16:13:36 +00:00
Geoff Mendal
af13b025e9 Merge commit 'e959e4a0' into lmp-dev
Conflicts:
	services/core/java/com/android/server/wm/WindowManagerService.java
2014-07-22 10:14:35 -07:00
destradaa
81cabb8a7f Add uncertainty for GPS received TOW field.
b/16463499

Change-Id: I5dde8a2737d9345eb7f77edc64ab7286254a65e4
2014-07-22 10:03:28 -07:00
Justin Koh
e959e4a017 am a63272b4: Merge "Revert "Wait for all windows to draw before turning screen on"" into klp-modular-dev
* commit 'a63272b4b5eff16f4d6fae4730b8a7087563181c':
  Revert "Wait for all windows to draw before turning screen on"
2014-07-22 16:31:06 +00:00
Sandeep Siddhartha
6daae96226 AlwaysOnHotwordDetector needs to reflect enrollment changes
Add a callback for when any sound model change happens. This helps the VIS
to re-check the availability and either enroll the user, or start/stop recognition.

Also shut down any active recognition when VIS dies, or a different hotword detector instance is obtained from VIS.

Change-Id: I03f94e78c6ee307afe822a84aebc7e74c64de7b4
2014-07-22 09:16:18 -07:00
Justin Koh
a63272b4b5 Merge "Revert "Wait for all windows to draw before turning screen on"" into klp-modular-dev 2014-07-17 21:09:48 +00:00
Justin Koh
528b4b7572 Revert "Wait for all windows to draw before turning screen on"
This reverts commit 0a589b929e18d05d1345d97283c3025058ddca18.

Change-Id: Ia73555cd7797b5d172f33db9f46ebc211af6fc1e
2014-07-22 00:26:23 +00:00
Prashant Malani
162d943350 am 9353e1a2: Merge "Make the booting flag update unconditional" into klp-modular-dev
* commit '9353e1a2b2e8f02377c3f73565964ffb0927c776':
  Make the booting flag update unconditional
2014-07-17 19:55:32 +00:00
Craig Mautner
807badbebc Merge "Convert from elapsed time to absolute time." into lmp-dev 2014-07-21 15:42:19 +00:00
Craig Mautner
494f6bdd9a Convert from elapsed time to absolute time.
Using uptime to determine most recent task doesn't work across
reboots.

Fixes bug 16370277.

Change-Id: Icef3342aba3fc009c307175b7524530c4cb617d2
2014-07-22 06:10:02 +00:00
Jungshik Jang
b35fba0265 Merge "Follow up send message errors of hdmi_cec.h in service side" into lmp-dev 2014-07-17 21:11:29 +00:00
Jungshik Jang
30a356a419 Follow up send message errors of hdmi_cec.h in service side
Change-Id: Icc64e6324250230c939b04ab37c999f50afe7bf2
2014-07-22 13:55:38 +09:00
Jeff Brown
970d4132ea Allow dreams to control screen state and brightness.
Added setDozeScreenState() and setDozeScreenBrightness() methods to
DreamService.  The values specified here only take effect once
startDozing is called and can be changed while dozing.

This required some significant rework of the display power controller
but the result seems quite nice and better represents the policy
we want to apply.

Changed the test dream a little bit to make it flash the screen
every minute using the new functions.

Bug: 15903322
Change-Id: I83bcc34503f1b87727d2b2b3c0ef08507f9f0808
2014-07-22 01:18:26 +00:00
Dianne Hackborn
dc2cfff87c Merge "Add permissions associated with app ops." into lmp-dev 2014-07-19 22:40:06 +00:00
Dianne Hackborn
33f5ddd1be Add permissions associated with app ops.
Change-Id: I575ad7a3ceea59486ca601f69760b14f6269511d
2014-07-21 20:15:59 -07:00
Amith Yamasani
b74a7babaa Merge "Fix a security exception when checking cross-profile caller-id cap." into lmp-dev 2014-07-21 15:43:35 +00:00
Amith Yamasani
eee5094f96 Fix a security exception when checking cross-profile caller-id cap.
No need to enforce that the caller is in the system process.
We're only checking if the device policy is allowing access.

Bug: 16301261
Change-Id: I87a7c808d116c86aa68cebb36631c46d0a54be96
2014-07-21 17:04:44 -07:00
Amith Yamasani
9c44933958 API Review: Improvements to RestrictionsManager API
Use an activity intent for local approval instead of a type.
Use PeristableBundle instead of Bundle.
Pass requestId as an explicit argument in cases where it's required.

Bug: 16400892
Change-Id: Id882033f17c39aa9cd63a7eeb73bb7b51f98cf5b
2014-07-22 00:03:39 +00:00
Amith Yamasani
e5bcff624f Rename setApplicationBlocked to setApplicationHidden
This corrects the expected behavior of the app state. Hidden apps
can be installed by the store to be brought out of hidden state.

Bug: 16191518
Change-Id: Id128ce971ceee99ba1dea14ba07ce03bd8d77335
2014-07-21 22:18:40 +00:00
Jinsuk Kim
469085e4fe Revert "Send TV app the intent for the new active source"
This reverts commit 9808af71a190844cd5eb493d87870238a31fa408.

Change-Id: I0e019534c07b230173230d064c6d8bc389fafcbc
2014-07-21 23:52:39 +00:00
Jinsuk Kim
0f68d62a4b Send TV app the intent for the new active source
When signalled by an external CEC device about to become a new active
source, TIF(TvInputHardwareManager) sends an intent for TV app to tune to
the input mapped to the device.

Change-Id: I29b28a4365d1454a8bbe947ddb5df4371960c71a
2014-07-21 23:18:00 +00:00
Adam Lesinski
775ded1a91 Merge "Change UsageStatsService to check uses-permission" into lmp-dev 2014-07-21 15:43:35 +00:00
Adam Lesinski
53ab92d890 Change UsageStatsService to check uses-permission
Have UsageStatsService check permission grants when AppOps
returns the default MODE_IGNORED mode for a package.

Change-Id: I784a708451a56863b13fc5f178e10bba6ce37a2f
2014-07-21 13:20:25 -07:00
Jeff Sharkey
6038625175 Detect bundled app ABI for cluster-style layout.
Now that build system switched to cluster-style layout for bundled
apps, we need to detect primary/secondary ABI based on that layout.

Bug: 16456263
Change-Id: If6daf60ee1815bb6fde560a0c373b4f2bc8bd3a8
2014-07-21 13:28:16 -07:00
Yao Chen
17d47989ee Updated media browsing API & tests.
Change-Id: I3a1e3eead99a98b1890e05843dd90203cee517b7
2014-07-21 21:14:43 -07:00
destradaa
902f129dd1 Fix GpsLocationProvider to return GpsStatus and Nmea events.
b/16393308

Change-Id: Idda9e769b96bcbc3e1beb9f506a853a6403ea254
2014-07-21 13:01:30 -07:00
destradaa
2102dd7255 Update GPS HAL raw measurements support.
Align the GPS framework with the GPS HAL
b/16374800

Remove localTime field from API
b/16241708

Update Property containers for measurements to use bit masks
b/16238371

Change-Id: Id4db16c3153d0020bf2edb5a67f59353662762d0
2014-07-21 10:38:12 -07:00
John Spurlock
1fa865f396 New NotificationListenerService listener flags api.
Give activated listeners the ability to request changes to
listener-level or host-level state.

Currently this consists of the ability to suppress notification alerts
(alerts = the haptic / audio feedback of a notification).

Bug:15888672
Change-Id: I045e3b99d1f15e3f96ebaf17d3083a97e02ecb42
2014-07-22 07:24:22 -04:00
Dongwon Kang
9f7c25ebeb Merge "TIF: Revisit types in TvInputInfo and TvContract.Channels." into lmp-dev 2014-07-17 22:03:23 +00:00
Dongwon Kang
fe9259e6a7 TIF: Revisit types in TvInputInfo and TvContract.Channels.
For the types in TvInputInfo, TYPE_TUNER represents all the TV inputs
having channels in TvProvider. Also, String is used for the types in
TvContract.Channels for further extension.

Change-Id: Iee1163b449d9f9723ff665178f2967bb8c0ad71d
2014-07-22 16:58:51 +09:00
Jinsuk Kim
29a5d26207 Define a constant for HDMI-CEC logical address used for internal source
Change-Id: Ic7d6a5378361d7ed8ae4b635312b956b063fc95a
2014-07-22 07:37:45 +00:00
Jinsuk Kim
49b47bbef8 Invoke device event listeners when clearing CEC devices
This updates the client of HdmiControlService so that CEC devices
will disappear when thd CEC control is disabled.

Bug: 16467361

Change-Id: If6fad3be0aa3335aa7f955c0586040250e9c0e06
2014-07-22 07:36:48 +00:00
Dan Sandler
09afc2e4ea Defend against null ApplicationInfos.
Bug: 16303792
Change-Id: Id2d7a70f92718ecda8e3ff418c4e109f6982a75f
2014-07-21 13:11:17 +00:00
Wonsik Kim
38feae971c TIF: fix indexOfValue usage
SparseArray.indexOfValue() was used in place where comparison using
equals() on value was desired, but the method actually uses == instead
of equals().

Change-Id: Id9fb3317d1e0f0cb60ce6512f6d0c0a7bcf2fb20
2014-07-21 21:43:48 +09:00
Jungshik Jang
5fe8dcf78d Merge "Add two apis for one touch record." into lmp-dev 2014-07-17 21:07:39 +00:00
Jungshik Jang
a6b2a7a59a Add two apis for one touch record.
This change introduces new two apis for one touch record.
1. setRecordRequestListener
 It's used to get notified when a recorder device initiates
 "one touch record". As return of callback, client should
 generate "record source" and return it.
2. startRecord
 It's used to initiate "one touch record" from Tv.

Along with this, add HdmiRecordSources which is a helper
class assisting buidling byte array form from the given
record source information.

Bug: 16160962

Change-Id: I403d37b752c9b7f799c6d8188a071ef420fe8ac2
2014-07-21 16:54:53 +09:00
Ji-Hwan Lee
04d926cb13 Merge "TIF: Extend multiple TV input per service for HDMI logical devices" into lmp-dev 2014-07-17 21:11:29 +00:00
Ji-Hwan Lee
4f9f57cede TIF: Extend multiple TV input per service for HDMI logical devices
Remove ITvInputManager.registerTvInputInfo() and let addTvInputInfo*()
cover the registration.

Bug: 15570939
Change-Id: Ic36701de96696e7fe32fc1faa0d5f6fde53f6666
2014-07-21 17:04:04 +09:00
Jinsuk Kim
75df3bf978 Merge "Invoke callback for HdmiControlService.deviceSelect() for internal source" into lmp-dev 2014-07-17 22:03:23 +00:00
Jinsuk Kim
5ad57168da Invoke callback for HdmiControlService.deviceSelect() for internal source
The call should be always successful if device to switch to is internal
TV source as setting it as the active source doesn't require communication
with other devices. Added the missing callback invocation.

Change-Id: I9968098316a955509f4de0e7af6f4407087ad4a2
2014-07-21 13:37:49 +09:00
Sandeep Siddhartha
110f569b47 Fix synchronization issues in AlwaysOnHotwordDetector
- Remove unnecessary recognition status from AlwaysOnHotwordDetector

- Remove unnecessary recognition started callback from IRecognitionStatusCallback

- Fix a bug around the fact that we weren't picking up enrollment at runtime because
we were storing the availability at instantiation time.

- Handle 0-length arrays in SoundTrigger classes while parceling/unparceling

- Fix issue in SoundTrigger helper where we were not comparing binders for start/stop calls

- Unload the previous model when starting a new recognition

- Add more debug logging

Change-Id: Icc56d7f3dd1ffa49a8cfeea49080e3ab4d342c32
2014-07-20 16:53:09 -07:00
Jungshik Jang
189bff29e6 Merge "Do no send <Feature Abort> as response of <Feature Abort>" into lmp-dev 2014-07-17 21:11:29 +00:00