14596 Commits

Author SHA1 Message Date
Jae Seo
abda420b9d TIF: Update the internal input list with new TvInputInfo
Bug: 26864151, Bug: 26863281
Change-Id: I33e357aac74bceda50c794eb6057c363de9250b8
(cherry picked from commit 89a9937927e05a86938aa297a79047ce1a7c7d2d)
2016-02-08 18:19:41 +00:00
Julia Reynolds
d560729ce3 Update DND visual interruption choices.
Change-Id: I7050264839c566dcef1dd01d155dda694a8d1ec0
2016-02-08 15:20:02 +00:00
Jeff Sharkey
b7289330e1 Another intent sent by both system and apps.
Bug: 26219772
Change-Id: I4e52c6836e65b983800ef59ad7a1ade5b3a2bea2
2016-02-07 13:08:02 -07:00
Jeff Sharkey
f4aa33c97c Merge "Migrate default app data on non-FBE devices." 2016-02-07 03:57:32 +00:00
Jeff Sharkey
e4697136ed Migrate default app data on non-FBE devices.
When a system app requests "forceDeviceEncrypted" they expect their
default app storage to point at a consistent location regardless of
device FBE support.  So when booting upgraded non-FBE devices, we
may need to migrate any data from CE to DE.  Note that on non-FBE
devices these are just semantic locations with identical protection.

This migration *only* works for non-FBE devices; changing
forceDeviceEncrypted flags on an FBE device always requires a full
data wipe.

Bug: 26668510
Change-Id: Ic5dfeaaf2db26c385901a638ca8ec35eb3c52859
2016-02-06 20:45:15 -07:00
Tamas Berghammer
25222f55f2 Merge "Add flag to "am start" to enable native debugging" 2016-02-06 13:18:58 +00:00
Paul Crowley
dccc4a834d Merge "Always get an auth token when we verify." 2016-02-06 08:43:28 +00:00
Adam Lesinski
2068bb8bb0 Merge "Track BLE scans in BatteryStats" 2016-02-06 00:52:38 +00:00
Chong Zhang
af78708e98 Merge "Check wallpaper visibility to determine if wallpaper is obscuring apps." 2016-02-05 23:32:56 +00:00
Chong Zhang
66bf071d11 Check wallpaper visibility to determine if wallpaper is obscuring apps.
bug: 26948569
Change-Id: I710893ee086dce441cb5e2744fc721d3e1a2fd8a
2016-02-05 14:42:36 -08:00
Jeff Sharkey
e5a20ce397 Merge "Prepare user storage just before using it." 2016-02-05 21:01:22 +00:00
Wale Ogunwale
39d1b5b0f7 Merge "Exclude tasks manipulated before user setup is complete from Recents" 2016-02-05 19:04:56 +00:00
Jeremy Klein
45ae04ab7b Fix a small issue with the BT Tether callback value.
It was incorrect when disabling bt tethering. Note that this had
no practical effect because there's no callback for disabling, but
the change is good for readability's sake.

Change-Id: Id80de58b24e94ec5a8ee38d94fb3016ae7835e43
2016-02-05 10:37:32 -08:00
Jeremy Klein
391df1ac2e Merge "Remove several TetherUtil functions which are no longer needed." 2016-02-05 18:15:30 +00:00
Filip Gruszczynski
267c503354 Merge "Only make home opaque when requesting visible behind false." 2016-02-05 18:09:06 +00:00
Jeff Sharkey
47f7108c12 Prepare user storage just before using it.
Wire up preparing of user-specific app storage to existing user
lifecycle hooks.  This way we're sure the storage is ready to roll
just before we start reconciling app data directories.

This also has the nice property that we only prepare storage when
we know that keys are unlocked.

Bug: 25796509
Change-Id: Ic7df9ddbcfb1e20649d11b6cf68d424e3c365ee1
2016-02-05 11:00:31 -07:00
Julia Reynolds
417c0625ad Merge "NoMan support for FBE." 2016-02-05 17:10:23 +00:00
Alan Viverette
1a2941541a Merge "Multi-user support for display density changes" 2016-02-05 16:03:58 +00:00
Julia Reynolds
a3dcafff6d NoMan support for FBE.
Rebind to service components that should now available.

