53172 Commits

Author SHA1 Message Date
Jinsuk Kim
8333571bd5 Handle incoming active source-related commands for HdmiControlService
Handles incoming commands <Active Source>, <Inactive Source>, <Request
Active Source> that concern the active source update/report.

Defined mPrevPortId which is used to allow switching back to the input
set previously by <Active Source> or deviceSelect() when receiving
<Inactive Source>.

Also fixed a bug sending <Active Source> with wrong parameters.

Change-Id: I47fd804755c5c6beca38ddb21bb388a455d74f63
2014-06-27 07:06:33 +09:00
Lorenzo Colitti
309a75dbc3 Modify DNS server update methods.
1. Make addDnsServer not add duplicate servers and return a
   boolean value incating whether it changed anything. This is
   consistent with what we do for LinkAddresses and routes.
2. Add a setDnsServers method that sets all the DNS servers to
   the specified collection. This is consistent with what we do
   for LinkAddress.

Bug: 9180552
Change-Id: I5baed09253261b66ea42ae2ea82398118e3ab0ac
2014-06-26 17:04:38 +09:00
Lorenzo Colitti
c0b9efa49e Merge "Teach LinkProperties whether it's provisioned or not." 2014-06-24 01:52:26 +00:00
Andre Eisenbach
631495609e Merge "Fix bug where GATT descriptors weren't being added to right characteristic" 2014-06-26 05:52:59 +00:00
Lorenzo Colitti
76ea6c68d3 Teach LinkProperties whether it's provisioned or not.
In IPv4, a link is provisioned when DHCP succeeds. In IPv6, a
there is no such signal, because addresses and DNS servers can
be notified by the kernel at different times.

Add an isProvisioned method that returns true if we believe that
enough information has configured to use a network. For IPv6,
this requires an IP address, default route, and DNS server. For
IPv4, this requires only an IPv4 address, because we support
static configuration that doesn't have a default route or DNS
server.

To do this we use the existing hasIPv4Address method, rename the
all-but unused hasIPv6Address method to hasGlobalIPv6Address
(which is what we want anyway) and add new hasIPv[46]DefaultRoute
and hasIPv[46]DnsServer methods.

Bug: 9180552
Change-Id: Ib2f5ff8af920f7b6f1edf0e2afaaa0edce9bc72d
2014-06-26 03:23:31 +09:00
Lorenzo Colitti
64c43b1948 Minor changes to RouteInfo.
1. Realize that mDestination can never be null and update the
   code accordingly.
2. Simplify isDefaultRoute.
3. Provide two new hidden utility methods, isIPv4Default() and
   isIPv6Default(), that can be used by LinkProperties to
   to determine if the system has connectivity.
4. Update tests.

Bug: 9180552
Change-Id: I85028d50556c888261d250925962bdedfe08e0c6
2014-06-25 18:22:12 +00:00
Lorenzo Colitti
1603eadc5a Unbreak LinkPropertiesTest.
This was broken by the changes that made addRoute add routes
only if they did not already exist.

Change-Id: I1d227df9223fbecf106efde05b709f320824ee9d
2014-06-25 18:19:47 +00:00
Yorke Lee
5a2f488b70 Add REMOVE_VOICEMAIL permission to system
Add a permission that will allow any app that has this permission
to remove any voicemails in the user's call log, even those that
don't belong to it.

This will be needed for the unbundled dialer to be able to manage
the user's voicemails.

Bug: 6948882
Change-Id: Idca23ee83e541ba8aef24d6cb7fe09d5adac1e10
2014-06-25 10:12:31 -07:00
Jean-Michel Trivi
e4e223ced0 Merge "AudioTrack Java constructor with AudioAttributes and AudioFormat" 2014-06-25 03:33:37 +00:00
George Mount
88f5993692 Merge "Allow custom transitions from XML." 2014-06-25 03:44:18 +00:00
Jean-Michel Trivi
a1d80e3b1d AudioTrack Java constructor with AudioAttributes and AudioFormat
Change-Id: I82758a4231b8dc0b8d8e72acf3c896a289c28f60
2014-06-24 17:02:06 -07:00
Mike J. Chen
2975c683bc Fix bug where GATT descriptors weren't being added to right characteristic
When there's more than one characteristic with the same UUID in
a service, the descriptors for the non-zero instanceID characteristics
were being assigned to the zero instanceID one, so descriptor
fetching wouldn't work.  This is particularly bad for HID devices
since separate reports would show up as multiple characteristics
with the same UUID but there'd be no way to identify them
without their descriptor attributes.

