8926 Commits

Author SHA1 Message Date
Paul Jensen
577d79b556 Merge "Revive ConnectivityServiceTest and add some tests." into mnc-dev 2015-06-04 13:11:34 +00:00
Paul Jensen
d7b6ca91e9 Revive ConnectivityServiceTest and add some tests.
Change-Id: I44740a7b21cff18ac2a67d09c4d0e597add19ee0
2015-06-04 09:09:36 -04:00
Narayan Kamath
cd1fc1465b Don't compile all splits when installing one.
This patch consists of two broad changes :
- don't "force" dex2oat when installing a new app. this should never
  be necessary because we will always compare checksums.

- when staging a new install, we "inherit" (hard link) all compiled
  oat files from the previous install. this will ensure that we compile
  only those files that have changed, and not all of them

bug: 20889739
Change-Id: I3e14335f3bcfe76d1d24d233f53a728a6d90e8a1
2015-06-04 12:35:54 +01:00
Yohei Yukawa
cc71518aef Merge "Include InputMethodSubtypeSwitchingController in state dump." into mnc-dev 2015-06-04 08:06:10 +00:00
Yohei Yukawa
1d283bf269 Merge "Show more logs when switching users and IMMS#DEBUG==true." into mnc-dev 2015-06-04 08:05:05 +00:00
Yohei Yukawa
d724886cc1 Include InputMethodSubtypeSwitchingController in state dump.
In order to diagnose IME issues in multi-user / multi-profile
environment, internal state of
InputMethodSubtypeSwitchingController needs to be included in
the bugreport.

Bug: 19340792
Bug: 19587437
Bug: 21612582
Change-Id: I34aca2c1a4330ec08b5e40441e631809a8bb844e
2015-06-04 00:13:50 -07:00
Yohei Yukawa
90bf7084bf Show more logs when switching users and IMMS#DEBUG==true.
This CL changes nothing but adds more logging points in IMMS when
switching users and IMMS#DEBUG==true.

No impact in production code.

Bug: 19340792
Bug: 19587437
Bug: 21612582
Change-Id: Ibaeb77ae50d246fc322cb023da7750d7415a58ab
2015-06-03 23:50:27 -07:00
Lorenzo Colitti
76f087502d Merge "Disable mDefaultDns to see if we can remove it." into mnc-dev 2015-06-04 05:31:59 +00:00
Adrian Roos
02a28885bf Be more conservative about initial keyguard state
Prevents a race condition that could lead to leaking the home screen
if Keyguard is too slow at pushing its state to the window manager while
booting.

Bug: 21128921
Change-Id: I992066c2c4e1bc4f797776c7804408a53b658b03
2015-06-04 01:15:53 +00:00
Nick Vaccaro
d516915740 Merge "Wait for KEY_SLEEP UP event before calling goToSleep()" into mnc-dev 2015-06-04 00:49:25 +00:00
Amith Yamasani
fcf2b54ded Merge "Allow packagemanager checks for secondary user packages" into mnc-dev 2015-06-04 00:46:03 +00:00
Amith Yamasani
e736001af9 Allow packagemanager checks for secondary user packages
Clear calling identity when calling into package manager for
package info.

Bug: 21613139
Change-Id: I0655122f69cc886a395b7195d108222697769b06
2015-06-03 17:39:40 -07:00
Wale Ogunwale
0113144f79 Merge "Fixed outOfBoundsException when logging discarded receiver." into mnc-dev 2015-06-04 00:01:53 +00:00
Adrian Roos
461829d607 Prevent windows below the keyguard from showing
Fixes a bug where windows below the lock screen
could become visible if a SHOW_WHEN_LOCKED activity
hides the status bar.

Bug: 21450145
Change-Id: Ie660394cb96d7e6839bd4fb7c2729133bac2dfc5
2015-06-03 23:44:52 +00:00
Wale Ogunwale
a22c632830 Fixed outOfBoundsException when logging discarded receiver.
Bug: 21607321
Change-Id: I6f7ee4581ae2f0a0b7caedb84190fadc0edccfe8
2015-06-03 15:11:46 -07:00
Riley Andrews
f16c2e8b67 Lower the priority of the LazyTaskWriter thread.
This worker thread shouldn't be prioritized at the same level as user
tasks, preemptions of ui threads may result. Additionally, if we lower
its priority level, it will be scheduled on more efficient cores
in big little systems.

