Commit Graph

7166 Commits

Author SHA1 Message Date
Adrian Roos
2b2b09ad45 Make actions extend over the whole action rail am: 9b123cf9bb
am: a63cca0b24

* commit 'a63cca0b24a9f6f03f1a07f278df49bd1f71b41f':
  Make actions extend over the whole action rail
2016-02-10 19:36:52 +00:00
Adrian Roos
a63cca0b24 Make actions extend over the whole action rail
am: 9b123cf9bb

* commit '9b123cf9bb50f98064ee0a8eed38601ca7c03564':
  Make actions extend over the whole action rail
2016-02-10 19:18:03 +00:00
Adrian Roos
9b123cf9bb Make actions extend over the whole action rail
Bug: 26767249
Change-Id: I3c67f1de40b218aa21f0a1f68bda1032c0804a14
2016-02-10 18:39:40 +00:00
Adrian Roos
6e428f82f4 Isolate Keyguard from main thread badness am: 691546e5b7
am: c9ad3299e3

* commit 'c9ad3299e3c7049d2e219eb9fc33b479fce17ba3':
  Isolate Keyguard from main thread badness
2016-02-10 18:25:57 +00:00
Adrian Roos
c9ad3299e3 Isolate Keyguard from main thread badness
am: 691546e5b7

* commit '691546e5b7f94a6e2d76630ee1287e0b9c69e7a8':
  Isolate Keyguard from main thread badness
2016-02-10 18:22:26 +00:00
Adrian Roos
691546e5b7 Isolate Keyguard from main thread badness
Adds a bindService variant to run the ServiceConnection callbacks
on a dedicated Handler.

Changes KeyguardService binding to use the foreground thread
instead of the main thread and changes state to the
KeyguardScrim on the UI thread.

Bug: 26954967
Change-Id: I9d7bd85382816cd0e23772b14ff6518266a9d232
2016-02-10 18:17:29 +00:00
Rubin Xu
0816fcfd79 Merge "Require delegated cert installer and app restriction manager to exist" into nyc-dev am: 1f3895b9d9
am: c21e6894e0

* commit 'c21e6894e026de1fe2a08e27b200b39fd973922a':
  Require delegated cert installer and app restriction manager to exist
2016-02-10 16:43:46 +00:00
Rubin Xu
c21e6894e0 Merge "Require delegated cert installer and app restriction manager to exist" into nyc-dev
am: 1f3895b9d9

* commit '1f3895b9d996b138e96a8faa3356faccada75e18':
  Require delegated cert installer and app restriction manager to exist
2016-02-10 16:39:18 +00:00
Rubin Xu
1f3895b9d9 Merge "Require delegated cert installer and app restriction manager to exist" into nyc-dev 2016-02-10 16:29:35 +00:00
Rubin Xu
f03d0a6bfc Require delegated cert installer and app restriction manager to exist
Enforce that apps with delegated powers to exist on device before
empowering them. This is consistent with DevicePolicyManagerService's
internal logic to clear the delegation power once the package is removed.
For delegated cert installer, only enforce this new restriction on
device admins targeting N or later.

Bug: 26233778
Change-Id: Ia8f45dfd5290958cebb36991c4b6baa03e8c28ae
2016-02-10 16:29:01 +00:00
Julia Reynolds
bf7cf7e19f Merge "Allow apps to know what users think of their notifications." into nyc-dev am: 146d931ece
am: 9ad07f5c6e

* commit '9ad07f5c6eccc2ae46de2660af29c50cd2148a54':
  Allow apps to know what users think of their notifications.
2016-02-10 14:17:44 +00:00
Julia Reynolds
9ad07f5c6e Merge "Allow apps to know what users think of their notifications." into nyc-dev
am: 146d931ece

* commit '146d931ece7fc273311c049067742bab40a9999a':
  Allow apps to know what users think of their notifications.
2016-02-10 14:14:44 +00:00
Julia Reynolds
146d931ece Merge "Allow apps to know what users think of their notifications." into nyc-dev 2016-02-10 14:10:24 +00:00
Elliott Hughes
b79064bd0a Merge "The NDK samples moved a while back." am: 9653790de2
am: 1ac526df67

* commit '1ac526df67af568f47dd1bfa767928c0d268b6cb':
  The NDK samples moved a while back.
2016-02-10 09:22:13 +00:00
Svetoslav Ganov
1bd77c440c Merge "Add an API to query the package name of the services shared lib" into nyc-dev am: e0feadcaac
am: 43e8c55e0f

* commit '43e8c55e0f0d394112517619e376a94ab955f001':
  Add an API to query the package name of the services shared lib
2016-02-10 09:20:04 +00:00
Elliott Hughes
1ac526df67 Merge "The NDK samples moved a while back."
am: 9653790de2

* commit '9653790de25dfa77076701c3c2932ea93b7f9968':
  The NDK samples moved a while back.
