351 Commits

Author SHA1 Message Date
Jean-Michel Trivi
f108cdd9ee Also rely on enabled notification listeners for RemoteController registration
Registration of a RemoteController may succeed only if:
 - the caller has the MEDIA_CONTENT_CONTROL permission,
 - or if the RemoteController.OnClientUpdateListener it
   registers if one of the enabled notification listeners.

For using the "enabled notification listener" functionality,
 the CL involved:
 - making OnClientUpdateListener an interface so a 3rd-party
   application may have its implementation extend
   NotificationListenerService, which is required for a
   listener to be enabled by the user.
 - add the concept of "enabled" status in an
   IRemoteControlDisplay, so a RemoteController (which
   encapsulates the IRemoteControlDisplay implementation)
   may be registered, but later temporarily disabled by
   the user, as a result of a user action in the security
   settings, or a user switch.
 - making MediaFocusControl, the component tied to
   AudioService, monitor changes in enabled notification
   listeners, and act upon enable/disable changes.

Bug 8209392

Change-Id: Ia8dfa2156c65668b2b0d4ae92048005912652d84
2013-10-04 17:50:44 -07:00
Chet Haase
b0891e66b4 am 5c44b36b: am 3980ae47: am 845d9192: Merge "Enable transitions in lockscreen media controller" into klp-dev
* commit '5c44b36b2a5f44bdba53244ee423aeeea14c485e':
  Enable transitions in lockscreen media controller
2013-10-04 17:37:11 -07:00
Chet Haase
5c44b36b2a am 3980ae47: am 845d9192: Merge "Enable transitions in lockscreen media controller" into klp-dev
* commit '3980ae478b290bc472f20289b67b6719439b12fa':
  Enable transitions in lockscreen media controller
2013-10-04 16:34:14 -07:00
Chet Haase
845d9192d7 Merge "Enable transitions in lockscreen media controller" into klp-dev 2013-10-04 23:26:37 +00:00
Chet Haase
aa00613322 Enable transitions in lockscreen media controller
Media controller now fades between different states. The code for
doing this was already there, but this CL enables them and changes
the behavior of transition's OnPreDrawListener to do the right thing.

Also, this CL fixes a bug in ChangeText found while testing this change.

Issue #11083563 ChangeText transition crashes when KEEP transition type used

Change-Id: I5e04c28e1b5faac017b0a4e49734d9faa7fe79cd
2013-10-04 14:05:48 -07:00
Jim Miller
2bd9e8cec1 am 8995c51d: am 3efc75ac: am fea784dd: Merge "Fix bug where dismiss() was being called from the wrong thread" into klp-dev
* commit '8995c51d1d071cf1dc4505e0da8eb2fb23e18dd0':
  Fix bug where dismiss() was being called from the wrong thread
2013-10-04 11:10:23 -07:00
Adam Powell
5abb64d801 am 91aa6021: am 310796de: am d6239b92: Merge "Add a scrubber to keyguard; layout tweaks" into klp-dev
* commit '91aa6021876e1690ad84ca0b3304ca7b0f925e80':
  Add a scrubber to keyguard; layout tweaks
2013-10-04 11:09:12 -07:00
Baligh Uddin
c170c22cc0 Import translations. DO NOT MERGE
Change-Id: I1227decae162536bf90ffb753308cb4018e0538e
Auto-generated-cl: translation import
2013-10-04 11:08:41 -07:00
Jim Miller
2b0cb8c347 am 6689a7e8: am 44c4dd93: am 8990e28b: Merge "Update default keyguard clock to new UX specification" into klp-dev
* commit '6689a7e8efd559039465c37f577ef367f462cecc':
  Update default keyguard clock to new UX specification
2013-10-04 11:08:19 -07:00
Jim Miller
8995c51d1d am 3efc75ac: am fea784dd: Merge "Fix bug where dismiss() was being called from the wrong thread" into klp-dev
* commit '3efc75acce4c77c5ef62e6ff6ac57410ec53bde7':
  Fix bug where dismiss() was being called from the wrong thread
