Commit Graph

63276 Commits

Author SHA1 Message Date
Jeff Sharkey
c9a40cd844 Add methods to probe current storage state.
Bug: 27811575
Change-Id: I2586fe3ec4d5c98c5b956f4b4a4cec425c81b0b1
2016-03-27 12:10:38 -06:00
Jeff Sharkey
3c664a9b39 Update PRE_BOOT_COMPLETED for FBE. am: bd91e2f
am: bef5aad

* commit 'bef5aad065fd2f5f222ac14a8d063d12348c7c34':
  Update PRE_BOOT_COMPLETED for FBE.
2016-03-27 17:50:04 +00:00
Jeff Sharkey
bef5aad065 Update PRE_BOOT_COMPLETED for FBE.
am: bd91e2f

* commit 'bd91e2f3f6aca512a02be645b2515b5e3331e177':
  Update PRE_BOOT_COMPLETED for FBE.
2016-03-27 17:47:15 +00:00
Jeff Sharkey
bd91e2f3f6 Update PRE_BOOT_COMPLETED for FBE.
Now that CE data isn't available until after a user is unlocked, we
need to delay the PRE_BOOT_COMPLETED broadcasts.  This is done by
adding a new RUNNING_UNLOCKING user state to the UserController
lifecycle.

We now track the last fingerprint a user was logged in under, and we
dispatch PRE_BOOT receivers when that fingerprint changes.  To work
around battery pull issues, we only persist the updated fingerprint
once all PRE_BOOT receivers have finished.  This is less granular
than the original solution, but it's still correct.  We only consider
a user as "logged in" once it transitions into the RUNNING_UNLOCKED
state.

When starting a process, track if the user was "unlocked" when
started, so that we only spin up unaware providers in processes
started before user unlock.

Add generic IProgressListener to communicate PRE_BOOT progress and
strings up to lock screen.  For now, LockSettingsService just blocks
until finished, but it could display these strings in the future.

Bug: 27220885
Change-Id: I349439776b885acd32f6a578d8951ffd95640be2
2016-03-27 10:56:48 -06:00
Chad Brubaker
ba3624ecef Merge "Add handleTrustStorageUpdate" into nyc-dev am: e4c5c16
am: c24d142

* commit 'c24d142092da7407baedfb966d56bcefec4c0bf9':
  Add handleTrustStorageUpdate
2016-03-26 16:44:12 +00:00
Chad Brubaker
c24d142092 Merge "Add handleTrustStorageUpdate" into nyc-dev
am: e4c5c16

* commit 'e4c5c161dd366dae36cc3c8728168533ea5351ef':
  Add handleTrustStorageUpdate
2016-03-26 16:41:28 +00:00
Chad Brubaker
e4c5c161dd Merge "Add handleTrustStorageUpdate" into nyc-dev 2016-03-26 16:36:31 +00:00
Jorim Jaggi
c2e27322df Merge changes from topic \'recents_transition\' into nyc-dev am: a04c532
am: ea42b59

* commit 'ea42b59a06f27b9ba282b448aec1d93436221711':
  Implement transition for docking task in recents #6
  Implement transition for docking task in recents #5
  Implement transition for docking task in recents #4
  Implement transition for docking task in recents #3
  Implement transition for docking task in recents #2
  Implement transition for docking task in recents #1
  Show a scrim activity if task is not resizable
2016-03-25 22:35:08 +00:00
Jorim Jaggi
ea42b59a06 Merge changes from topic \'recents_transition\' into nyc-dev
am: a04c532

* commit 'a04c532a09b8d946ebc9a086f673220059218869':
  Implement transition for docking task in recents #6
  Implement transition for docking task in recents #5
  Implement transition for docking task in recents #4
  Implement transition for docking task in recents #3
  Implement transition for docking task in recents #2
  Implement transition for docking task in recents #1
  Show a scrim activity if task is not resizable
2016-03-25 22:32:27 +00:00
Edward Cunningham
0ac521ed8c Merge "DO NOT MERGE Revert "Revert "DO NOT MERGE Extend the DownloadManager.addCompletedDownload() method to support origin details.""" into nyc-dev
am: d0ee17d

* commit 'd0ee17d926cce445bcd22b15e80e725aa4639895':
  DO NOT MERGE Revert "Revert "DO NOT MERGE Extend the DownloadManager.addCompletedDownload() method to support origin details.""
2016-03-25 22:32:25 +00:00
Jorim Jaggi
a04c532a09 Merge changes from topic 'recents_transition' into nyc-dev
* changes:
  Implement transition for docking task in recents #6
  Implement transition for docking task in recents #5
  Implement transition for docking task in recents #4
  Implement transition for docking task in recents #3
  Implement transition for docking task in recents #2
  Implement transition for docking task in recents #1
  Show a scrim activity if task is not resizable