Change-Id: I92bb4be34aa941dd3c6750874bef2e8a261ded92
Signed-off-by: Mike J. Chen <mjchen@google.com>
2014-06-24 10:19:45 -07:00
Jason Monk
7218e9c6be Merge "The profile owner shouldn't control lock task" 2014-06-24 07:59:24 +00:00
Jason Monk
c5185f2bf1 The profile owner shouldn't control lock task
Since managed profiles are started on bootup, the managed profile
would be allowed to set an app (possibly itself) as a lock task
app and then run itself on bootup and constantly control the
device.  This privelege should be restricted to device owners.

Change-Id: I4a93aabd6054cbe75076ef0517fce03ffa74dc93
2014-06-24 14:12:20 -04:00
Dianne Hackborn
04d480e1c3 Merge "Fix some problems with proc stats collection." 2014-06-24 17:32:43 +00:00
Dianne Hackborn
306af678a5 Fix some problems with proc stats collection.
Also start debugging why we aren't being able to open
/proc files.

Change-Id: I4655904691ac22108c29858cbd01153a251ccbf5
2014-06-24 15:41:03 -07:00
Christoph Studer
13a11d8ead Merge "Remove ZEN notification visibility setting" 2014-06-24 06:38:52 +00:00
Christoph Studer
d1b67bcd4e Remove ZEN notification visibility setting
Bug: 15286335
Change-Id: I150b13c6c7272db596bee908822760f1fd82b7ed
2014-06-24 18:37:19 +02:00
Christoph Studer
e71fefcc8b Remove notification APIs from StatusBar service
Bug: 15324972
Bug: 15436573
Change-Id: I838370a23fb07cb876e08c41ef11653f2658719e
2014-06-24 16:47:56 +02:00
Alexandra Gherghina
d4ee3952a3 Merge "Skip forwarding launcher intents" 2014-06-24 06:38:52 +00:00
Alexandra Gherghina
fa4533f3a0 Skip forwarding launcher intents
If we forward intents when looking up launcher icons, we end up
having an icon for a disambig activity instead of the apps for that user.

Bug: 15769854
Change-Id: Ia57525466dba57b6669b2b5cedf98f202d08f586
2014-06-24 19:25:15 +01:00
Baligh Uddin
8e27c6b20f Import translations. DO NOT MERGE
Change-Id: I4025ec551f09fb81735c85fab65d54cca7fe0835
Auto-generated-cl: translation import
2014-06-25 02:35:23 +00:00
Christoph Studer
9e58b3c61c Merge "Remove notification APIs from StatusBar service" 2014-06-24 06:38:28 +00:00
Adrian Roos
239d99c4d3 Merge "Trust Agents: Add lock now facility to global actions" 2014-06-24 06:38:28 +00:00
Adrian Roos
d4d6136eb3 Trust Agents: Add lock now facility to global actions
Change-Id: I732d7e989892081f6b53142953de71f90ec62d37
2014-06-26 01:54:53 +02:00
Adrian Roos
2c12cfa1d5 Trust Agents: Add facility to request credential entry
Bug: 15871777
Change-Id: I43c80151f6403ff62961aeb3dc7aafe049e18a62
2014-06-25 23:28:53 +02:00
Adrian Roos
dded065c86 Merge "Trust Agents: Add facility to request credential entry" 2014-06-24 06:38:28 +00:00
Winson Chung
c286444f14 Merge "Use Task last active time to ensure we don't reload items for the cache." 2014-06-25 17:34:05 +00:00
Zhijun He
ed2fdb5656 Merge "Camera2: update supportedHardwareLevel" 2014-06-25 17:34:05 +00:00
Zhijun He
28288ca72c Camera2: update supportedHardwareLevel
Make the full hardware supportedHardwareLevel more accurately reflect the
spec requirement. Also fixed some other minor spec issues.

