Commit Graph

6023 Commits

Author SHA1 Message Date
Jorim Jaggi
fe6cec1ac0 Merge "Only force drawing status bar background if target >= N" into nyc-dev
am: fe52f91

* commit 'fe52f91f0cee39b186b1b892fc3344d3279640cf':
  Only force drawing status bar background if target >= N

Change-Id: I424d896d801dc57ed8e14fce3205644060d33e8e
2016-04-09 04:11:00 +00:00
Jorim Jaggi
8f5701bd9f Only force drawing status bar background if target >= N
Since forcing it all the time has the potential of breaking
compatibility with apps, we don't want to do this.

Instead, we only force it if the app targets >= N.

We communicate this to window manager with
PRIVATE_FLAG_FORCE_DRAW_STATUS_BAR_BACKGROUND.

We introduced this for 2-up split-screen. If we have an app
that doesn't draw the status bar background by itself, we
just force the whole bar to be black.

The same applies for windows that used translucent status
bar - we also force the whole bar to be black

Bug: 27285627
Change-Id: I7f1ceaa364f8a4e851935f77aa5e8d913bf11791
2016-04-08 20:49:20 -07:00
Jorim Jaggi
372fdf5cfb Fix BackdropFrameRenderer leak
am: b2005a0

* commit 'b2005a02170b0a5bc8518514c8a871c5fc526e09':
  Fix BackdropFrameRenderer leak

Change-Id: I4ac669491a6c73de61f5518beec77bd2160b72d3
2016-04-09 01:43:21 +00:00
Jorim Jaggi
b2005a0217 Fix BackdropFrameRenderer leak
Make sure to stop the thread when the window gets detached. When dismissing
the docked/fullscreen stack with the divider, we stop the activity while
we are still in resizing mode.

Bug: 28054032
Change-Id: I2d5d0ffaa9bc47e4d5252414b9a045beaebb7a69
2016-04-09 01:07:34 +00:00
Joe Onorato
d6db6b3dc6 Merge "This assert is triggering when it shouldn\'t be. Disable it for now." into nyc-dev
am: e93fecf

* commit 'e93fecf9a3c0740a05dde42e3dee1de9706cd4ac':
  This assert is triggering when it shouldn't be. Disable it for now.

Change-Id: I1f2578a7e2fcdd7d1f45d1958467aa775241fab5
2016-04-09 00:42:54 +00:00
Adam Powell
a1be176a42 Merge "Chooser filtering and caller direct share targets" into nyc-dev
am: fe5e1a7

* commit 'fe5e1a75c125095b90719b22ffcf71e0968a6530':
  Chooser filtering and caller direct share targets

Change-Id: I8be4c3a825632be9e621ba542877d484d0b2b7f8
2016-04-09 00:40:08 +00:00
Phil Weaver
9a375470d4 Merge "Eliminate side effects of a11y window title." into nyc-dev
am: ab4d5ff

* commit 'ab4d5ffd123433d434a8c4e1f3bf2674d99a5fb3':
  Eliminate side effects of a11y window title.

Change-Id: I388abfd86355bc90df4ee3b788bda0a6cd494f81
2016-04-09 00:39:20 +00:00
Joe Onorato
e93fecf9a3 Merge "This assert is triggering when it shouldn't be. Disable it for now." into nyc-dev 2016-04-08 21:12:06 +00:00
Adam Powell
fe5e1a75c1 Merge "Chooser filtering and caller direct share targets" into nyc-dev 2016-04-08 19:20:25 +00:00
Phil Weaver
ab4d5ffd12 Merge "Eliminate side effects of a11y window title." into nyc-dev 2016-04-08 18:22:02 +00:00
Adam Powell
52c39215db Chooser filtering and caller direct share targets
Let apps invoking the system chooser specify components to filter out
such as themselves; this will prevent duplicate nonsensical UX where
it doesn't make sense for an app to share to itself.

Similarly, let apps provide their own Direct Share targets for when
they do want to let users share via their own internal services in the
same UI. These options can be used together.

Also fix a bug where a lingering binder reference from a remote
ChooserTargetService that hasn't been GC'd in the remote process could
keep an active reference to a ChooserActivity instance.

Bug 28073484

Change-Id: Ib613b1153b49dfedf79574b1af7c45379eceec24
2016-04-08 08:40:38 -07:00
Rubin Xu
a8e70595f4 Merge "Relaunch previous activity after turning work profile on" into nyc-dev
am: 1b2300b

* commit '1b2300b065a722cd65e7f9045b9806b1704b9280':
  Relaunch previous activity after turning work profile on