2016-03-25 22:22:05 +00:00
Jorim Jaggi
c69bd2246f Implement transition for docking task in recents #6
- Use a future to provide the app thumbnail so the app can restart
in parallel when recents draws the bitmap (extremely expensive).
- Don't call startRecents from AM when recents is already running - this
messes up the transition information.
- Make sure to put the task into resizing mode if it needs to be restored
from the disk.
- Some minor fixes for the transition animation spec.
- Add NO_MOVE_ANIMATION to recents flags to prevent wallpaper
flickering.

Bug: 27607141
Change-Id: I7d0c75b88775ab467927b8cf94303ddb60222e7f
2016-03-25 15:13:36 -07:00
Edward Cunningham
d0ee17d926 Merge "DO NOT MERGE Revert "Revert "DO NOT MERGE Extend the DownloadManager.addCompletedDownload() method to support origin details.""" into nyc-dev 2016-03-25 22:01:07 +00:00
Jorim Jaggi
787e9dd6c8 Implement transition for docking task in recents #5
- Move task along a curved path.

Bug: 27607141
Change-Id: I945071de55efed0d327b68045e48fea6989adf63
2016-03-25 14:53:19 -07:00
Chad Brubaker
bf9a82a643 Add handleTrustStorageUpdate
This pruns all the stored trusted issuers so that changes to the system
or user CA store are detected. Currently this is only exposed as a
TestApi, but it can be hooked up to the trusted storage change event
in a future commit.

Bug: 27526668
Change-Id: Ic426254babab9a3177c968bc05b45e95eaac1fdd
2016-03-25 14:48:44 -07:00
Jorim Jaggi
192086eb8a Implement transition for docking task in recents #1
- When the docking transition is happening, defer updating
the bounds of the home stack until the transition is done.
This is to preserve the scrim which is drawn in the recents
activity.
- Use the PROLONG_AT_START infrastructure to hide the task
in recents when starting the app transition.
- When recents finally get resized at the end of the transition,
reset it's draw state so we don't move the old surface around,
and the new surface gets drawn at the new position, to avoid
flickering.
- Remove hack around not layouting docked divider if it's not
visible, it's not needed anymore and resulted in a wrong
initial position.
- Fix animation selection for docked stack divider.
- Make sure win.moved() always gets called.

Bug: 27607141
Change-Id: I76c35f09461f044a90e2c88335008284b5839cc0
2016-03-25 14:27:58 -07:00
Jorim Jaggi
2adba07d75 Show a scrim activity if task is not resizable
Add a callback to TaskStackChangeListener which gets fired when the system
might need to inform the user that a specific app might not work in
multi-window.

Use that callback in SysUI to show a translucent activity which scrims the
activity behind to inform that it might not be resizable.

Debounce the information to once per multi-window session, to not make it
annoying.

Introduce launchTaskId to start an activity in an existing task, and protect
that with START_TASKS_FROM_RECENTS permission.

Bug: 27327287
Bug: 27431869
Change-Id: I89e8d653872ab01ba3c1e252b426e5481da0e6ca
2016-03-25 14:23:41 -07:00
Jorim Jaggi
cc119801d6 Merge "Add shadow during resizing in docked mode" into nyc-dev am: 1f6bdbc
am: 08c8f70

* commit '08c8f70c6cdb6e3b38fb207d369002d590acbf0c':
  Add shadow during resizing in docked mode
2016-03-25 21:21:55 +00:00
Jorim Jaggi
08c8f70c6c Merge "Add shadow during resizing in docked mode" into nyc-dev
am: 1f6bdbc

* commit '1f6bdbca6955ac195807fd82b325bd8010ea6141':
  Add shadow during resizing in docked mode
2016-03-25 21:19:16 +00:00
Jorim Jaggi
c39c7b0ce2 Add shadow during resizing in docked mode
Bug: 27738239
Change-Id: I48c45bd97c2aa7f3d7bbb5b1ba650fbe408bd0bf
2016-03-25 14:04:25 -07:00
Edward Cunningham
abb2c5af8e DO NOT MERGE Revert "Revert "DO NOT MERGE Extend the DownloadManager.addCompletedDownload() method to support origin details.""
This reverts commit c6f5738d3c.

Change-Id: Ibb330f44c3910b3fc124ee8c718a508cdf3b32b4
2016-03-25 20:56:31 +00:00
Felipe Leme
93a8799b6e Merge "Refactored NetworkManagerService to support Data Saver." into nyc-dev am: 771d0c2
am: 244089a

* commit '244089a3806282e20d603d9be8942d3e550f03b1':
  Refactored NetworkManagerService to support Data Saver.