Bug: 26941542
Bug: 26940790
Change-Id: Id5290a75894f61cf55b3a2b82d08b1533bf099ca
2016-02-05 10:54:48 -05:00
Paul Crowley
98e0a266ea Always get an auth token when we verify.
We need the auth token for FBE. In a future commit I'll get rid of the
"verify" method altogether, but no need right now.

Bug: 22950892
Change-Id: Ied2b666f0613dd97e021d3416ec06e44b9397d11
2016-02-05 12:17:53 +00:00
Calin Juravle
1fc4a27762 Merge "Fix useProfiles usage in PackageDexOptimizer" 2016-02-05 11:55:43 +00:00
Shreyas Basarge
181a43103b Merge "Add more logging to JobScheduler" 2016-02-05 11:51:33 +00:00
Jeremy Klein
aaa20ad134 Remove several TetherUtil functions which are no longer needed.
Slowly chipping away at TetherUtil to clean up this code.
This CL also adds an admin check to
ConnectivityService.isTetheringSupported to get parity with the
TetherUtil function before removing it.

Change-Id: Ibe7c5c9fb420d57e5458f77dad30e8a1e751a3e2
2016-02-04 19:06:59 -08:00
Wale Ogunwale
a9f9b37823 Reset docked divider to the middle of the screen if sys-ui dies
It is possible for the docked divider to be in an unstable location
when sys-ui dies. E.g sys-ui animating the divider from behind the
nav bar. When this occurs we reset the divider to the middle of the
screen so that the system remains in a useable state. Otherwise, the
docked stack can be fullscreen always preventing the user from going
into any other application.

Bug: 26965731
Change-Id: Icd254fffe69da4ee3f2efb4ff1d210a778703f64
2016-02-04 18:51:48 -08:00
Wale Ogunwale
9884eaadd3 Merge "Do not recursively call setFocusedActivityLocked()" 2016-02-05 02:21:03 +00:00
Roozbeh Pournader
c9088c5d1b Merge "Various LocaleList cleanups" 2016-02-05 01:38:57 +00:00
Jae Seo
823441a74b Merge "TIF: Replace TvInputInfo in SessionState with ID and component name" 2016-02-05 01:21:08 +00:00
Chong Zhang
3aa28b28fd Do not recursively call setFocusedActivityLocked()
This could potentially cause AM to set focus back to the top running,
and lead to inconsistent focus in AM and WM.

Also add some warnings to watch out for such cases.

bug: 26819496
Change-Id: Ie3fceeddedec4f2103a427989c9543cb3e9ff8f2
2016-02-04 16:57:52 -08:00
Wale Ogunwale
f80170f455 Exclude tasks manipulated before user setup is complete from Recents
We don't want any tasks manipulated before the user is done setting-up
their device included in the tasks list we give to the Recents activity.
However, the task can be included back in Recents if it is manipulated
after the user set-up is complete. E.g. you go into the gmail activity
during setup the task will be exclude, but if the user goes back into
gmail after setup then we start including the task.

Bug: 25959392
Change-Id: I421d48f0a9bcfc782d1ef19aa2f63e8b34a668e2
2016-02-04 16:06:56 -08:00
Roozbeh Pournader
fee4484637 Various LocaleList cleanups
- Remove the LocaleList#getPrimary() API. It had become confusing
  after locale negotiation was completely implemented. For example,
  it could create the confusion that calling getPrimary() on the
  default locale list would provide the default locale, etc.
- Use the adjusted locale list from LocaleList.getAdjustedDefault()
  in Paints created with no locale list provided.
- Change LocaleList#get() to treat out of bound indexes from both
  negative indexes and too large indexes the same way.

