23950 Commits

Author SHA1 Message Date
Winson Chung
e433cafe07 Merge "Mark header bar buttons as clickable only when they are made visible." into nyc-dev 2016-04-27 04:02:10 +00:00
Svetoslav Ganov
cab51643e7 Merge "Replace null checks is null object checks" into nyc-dev 2016-04-27 01:39:25 +00:00
Svetoslav Ganov
fedb230213 Replace null checks is null object checks
A recent change replaced the null state during a setting
lookup with a null object, however missed to update some
null checks to be null object ones.

bug:28405145

Change-Id: I80f0fb3ac6e64f4283b6c617283a009e97a40efe
2016-04-26 18:36:47 -07:00
TreeHugger Robot
e597323939 Merge "Terminate DocumentsUI opened for the specific root." into nyc-dev 2016-04-27 01:18:44 +00:00
Tomasz Mikolajewski
b56bc29657 Merge "Exclude virtual files from ACTION_SEND." into nyc-dev 2016-04-27 01:11:04 +00:00
Tomasz Mikolajewski
52036c743c Merge "Fix index computation for quick viewing." into nyc-dev 2016-04-27 00:30:46 +00:00
Jeff Sharkey
ee6d8be53e Merge "Revert "Precompute cursor indexes in DocumentsUI and improve perf by 2.7%."" into nyc-dev 2016-04-27 00:04:02 +00:00
Mady Mellor
6e3a90d9b7 Merge "Fix a crash when setting vertical gear location and content view null" into nyc-dev 2016-04-26 19:38:44 +00:00
Winson
3e5f0af085 Mark header bar buttons as clickable only when they are made visible.
- We were incorrectly setting the OnClickListener to null to try to do 
  this, which still causes the touch event to be consumed by the button
  view, so instead we should just set the clickable state directly.

Bug: 27859552
Change-Id: Ida3b4a467c6f325ce8fe5a90b0b77c2bdda5a936
2016-04-26 11:39:28 -07:00
Svetoslav Ganov
f71d7feef2 Merge "Ensure local settings caches are not stale" into nyc-dev 2016-04-26 18:36:28 +00:00
TreeHugger Robot
83ca62bdbe Merge "Remove -night qualified resources" into nyc-dev 2016-04-26 18:33:05 +00:00
Svet Ganov
53a441ca8e Ensure local settings caches are not stale
We used the system proterties as a shared memory mechanism
to propagate information to local settings caches when the
content has changed and the cache should be cleared. The
system properties are unfortunately updated asynchronously
leading to cases where clients may read stale data.

This change adds a simple int array data structure backed
by shared memory which guarantees individual values are
atomically read and updated without memory tear. Multi-
index opearations are not synchronized between each other.

The settings provider is using the new data structure to
propagate the settings generation which drives when caches
are purged.

We have a single memory array keeping the generation for
different settings tables per user. Since memory array is
not a compact data structure and the user space exceeds
the memory array size we use an in-memory map from keys
to indices in the memory array where the generation id of
a key is stored. A key is derived by the setting type in
the 4 most significant bits and the user id in the 28 least
significant bits.

The mapping from a key to an index is cleared if the user is
removed and the corresponding index in the memory arry is
reset to make it available for other users. The size of the
memory array is derived from the max user count that can be
created at the same time.

bug:18826179

Change-Id: I64009cc5105309ef9aa83aba90b82afc8ad8c659
2016-04-26 11:31:55 -07:00
Mady Mellor
a6edc87829 Fix a crash when setting vertical gear location and content view null
When setting the vertical location of the gear we need the collapsed
height of the parent, the parent might not be fully laid out so move
setting the vertical location into onLayout instead

Bug: 28390732
Change-Id: I7c1bf14a54e9f1ef0a693fa13e1a6533f5967631
2016-04-26 11:01:03 -07:00
TreeHugger Robot
34510eb293 Merge "Don't opt-out of warning dialog by default on user builds." into nyc-dev 2016-04-26 17:40:29 +00:00
Julia Reynolds
a0676c9207 Merge changes from topic 'api_review' into nyc-dev
* changes:
  Api review: Settings.
  Reduce spacing.