2016-03-25 20:50:21 +00:00
Felipe Leme
244089a380 Merge "Refactored NetworkManagerService to support Data Saver." into nyc-dev
am: 771d0c2

* commit '771d0c2be4c6a38e7d99beda03b7618d7188eac4':
  Refactored NetworkManagerService to support Data Saver.
2016-03-25 20:47:44 +00:00
Felipe Leme
771d0c2be4 Merge "Refactored NetworkManagerService to support Data Saver." into nyc-dev 2016-03-25 20:39:59 +00:00
Felipe Leme
65be3025fd Refactored NetworkManagerService to support Data Saver.
Netd provides 2 bandwidth control rules to restrict which uids can use
metered networks:

- bw_penalty_box is a blacklist-based firewall chain used to determine
  which uids do not have access to metered interfaces.

- bw_happy_box is whitelist-based firewall chain used to determine which
  uids have access to metered interfaces.

Currently, both NetworkManagerService (NMS) and
NetworkPolicyManagerService (NPMS) uses just the bw_penalty_box rule,
which makes turning Data Saver mode on / off too slow (since NPMS needs
to build the bw_penalty_box on demand); this CL adds support for both
rules on NMS, although NPMS doesn't take advantage of it yet (it will be
refactored in a separate CL).

BUG: 27127112
BUG: 26685616
Change-Id: Ib954574f7c86269fc9b4cf8ce4ba72ba5878c23d
2016-03-25 12:33:47 -07:00
Eino-Ville Talvala
6c91e2c31b Camera: Add bandaid for preview orientation on reverse-landscape cameras
Camera sensors on Android may be either landscape or reverse-landscape
oriented, but the vast majority of shipping devices only use landscape.

This means that many camera-using apps (which are generally forcing
themselves to landscape orientation) never call setDisplayOrientation,
since its default value of 0 is correct for the majority of devices.

However, there are some reverse-landscape devices, and for those, such
apps get upside-down preview.

This bandaid changes the default value of displayOrientation to be 180
on such devices, so that apps that never call setDisplayOrientation get
correct preview.  This bandaid has no effect on apps that do call
setDisplayOrientation, so hopefully such apps are doing the math
correctly.

Also update documentation to indicate that setDisplayOrientation should
be called, and to note the change in default orientation behavior in
Android N.

Change-Id: I1b2c957642fda8edead61bd07eda9d18c38d1fe6
Fixes: 27840948
2016-03-25 12:29:44 -07:00
Makoto Onuki
b59582fd51 Merge "Fix potential crash loop" into nyc-dev am: 619f468
am: 4304f6f

* commit '4304f6f10d153d3976aee862f468e6493b16d61b':
  Fix potential crash loop
2016-03-25 19:26:33 +00:00
Makoto Onuki
4304f6f10d Merge "Fix potential crash loop" into nyc-dev
am: 619f468

* commit '619f4682a3ba41d1d39356f16c9b1ec394b01464':
  Fix potential crash loop
2016-03-25 19:23:52 +00:00
Griff Hazen
51f3b887e9 Merge "Detect ranchu as emulator" into nyc-dev am: b63188d
am: 228f051

* commit '228f051748088c8831064b72c6ca4064840e215b':
  Detect ranchu as emulator
2016-03-25 19:04:06 +00:00
Muyuan Li
35d6b36e54 Merge "Refactor enableAccessibility to AccessibilityManagerService" into nyc-dev am: 3eca3cd
am: 8935b4b

* commit '8935b4b0d726b1766a04860d745b179da510587d':
  Refactor enableAccessibility to AccessibilityManagerService
2016-03-25 19:04:01 +00:00
Makoto Onuki
619f4682a3 Merge "Fix potential crash loop" into nyc-dev 2016-03-25 18:55:33 +00:00
Griff Hazen
228f051748 Merge "Detect ranchu as emulator" into nyc-dev
am: b63188d

* commit 'b63188de43c57174cccc1dc4c9b1df94828047e0':
  Detect ranchu as emulator
2016-03-25 18:19:16 +00:00
Muyuan Li
8935b4b0d7 Merge "Refactor enableAccessibility to AccessibilityManagerService" into nyc-dev
am: 3eca3cd

* commit '3eca3cd33497d44953418f8c6d9de4a00015d64f':
  Refactor enableAccessibility to AccessibilityManagerService
2016-03-25 18:19:12 +00:00
Griff Hazen
b63188de43 Merge "Detect ranchu as emulator" into nyc-dev 2016-03-25 18:05:47 +00:00
Muyuan Li
3eca3cd334 Merge "Refactor enableAccessibility to AccessibilityManagerService" into nyc-dev 2016-03-25 18:03:36 +00:00
Makoto Onuki
c5475d42a4 Fix potential crash loop
Bug 27548047

