Commit Graph

5515 Commits

Author SHA1 Message Date
Jason Monk
d5a204f16e Better service management for QS 3rd party tiles
Better wrapper around the service that will handle rebinding
when it dies, binding when it becomes available, and forwarding
along all messages to the service once it binds.

Also better handling of too many services at a time.  Will only
ever bind to at most 3 tiles and will manage which ones are most
important to show based on pending clicks, last update, etc.

Change-Id: I5f4da0bc751f7eb25baa32e5c0bb9f1bc418f5bb
2016-01-04 14:46:11 -05:00
Pavlin Radoslavov
7016625473 Use GID "wakelock" to control access to kernel wakelock
* Added GID "wakelock" (3010) to the list of groups the System Server
   belongs to.

 * Added GID "wakelock" to the list of assigned groups for the
   "android.permission.BLUETOOTH_STACK" Android permission.

 * Grant CAP_BLOCK_SUSPEND to processes that belong to GID "wakelock"

Bug: 25864142
Change-Id: I8a9a5f11e4a9ecd1abf2d4f4b90ec89b3101332e
2015-12-28 19:32:48 +00:00
Mihai Nita
451376062a Add APIs to access various locale lists.
This includes APIs to get / set the user locale list,
and getters for the curated list of supported locales,
localized assets, and pseudo-locales.

Change-Id: Ie5771d769cd4a01f6404fa82f6f4f9bcb9b83a9e
Bug: 25800339
2015-12-22 23:19:37 -08:00
Filip Gruszczynski
8cef7db8d6 Merge "Only use DecorContext with main activity windows." 2015-12-23 02:20:49 +00:00
Filip Gruszczynski
796b8c17d6 Only use DecorContext with main activity windows.
Bug: 26251921
Change-Id: Icd41eddd4f39b95a136ee366673fabbef9d4def0
2015-12-22 15:14:01 -08:00
Vladislav Kaznacheev
b23a757aa2 Bind DropPermissions life cycle to Activity
Move requestDropPermissions from DragEvent to Activity.
Permissions will be granted using UriPermissionOwner
 associated with this activity and revoked when the activity
 is destroyed (if DropPermissions.release is not called before that).

Change-Id: Ic8f8fc3f56f57e83b9bc34ae8c96d82c2c9c4e1d
2015-12-22 14:40:11 -08:00
Jason Monk
d40328e687 Color transforms for the tuner
Change-Id: I615be65e2b020acd5520f93c04f426c4006221c5
2015-12-21 09:37:00 -05:00
Jeff Sharkey
5217cacbd9 Make JobSchedulerService encryption aware.
When a user is started, but a persisted job component doesn't appear
in the normal resolution list, we avoid enqueuing the job.  Later
when the user is unlocked, we take another pass over the pending
jobs to see if they became available.

Load keyboard layouts from XML metadata regardless of crypto status,
since we don't need to spin up any remote code.

Add MATCH_SYSTEM_ONLY to make system logic easier to write when
looking for trusted components.

Sprinkle more annotations on ArrayUtils methods.

Bug: 26279465
Change-Id: Iec28e0bb46862b07d740b12a79f6360de68dab0f
2015-12-20 15:36:29 -07:00
Mihai Niță
085caa2bb2 Merge "Adding a locale picker with two-step selection: language, then region." 2015-12-18 21:55:32 +00:00
Andreas Gampe
a0c40fc602 Merge "Frameworks/base: Change android.util.Log multiline logging" 2015-12-18 21:27:18 +00:00
Mihai Nita
3b70b0fc25 Adding a locale picker with two-step selection: language, then region.
This is intended to replace the UI part of the LocalePicker, at
least for the main "Settings" application (under "Language & Input")
and for the "Setup Wizard".

The UI part in the old LocalePicker can be removed once all the
components that use it are migrated to the new one.

Bug: 25800339
Change-Id: I2f264cdb7b7fc586124dd58fad2c68060d5b7aa8
2015-12-18 21:13:55 +00:00
George Mount
69b495bdb8 Merge "Alt-up moves focus to the toolbar in action bar mode." 2015-12-18 15:46:31 +00:00
George Mount
5beb2617f9 Alt-up moves focus to the toolbar in action bar mode.
Bug 24811572

Change-Id: Ie065fa13ba76131e700e73984a99fc60a7aa513c
2015-12-18 07:44:50 -08:00
Andreas Gampe
8413db8c36 Frameworks/base: Change android.util.Log multiline logging
To avoid long stacktraces being truncated, add code to split up
large chunks along line breaks.

Introduce LineBreakBufferedWriter to chunk up log output. Add a
core test for it.

Change-Id: I34160fbce853c21329f7fa109a9c42506b2066af
2015-12-17 19:00:29 -08:00
Chris Banes
12a47ac41e Fix AlertDialog.setIcon() not working when called after show() pt.2
BUG: 26183328
Change-Id: I2bd8ff0315e04dd33fe720f0e5c32dec06747afc
2015-12-17 10:00:26 +00:00
Vladislav Kaznacheev
9149d2b117 Rename and simplify DropPermissionHolder
Rename DropPermissionHolder to DropPermissions and move
all server-side implementation details into a separate class.
Rename DragEvent.getDropPermissionHolder to
requestDropPermissions and make it take the permissions
implicitly.