Bug: 26984092
Bug: 26193251
Bug: 26834387
Change-Id: I75f77aea6b75e38793ed8477e5e5a4420d5e6d85
2016-02-04 15:44:03 -08:00
Jorim Jaggi
5bef2fcce8 Merge changes If489d2ba,I1fe12181,Ieb4f586a,Ib51163a0,Ifdfcf3ad, ...
* changes:
  Hide swipe-up gesture behind tuner flag
  When long pressing recents and already docked, undock
  More multi-window fixes
  Use separate flag to suppress resizes
  Only treat "null" bounds as fullscreen
  Exclude stable insets from task config
  Fix bug where surface was not clipped off during resizing
  Fix crash in SysUI when configuration changes
2016-02-04 22:49:52 +00:00
Jorim Jaggi
1b025a6026 More multi-window fixes
- When exiting multi-window (taskOverride gets EMPTY), emulate
the same task configuration so we don't end up with unnecessary
relaunches.
- Fix flicker by not calling WM.setAppVisibility if the app is
already visible. setAppVisibility makes a dummy transition,
which sets the transformation's alpha to zero if we think that
the app is not visible, which is the case because the app is in
DRAW_PENDING state because we are waiting for it to exit the
dragResize mode, but it's really visible.

Change-Id: Ieb4f586ae86e1185b21a901c57883a1f19d58fee
2016-02-04 14:37:47 -08:00
Jorim Jaggi
8202b2a5db Use separate flag to suppress resizes
When moving a task between stacks, we temporarily suppress resize
changes because while moving, the task is still in another stack
which might get resized by the docked stack because when fetching
the stack, we might create it and thus resize the other stack.

Introduce mTemporarilyUnresizable which makes it really not resizable,
regardless of whether we are force resizing our activities.

Change-Id: Ib51163a0606106fd55f5bdeecf8e53f08add4b4b
2016-02-04 14:37:26 -08:00
Jorim Jaggi
067e817585 Only treat "null" bounds as fullscreen
When long pressing on the recents button, we made it one pixel smaller
than fullscreen so we don't dismiss the stack immediately again.
However, this is a huge hack, and lead to problems with navigation bar
background because there we actually rely on the fact whether
the window is fullscreen or not to determine whether to draw the
navigation bar background, which lead to flickering.

Bug: 26777526
Change-Id: Ifdfcf3ad4138bc88c5164177cd20f1ff1635085f
2016-02-04 14:37:07 -08:00
Jorim Jaggi
0a93214198 Exclude stable insets from task config
When a app is in fullscreen, we exclude navigation bar and status bar
size when calculating the config. However, when in multi-window, and
the task was almost fullscreen, the height/width reported to the app
was actually larger than when it was in fullscreen. In order to fix
this, exclude the stable insets when calculating the task
configuration, and also fix a bug when calculating the screen layout.

Change-Id: I843ae012fb3050c79643d125550aacb6e73d27da
2016-02-04 14:36:57 -08:00
Jorim Jaggi
9511b0f1e9 Fix bug where surface was not clipped off during resizing
When dragging the divider in a way such the task size goes through
the following transition

- Half size
- Full screen
- Half size

the surface wasn't clipped off anymore. This was because in full
screen configuration, computeDragResizing() == false thus when
going full screen -> half size, we reset the draw state to
DRAW_PENDING to get notified when it has finished drawn. However,
this also broke clipping.

In order to fix this, we always put the window into a resizing mode
no matter whether the bounds are fullscreen or not.

However, this introduces an ugly flickering on the navigation bar,
when going into docked mode, because the app doesn't draw navigation
bar background in resize mode.

To fix that, we calculate the presence of navigation bar whether the
window is fullscreen, and not just whether it's resizing. For that,
we need to calculate the presence in BackdropFrameRenderer, by using
the insets just sent by window manager.

Change-Id: Idf56df4ae7fefe67d068bc2eeda8dc4d83bbefb7
2016-02-04 14:36:46 -08:00
Amith Yamasani
4c3a774ec8 Merge "Transit to correct state after alarm is fired" am: f3c432059c
am: 510a2c5aeb

* commit '510a2c5aeb88c5128737593e314e63265bc5d308':
  Transit to correct state after alarm is fired
