149919 Commits

Author SHA1 Message Date
Youngsang Cho
9044be13dc Send notification messages immediatelly
Notification messages are posted through a handler with a main thread.
When a caller of TIS.notifyXXX runs also in a main thread, the notification
is delivered after the method including the caller is finished.
So we added runOnMainThread and made notification messages sent through
runOnMainThread.

Change-Id: Ieb2c5c04ff031e42a532acfc45e0174563265c6b
2014-08-23 00:53:31 +09:00
Selim Cinek
415ccb29f2 am 953dd5e4: Merge "Fixed focusing order for the notification panel and QS" into lmp-dev
* commit '953dd5e4722cf05c08d30ee4f0f653023e499e0b':
  Fixed focusing order for the notification panel and QS
2014-08-22 15:48:52 +00:00
Selim Cinek
ece4a834e8 Merge "Fixed focusing order for the notification panel and QS" into lmp-dev 2014-08-22 15:35:54 +00:00
Jason Monk
92b5c8196b Switch to proper networkcallback api
This will listen properly for the connection of the VPNs.  It will
also listen for disconnects, but may catch them slightly delayed
as the connection may be held on to.

Bug: 16153201
Bug: 17164598
Change-Id: I0c522f7fb4007c3376153c4b2a0345391e0b724f
2014-08-22 11:26:32 -04:00
Selim Cinek
e32010ac61 Fixed focusing order for the notification panel and QS
Also fixed multiple bugs regarding focusability, where
some elements were focusable even though invisible.
The buttons, QS-tiles, QS-detail buttons, QS Header
icons and other elements now have the correct focusability
state.
The rect indicating accessibility focus is now also
correct for dual label tiles, instead of just the whole
button.
Also fixes an ordering issue where notifications were above
the camera circle when launching.
In addition the focus order of the notifications now work
correctly.

Bug: 15569922
Bug: 15682123
Bug: 17159249
Bug: 15690386
Change-Id: Ie9f7ae73397b41ce2e9a4060699301fdef3a0d01
2014-08-22 17:13:36 +02:00
John Spurlock
a34cb5e363 Zen: "Muted by <x>" indicator string.
Bug:16958514
Change-Id: Ic2b9cde74df29ce70f4991f64759544c91e9fac3
2014-08-22 10:52:55 -04:00
Jessica Hummel
50582cc7ee am e8bedefe: Merge "Final strings tweaks for work profile" into lmp-dev
* commit 'e8bedefebd2ec5a79bb5a13d904cfbadcfd3d089':
  Final strings tweaks for work profile
2014-08-22 14:36:57 +00:00
Jessica Hummel
f9220b3953 Merge "Final strings tweaks for work profile" into lmp-dev 2014-08-22 14:26:56 +00:00
Kenny Guy
6a205dd37e am 28088d5b: Merge "Fix notification badge when line 3 not shown." into lmp-dev
* commit '28088d5b3b58a815910e815347cf38e8093a7d7a':
  Fix notification badge when line 3 not shown.
2014-08-22 14:26:56 +00:00
Christoph Studer
652f3e84f6 am 2af8bb02: Merge "SysUI: Fix NotificationData dump" into lmp-dev
* commit '2af8bb0244633292d0143f9204363db1919166cf':
  SysUI: Fix NotificationData dump
2014-08-22 14:26:50 +00:00
Adrian Roos
26277ea5ec am d7efee2a: Merge "Only run TrustAgentServices for users with secure keyguards" into lmp-dev
* commit 'd7efee2a4168123572769032b6d37a6324b138cd':
  Only run TrustAgentServices for users with secure keyguards
2014-08-22 14:26:46 +00:00
Kenny Guy
91d065bcbf Merge "Fix notification badge when line 3 not shown." into lmp-dev 2014-08-22 14:20:31 +00:00
Christoph Studer
17cda4f80f Merge "SysUI: Fix NotificationData dump" into lmp-dev 2014-08-22 14:18:04 +00:00
Adrian Roos
076e72554d Merge "Only run TrustAgentServices for users with secure keyguards" into lmp-dev 2014-08-22 14:17:32 +00:00
Christoph Studer
11840cdca9 SysUI: Fix NotificationData dump
Inactive notification count and indices were off.

Change-Id: I6e8555fe7dcaf6e7f999f09fb4cda56622928b07
2014-08-22 16:06:49 +02:00
Jessica Hummel
36b4e35a00 Final strings tweaks for work profile
Change-Id: I29ea13d522d867f847e72f5c43170a526e4e7f07
bug:15744182
2014-08-22 15:00:15 +01:00
John Spurlock
d3ca9165d2 am 4ebb6384: Merge "QS: Repoint Wifi + BT dual tile labels to settings." into lmp-dev
* commit '4ebb638496a76b1810a655e9196bf41641690a48':
  QS: Repoint Wifi + BT dual tile labels to settings.