Change-Id: Ia83f7cb8af07ce13ba9536d24b0f9d63331d8736
2015-12-16 17:10:36 -08:00
Alan Viverette
9084d22cb9 Check for null MenuHelper before setting presenter callback
Bug: 26219569
Change-Id: Ia19a1304aa10dac52b89d0ee85acdb5671a15777
2015-12-16 09:56:37 -05:00
Alan Viverette
db08925a8f Fix build
Change-Id: I3e1708a9e41155b9b00e0365e4392ae66202fdbb
2015-12-15 17:16:33 -05:00
Todd Kennedy
4f7b035e34 Merge "Fix ephemeral post-install launching" 2015-12-15 22:12:33 +00:00
Todd Kennedy
7440f177c3 Fix ephemeral post-install launching
Provide the ephemeral installer with some additional pieces of information:
1) instead of de-referencing the URL a second time, give the installer the
   exact package name
2) instead of relying on ephemeral apps to define verified links, give the
   installer a pending intent to launch when the ephemeral is installed
3) give the installer a pending intent to launch if the installer fails,
   for whatever reason, to install the ephemeral app

Bug: 25119046
Change-Id: I45f50481caee09d5d09451e4b2492e64b0faae82
2015-12-15 14:04:56 -08:00
Alan Viverette
6329523938 Merge "Postpone CascadingMenuPopup window creation until show()" 2015-12-15 21:56:20 +00:00
Alan Viverette
ecfdaa9157 Postpone CascadingMenuPopup window creation until show()
This ensures that addMenu() and setters can be called in any order
as long as they occur before the show() call.

Bug: 25853211
Change-Id: I9a643d37c60046326b7d97a38026c27ba247a1b0
2015-12-15 16:53:32 -05:00
Chris Banes
f928d4aa45 Merge "Fix AlertDialog.setIcon() not working when called after show()" 2015-12-15 18:13:02 +00:00
Wale Ogunwale
3e5f080528 Merge "Fixed bug with caption not showing for some apps that handle config changes" 2015-12-15 18:11:11 +00:00
Chris Banes
476da7720a Fix AlertDialog.setIcon() not working when called after show()
BUG: 26183328
Change-Id: I86a5a299c9afa105c62a709d2a60b8b2e5b590dc
2015-12-15 17:14:15 +00:00
Wale Ogunwale
eb6722c0bc Fixed bug with caption not showing for some apps that handle config changes
We currently decide when to show the decor caption onConfigurationChanged
However, if the app handles configuration changes or the threshold isn't
big enough for the configuration change to be reported to the app, we don't
display the caption in some cases when transitioning from fullscreen mode
to freeform mode.
We now also use the onMultiWindowModeChanged call to also determine if
the caption should be visible.

Change-Id: I237437f04ad90f904912ebac0253245f547b0e3e
2015-12-15 09:01:45 -08:00
Alan Viverette
35a57bc5e9 Merge "Only handle Context submenus as dialogs when parent is a dialog" 2015-12-15 15:10:45 +00:00
Bryce Lee
5a0fed6841 Allow access to deprecated LOCK_PATTERN_ENABLED flag. am: 4614596a39 am: 36393a5674 am: 4ab8b0696a
am: 0510ad1bc9

* commit '0510ad1bc9a2da4fa84f1a5417a218dba48563e3':
  Allow access to deprecated LOCK_PATTERN_ENABLED flag.
2015-12-15 01:17:28 +00:00
Bryce Lee
0510ad1bc9 Allow access to deprecated LOCK_PATTERN_ENABLED flag. am: 4614596a39 am: 36393a5674
am: 4ab8b0696a

* commit '4ab8b0696a4383b7dec2fc2dc4f17596bcd9216a':
  Allow access to deprecated LOCK_PATTERN_ENABLED flag.
2015-12-15 00:11:06 +00:00
Bryce Lee
4ab8b0696a Allow access to deprecated LOCK_PATTERN_ENABLED flag. am: 4614596a39
am: 36393a5674

* commit '36393a5674bf50b351b5961a194ce2814ca00140':
  Allow access to deprecated LOCK_PATTERN_ENABLED flag.
2015-12-14 23:57:38 +00:00
Bryce Lee
36393a5674 Allow access to deprecated LOCK_PATTERN_ENABLED flag.
am: 4614596a39

* commit '4614596a395b6c86fff3f35a07edda2e848d743c':
  Allow access to deprecated LOCK_PATTERN_ENABLED flag.