Change-Id: I7b55be03dcdeface15e73eff098f690f4f99a23f
2014-06-25 15:49:13 -07:00
Andres Morales
d96e4948da Merge "interface for nfc handover supplicant commands" 2014-06-25 17:34:05 +00:00
John Reck
6487bccfff Merge "Change config_ui_enableFadingMarquee default to false" 2014-06-25 17:34:02 +00:00
Winson Chung
f1fbd77cf0 Use Task last active time to ensure we don't reload items for the cache.
Change-Id: I29206de0453f5d7d1370b27a27ef6d3594eff8e7
2014-06-24 18:09:00 -07:00
Chris Craik
3f26195db4 Change config_ui_enableFadingMarquee default to false
bug:12197437
Change-Id: I769227bdceea213e137b664280c7076a5b47cc72
2014-06-24 15:08:34 -07:00
Igor Murashkin
5096defdaa camera2: (legacy) Write the JPEG size as part of the blob transport
This fixes StillCaptureTest#testStillPreviewCombination

Change-Id: Ifbaae7828b2efcc1a768c77ce50718abd7f691d0
2014-06-24 18:29:18 +00:00
Igor Murashkin
a296fece2b camera2: Fix cts test StillCaptureTest#testTakePicture
* Introduce 'fake' metadata for 3A+flash (hardcoded to support nothing)
(will be removed in a later release)

* Open the camera1 device in its own thread, so that the looper it
captures is also our own (and not the main looper)

* Set the picture size based on the size of the JPEG surface outputs

Change-Id: Iaeb5031c6b352115b73d2261a39d65347d75fdc8
2014-06-24 10:56:26 -07:00
John Spurlock
25b3b8e537 Merge "Create a basic doze dream in SystemUI." 2014-06-24 08:05:46 +00:00
Igor Murashkin
dcad4f8a6a Merge "camera2: Fix maxNumOutputs CTS test on Legacy devices" 2014-06-25 17:34:05 +00:00
Igor Murashkin
e1968f6f9d camera2: Fix maxNumOutputs CTS test on Legacy devices
Change-Id: Ice2ee8490438b84d9a99d6179dca248491557694
2014-06-25 14:04:26 -07:00
John Spurlock
bf37099250 Create a basic doze dream in SystemUI.
The doze dream is not configured by default.

When configured, the doze dream does not show anything by default.
It teases a dark version of the keyguard (showing only the time
and notifications) when a notification arrives or significant motion
is detected.

Bug:15863249
Change-Id: Icfceb054d35d6fd4d9178eda7480e2464873ca4b
2014-06-25 13:33:09 -04:00
Ruben Brunk
ef14da3280 camera2: Fix handling for abandoned bufferqueues.
Bug: 15116722

- Adds exception handling utility for legacy device.
- Skip/ignore abandoned surfaces in legacy camera.

Change-Id: Id4de587779d3bc2415e22b10bcc841cc46ac5f1d
2014-06-25 13:00:50 -07:00
George Mount
bcd8365197 Merge "Activity Transitions: Don't do a shared element exit transition twice." 2014-06-25 17:34:05 +00:00
George Mount
1677b6b830 Merge "Activity Transitions: Fix memory leak." 2014-06-25 17:34:02 +00:00
George Mount
5770f18e82 Merge "Activity Transitions: don't require transitionName." 2014-06-25 17:34:07 +00:00
George Mount
f451d8a6d1 Activity Transitions: Don't do a shared element exit transition twice.
Bug 15671433

Change-Id: I888702df5661c769cc1c093d859fd85e5e33d282
2014-06-24 06:57:08 -07:00
George Mount
a0a0260e48 Activity Transitions: Fix memory leak.
Bug 15731459

Change-Id: Id357d841a0db832e2525b7bbd75c8d8ccdb757d1
2014-06-24 06:39:29 -07:00
George Mount
1fecfb2ddc Activity Transitions: don't require transitionName.
Bug 15585623
Bug 15607591

Exit transitions now run because exit transitions are executed
with startActivity.

Change-Id: Ie55793a9514c64d96e2cf1abdd2d39c4d2606a23
2014-06-23 17:06:13 -07:00
Bo Liu
bbc9cd32d7 Merge "Remove View.executeHardwareAction" 2014-06-23 21:56:00 +00:00
Bo Liu
26cab31d78 Remove View.executeHardwareAction
Webview does not need this anymore.

BUG: 13961296
Change-Id: Ia0681dea35155513b916844ecf83faf6d544a2e3
2014-06-23 14:57:19 -07:00
Adam Powell
755c919ba2 Merge "Set the default content description for Toolbars acting as action bars" 2014-06-23 21:50:10 +00:00