2013-10-03 21:30:35 -07:00
Jim Miller
3efc75acce am fea784dd: Merge "Fix bug where dismiss() was being called from the wrong thread" into klp-dev
* commit 'fea784ddec162951e95e91010b25ffb65fe704db':
  Fix bug where dismiss() was being called from the wrong thread
2013-10-03 21:27:17 -07:00
Jim Miller
6001379bff Fix bug where dismiss() was being called from the wrong thread
One-way calls to binder do not guarantee the call will always
occur on the originating thread.  This fixes a rare case where
keyguard would crash due to dismiss() being called from the wrong
thread.

Fixes bug 11065316

Change-Id: Iddd281964231a152e3342e21b6b88527eab94caf
2013-10-03 18:31:34 -07:00
Adam Powell
91aa602187 am 310796de: am d6239b92: Merge "Add a scrubber to keyguard; layout tweaks" into klp-dev
* commit '310796de0b86074229ad804001b1ef8d466ee69c':
  Add a scrubber to keyguard; layout tweaks
2013-10-03 15:51:26 -07:00
Jim Miller
6689a7e8ef am 44c4dd93: am 8990e28b: Merge "Update default keyguard clock to new UX specification" into klp-dev
* commit '44c4dd9316f00f22c68707bcf4dbf2326649628c':
  Update default keyguard clock to new UX specification
2013-10-03 15:48:28 -07:00
Adam Powell
310796de0b am d6239b92: Merge "Add a scrubber to keyguard; layout tweaks" into klp-dev
* commit 'd6239b922901420b6855a7dad903632c85ccde68':
  Add a scrubber to keyguard; layout tweaks
2013-10-03 15:41:59 -07:00
Jim Miller
44c4dd9316 am 8990e28b: Merge "Update default keyguard clock to new UX specification" into klp-dev
* commit '8990e28b5a7fcbd5e80862a74fff621c18aca2a6':
  Update default keyguard clock to new UX specification
2013-10-03 15:38:25 -07:00
Adam Powell
d6239b9229 Merge "Add a scrubber to keyguard; layout tweaks" into klp-dev 2013-10-03 22:35:35 +00:00
Jim Miller
8990e28b5a Merge "Update default keyguard clock to new UX specification" into klp-dev 2013-10-03 22:32:25 +00:00
Jim Miller
b0da1e70ad Update default keyguard clock to new UX specification
Change-Id: I0d5f302d8bd5922acd45cfe1de42cb76cebc02e5
2013-10-03 15:19:21 -07:00
Jim Miller
19264fcdd0 Keyguard customization for mcc262-mnc07
Fixes bug 10518893

Change-Id: I6122df28954ad2ed062f7258d11e202b02122eea
2013-10-03 15:09:54 -07:00
Adam Powell
f8895248e2 Add a scrubber to keyguard; layout tweaks
Switch KeyguardTransportControlView over to using RemoteController
instead of the internal API.

Guard transition animations behind a flag until we can work out some
intermittent issues.

Change-Id: Ie9f41339ce6e735c5d524db88437672f2c9859e2
2013-10-03 14:55:18 -07:00
Baligh Uddin
291eea7e55 Merge "Import translations. DO NOT MERGE" 2013-10-03 03:41:16 +00:00
Baligh Uddin
e7f5e98d8a Import translations. DO NOT MERGE
Change-Id: I1173bff13f4eb5523156f63861f918feeeb22376
Auto-generated-cl: translation import
2013-10-02 11:18:59 -07:00
Baligh Uddin
06b3280ddb Import translations. DO NOT MERGE
Change-Id: Ibd657855a970ecb2055f7adf4ca57c0d4825a8ee
Auto-generated-cl: translation import
2013-10-02 11:16:48 -07:00
Chet Haase
c2baf840d3 am 5e0582e5: am 0d5a9fde: am 6e4ee9d5: Merge "Make onClickHandler in KeyguardHostView a weak reference" into klp-dev
* commit '5e0582e5f16eccc96ee0da0fb507722180778d00':
  Make onClickHandler in KeyguardHostView a weak reference
