Commit Graph

5842 Commits

Author SHA1 Message Date
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
Abodunrinwa Toki
5650c523d6 Merge "Make sure the scrollbar shows when the overflow is opened." 2016-02-04 18:24:01 +00:00
Nicolas Prevot
decd9ea263 IntentForwarderActivity shouldn't crash if intent has no action.
Also don't crash when receiving a chooser intent with no
extra initial intent.

BUG:26445101
Change-Id: Icaf55881a015cf8cc76e5269b9bb67784dbf33c3
2016-02-04 14:15:46 +00:00
Mihai Niță
28310218dd Merge "Update the title when going back from region selection" 2016-02-04 04:03:48 +00:00
Abodunrinwa Toki
cc9d617dca Make sure the scrollbar shows when the overflow is opened.
This helps users to tell that they can scroll the view.

Bug: 26955900
Change-Id: I49e65a3837b2610560dc1d049889e3cca2c32a0a
2016-02-03 18:32:42 +00:00
Jim Miller
e5cb2a7fef Merge "Recycle TypedArray in LockPatternView" 2016-02-03 02:55:36 +00:00
Jim Miller
ac010478a6 Recycle TypedArray in LockPatternView
Fixes bug 26734012

Change-Id: Ic15908f9aa6940f8c53a47c160c92f6f4648cc61
2016-02-02 18:12:30 -08:00
Mihai Nita
df1ccbdc97 Update the title when going back from region selection
Since the title in the region selector should be the language name,
the standard Preference logic is bypassed. So the normal Preference
implementation cannot update the title automatically.
This makes sure we set the title at the right time.

Bug: 26715311
Change-Id: Ifa3d70b8504b093ae17baba8c179ebf55e3c7be2
2016-02-02 15:16:28 -08:00
Filip Gruszczynski
6727d64084 Merge "Don't extend alert windows onto status bar/nav bar." 2016-02-02 23:11:39 +00:00
Paul Lawrence
1a8654b5b4 Merge "Add APIs to allow detection of encryption type" 2016-02-02 21:54:03 +00:00
Adam Powell
2388251fcd Pinning components in ChooserActivity, take 2
Keep the ChooserActivity in the android:ui process/system.

Change-Id: Ia3ae29a8d629f41a53a066b9fc7ed0b28666b261
2016-02-02 09:26:30 -08:00
Chong Zhang
a4d4a4c64e Merge "Do not draw background if the background drawable is null" 2016-02-02 00:35:41 +00:00
Chong Zhang
0fd2574a1d Do not draw background if the background drawable is null
Some apps may not have background drawables.

bug: 26729953
Change-Id: I1e93013bb91ba376449bc580646fc733ca4dd072
2016-02-01 16:09:55 -08:00
Jorim Jaggi
ccdab44d25 Merge changes Ie6c1ea33,Id1af37e6,I9c474f7a,I439c9b66
* changes:
  Reset create state in moveTaskToStack
  Divider tuning
  Fix transition to recents in docked mode
  Fix flicker and other weirdness
2016-02-01 22:18:21 +00:00
Jorim Jaggi
1b12ef55b7 Divider tuning
- Take insets into account for calculating dismissing fraction,
but don't dim into 100% when the device has insets at that
side.
- When applying parallax to the top side, apply less.

Change-Id: Id1af37e6f7af43ec3682dad4ad1ce68034301b4d
2016-02-01 13:43:36 -08:00
Mihai Niță
a6a63d8ef0 Merge "Fix: RTL sublocales need to display RTL" 2016-02-01 20:22:36 +00:00
Mihai Nita
24215ecadc Fix: RTL sublocales need to display RTL
When the langage selected in the first step is right-to-left the
localized region names should also be rendered right-to-left,
regardless of the UI language of the system itself.
We only need this to happen for the sub-locale because all labels
are localized in the same language (the parent one), so it is all
consistent, not the mixture we have in the language selection.

