17089 Commits

Author SHA1 Message Date
Sungsoo Lim
2b35a72a69 Handle the crash of TIS.
- Implement DeathRecipient for SessionState.
- Implement onServiceDisconnected.
- Add callback methods for notifying the death of Session.

Bug: 14073482
Change-Id: Ifdc54266a878224844a221f0b52415d0bc378e39
2014-05-13 14:27:09 +09:00
Sungsoo Lim
51391666ee Merge "Replace ComponentName to InputId." 2014-05-13 05:24:37 +00:00
Zhentao Sun
adcc576363 Merge "Make sure nativeInit is called on an object." 2014-05-13 01:13:54 +00:00
Zhentao Sun
a4dfc2c56b Make sure nativeInit is called on an object.
This bug is introduced by the attempt to fix b/14117917.
Worked around b/14469172. The implementation of nativeInit assumes that
it's called on a object instead of class.

Change-Id: I73241e62aa73ce98358ff37b772d1a26daf9e53c
2014-05-12 17:57:22 -07:00
Brian Carlstrom
027c75d5e2 am f230061b: am 2ce02bba: am b7d7cbc9: Merge "Fix background PackageUsage writing."
* commit 'f230061b383f3e5fa63a266d84477963dc5f226c':
  Fix background PackageUsage writing.
2014-05-13 00:44:39 +00:00
Brian Carlstrom
f230061b38 am 2ce02bba: am b7d7cbc9: Merge "Fix background PackageUsage writing."
* commit '2ce02bba1eea682282408b8521dad8c91837fbab':
  Fix background PackageUsage writing.
2014-05-13 00:40:12 +00:00
Brian Carlstrom
2ce02bba1e am b7d7cbc9: Merge "Fix background PackageUsage writing."
* commit 'b7d7cbc9c3a9315a5c5ecd85e16f5916c4bc3f3a':
  Fix background PackageUsage writing.
2014-05-13 00:34:42 +00:00
Sungsoo Lim
d6672b51c5 Replace ComponentName to InputId.
Change-Id: Ia4b5b7fa3f2dfa68629f78981b4ea7f7017d6504
2014-05-13 09:33:12 +09:00
bulic
5ae2afdc2a Merge "Prevent home task from being set as ontopofhome" 2014-05-13 00:02:01 +00:00
Brian Carlstrom
112a720638 Fix background PackageUsage writing.
Change-Id: Ia358b61e648b427c86cf75ae096cd2a68ace209f
2014-05-12 16:56:34 -07:00
Robert Greenwalt
f9cb86aebe Replace LinkCapabilities with NetworkCapabilities
Also remove unused LinkSocket and LinkSocketNotifier.
bug:13885501

Change-Id: Id426e31b201fa4f29109b5fea485d8efb34519d3
2014-05-12 16:52:56 -07:00
Alan Viverette
2feaa1837a Merge "Simplify accessibility display adjustments" 2014-05-12 23:05:48 +00:00
Matthew Williams
6de79e2b17 First implementation of the TaskManager internals.
Sketching out the TaskManagerService, and provide an implementation
of the Connectivity & Time controllers to use as a basis for how the
IdleMode controller will function.

Change-Id: I9163b8b9df1f8a027354720b469a0fb4c8e37194
2014-05-12 15:41:43 -07:00
Alan Viverette
e08340645d Simplify accessibility display adjustments
Makes the inversion bit public so apps can be smarter about rendering
images non-inverted (if they are so inclined).

BUG: 14680114
Change-Id: I8ca2b2517af2ffc13446d7e0b4e859c1171e2d0e
2014-05-12 15:26:45 -07:00
bulic
ccd230712d Prevent home task from being set as ontopofhome
If the front activity of a task that is on top of home finishes, the oldest task in
other stacks will be set as ontopofhome (which in this case meant the
home task was set to ontopofhome).  The solution is to ensure we
only set a task to ontopofhome if the finishing activity is in the same
stack.

Change-Id: Idd8f9af4d3d9bd2de3c519d3dcc60f479695ae0c
2014-05-12 14:34:50 -07:00
Ruchi Kandoi
0e8a427ab8 Merge "PowerManager: Minor Coding style issues." 2014-05-12 21:25:13 +00:00
RoboErik
f33e99828f Merge "Make sessions aware of user id" 2014-05-12 21:20:49 +00:00
Ruchi Kandoi
15aedf5bfc PowerManager: Minor Coding style issues.
Corrects coding style errors caused by
Ibed319e734340dfd5348dbeb8fe20c01b1adaac5