2016-04-26 15:29:11 +00:00
Julia Reynolds
d500495935 Swap star tint.
Bug: 27558254
Change-Id: Ia72cdc89d4cdcf3f5a5210f14632c15271922a98
2016-04-26 09:17:08 -04:00
Daichi Hirono
99900a0e58 Terminate DocumentsUI opened for the specific root.
If USB is opened in DocumentsUI from storage settings and format it from
context menu, a user expects it goes back to storage settings after
formatting the storage.  However, previous we show Downloads as a result
of redirect from the previous USB storage.

The CL changes the logic for callback so that it finishes the activity
if DocumentsUI is opened for the specific root and the root was removed
while a user stays at the root.

Fixes: 28246076
Change-Id: I5548152fc27fd13bd9b75b3083bcfbdd9f93509e
2016-04-26 16:52:44 +09:00
Jaewan Kim
bdc4700155 Merge "PIP: Send KEYCODE_WINDOW to app first if PIP isn't exist" into nyc-dev 2016-04-26 06:03:01 +00:00
Jaewan Kim
f0fd218382 PIP: Send KEYCODE_WINDOW to app first if PIP isn't exist
Bug: 27954955
Change-Id: I517e378d5c1672ac0eb87bdf4375b7d733276e58
2016-04-26 13:06:21 +09:00
Jorim Jaggi
c5804afa73 Fix a few issues with occluded Keyguard
- When we get a collapse before the layout happened in SystemUI,
don't expand the panel after the layout.
- Don't reset waitingToShow when coming out of sleep. This will cause
win.isVisibleOrBehindKeyguardLw to return false and then occluded
state will change rapidly from true -> false -> true, leading to
flickering in SysUI.

Bug: 23898941
Change-Id: I2b941188de777086bb2b477f5bfc00cc0cd6abe0
2016-04-26 02:54:34 +00:00
Tomasz Mikolajewski
f61b0b8440 Revert "Precompute cursor indexes in DocumentsUI and improve perf by 2.7%."
This reverts commit 2e4e14789ecf923b16ea4e79b5605952ddc56e5b.

Bug: 28371571
Change-Id: I7aad5eb483c17cccb3485eb22effb677e1ba2160
2016-04-26 11:13:50 +09:00
Jorim Jaggi
d6a3949588 Make sure to notify divider always
In some cases, recents didn't get resumed, so divider was never
notified and thus we didn't start the animation. Instead, move
the first drawn logic into onStart.

Bug: 28366529
Change-Id: Ia71d6b517451bba727ae31a184bb55cecf5af198
2016-04-26 00:52:46 +00:00
Jorim Jaggi
df89cd1b39 Merge "Fix bug with cancelled drag" into nyc-dev 2016-04-25 20:59:40 +00:00
Felipe Leme
af096719c0 Don't opt-out of warning dialog by default on user builds.
BUG: 28341946
Change-Id: I9ce6bf52a02a14055d4ded41aac50c79abdb4ee9
2016-04-25 13:41:28 -07:00
Jorim Jaggi
f300badbf1 Fix bug with cancelled drag
Bug: 28257206
Change-Id: Ic7342f4284185486e884836220b05423e308f7ae
2016-04-25 13:00:27 -07:00
Daniel Sandler
955009f9d3 Merge changes from topic 'substitute-notification-app-name' into nyc-dev
* changes:
  Move EXTRA_SUBSTITUTE_APP_NAME to the published system api.
  Show "Android System" instead of "System UI" in screenshot notifications.
2016-04-25 19:22:40 +00:00
Daniel Sandler
4c40888673 Merge "Tap, don't touch." into nyc-dev 2016-04-25 19:21:46 +00:00
Daniel Sandler
5602898dd5 Merge "Don't generate stack in logcat if assistant missing." into nyc-dev 2016-04-25 19:21:03 +00:00
Mady Mellor
904a39ca92 Merge "Fix gear being covered on notification update" into nyc-dev 2016-04-25 19:06:17 +00:00
Mady Mellor
5a3e441158 Merge "Fix the gear so that it is always centered based on the min noti height" into nyc-dev 2016-04-25 19:05:48 +00:00
TreeHugger Robot
73624af552 Merge "Added a 'deferred' parameter on executeRunnableDismissingKeyguard()." into nyc-dev 2016-04-25 18:57:30 +00:00
Julia Reynolds
47bee3b529 Reduce spacing.
Bug: 28325996
Change-Id: I065dc077876abb98d7c3381cc0ac28af77323c8a
2016-04-25 13:09:16 -04:00
Alan Viverette
c7d34bb3dc Remove -night qualified resources
Bug: 28358465
Change-Id: I3e9c3ec21bdc39426aa5f81373ca44e61eb6974a
2016-04-25 12:57:54 -04:00
Winson Chung
de91709935 Merge "Fixing animation regression due to ag/957220." into nyc-dev 2016-04-25 16:25:51 +00:00
Felipe Leme
ee5d630459 Added a 'deferred' parameter on executeRunnableDismissingKeyguard().
OnDismissAction() should return true only when the dismiss should be
deferred, but the annonymous class on
executeRunnableDismissingKeyguard() was always return true, which was
cause a janky timeout when the runnable didn't launch an activity.