2013-10-02 09:44:11 -07:00
John Reck
b3c7f0e577 am 662ad0c2: am 2c862e68: am 60746378: Merge "Remove old animation" into klp-dev
* commit '662ad0c26f77108ce30aea875e7a07aed4dbc604':
  Remove old animation
2013-10-02 09:44:01 -07:00
Michael Wright
f169b5e528 am cd479b6e: am 02cefe27: Merge "Move slide to unlock circle up" into klp-dev
* commit 'cd479b6e880f23b7d87665a1b40fcdf758d12fdb':
  Move slide to unlock circle up
2013-10-02 09:42:48 -07:00
Chet Haase
5e0582e5f1 am 0d5a9fde: am 6e4ee9d5: Merge "Make onClickHandler in KeyguardHostView a weak reference" into klp-dev
* commit '0d5a9fde7e2571ff95b4e3fb87d1997bd58678f2':
  Make onClickHandler in KeyguardHostView a weak reference
2013-10-02 09:36:49 -07:00
John Reck
662ad0c26f am 2c862e68: am 60746378: Merge "Remove old animation" into klp-dev
* commit '2c862e68f0d7575f00c88b822dcb67060d8deb4f':
  Remove old animation
2013-10-02 09:36:32 -07:00
Michael Wright
cd479b6e88 am 02cefe27: Merge "Move slide to unlock circle up" into klp-dev
* commit '02cefe27f334c0919983ec62ab7b679696d3b6b8':
  Move slide to unlock circle up
2013-10-02 09:34:13 -07:00
John Reck
a9212864f3 am 6fe99af1: am 288180c2: Merge "Avoid accidentally using software layers" into klp-dev
* commit '6fe99af1bdc00471662ea2fdec0317910a7c3e2b':
  Avoid accidentally using software layers
2013-10-01 23:10:42 -07:00
John Reck
6fe99af1bd am 288180c2: Merge "Avoid accidentally using software layers" into klp-dev
* commit '288180c24434ba5b0f35e8f22d39b109b46270e2':
  Avoid accidentally using software layers
2013-10-01 22:21:30 -07:00
Amith Yamasani
a2957bdcca am 32ff8c14: am f55cf7fc: Merge "Adjust padding for keyguard pin entry keys" into klp-dev
* commit '32ff8c14b285bed93a1e8ec65a49debfdd3cbaef':
  Adjust padding for keyguard pin entry keys
2013-10-01 18:50:24 -07:00
Jim Miller
7f5348b093 am 102f0e05: am 8b3bc51c: Merge "Disable keyguard widgets on low memory devices" into klp-dev
* commit '102f0e05ba1efb76a3f68ae57fbea4dd85fa1ef8':
  Disable keyguard widgets on low memory devices
2013-10-01 18:50:17 -07:00
Adam Powell
69e957d474 am 43a372f3: Keyguard transport controls: fullscreen art
* commit '43a372f38ad642f86047e8112e3d43edb7300439':
  Keyguard transport controls: fullscreen art
2013-10-01 18:44:21 -07:00
Jim Miller
1e5712bdc2 am 1ae85153: Merge "Fix missing transport in keyguard" into klp-dev
* commit '1ae85153c804553365d18715824fd3a569f8ce18':
  Fix missing transport in keyguard
2013-10-01 18:44:17 -07:00
Chet Haase
0d5a9fde7e am 6e4ee9d5: Merge "Make onClickHandler in KeyguardHostView a weak reference" into klp-dev
* commit '6e4ee9d50f59b15a523d6e252b7f3f2dc8b773f5':
  Make onClickHandler in KeyguardHostView a weak reference