2014-08-22 13:30:24 +00:00
John Spurlock
a0125c91ca am a15effc2: Merge "Don\'t do ambient display when in power-conservation mode." into lmp-dev
* commit 'a15effc2f830a13c9b5a997b1c132e56ea5b6e9c':
  Don't do ambient display when in power-conservation mode.
2014-08-22 13:30:20 +00:00
Jorim Jaggi
3631717fda am f229ee63: Merge "Content description for padlock icon depending on state" into lmp-dev
* commit 'f229ee632cdf798ef2b1b68a438cd63ca7bbded9':
  Content description for padlock icon depending on state
2014-08-22 13:30:15 +00:00
John Spurlock
2cd26fa48a Merge "QS: Repoint Wifi + BT dual tile labels to settings." into lmp-dev 2014-08-22 13:27:47 +00:00
John Spurlock
bd60d7f568 Merge "Don't do ambient display when in power-conservation mode." into lmp-dev 2014-08-22 13:27:29 +00:00
Jorim Jaggi
414b152856 Merge "Content description for padlock icon depending on state" into lmp-dev 2014-08-22 13:21:46 +00:00
John Spurlock
45ff7a7285 am 36902e93: Merge "Doze: Improve icon treatment when dozing." into lmp-dev
* commit '36902e93d806da8766c483e4271ac72945927d23':
  Doze: Improve icon treatment when dozing.
2014-08-22 13:06:48 +00:00
John Spurlock
d96179e02d Don't do ambient display when in power-conservation mode.
Finish SystemUI's doze dream early when we enter saver mode.

Bug:17164834
Change-Id: I79153be34da8c4b6447acf5dc9f93364906b2bab
2014-08-22 09:02:58 -04:00
John Spurlock
394fd61115 Merge "Doze: Improve icon treatment when dozing." into lmp-dev 2014-08-22 12:59:16 +00:00
Kenny Guy
98193ea54f Fix notification badge when line 3 not shown.
Ongoing notifications from chrome and drive
don't have content in line 3 so profile badge
wasn't shown.
Add profile badge to large notifications which
hide line 3.

Bug: 16366324
Change-Id: Ib4f1e888674743aa8ef93b7eaceae72602d8df4d
2014-08-22 13:30:58 +01:00
Narayan Kamath
a5bcef721c am 00e947b5: Remove a line that was accidentally committed.
* commit '00e947b545dd6c193907d0a3d94d30fc59d6e54d':
  Remove a line that was accidentally committed.
2014-08-22 11:47:01 +00:00
Narayan Kamath
31fe102d57 Remove a line that was accidentally committed.
Prevents the APK from being installed.

bug: 17153971

Change-Id: Ic53c94dc6f0583371965d5edb0b12248c915214e
2014-08-22 11:37:20 +00:00
Jeff Brown
8864415e2a Fix matrix multiply in accessiblity display adjustments.
Fixed a bug caused by a missing temporary when swapping two
matrices.  This could produce undefined results in the case where
both display inversion and the greyscale daltonizer were enabled
simultaneously.

Tightened up the code a little to make this kind of error
less likely by removing redundant state.

Removed the native prefix on some methods since they are not
native at all.

Change-Id: I716ffc8fbe76a304c60d45870074340c0121059f
2014-08-22 03:52:01 -07:00
Jeff Brown
1bfd0f463e Improve adaptive brightness in very dark rooms.
Added config_screenBrightnessDark to configure the minimum value
that will be used for auto-brightness adjustment.  This value is
expected to be less than unadjusted minimum auto-brightness level
to provide some range for the user to make the screen dimmer
in dark rooms.

This configuration value is set to the lowest possible level
by default (1).  Individual devices may need to override this value
in their framework resource overlay depending on their backlight
characteristics.

Change-Id: I9bd3a2355c65f894dff89aeaf7661cdf38f4a6ee
2014-08-22 02:17:41 -07:00
Yohei Yukawa
ab086bcd2d am dc42737e: Remove CursorAnchorInfoRequest and related stuff
* commit 'dc42737ef203189df65f385bc370c7e19d3968fd':
  Remove CursorAnchorInfoRequest and related stuff
2014-08-22 09:06:39 +00:00
Jungshik Jang
f67113f7ab Use common language code in hdmi service.
Bug: 15844859
Change-Id: I12945f743730ee234b25a40543ea44345abf43fa
2014-08-22 17:17:09 +09:00
Yohei Yukawa
a277db28e9 Remove CursorAnchorInfoRequest and related stuff
This CL removes CursorAnchorInfoRequest and related stuff
in favor of InputConnection.requestUpdateCursorAnchorInfo,
which is more easy to understand. This CL also deprecates
InputMethodManager#updateCursor and related stuff.

Rationale:
1. The spec of #updateCursor says that it provides the cursor
   position in local coordinates, while the input method
   requires it in the screen coordinates.
2. #updateCursor has never been enabled in AOSP, because
   InputMethodManager#isWatchingCursor always returned false.
3. There has been no way to let
   InputMethodManager#isWatchingCursor return true.