2016-02-10 04:50:01 +00:00
Svetoslav Ganov
e0feadcaac Merge "Add an API to query the package name of the services shared lib" into nyc-dev 2016-02-10 03:00:09 +00:00
Svet Ganov
d7b1f41109 Add an API to query the package name of the services shared lib
The servcies shared lib contains components apps can invoke such
as services to bind to, activities to start, UI choosers, etc.
This lib is built from AOSP code but an OEM may chage its
package name. For example, Google renames the package names for
GMS apps from android.foo.bar to com.google.android.foo.bar.
While we have more than one shared lib that are a part of the
platform (currently shared and services libs) the serivces lib
is the only one clients need to start components in, thus need
to know its package name. This change adds an API to query the
package name of the services shared lib. The API is hidden as
currently the only clients are a part of the system.

Change-Id: Ied48fa4819024522791764b22b3336d4f4b42cc3
2016-02-09 18:49:27 -08:00
Wale Ogunwale
290c142203 Merge "Reduce jank during pinned stack animation" into nyc-dev am: 0489c1459e
am: 7be50af83c

* commit '7be50af83c0c5b6feb6de31695be322908fe9c3d':
  Reduce jank during pinned stack animation
2016-02-10 00:29:31 +00:00
Elliott Hughes
3edfa8f67b The NDK samples moved a while back.
Change-Id: I10f419b0ad58f9c5417a3f06775e298c74f284dc
2016-02-09 16:12:02 -08:00
Wale Ogunwale
0489c1459e Merge "Reduce jank during pinned stack animation" into nyc-dev 2016-02-10 00:11:11 +00:00
Jeff Sharkey
8003c3d02e Merge "More encryption-aware triaging." into nyc-dev am: 950b30426e
am: 0b0f03a128

* commit '0b0f03a12805f4d936e8d26b267dd6dc7e137bb8':
  More encryption-aware triaging.
2016-02-09 23:32:10 +00:00
Jeff Sharkey
950b30426e Merge "More encryption-aware triaging." into nyc-dev 2016-02-09 23:00:55 +00:00
Jeff Sharkey
c7bacab20f More encryption-aware triaging.
Most of these callers are okay having results omitted when a package
is uninstalled or encryption unaware.  For example, jobs and
notifications can only be enqueued by already running apps.

When clearing zen rules, keep around rules inserted by apps on
ejected external storage devices.

Make ServiceWatcher stricter by requiring that the matching package
be in the system image.

Bug: 26471205, 27105254
Change-Id: Ie41ea8042ac1a54e9cbe0c35cec89e70521e9bed
2016-02-09 15:56:13 -07:00
Wale Ogunwale
480dca0d1b Reduce jank during pinned stack animation
- Don’t launch Pip overlay activities during pinned stack animation.
This causes extra CPU load and takes a way resources from the running
animation.
- Finish Pip overlay activities before starting pinned stack resize
animation. Reduces the amount of work the system needs to do to keep
the overlays in-sync with the other activities in the pinned stack.
- Use AM.resizeStack with null bounds to take Pip to fullscreen so that
we can animate the bounds changed.
- Also, fixed Activity.enterPictureInPicture API to animate the transition
if Pip is entered from the app instead of Pip manager.

Bug: 25672053
Change-Id: I82399c10f1b8c675ea3861ba973dc8ecfbfbe50f
2016-02-09 12:48:11 -08:00
Julia Reynolds
81afbcdbf9 Allow apps to know what users think of their notifications.
- App wide blocking
- Topic importance

Change-Id: I9026e5c26c5dbcab1c86c385beede891f961933f
2016-02-09 14:54:08 -05:00
Phil Weaver
f564afa4cd Clean up UiAutomation working alongside a11y.
Fix two bugs: one where Instrumentation did not properly
handle destroyed UiAutomations, another where UiAutomation
did not properly disable running accessibility services.

Change-Id: I1773dbd373f4d5b0e7c9917ff18d8d9b1a0e07c7
(cherry picked from commit 846522cea0)
2016-02-09 00:08:59 +00:00
Phil Weaver
8333cfec7a Merge "Clean up UiAutomation working alongside a11y." 2016-02-09 00:08:36 +00:00
Paul Crowley
760f2686ed Merge "Password security for FBE disk encryption keys" into nyc-dev am: 23b588c7b3
am: d386008899

* commit 'd386008899ff359a0e8cea629523d6bf305896b9':
  Password security for FBE disk encryption keys
2016-02-08 22:53:02 +00:00
Suprabh Shukla
d9414fa843 Merge "Added an api to uninstall a packge with active DAs" 2016-02-08 21:46:01 +00:00
Paul Crowley
23b588c7b3 Merge "Password security for FBE disk encryption keys" into nyc-dev 2016-02-08 21:45:45 +00:00
Suprabh Shukla
8e60f6bb17 Added an api to uninstall a packge with active DAs
The api deactivates all the active admins in the package, then force
stops the package and starts the uninstall intent for the package. This
is intended to provide an easy way for a user to delete a misbehaving
Device Admin

Bug: b/22359208
Change-Id: Ic7ddd89ef6db53e7e76f805808d9e806100374db
2016-02-08 13:43:56 -08:00
Phil Weaver
846522cea0 Clean up UiAutomation working alongside a11y.
Fix two bugs: one where Instrumentation did not properly
handle destroyed UiAutomations, another where UiAutomation
did not properly disable running accessibility services.