BUG: 28303552

Change-Id: I1f9e299102d6cebba44794c026a69cf43ea06990
2016-04-25 09:12:06 -07:00
Winson
60df24648e Fixing animation regression due to ag/957220.
- Ensure we clear deferred relayouts after finishing all animations in
  case they trigger a deferred layout in the animation-end callback.

Bug: 28287904
Change-Id: I6d71328fb3dc4595ea67ee18cfa57d85d741e6c6
2016-04-25 16:01:03 +00:00
Dan Sandler
5ccae1fb75 Don't generate stack in logcat if assistant missing.
Low ram devices don't have assistants. Worth noting, but not
making a big stink about it.

Change-Id: I5a49be99bf688a5f1b800a1124b14a589ecf5b52
Fixes: 27210719
2016-04-25 11:49:39 -04:00
Bill Yi
4316b8a09d Merge "Import translations. DO NOT MERGE" into nyc-dev 2016-04-25 15:09:05 +00:00
Bill Yi
779722d7ed Merge "Import translations. DO NOT MERGE" into nyc-dev 2016-04-25 15:08:48 +00:00
Bill Yi
3496262a98 Merge "Import translations. DO NOT MERGE" into nyc-dev 2016-04-25 15:08:32 +00:00
Bill Yi
b6a186ce52 Merge "Import translations. DO NOT MERGE" into nyc-dev 2016-04-25 15:08:09 +00:00
Bill Yi
5f49e81006 Import translations. DO NOT MERGE
Change-Id: Ie8ab19f46d7eebd00b7d1cc476ebd153d733ceb0
Auto-generated-cl: translation import
2016-04-25 05:12:11 -07:00
Bill Yi
47314dde8e Import translations. DO NOT MERGE
Change-Id: I052034274afbe75c7898cd0360ea627abed0dd19
Auto-generated-cl: translation import
2016-04-25 04:58:49 -07:00
Bill Yi
84ba684a6b Import translations. DO NOT MERGE
Change-Id: Ic8c6b11898eaccb7327492bbf5d1aaff9070f135
Auto-generated-cl: translation import
2016-04-25 04:54:12 -07:00
Bill Yi
dcd656051a Import translations. DO NOT MERGE
Change-Id: I0812aa0343d38d49e868e1e8fd895cb9d924b366
Auto-generated-cl: translation import
2016-04-25 04:49:48 -07:00
Bill Yi
6e2d20b2b6 Import translations. DO NOT MERGE
Change-Id: I1811b4ca04bc4386f233bc1bdc2b486e6ce48b01
Auto-generated-cl: translation import
2016-04-24 22:31:19 -07:00
Tomasz Mikolajewski
f0a56721ae Exclude virtual files from ACTION_SEND.
Bug: 28312221
Change-Id: Ic137ac5e6140cd9e56dc772ada31bb53e451e5f8
2016-04-25 10:21:30 +09:00
Tomasz Mikolajewski
6be540666a Fix index computation for quick viewing.
Bug: 28305994
Change-Id: I8c7abc83bd5ca6f01533a4a7ed0bb995c00833af
2016-04-25 10:00:56 +09:00
Dan Sandler
f4b596860d Tap, don't touch.
Part of global change from touch —> tap for certain screen
gestures.

Change-Id: Ifffee1336793e8304dc03da5c3d36a1fe8ba133f
Fixes: 26750003
2016-04-23 11:14:17 -04:00
Dan Sandler
d52ea0c218 Show "Android System" instead of "System UI" in screenshot notifications.
Bug: 26517701
Change-Id: I0f4a58531066c49fed90bcdd78c92a4f212ada3b
2016-04-23 14:43:57 +00:00