4. In L, InputMethodManager#updateCursorAnchorInfo is
   introduced to address all the issues above.

Given that we no longer need to support #updateCursor,
CursorAnchorInfoRequest is overkill when we need to convey
just a couple of parameters.

BUG: 17185263
BUG: 17182367

Change-Id: I4a577bfd02b37b9e56c80b8b41bb25afa95dd8ef
2014-08-22 00:55:06 -07:00
Narayan Kamath
e082f26e21 am 089f9feb: Merge "Fix service tests." into lmp-dev
* commit '089f9feb0913b4e9d3c854d8b0540573e8a8f0c9':
  Fix service tests.
2014-08-22 07:54:39 +00:00
Narayan Kamath
97a50adde5 Merge "Fix service tests." into lmp-dev 2014-08-22 07:47:38 +00:00
Jungshik Jang
12e7300e1d am b66b5991: Add spam-safe logger.
* commit 'b66b59918313532d36c557ad66b585a849566169':
  Add spam-safe logger.
2014-08-22 06:48:06 +00:00
Jungshik Jang
dbe6b45545 Add spam-safe logger.
This change introduces a new helper class, HdmiLogger,
which prevents spammy log for same error message.

Bug: 17179667
Change-Id: Ia55808408e0a92b0370cd627361f80754b2f1018
2014-08-22 15:30:04 +09:00
Brian Carlstrom
8def5cbb3a Move SystemBackupAgent from services.jar to frameworks.jar
Bug: 17168017
Change-Id: I89b98ca839a78eeb7fb43930e0699ee235deafad
2014-08-21 23:15:13 -07:00
Jeff Brown
7d82751530 Hide PowerManager methods that third-party apps can't use.
Change-Id: I9c4dbdef913f68939eb29f2c250c5fe3afc67399
2014-08-21 22:43:25 -07:00
Jeff Brown
0a57112354 Poke interactive hint from userActivity and add @SystemApi.
Previously we only poked the interactive hint for input events that
were dispatched through the regular input system.  However, when
using a car dock in projection mode input events are directly
delivered to apps by other system components, bypassing user activity.
So now we poke the interactive hint on all user activity.

Added an @SystemApi version of userActivity.

Added a new signature|system permission called USER_ACTIVITY
to allow system apps to poke userActivity.  For now it seems
prudent to keep DEVICE_POWER signature only.

Bug: 17043684
Change-Id: Ia84bd03083065b8938a9853c08901fbf71b2e56b
2014-08-21 22:36:45 -07:00
Jungshik Jang
935a3bfe8a am 952e276a: Merge "Implement interfaces for MHL scratchpad command" into lmp-dev
* commit '952e276a42082a67dd68a37017a71511ca48b7bd':
  Implement interfaces for MHL scratchpad command
2014-08-22 05:28:10 +00:00
Jungshik Jang
6385953604 Merge "Implement interfaces for MHL scratchpad command" into lmp-dev 2014-08-22 05:22:47 +00:00
Jeff Brown
72671fbb20 Require DEVICE_POWER permission for DOZE_WAKE_LOCK.
This wake lock is only intended to be used internally.

Change-Id: I8d109c492605673616cf7f4f31f082a42fb1d912
2014-08-21 22:20:55 -07:00
Jeff Brown
a71f03c481 Unhide the proximity sensor wakelock.
Bug: 5354313
Change-Id: I59c6bfcd8ff2cebe264f69c49032737a45326373
2014-08-21 22:20:48 -07:00
Chet Haase
be7dcb7a2a am 18237f09: Merge "Fix docs for circular reveal" into lmp-dev
* commit '18237f096cbc3c866b0f35c041760347d29afcb7':
  Fix docs for circular reveal
2014-08-22 04:19:19 +00:00
Stephen Hines
b3e3449bfd am 15041ae4: Merge "Clean up RsFountainFbo_intermediates." into lmp-dev
* commit '15041ae49b99f66778436574c99edf9ac5e96923':
  Clean up RsFountainFbo_intermediates.
2014-08-22 04:19:14 +00:00
Chet Haase
bc07081827 Merge "Fix docs for circular reveal" into lmp-dev 2014-08-22 04:12:50 +00:00
Stephen Hines
dc0800ddb6 Merge "Clean up RsFountainFbo_intermediates." into lmp-dev 2014-08-22 04:09:47 +00:00
Matthew Williams
9ae3dbeefc JobScheduler only run jobs for started users.
BUG: 12876556
Minor changes to test app to make persisting an option.
Change-Id: I1b40347878ec5ca44cd717ebfeb544f6c58473b5
2014-08-21 20:28:12 -07:00
Lorenzo Colitti
aaafd2a2d6 am fa79cdb6: Merge "Rework the per-network URL API." into lmp-dev
* commit 'fa79cdb6a7b8750cb5f9bf96a6938bf6ba57d105':
  Rework the per-network URL API.
2014-08-22 03:15:52 +00:00