Change-Id: I81eb0a2bcc4fb45804a1f47aef76d94142f6aba7
2014-05-12 21:16:39 +00:00
Chris Wren
9bbc0ca0ab Merge "notification ranking infrastructure" 2014-05-12 20:48:44 +00:00
Simon Wilson
728614e42e am c5df4d0e: Merge "BootReceiver: add ro.boot.bootreason property to SYSTEM_LAST_KMSG" into klp-modular-dev
* commit 'c5df4d0e7d43d39072dfbab5f37d8b170de4617b':
  BootReceiver: add ro.boot.bootreason property to SYSTEM_LAST_KMSG
2014-05-12 19:49:00 +00:00
Robert Greenwalt
82f421ad83 Merge "First pass on multinetwork framework" 2014-05-12 18:19:55 +00:00
Robert Greenwalt
9ba9c58e4a First pass on multinetwork framework
Starting to switch netd to use NetId.
Adding the Network identifying class

bug:13550136
Change-Id: Ie0db4fb17c9300bfafb63329adfa02339911b33d
2014-05-12 10:59:44 -07:00
Robert Greenwalt
e4f1960652 Merge "Turn down the logging." 2014-05-12 16:39:37 +00:00
Robert Greenwalt
7f44ff8d6b Turn down the logging.
Cut per-msg logging by 1/3 in NDC so we see that much more.

Change-Id: I406297d98f2649a88b16c7be3cf90757d009c762
2014-05-12 08:59:27 -07:00
Jeff Davidson
a9c4762697 Merge "Flush dump output before calling score cache dump() methods." 2014-05-12 15:37:33 +00:00
Ruchi Kandoi
195111641c Merge "Vibrator: Minor coding style changes." 2014-05-09 23:13:07 +00:00
Ruchi Kandoi
664703d6be Vibrator: Minor coding style changes.
Corrects the coding style errors caused by
I762be1d51eedbf3184d80ed51dc93a0d113a6d5d

Change-Id: I5adb713611f5479b21dd32ed8d8d51cb1910bca9
2014-05-09 16:01:31 -07:00
Jeff Davidson
68c46fd8dd Flush dump output before calling score cache dump() methods.
Change-Id: I2a28bd90583e34710c2d0ac8b31f16b8a22c165d
2014-05-09 15:51:34 -07:00
Colin Cross
aa943d1b2d BootReceiver: add ro.boot.bootreason property to SYSTEM_LAST_KMSG
Instead of requiring the kernel to join last_kmsg and the reboot
reason together, allow both to be passed to userspace and have
userspace combine them the way the log parsers want them.

Existing devices with no ro.boot.bootreason property and kernel
support for putting the reason in last_kmsg will continue to
use the kernel's formatting.

Bug: 13813279
Change-Id: I079b0107feb1533c6a54044ca6a114741127dfbc
(cherry picked from commit 431614cb6b2170fc715757dc6f964fdbb140ee7d)
2014-05-09 22:30:23 +00:00
Kenny Root
e928957316 Merge "WindowManagerService: add some defensive checks" 2014-05-09 22:20:20 +00:00
Ruchi Kandoi
f974cc8706 Display: Brightness: Low power mode scales the brightness to 50 percent.
When the device is in low power mode all changes to brightness will be
scaled to half of the brightness that would be normally set when not in
low power mode.

Change-Id: I03be820ef64c1d5631ded35f7dfc2799e807226b
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
2014-05-09 21:17:33 +00:00
Chris Wren
f953664dc1 notification ranking infrastructure
Added an ordered list of notifications (n.b. a complete ordering).
Added a mechanism for ranking to be updated asynchronously
Added onNotificationRankingUpdate to NotificationListeners
Added an opaque order update object and a convenience comparator that
  uses it to sort notifications for listeners

Repurpose scorers to be ranking preprocessors.  The preprocessors will
perform heavy-weight validation of the notification object and memoize
the results to improve efficiency of the ranking comparator.

Current internal comparator implements status quo ordering, except
that notes with a valid contact sort to the top of their priority
bucket.

Change-Id: I7244c65944a9657df41fb313b3cb5a52e149709d
2014-05-09 15:48:53 -04:00
Kenny Root
d7d2d43b49 WindowManagerService: add some defensive checks
Add checks before posting a message to the handler thread where
exceptions will crash the service.

Also make KeyguardLock fields final.

Bug: 14564617
Change-Id: I147d579d942f5fa555714d204cde52e2cd5f6154
2014-05-09 11:08:54 -07:00
Brian Carlstrom
809146690d am 09d11896: am edc31509: am b98ca5b0: Merge "If PackageUsage information is missing, treat as first boot and compile everything"
* commit '09d1189668a74b2cd4a6af124e95c9e6786499f2':
  If PackageUsage information is missing, treat as first boot and compile everything