Change-Id: I10648ccb2fd17464e18308846b910efa129ce126
2016-03-25 10:55:21 -07:00
Philip P. Moltmann
62dc6583e6 Merge "Change hasCustomPrintIcon and setStatus as requested by API council." into nyc-dev am: ebf3976
am: e3221b5

* commit 'e3221b5488aad3898abac47f6e28f4779c54543b':
  Change hasCustomPrintIcon and setStatus as requested by API council.
2016-03-25 17:08:26 +00:00
Philip P. Moltmann
e3221b5488 Merge "Change hasCustomPrintIcon and setStatus as requested by API council." into nyc-dev
am: ebf3976

* commit 'ebf397625ea5ee41af531da251d8d0cb89c26beb':
  Change hasCustomPrintIcon and setStatus as requested by API council.
2016-03-25 17:00:11 +00:00
Philip P. Moltmann
ebf397625e Merge "Change hasCustomPrintIcon and setStatus as requested by API council." into nyc-dev 2016-03-25 16:50:36 +00:00
Griff Hazen
d3c454db29 Detect ranchu as emulator
Bug: 27780791

Change-Id: I23e5511acfba22260714874baf5e9380480b22bf
2016-03-25 09:35:20 -07:00
George Mount
8d01f110b3 Merge "Start seeked animators without waiting for start delay." into nyc-dev am: 68b296f
am: 919a3ef

* commit '919a3efdd7d5c7dbd64444cd4c2bd2e8509cd5a1':
  Start seeked animators without waiting for start delay.
2016-03-25 14:25:28 +00:00
George Mount
919a3efdd7 Merge "Start seeked animators without waiting for start delay." into nyc-dev
am: 68b296f

* commit '68b296fce10a9385c87259475115a87af1872127':
  Start seeked animators without waiting for start delay.
2016-03-25 14:21:32 +00:00
George Mount
68b296fce1 Merge "Start seeked animators without waiting for start delay." into nyc-dev 2016-03-25 14:10:01 +00:00
Alan Viverette
0e9485e9fc Merge "Clean up popup window positioning" into nyc-dev am: 69a3345
am: 8151f98

* commit '8151f989492b58e6ecb1fdffbb0622e3a6fc5841':
  Clean up popup window positioning
2016-03-25 13:33:03 +00:00
Alan Viverette
8151f98949 Merge "Clean up popup window positioning" into nyc-dev
am: 69a3345

* commit '69a3345ed5ad46b99a32b96018492d2ebdb9514c':
  Clean up popup window positioning
2016-03-25 13:28:45 +00:00
Alan Viverette
69a3345ed5 Merge "Clean up popup window positioning" into nyc-dev 2016-03-25 13:22:49 +00:00
Paul Jensen
5deda4f970 Merge "Move ApfFilter from ConnectivityService to IpManager" into nyc-dev am: 732340c
am: ebdf3f0

* commit 'ebdf3f006854b04de2508314be7ac0788b6faa99':
  Move ApfFilter from ConnectivityService to IpManager
2016-03-25 13:01:09 +00:00
Paul Jensen
ebdf3f0068 Merge "Move ApfFilter from ConnectivityService to IpManager" into nyc-dev
am: 732340c

* commit '732340cacdfaf80fb133cd74d7d57c25486eac1e':
  Move ApfFilter from ConnectivityService to IpManager
2016-03-25 12:57:32 +00:00
Paul Jensen
f21b4dc1d6 Move ApfFilter from ConnectivityService to IpManager
There's a few advantages to having ApfFilter in IpManager:
1. If things go wrong, crashing a particular transport is less bad then
   crashing ConnectivityService.  We also don't want to use
   ConnectivityService as a dumping ground for transport-specific logic.
2. This makes implementing WifiManager.MulticastLock a lot simpler and
   safer because enabling/disabling it doesn't have to go through the
   NetworkAgent, which could risk various races (e.g. installing a filter
   into the wrong WiFi network).
3. IpManager is the ultimate source for LinkProperties for a particular
   transport and since ApfFilter uses the LinkProperties it's better to
   have it closely paired with the IpManager. Likewise, ApfFilter needs
   to know the APF capabilities of the transport, so having it in
   the transport avoids having to parcel this information through the
   NetworkAgent.

Bug: 26238573
Change-Id: I99b85f2b64972f0e7572170ec5d1926081aa3429
2016-03-25 07:46:07 -04:00
Winson
12fc1b11a6 Merge "Dont scale task thumbnails." into nyc-dev am: 941a1f8
am: fccc734

* commit 'fccc7349aa94e51b6198233533d74a7bacbddb7a':
  Don’t scale task thumbnails.
2016-03-25 03:59:32 +00:00