Bug: 26278041
Change-Id: I54c4306763458be691a1ba0c2bc2dba613beb8c5
2016-02-01 10:51:54 -08:00
Abodunrinwa Toki
79798a793f Merge "Revert "Revert "FloatingToolbar: Fix orientation change handling.""" 2016-02-01 18:16:44 +00:00
Alan Viverette
37a4a1c8a7 Merge "Don't move non-modal popups in response to global layout" 2016-02-01 17:30:28 +00:00
Alan Viverette
bfd99b480d Merge "Scroll alert dialog buttons vertically when there's not enough space" 2016-02-01 17:28:53 +00:00
Jason Monk
c767a1f988 Merge "Add some cmds for statusbar" 2016-02-01 16:39:06 +00:00
Abodunrinwa Toki
30f8ef46e5 Revert "Revert "FloatingToolbar: Fix orientation change handling.""
This reverts commit 6608a80fb3.
...and fix the syntax errors.

Change-Id: If2ca31d426b2e3eeac8444f7cb24ab21f169d30d
2016-02-01 15:28:42 +00:00
Wale Ogunwale
3b93a4d351 Renamed Activity class multi-window APIs
As requested by API council.

Bug: 26507736
Change-Id: I2a87c5eb3c1b48d52703103c2a4f72c250a9a827
2016-02-01 06:58:31 -08:00
Jason Monk
7e53f20c83 Add some cmds for statusbar
They will be used for tests?!

Also move around where some of the tile lifecycle happens so that
it can easily be shared with these commands.

Change-Id: I72386afce5a2d335df45ecc5946679efcd826bae
2016-02-01 09:55:28 -05:00
Narayan Kamath
b61437de5f Merge "Revert "FloatingToolbar: Fix orientation change handling."" 2016-02-01 13:43:49 +00:00
Narayan Kamath
6608a80fb3 Revert "FloatingToolbar: Fix orientation change handling."
This reverts commit a874e30959.

Change-Id: I8e61e4d1f4af8dea71f69babbe6224c01bb6c6ac
2016-02-01 13:40:43 +00:00
Abodunrinwa Toki
cc3fb7a463 Merge "FloatingToolbar: Fix orientation change handling." 2016-02-01 12:54:10 +00:00
Jeff Sharkey
35871f2c2b Offer to migrate databases and SharedPreferences.
Databases and SharedPreferences often involve multiple files under
the hood, so developers wanting to migrate them between different
storage contexts should ask us to make sure all relevant files are
migrated correctly.

This makes a best-effort attempt to recover from battery pulls
during migration, while still trying to alert developers to
conflicting files.

Bug: 26668510, 25860525
Change-Id: I9ffa3e8cb6191dfd4237b9466a081d6d77df3ba0
2016-01-30 17:03:23 -07:00
Jaewan Kim
54fa566ab7 Merge "PIP: Use StatusBarService to handle PIP key" 2016-01-30 01:06:29 +00:00
Filip Gruszczynski
adf7b5e817 Don't extend alert windows onto status bar/nav bar.
This requires preserving information about the status bar/nav bar insets
and using it to reduce the available space when measuring wrap_content
windows.

Also remove the hack that was introduced for round devices and should be
handled instead by the round qualifier and theming.

Bug: 26014496

Change-Id: I5688c50153047dcabc197adab8fec141630a2b51
2016-01-29 15:42:37 -08:00
Chris Tate
4fff321f9f Merge "Stage backup/restore data in a cache subdir rather than root" 2016-01-29 22:09:04 +00:00
Paul Lawrence
5c21c70371 Add APIs to allow detection of encryption type
Change-Id: Ic80086386afcf7b674cac676443690151c80e181
2016-01-29 13:39:26 -08:00
Christopher Tate
e5f51c212c Stage backup/restore data in a cache subdir rather than root
Also make sure not to do the restorecon() before the file is
created.

(Also fix binder identity bug in the 'bmgr fullbackup' flow.)

Bug 26834865

Change-Id: Ia8a59eeb55762264163c8b310caae5e303413571
2016-01-29 12:47:45 -08:00
Adam Lesinski
9fa3cd3d86 Merge "BatteryStats: Fix DivideByZero error" 2016-01-29 20:42:42 +00:00
Adam Lesinski
a426817a06 BatteryStats: Fix DivideByZero error
As we hand out proportional blame to apps for transmitting/receiving
packets, make sure to check that the total packets sent never
becomes zero.
Bug:26873610