2014-05-09 17:42:50 +00:00
Craig Mautner
d9ddf2e9d0 Merge "Introduce persistent forms of Activity lifecycle calls." 2014-05-09 17:38:53 +00:00
Brian Carlstrom
09d1189668 am edc31509: am b98ca5b0: Merge "If PackageUsage information is missing, treat as first boot and compile everything"
* commit 'edc31509c2ff8cba86f30c836934d32a3e249dec':
  If PackageUsage information is missing, treat as first boot and compile everything
2014-05-09 17:38:10 +00:00
Brian Carlstrom
edc31509c2 am b98ca5b0: Merge "If PackageUsage information is missing, treat as first boot and compile everything"
* commit 'b98ca5b0dd73f374178022b4a4b37412f01a3c03':
  If PackageUsage information is missing, treat as first boot and compile everything
2014-05-09 17:33:04 +00:00
Jason Monk
c241db85c9 Merge "Fix badness from proxy refactoring." 2014-05-09 17:11:15 +00:00
Brian Carlstrom
7c5c864c8a If PackageUsage information is missing, treat as first boot and compile everything
Bug: 14663243
Change-Id: I0ae33882044211f777590f482e17e87596be4463
2014-05-09 09:52:09 -07:00
Craig Mautner
a002604af0 Introduce persistent forms of Activity lifecycle calls.
When an Activity is created with R.attr.persistable true different
forms of activity lifecycle methods including PersistableBundle will
be used.

Fixes bug 13736007.

Change-Id: I7e92917b300b76964257cfcc26c24e76aa19bd16
2014-05-09 09:42:37 -07:00
Christoph Studer
2509be2bb7 Merge "Preserve notification stats on update" 2014-05-09 16:35:21 +00:00
Svetoslav
954e3fbccc Merge "Teach accessibility manager services about user profiles." 2014-05-09 16:06:19 +00:00
Svetoslav
0425d7f56b Teach accessibility manager services about user profiles.
For user profiles the accessibility layer will use the accessibility
state of the their owner. A profile cannot have its own plugins or
settings. The rationale behind this is that if a user with impaired
vision is using the device with different profiles linked to his
main one, then he/she should be able to interact with the device no
matter what profile the app is being run with. Hence, The behavior
of the accessibility features should be consistent across apps run
with different profile.

bug:14564491

Change-Id: Id19ce81e1a2dfa48015c7ab3053d66c058be3e46
2014-05-09 08:58:39 -07:00
Jessica Hummel
91da58ded2 Allow setting password restrictions from a managed profile.
A managed profile will now share password settings with its parent.

- the current password is always stored in the parent
- admins of profiles are notified if that password changes
- checks for password quality now take the requirements of admins on
   the parent and its profiles into account

Todo:

- Currently KeyguardSecurityContainer wipes the whole device when
  the maximum fails has been reached on any profile.
  We need to limit the wipe to the profile for which the fails exceeded
  the maximum number.
- Intents with ACTION_SET_NEW_PASSWORD need to be forwarded to the parent
  of the profile when sent from a managed profile

Change-Id: I8532c59f753f8d9c61200f553f275214ad90276e
2014-05-09 16:16:02 +01:00
Jason Monk
5df281a570 Fix badness from proxy refactoring.
When no PAC file getPacFileUrl() can return null now, which you
cannot call toString() on.

Change-Id: Ife00f641c2c17fbc1bde17017d9af59d23cb9182
2014-05-09 09:53:08 -04:00
Christoph Studer
061dee22df Preserve notification stats on update
Change-Id: I519b31e83c32ac00e7c5838abbc5e3127430106b
2014-05-09 12:46:44 +02:00
Jessica Hummel
a8c5f577d0 Merge "Add api for getting the parent of a profile." 2014-05-09 09:33:28 +00:00
Eric Laurent
82af2b9e51 Merge "AudioService/WireAccessoryManager: change boot completion detection method" 2014-05-08 23:25:49 +00:00
Winson Chung
6e05841950 Merge "Removing the old tasks on launching recents task if they trigger a new task." 2014-05-08 22:33:20 +00:00
Ruchi Kandoi
13b03aff29 Vibrator: Low Power Mode: Vibrator is turned off when the device is in
Low Power Mode

Vibrator is disabled for all touching and typing inputs during low power mode.

Change-Id: I762be1d51eedbf3184d80ed51dc93a0d113a6d5d
2014-05-08 22:02:25 +00:00