Change-Id: I49a7df6fb43d6c067aeacf9ff0cbd5477cb42f7d
2015-06-03 18:13:18 +00:00
John Spurlock
ad94045eb2 Merge "Zen: Mute alarm (vibrations) in total silence." into mnc-dev 2015-06-03 16:23:33 +00:00
John Spurlock
25d01ee515 Zen: Mute alarm (vibrations) in total silence.
Bug: 21376328
Change-Id: I00b46e64a0ec8d9b5066b5a9be10fc859dca0126
2015-06-03 12:18:32 -04:00
John Spurlock
dfe8044160 Merge "Audio policy: setting explicit non-zero volume unmutes the stream." into mnc-dev 2015-06-03 15:17:55 +00:00
John Spurlock
75ae23c096 Audio policy: setting explicit non-zero volume unmutes the stream.
And vice versa.

Bug: 21584884
Change-Id: I2cd6a84ab40edba4c6fc2b219693e0d4f0527d8d
2015-06-03 10:50:52 -04:00
Erik Kline
6a5c0e10b1 Delete unsed mDnsLock.
Bug: 21449922
Change-Id: I0c9f95c30eaa170d809e86f6505379f34a0a7603
2015-06-03 16:10:08 +09:00
Lorenzo Colitti
0326f7772c Merge changes I9b96cdcf,Ib4b29a7f into mnc-dev
* changes:
  Remove the IPv4 address from the interface when DHCP fails.
  Make the dumpsys connectivity shorter and easier to read.
2015-06-03 06:03:44 +00:00
Lorenzo Colitti
e380546aed Make the dumpsys connectivity shorter and easier to read.
- Print NetworkFactories on one line.
- Only print LegacyTypeTracker networks if they are connected,
  and record supported network types on a separate summary line.
- Print all tethering upstreams on one line.
- Summarize the state of the transition wakelock on one line.
- Don't print Inet condition reports if there are none.
  (Currently there can never be any.)

Bug: 21449922
Change-Id: Ib4b29a7fd882e6c105839a255fffecf4f346cf7e
2015-06-03 11:29:41 +09:00
Andres Morales
8f589d01d1 Merge "[LockSettings] migrate patterns to be indexed at '1'" into mnc-dev 2015-06-03 01:01:18 +00:00
Jorim Jaggi
11accf51c2 Merge "Make sure starting windows only draw once" into mnc-dev 2015-06-02 22:24:48 +00:00
Svetoslav
c5ff0020a2 Merge "Add API to hint whether to show on-board UI before a permission request." into mnc-dev 2015-06-02 21:53:20 +00:00
Svetoslav
20770ddbd4 Add API to hint whether to show on-board UI before a permission request.
bug:21511988

Change-Id: I9d1d7adf34b68074e65510f53b6e642cf784cf6b
2015-06-02 14:48:38 -07:00
Andres Morales
e40bad8cf9 [LockSettings] migrate patterns to be indexed at '1'
Base zero patterns (ones where the top left is idx 0)
are not handled properly by scrypt. Add logic to re-enroll
base zero patterns such that the top left is idx 1.

Bug: 21433955
Change-Id: I7f67f2c67d40dd1be6c62117710dc3b0392275a2
2015-06-02 13:45:02 -07:00
Amith Yamasani
ff3b76d046 Merge "Temporarily whitelist an app for network during doze" into mnc-dev 2015-06-02 20:34:59 +00:00
Tao Bao
da3f63ffb8 Merge "Fix the NPE when checking mRebootReason" into mnc-dev 2015-06-02 19:17:53 +00:00
Doris Liu
7c3185e0b4 Merge "Fix calls to Rect.intersect(Rect) in package com.android.server.wm" into mnc-dev 2015-06-02 19:13:36 +00:00
Tao Bao
983d449a84 Fix the NPE when checking mRebootReason
Bug: 21584198
Change-Id: Ie11092dbc771b54bd049d258dc705835a3eda494
2015-06-02 12:12:53 -07:00
Ruben Brunk
a90c453d17 Merge "Make CameraService proxy retry behavior more lenient." into mnc-dev 2015-06-02 18:55:31 +00:00
Wale Ogunwale
16dbf0c79c Merge "Enabled WMS.DEBUG_STARTING_WINDOW" into mnc-dev 2015-06-02 18:55:10 +00:00
Jorim Jaggi
a16cc15f6c Make sure starting windows only draw once
The panel menu was invalidated, and thus a runnable was posted for
the next frame, to update the panel menu, and invalidate the view. We
avoid this by not invalidating the panel menu for starting windows.

Bug: 20949632
Change-Id: I67ca47e3a7ce3ba1d685c2313efa66fb1cdee312
2015-06-02 18:35:56 +00:00
Wale Ogunwale
9573ae1dee Enabled WMS.DEBUG_STARTING_WINDOW
To debug starting window issue reported in comment #38
of b/21384482

Bug 21384482

Change-Id: I2fbafda5fa79448057cf27a65d1be9b96894770e
2015-06-02 11:32:52 -07:00
Amith Yamasani
af575b9f8e Temporarily whitelist an app for network during doze
API to allow an app to be whitelisted for network and wakelock
access for a short period. So even if the device is in idle
mode, such apps can be given a chance to download the payload
related to a high priority cloud-to-device message.