Change-Id: Iae8a8f0294521b7c60bcc8104e1b5708dcf91108
2016-04-08 09:25:23 +00:00
Rubin Xu
1b2300b065 Merge "Relaunch previous activity after turning work profile on" into nyc-dev 2016-04-08 09:20:46 +00:00
Oren Blasberg
3fe68e14b0 Merge "Fix top level menu lingering when submenu opens." into nyc-dev
am: 7ce082a

* commit '7ce082a46259e948e4ea6a12f327f32aecaf167a':
  Fix top level menu lingering when submenu opens.

Change-Id: I994fe5fa29f9b10c0d7a8e4dd306fe2e4f35df7e
2016-04-07 22:50:43 +00:00
Oren Blasberg
7ce082a462 Merge "Fix top level menu lingering when submenu opens." into nyc-dev 2016-04-07 22:43:18 +00:00
Phil Weaver
9be3c7bdc7 Eliminate side effects of a11y window title.
ag/898112 added passing the window title to accessibility. To do that,
it also updated copy of the title in WindowManager.LayoutParams. That
was a behavior change, and the change broke cts tests that enforce that
the title in LayoutParams matches its expected format.

This change restores the previous behavior and adds a separate field to
LayoutParams to old an up-to-date title to pass to accessibility.

Bug: 28002185
Change-Id: Ia5b549113600b7c4fcc80b76c3f3a944dddaf483
2016-04-07 15:15:41 -07:00
Joe Onorato
08274740cd This assert is triggering when it shouldn't be. Disable it for now.
The check for sequence numbers is triggering when ProcessStats
is accessed after being read from a parcel.  Turn off the check
for now.

Bug: 27045736
Bug: 27960286
Bug: 28039193
Bug: 28021719
Bug: 27960286
Change-Id: I7438441135fd1e9ce01350034262451309165525
2016-04-07 14:24:59 -07:00
Rubin Xu
e420c550ee Relaunch previous activity after turning work profile on
When work profile is turned off, attempts to start work app activity is
intercepted and redirected to an information dialog, which gives the
option to turn work profile back on. When the user does turn it back on,
the original activity should be relaunched.

Bug: 27740167
Change-Id: I4c9d5bc949499bdb5d9f2394e13e670a48d43629
2016-04-07 18:18:07 +01:00
Oren Blasberg
cbcfe92763 Merge "Fix icon spacing on both MenuPopup implementations." into nyc-dev
am: 1b65b01

* commit '1b65b01f9317f8438e53e2b76d4790d8ed11c346':
  Fix icon spacing on both MenuPopup implementations.

Change-Id: Ie5ead0b76552b7b93cd69fdc475ad74554711fed
2016-04-07 16:48:03 +00:00
Oren Blasberg
1b65b01f93 Merge "Fix icon spacing on both MenuPopup implementations." into nyc-dev 2016-04-07 16:37:47 +00:00
Ricky Wai
d18d149509 Fingerprint should confirm device lock when unified
am: 53940d4

* commit '53940d4c7f45a26d8b571982a1f8f4b8094aa5e0':
  Fingerprint should confirm device lock when unified

Change-Id: Ic4849d86219fc528862fb50e0670a243ddd60868
2016-04-07 15:36:48 +00:00
Ricky Wai
53940d4c7f Fingerprint should confirm device lock when unified
When unified and adding a fingerprint, the user is prompted to set up
a backup

Bug:27419438
Change-Id: I3e857fa07c50ee0904f685b721595ef6cfe729f9
2016-04-07 15:11:34 +00:00
Ricky Wai
e28ff22bc4 Keymaster init for work profile
am: dc283a8

* commit 'dc283a897680ffd33c4d15535ebe778ba5b42c43':
  Keymaster init for work profile

Change-Id: I131c93404eca82fa174527c6f2fb4a8aa72f7b35
2016-04-07 14:28:55 +00:00
Ricky Wai
dc283a8976 Keymaster init for work profile
Changes:
(1) When unified work challenge is enabled and screen lock is secure
  - Store work profile secure key in primary profile
  - When primary user keystore unlocked, unlock work profile keystore
  - When primary user change lock to none, remove work secure key
(2) When unified work challenge is enabled but screen lock is not secure
  - When screen lock changes to secure, store work secure key in primary
(3) When user changes work challenge from unified to separated
  - Remove work secure key in primary
(4) When user changes work challenge from separate to unified
  - Do (1) and (2)

Bug: 27460698