2013-10-01 16:46:40 -07:00
Chet Haase
7fc27ea451 Make onClickHandler in KeyguardHostView a weak reference
The strong reference OnClickHandler caused bitmaps in keyguard to be
referenced when keyguard was not visible. This change makes the click
handler a static class with a weak reference to the hostView instance,
allowing those bitmaps to get collected and shaving ~845k off of the
heap size when the keyguard isn't showing.

Issue #10918599 SystemUI should have a round of Svelting

Change-Id: I69de8659ac14c1a4723d082dd3cd394d8b6097f1
2013-10-01 16:37:17 -07:00
John Reck
2c862e68f0 am 60746378: Merge "Remove old animation" into klp-dev
* commit '607463788abd6168fa5f0133cf225600833268ae':
  Remove old animation
2013-10-01 15:39:22 -07:00
John Reck
da7af95d81 Remove old animation
Bug: 10918599
 Shaves ~1.5MB off of Keyguard creation from usage of an
 old-style Alpha animator that would create a draw cache
 The animation is unseen due to screen timings, so simply remove it
 Also adds a bit of de-jank to the non-svelte case by avoiding
 a potential GC_FOR_ALLOC

Change-Id: Id49742d95988f670a44305e4033e7a850d20e675
2013-10-01 14:52:03 -07:00
Amith Yamasani
32ff8c14b2 am f55cf7fc: Merge "Adjust padding for keyguard pin entry keys" into klp-dev
* commit 'f55cf7fcd991124b76063c5c9aed2d3833eff084':
  Adjust padding for keyguard pin entry keys
2013-10-01 05:26:37 -07:00
Jim Miller
102f0e05ba am 8b3bc51c: Merge "Disable keyguard widgets on low memory devices" into klp-dev
* commit '8b3bc51c8f03b2877e834fb1a739eb729a7ad8a1':
  Disable keyguard widgets on low memory devices
2013-10-01 05:26:31 -07:00
Baligh Uddin
71f2d8cb3e Merge "Import translations. DO NOT MERGE" 2013-10-01 02:42:04 +00:00
Baligh Uddin
8e1a481368 Merge "Import translations. DO NOT MERGE" into klp-dev 2013-10-01 02:40:41 +00:00
Michael Wright
02cefe27f3 Merge "Move slide to unlock circle up" into klp-dev 2013-10-01 01:46:53 +00:00
Michael Wright
f40ec0f00f Move slide to unlock circle up
Because HH is such a tall device, we need to move the circle up in
order to put it in the correct physical location.

Bug: 10900855
Change-Id: Idf90839e19f89784a96d110dd897bdacb58cb616
2013-09-30 18:38:36 -07:00
Adam Powell
cf0a11594b am 43a372f3: Keyguard transport controls: fullscreen art
* commit '43a372f38ad642f86047e8112e3d43edb7300439':
  Keyguard transport controls: fullscreen art
2013-09-30 17:10:18 -07:00
Jim Miller
aaee139ced am 1ae85153: Merge "Fix missing transport in keyguard" into klp-dev
* commit '1ae85153c804553365d18715824fd3a569f8ce18':
  Fix missing transport in keyguard
2013-09-30 17:10:15 -07:00
John Spurlock
847f4e0e1b am d01a1b04: Merge "Remove unused views when we return to keyguard" into klp-dev
* commit 'd01a1b0473a38bd75555b3138e8e0037fe391d82':
  Remove unused views when we return to keyguard
2013-09-30 17:07:53 -07:00
John Spurlock
7e6774402e am e5b14ee1: Merge "Restore scrim views to former place in view hierarchy." into klp-dev
* commit 'e5b14ee1281325dc7e54df3fd820ff4bd830ef3c':
  Restore scrim views to former place in view hierarchy.
2013-09-30 17:07:50 -07:00