Change-Id: I3e0fc3c9e8d4dafce2e88c75d8f44701d8fba0d4
2016-01-29 12:41:27 -08:00
Andreas Gampe
4c79fea9ef Frameworks/base: Stop profiling on uncaught exception
When "handling" an uncaught exception, make an attempt to stop
profiling. In case profiling was active, this will avoid losing
the profiling buffer.

Bug: 26291225
Change-Id: Ie5f5517b46ed89d0456a4aac9d4ff3b713d1d8aa
2016-01-29 10:45:14 -08:00
Alan Viverette
2e750a1474 Scroll alert dialog buttons vertically when there's not enough space
Bug: 25897915
Change-Id: I3cca89450728100375c6cf8ef9142c9a002fd8ba
2016-01-29 12:53:26 -05:00
Rubin Xu
a3b0c04f34 Merge "Watch out for null pointers when getting profile owner info" 2016-01-29 16:38:30 +00:00
Rubin Xu
945fd0074a Watch out for null pointers when getting profile owner info
Bug: 22776761
Change-Id: If9b7fe603c52b953633a81642b506c0b2fa8dc3a
2016-01-29 16:29:53 +00:00
Abodunrinwa Toki
a874e30959 FloatingToolbar: Fix orientation change handling.
Orientation change handling was done using a config change listener
but it is not a sufficient trigger for when the toolbar needs to be
resized. It is called before the layout has changed. A better trigger
for resizing the toolbar will be on layout change. At this time, we
get an accurate measurement of the drawing area.

Bug: 21816857
Change-Id: Ia4d752f12b64b64256c1c41d5ede5d2e29a4f408
2016-01-29 16:25:49 +00:00
Abodunrinwa Toki
649a401101 Merge "Fix floating toolbar rendering." 2016-01-29 15:03:03 +00:00
Robin Lee
ed8a5b3579 Merge "Replace broken UserHandle.SYSTEM check in LPU" 2016-01-29 13:27:25 +00:00
Abodunrinwa Toki
6be228c111 Fix floating toolbar rendering.
The code to size and position the floating toolbar and it's content
when there was no overflow menu was omitted. This caused bad
rendering of the toolbar and it's content when an existing toolbar
object was updated to go in the "no overflow" state.

Fixed the issue by properly updating the floating toolbar size
and positioning of it's contents in the "no overflow" state.

Bug: 25973599
Change-Id: I9305140f493bc36b87328571cd7645f184d9cf30
2016-01-29 12:22:29 +00:00
Jaewan Kim
c552b04cb4 PIP: Use StatusBarService to handle PIP key
Bug: 26591829
Change-Id: I7051fab966e2fc0887b2a21ddbf11aff7e16804b
2016-01-29 18:40:47 +09:00
Mihai Niță
2d8d083dc7 Merge "Create the locale list with ICU4J's ListFormatter" 2016-01-29 07:43:23 +00:00
Selim Cinek
6ecc810ca2 Fixed a bug with the media notication template
The image could overlap with the buttons due to
the specced way. This is now fixed.

Change-Id: I346467d48b5f8337d09af4b20e5cdfcd41e12b81
2016-01-28 19:02:20 -08:00
Alan Viverette
64b7157368 Don't move non-modal popups in response to global layout
Bug: 26799074
Change-Id: Id363342f65b89c624f672ec0276408003e41008f
2016-01-28 15:00:31 -05:00
Mihai Nita
fc881a25b4 Create the locale list with ICU4J's ListFormatter
The list of user locales showing under Language & input -- Language
used a hard-coded comma as separator.
Changing that code to use the ICU locale-aware formatter.

Bug: 26848487
Change-Id: I36975da3a3770df8abaf7e3987b188f2e912f378
2016-01-28 09:45:30 -08:00
Adam Powell
e7c74cc96e Revert "Pinning components in ChooserActivity"
This reverts commit ec6bc41e18.

Bug 26842512

Change-Id: I9fc775d21081885d0e26fca4ade412a18da45b7c
2016-01-28 09:04:20 -08:00
Abodunrinwa Toki
46125323fc Merge "FloatingToolbar: Fix logic error in determining open/close overflow animation duration scale." 2016-01-28 14:45:47 +00:00