Change-Id: I8f77bde5dc6b8e59c90256e75c5990100e93366b
2016-04-07 14:23:37 +00:00
Jeff Sharkey
0deeb857d3 Merge "Automatically trace messages on shared loopers." into nyc-dev
am: 94cac07

* commit '94cac0730a23525559ded53bfaaee5a529b80aab':
  Automatically trace messages on shared loopers.

Change-Id: Ifbc34c8d15b23ca55782ecee0973e36f33441c72
2016-04-07 07:26:28 +00:00
Jeff Sharkey
94cac0730a Merge "Automatically trace messages on shared loopers." into nyc-dev 2016-04-07 07:19:03 +00:00
Jeff Sharkey
74cd3de6f4 Automatically trace messages on shared loopers.
There are a handful of looper threads in the system_process that
are shared by dozens of different internal services.  To help track
down what these operations are, tag the processing of each message
with a string that tries describing where it originated from: the
class name of the Handler, and the message number or class name of the
Runnable.

Bug: 28046299
Change-Id: I409ec43fea8daaae4fd70df05d4fed929a7249ae
2016-04-07 00:14:53 -06:00
Jorim Jaggi
45b262c63c Merge "Don\'t lock device when double tapping" into nyc-dev
am: 347bb9a

* commit '347bb9a3cf53595b8beed17574cec9c0072aa819':
  Don't lock device when double tapping

Change-Id: I964ae558db13679b5d15220a7c783b75ea894b6b
2016-04-06 22:05:18 +00:00
Jorim Jaggi
f1cdf9558d Don't lock device when double tapping
Bug: 24265204
Change-Id: Ia19e956def454604ed3f3e3e9815fc1872ef649a
2016-04-06 14:53:32 -07:00
Alan Viverette
59c1ac8323 Merge "Add scroll indicators to resolver list layouts" into nyc-dev
am: a27c1df

* commit 'a27c1df9c2620707268c099f534535aeccc22044':
  Add scroll indicators to resolver list layouts

Change-Id: Ie0eee40b6f08756cec5894c7ceed6a3508293dbc
2016-04-06 19:15:10 +00:00
Alan Viverette
a27c1df9c2 Merge "Add scroll indicators to resolver list layouts" into nyc-dev 2016-04-06 19:03:33 +00:00
Alan Viverette
81181dc356 Add scroll indicators to resolver list layouts
Also reformats XML for consistency.

Bug: 27431395
Change-Id: I468dd1582ddcabe360b8665b6f42b3248caa16a5
2016-04-06 13:47:01 -04:00
Abodunrinwa Toki
4257b2df86 Merge "FloatingToolbar: Include scroll indicators in overflow." into nyc-dev
am: 856ebe2

* commit '856ebe206b054c86419df9bab945fabd156bebd6':
  FloatingToolbar: Include scroll indicators in overflow.

Change-Id: I5ecf71df2d274a6fe624f171121452bd360a138b
2016-04-06 16:43:44 +00:00
Abodunrinwa Toki
8949faf066 FloatingToolbar: Include scroll indicators in overflow.
Bug: 27427333
Change-Id: I7480cfe5f75d04e04792d9443435a76ab6773c64
2016-04-06 14:22:42 +01:00
Makoto Onuki
ec0a5e0bea Merge "Make FastXmlSerializer more suitable to persist arbitrary strings" into nyc-dev
am: ca94f29

* commit 'ca94f29366b9b6e3211351c2d098060114ef5fa8':
  Make FastXmlSerializer more suitable to persist arbitrary strings

Change-Id: Ib9a061aaad82054c0060cbc2b84118a71d1c098b
2016-04-06 00:43:46 +00:00
Makoto Onuki
ca94f29366 Merge "Make FastXmlSerializer more suitable to persist arbitrary strings" into nyc-dev 2016-04-06 00:36:52 +00:00
Joe Onorato
e9ca789f85 Merge "Add stack traces to logs about mismatched sequenece numbers in procstats." into nyc-dev
am: 9b87cc2

* commit '9b87cc2b8b7a72249aeb1f12b4482ea7fad29cb5':
  Add stack traces to logs about mismatched sequenece numbers in procstats.

Change-Id: Ia932b31cc3d05c4224d933d85193ca6f62d0cc8b
2016-04-06 00:30:36 +00:00
Oren Blasberg
ddf6b8130f Fix icon spacing on both MenuPopup implementations.
Ensure we calculate based on the actual menu items in a particular menu
or submenu, not based on whether the parent menu had icon spacing
enabled.