Change-Id: I1773dbd373f4d5b0e7c9917ff18d8d9b1a0e07c7
2016-02-08 13:09:46 -08:00
Jeff Sharkey
95728a5db6 Merge "Move graphics and JIT caches to DE storage." into nyc-dev 2016-02-08 19:47:20 +00:00
Jeff Sharkey
e84bdd38ad Move graphics and JIT caches to DE storage.
We confirmed with the graphics and JIT teams that no sensitive
user data is written to these caches, so they're safe to point at DE
storage.

Since we don't have control over what is written by the app, we need
to keep the cache environment variable pointing at CE storage.

Fix ensurePrivateDirExists() to always return a path, instead of
returning null which can cause scary bugs.

Change packages.list to no longer canonicalize data paths, since
these fail when CE storage is still locked.

Bug: 27069522
Change-Id: Ifff64a036fa4aa1e61aa0dd98486bc711fbf8f4a
2016-02-08 12:24:05 -07:00
Adam Powell
44ba79e47d Permit setRetainInstance(true) on nested fragments, framework edition
Save arbitrarily nested fragments across config changes as
nonconfiguration objects. This permits the use of retain-instance
child fragments as arbitrary opaque dependencies within other
fragments.

Change-Id: Ia6640b76cfcf7ec28ba252628957a0c14863e957
(cherry picked from commit 7466be6626)
2016-02-08 19:10:44 +00:00
Adam Powell
8585ed66b9 FragmentTransaction.commitNow, framework edition
Offer commitNow and commitNowAllowingStateLoss methods on Fragment for
use by encapsulated components using fragments as implementation
details. This can help prevent unexpected ordering side effects at the
app level when a call to a library method wants to commit and
immediately initialize a fragment as an implementation detail.

Note that this change still does not permit reentrant FragmentManager
operations. It is still an error to add/remove/change fragments in the
same FragmentManager while a fragment transaction is being executed.

Have the commonly used ViewPager adapters use commitNow instead of
executePendingTransactions.

Change-Id: Ia37a871234a287423063f0c2c3e4c93d69116cad
(cherry picked from commit f6b30662f8)
2016-02-08 19:00:52 +00:00
Paul Crowley
faeb3eb0ba Password security for FBE disk encryption keys
Add the means to protect FBE keys with a combination of an auth token
from Gatekeeper, and a hash of the password. Both of these must be
passed to unlock_user_key. Keys are created unprotected, and
change_user_key changes the way they are protected.

Bug: 22950892
Change-Id: Ie13bc6f82059ce941b0e664a5b60355e52b45f30
2016-02-08 15:58:29 +00:00
Julia Reynolds
d560729ce3 Update DND visual interruption choices.
Change-Id: I7050264839c566dcef1dd01d155dda694a8d1ec0
2016-02-08 15:20:02 +00:00
Tamas Berghammer
25222f55f2 Merge "Add flag to "am start" to enable native debugging" 2016-02-06 13:18:58 +00:00
Amith Yamasani
046cc21b75 Merge "Rewrite app standby stats" 2016-02-05 19:41:04 +00:00
Amith Yamasani
a93542f9d3 Rewrite app standby stats
Don't mix up with usage stats. Keep a separate db and history
based on elapsed time and screen on time.

Unit tests for AppIdleHistory class.

Bug: 26989006
Change-Id: If343785b46da1db67f7c1c1263854c2732a232c6
2016-02-05 11:38:29 -08:00
Selim Cinek
2a7fc72ac4 Merge "Adapted the notification header colors to spec" 2016-02-05 19:22:01 +00:00
Selim Cinek
aef485a32a Adapted the notification header colors to spec
Change-Id: Ifa9483a5e71f32be2df14912982076d7bf2a6e9a
2016-02-05 10:43:00 -08:00
Alan Viverette
6486324d24 Merge "Ensure Bitmap.getDefaultDensity() matches DENSITY_DEVICE" 2016-02-05 15:30:28 +00:00
Shreyas Basarge
181a43103b Merge "Add more logging to JobScheduler" 2016-02-05 11:51:33 +00:00
Dimitry Ivanov
2343f8dfcd Merge "Workaround for apps loading foreign native libs" 2016-02-04 22:13:53 +00:00
Dimitry Ivanov
add74a4629 Workaround for apps loading foreign native libs
Bug: http://b/26954419
Change-Id: I4272d015213b386abc1b04c0349cf1b081288058
2016-02-04 14:11:58 -08:00
Alan Viverette
2ac46f1bda Ensure Bitmap.getDefaultDensity() matches DENSITY_DEVICE
Otherwise bitmaps constructed without a target display are incorrectly
scaled by a factor of (DENSITY_DEVICE / DENSITY_DEFAULT) when rendered
to a Canvas whose density has been specified correctly.

Bug: 26817900
Change-Id: I45edfc7c0cbdf84a267d5bedacb0548659ede301
2016-02-04 16:58:14 -05:00
Sudheer Shanka
57218cbbf7 Merge "Made changes to fix some policy transparency options." 2016-02-04 19:14:14 +00:00