This API is meant for system apps only.

A new permission CHANGE_DEVICE_IDLE_TEMP_WHITELIST is required
to make this call.

Bug: 21525864
Change-Id: Id7a761a664f21af5d7ff55aa56e8df98d15511ca
2015-06-02 11:05:03 -07:00
Olawale Ogunwale
5b9b66c73c Merge "Should reset mDismissKeyguard on keyguard secure change" into mnc-dev 2015-06-02 17:51:22 +00:00
Olawale Ogunwale
cdc7bf10dd Merge "Fix null pointer dereference when security exception occurs" into mnc-dev 2015-06-02 17:51:03 +00:00
Olawale Ogunwale
cbf400b164 Merge "WindowManagerService not propagating X and Y steps" into mnc-dev 2015-06-02 17:50:38 +00:00
Ruben Brunk
28388e8ab3 Make CameraService proxy retry behavior more lenient.
Bug: 21527760
Change-Id: I70abea66f1d1fafffcfdd8e30b0cff244f814e59
2015-06-02 10:35:53 -07:00
Carlos Valdivia
2ed6369c5d Merge "System Health: Support expiring tokens" into mnc-dev 2015-06-02 17:31:29 +00:00
Dmitriy Ivanov
bb0e5391b8 Merge "Print exception stacktrace on failed scanPackageLI" into mnc-dev 2015-06-02 17:31:03 +00:00
Carlos Valdivia
91979be880 System Health: Support expiring tokens
In the past android:customTokens=true authenticators were required to handle
their own token caching. This is detrimental for battery when high traffic
authenticators are constantly spinning up processes to start services to do
file io to check their own caches.  This change allows authenticator
implementers to optionally let the framework do some of the work for them by
providing the framework with a expiration time.

The AccountManagerService will make a best effort to re-use the cached
token if possible.

Bug: 21530782

Change-Id: I16a7edba36a220e3891e55cf61c725c2be863323
2015-06-02 09:58:18 -07:00
Seigo Nonaka
ac1f0a1a91 Merge "Hide the software input based on its state." into mnc-dev 2015-06-02 07:55:49 +00:00
Ruben Brunk
11df5b66ef Merge "Track camera and flashlight usage in battery stats." into mnc-dev 2015-06-02 01:48:27 +00:00
Seigo Nonaka
d9eb911bb9 Hide the software input based on its state.
This is a 2nd trial of I20ae2749a which is reverted due to a regression.
The goals of this CL are two:
- Split setImeWindowStatus method into two: keeping IMS status and
  updating system UI e.g. NavBar icon state.
- Hide software keyboard based on a realistic IMS status.

IMMS#mImeWindowVis has been used for two purpose, keeping IMS status and
updating the NavBar icons, e.g. keyboard icon.
However, to update NavBar icon, sometimes IMMS#mImeWindowVis value is
updated without any notification from IMS. As the result, the status
value becomes incosistent with the real IMS state.
This patch extracts NavBar update logic into separate method and keeps
IMMS#mImeWindowVis as notified status. Then, use it for hiding software
input correctly in IMMS#hideCurrentInputLocked.

This CL also removes refreshImeWindowVisibilityLocked method including
workaround for fixing Bug 11186297. That issue is no longer
reproducible with latest lock screen and almost no effect for existing
users and developers.  So simply remove them in this CL.

BUG: 21446788
BUG: 20764441
BUG: 18722991
Change-Id: I33dc6278fd892f26e56352722bf9449b8b102030
2015-06-02 10:32:48 +09:00
Dmitriy Ivanov
95b7d50ce1 Print exception stacktrace on failed scanPackageLI
The current message does not provide enough
 information to figure out what is going on.

Bug: http://b/8076853
Change-Id: I741781ce6829eac44e4edddd0a545f3be743ceeb
2015-06-01 18:23:29 -07:00
Doris Liu
06d582d4e4 Fix calls to Rect.intersect(Rect) in package com.android.server.wm
This CL checks for the return value for Rect.intersect(Rect) for whether
there is actually an intersection before taking the calling rect as the
intersection. In addtion, this CL handles the cases where there is no
intersection (Rect.intersect(Rect) returns false).

bug: 7368679
Change-Id: I7d5ef7059ac432170470a108c0d6dece230ec0b3
2015-06-01 17:34:20 -07:00
Ruben Brunk
6d2c363fd5 Track camera and flashlight usage in battery stats.
Bug: 15986092

Change-Id: Idf03981271721c44fd43327d5d90cf6f3fecfacb
2015-06-01 16:54:23 -07:00