Bug: 28026351
Change-Id: Ie6e56eb142f0b82de38bf39ee848ddd26df2bf1c
2016-04-05 17:24:45 -07:00
Joe Onorato
9b87cc2b8b Merge "Add stack traces to logs about mismatched sequenece numbers in procstats." into nyc-dev 2016-04-06 00:21:56 +00:00
Makoto Onuki
3ae3557ea3 Make FastXmlSerializer more suitable to persist arbitrary strings
- Encode '\u000' - '\u001F', so KXmlParser can read them properly.
Otherwise KXmlParser will ignore CRs/LFs in attributes, and CRs
in text.

- Originally FastXmlSerializer would throw if a string contains
dangling surrogate pairs.  Now we REPLACE them with.

Bug 27792649

Change-Id: I10c547dad2475b68f60e9e8208d9a3eae8e20063
2016-04-05 16:12:07 -07:00
Oren Blasberg
9022c7129e Fix top level menu lingering when submenu opens.
We should be calling close(false), not dismiss(), when the submenu is
opened.

This change brings the code closer to what it was before the prior
change to StandardMenuPopup, but preserves the ondismiss behavior we
want for popup menus. The net change so far is that StandardMenuPopup,
not MenuBuilder#performItemAction, handles closing the top level menu
when a submenu is opened. But nonetheless, the onDismiss is not called
when a submenu is opened; only when an actual real "dismiss" occurs.

Bug: 28001958
Change-Id: Ia0f89f8fd4bc5494f6a048c993792adfe42d88ec
2016-04-05 15:12:13 -07:00
Sunny Goyal
5e59ea2115 Merge "Changing startListening to only fetch views which are bound" into nyc-dev
am: 60c74e8

* commit '60c74e836fc40d65c8ac58c231956f57d26ec7eb':
  Changing startListening to only fetch views which are bound

Change-Id: I811c2cb1603bef597eb958ff7fbd44a93d7075b2
2016-04-05 18:58:01 +00:00
Sunny Goyal
60c74e836f Merge "Changing startListening to only fetch views which are bound" into nyc-dev 2016-04-05 18:53:18 +00:00
Lorenzo Colitti
c346f72614 Merge changes Ibb63f6b4,Ib64559a5 into nyc-dev
am: 19e84f7

* commit '19e84f7b750c97d5d7440af16c7ba18bf759e5dc':
  Clean up netd state when tethering fails.
  Clear LinkProperties on interface removed.

Change-Id: I3e6593324fa955ab3c0e590655d0632347f83ec8
2016-04-05 13:39:10 +00:00
Lorenzo Colitti
a3d5948c37 Clear LinkProperties on interface removed.
When an interface is removed, all netlink events for that
interface are lost, because netd will no longer be able to
resolve the ifindex in the netlink event to an interface name,
and it only communicates to the framework events that include an
interface name.

This can cause us to end up with stale IP addresses if, for
example, wlan0 is removed because we switch wifi back from AP
mode to STA mode when exiting tethering. The presence of stale
IPv4 addresses can in turn lead us to miss a provisioning
notification because we already think we have an IPv4 address.

Change-Id: Ib64559a5a4fa261f483760b69fa7996314e7cc17
2016-04-05 20:28:57 +09:00
Roshan Pius
bbc3704933 Merge "power_profile: Move all wifi power values" into nyc-dev
am: bf8ea13

* commit 'bf8ea13069aec021739b9919a27741f1722466f6':
  power_profile: Move all wifi power values

Change-Id: I31b97ab5150ecb35797f699a7fc53adc8857c039
2016-04-04 22:29:34 +00:00
Roshan Pius
bf8ea13069 Merge "power_profile: Move all wifi power values" into nyc-dev 2016-04-04 22:21:25 +00:00
Sunny Goyal
2857f1c783 Changing startListening to only fetch views which are bound
Also associating a lastUpdateTime with every widget. This allows
the host to query the widgets which were updated only after
the last stopListening call.

Change-Id: If9375cf2d8caa0ccca14b6649821d87ada1f3a84
2016-04-04 14:45:14 -07:00
Joe Onorato
146dcc0265 Add stack traces to logs about mismatched sequenece numbers in procstats.
Bug: 27045736
Change-Id: I7a0fc76928a55bb079b8234c5f5d689a401a204b
2016-04-04 14:16:03 -07:00
Phil Weaver
b11f31ff43 Merge "Add accessibility window title and anchor." into nyc-dev
am: d4a1932

* commit 'd4a19326085f2a68d568dfa754c29fd0ac49d193':
  Add accessibility window title and anchor.

Change-Id: I9b15bac883b470f06a41ee0b7ebf1b7d68e4ae2f
2016-04-04 16:43:00 +00:00