2016-02-04 22:05:35 +00:00
Amith Yamasani
510a2c5aeb Merge "Transit to correct state after alarm is fired"
am: f3c432059c

* commit 'f3c432059c44e8e74b0385adde5f619e4d8eba0d':
  Transit to correct state after alarm is fired
2016-02-04 22:00:38 +00:00
Wale Ogunwale
b631f7c60b Merge "Logging for 26793431" 2016-02-04 21:26:26 +00:00
Alan Viverette
3db7796461 Use correct condition for killing background processes
Bug: 26881641
Change-Id: Iccb0f48497e5a2023543d73b5c2067e5edaf717e
2016-02-04 14:53:00 -05:00
Filip Gruszczynski
62c5e9d7f7 Only make home opaque when requesting visible behind false.
Bug: 26945608
Change-Id: I11273654c27a2847ca8ec9ac16823672e5d3fbe7
2016-02-04 11:06:54 -08:00
Alan Viverette
6bfa4286e0 Merge "Kill background processes targeting SDK < N on density change" 2016-02-04 18:45:17 +00:00
Alan Viverette
2aa46d4325 Kill background processes targeting SDK < N on density change
Bug: 26881641
Change-Id: Iea8e95e550e2ca32f15c2bdaa14b6bf81f06a477
2016-02-04 12:49:44 -05:00
Felipe Leme
95f6280bf1 Merge "Propagate changes when uids are added or removed to the restricted background whitelist." 2016-02-04 17:19:34 +00:00
Filip Gruszczynski
1ad24fe228 Merge "Infrastructure for animating of maximizing pip activity." 2016-02-04 17:16:53 +00:00
Filip Gruszczynski
c17d8b79af Infrastructure for animating of maximizing pip activity.
Bug: 25672053
Change-Id: Ie8a83c626680e01ff7115f40731ab9e6c13769c0
2016-02-04 09:01:05 -08:00
Felipe Leme
a2773089a6 Merge "Created commands to manage metered networks." 2016-02-04 17:00:52 +00:00
Shreyas Basarge
d8bf6b9fed Add more logging to JobScheduler
Improves logging in perioidc job period clamping.
Added sourcePackage to dumpsys in JobScheduler.

Bug: 26874152
Change-Id: Iaccd6df3e70dfcae16e983893a708342fda637b3
2016-02-04 14:34:46 +00:00
Jae Seo
2cdb05e576 TIF: Replace TvInputInfo in SessionState with ID and component name
Needed to avoid coherency issues when updating TvInputInfo.

Bug: 26864151
Change-Id: Iec67b74628e1e52ebd8f7bf1aeb6339fe8fdb98f
2016-02-04 22:17:13 +09:00
Koji Fukui
27b33306e6 Transit to correct state after alarm is fired
Symptom:
When AlarmClock fires in IDLE, state is changed to ACTIVE.
But the ACTIVE state continues under some conditions.

Root cause:
Transition from IDLE state to ACTIVE state when AlarmClock fires
1.	Send ACTION_STEP_IDLE_STATE intent
2.	Calles onReceive() in BroadcastReceiver
3.	Calles stepIdleStateLocked()
4.	Calles becomeActiveLocked() 

Check point (1) to change from ACTIVE state to INACTIVE
(Display On -> Off)
1.	onDisplayChanged()
2.	updateDisplayLocked()
3.	becomeInactiveIfAppropriateLocked()

Check point (2) to change from ACTIVE state to INACTIVE
(charging -> not charging)
1.	ACTION_BATTERY_CHANGED
2.	updateChargingLocked()
3.	becomeInactiveIfAppropriateLocked()

There are only two check points to change from ACTIVE to INACTIVE.
If state transition, from IDLE to ACTIVE,
happened by AlarmClock when display is off and not charging,
ACTIVE state will be kept and never changes to INACTIVE state.

Change-Id: I93398366307f529b9c0074ac58b19ad6e4695790
2016-02-04 10:56:24 +09:00