2015-12-14 23:43:54 +00:00
Bryce Lee
4614596a39 Allow access to deprecated LOCK_PATTERN_ENABLED flag.
It is possible that older platforms may have not cleared the lock pattern,
but instead only checked this flag to determine the lock pattern enabled
state. In such cases, upgrading to a platform with that only checks the
lock pattern can lead to the lock screen being re-enabled by accident.
These new methods allow this condition to be identified and resolved.

Bug: 26029690
Change-Id: I8f7ebc0e1915049afe49c219c87010aa38a16244
2015-12-14 14:39:10 -08:00
Brad Ebinger
355f11034d Null pointer fix for StateMachine
Checks if StateMachine is null before calling callbacks.

Bug-Id: 26176787
Change-Id: I7ee92326e99e18a3b7045ccf098b52acfaff9a15
2015-12-14 09:02:38 -08:00
Alan Viverette
77fb85eda9 Only handle Context submenus as dialogs when parent is a dialog
Bug: 25656520
Change-Id: I5841d8f0c3d4a537e2d94aacddb1687d05d5c258
2015-12-14 11:42:44 -05:00
Jason Monk
ded2b10520 Merge "Support dnd condition in Settings" 2015-12-14 15:39:55 +00:00
Nicolas Geoffray
93444eb74f Merge "Special case system_server to not create the JIT code cache." 2015-12-14 13:04:06 +00:00
Jason Monk
a9927325ed Support dnd condition in Settings
- Add way to open QS detail panels directly
 - Add internal broadcast that can launch apps when dnd mode changes

Change-Id: If2b6350dc31623f3bf2f64c7eb141cff5d3d4e89
2015-12-13 16:22:37 -05:00
Jorim Jaggi
fe412b551b Merge "Add multi-window entry points logging" 2015-12-12 02:25:07 +00:00
Brad Ebinger
9a2b9f61a3 Merge "Add handler callbacks to StateMachine" 2015-12-12 01:01:39 +00:00
Jorim Jaggi
92de6b6381 Add multi-window entry points logging
Bug: 26116313
Change-Id: I159ca53857d382cb74ef8e49f7955946ccea93ca
2015-12-11 15:15:11 -08:00
Nicolas Geoffray
3c43b38633 Special case system_server to not create the JIT code cache.
Change-Id: I7d2622f560435b2b6d133b0acd2659f3410acd2e
2015-12-11 15:01:04 +00:00
Yohei Yukawa
026688070c Merge changes If80df0bc,I4e91b2d7,If3aef820
* changes:
  Apply Java 7 diamond operator.
  Remove a redundant method overload.
  Remove unnecessary parameter that is always true.
2015-12-11 04:43:05 +00:00
Adam Lesinski
794a18f5a2 Prevent DivideByZero error in BatteryStatsImpl am: ba88e68fe4 am: 4e4ff058c1
am: 0b754d122c

* commit '0b754d122c3b9db395a86d9a098f6a29bf042b53':
  Prevent DivideByZero error in BatteryStatsImpl
2015-12-10 15:44:14 -08:00
Adam Lesinski
0b754d122c Prevent DivideByZero error in BatteryStatsImpl am: ba88e68fe4
am: 4e4ff058c1

* commit '4e4ff058c1a0b4b77f468a206a790bb6f084f616':
  Prevent DivideByZero error in BatteryStatsImpl
2015-12-10 14:54:38 -08:00
Adam Lesinski
4e4ff058c1 Prevent DivideByZero error in BatteryStatsImpl
am: ba88e68fe4

* commit 'ba88e68fe47b66f1fc5d10c15f04f20fe662399e':
  Prevent DivideByZero error in BatteryStatsImpl
2015-12-10 14:47:09 -08:00
Yohei Yukawa
7025964d12 Apply Java 7 diamond operator.
This is a mechanical refactoring to apply Java 7 diamond operators in
InputMethodSubtypeSwitchingController.java.

Bug: 22859862
Change-Id: If80df0bcf0b1485c43d55ff51cab69c8ae211eb2
2015-12-10 01:11:34 -08:00
Yohei Yukawa
e512f85002 Remove a redundant method overload.
Bug: 22859862
Change-Id: I4e91b2d7f2da7716ae5a34125a29db5e1ad5a983
2015-12-10 01:06:09 -08:00
Yohei Yukawa
5f8e731f18 Remove unnecessary parameter that is always true.
This is a mechanical refactoring that removes an unnecessary parameter
that is always specified to 'true'.

No behavior change is intended.

Bug: 22859862
Change-Id: If3aef8209a355af1432ca2600bcc3a0027a6c24c
2015-12-10 01:05:49 -08:00
Filip Gruszczynski
ac7518854e Merge "Remaining APIs for freeform window caption." 2015-12-10 01:57:10 +00:00
Adam Lesinski
ba88e68fe4 Prevent DivideByZero error in BatteryStatsImpl
It was assumed that when a UID had either rx or tx bytes/packets that it would
have the other as well.

Bug:25706750
Change-Id: Iefac59a6bd02876aed9a0bac218d187b81807a95
2015-12-10 00:48:24 +00:00