Commit Graph

6041 Commits

Author SHA1 Message Date
Yohei Yukawa
a8bee2d763 Merge "Shift+Meta+Space should reverse-rotate subtypes part 2." into nyc-dev
am: 9dd39f8

* commit '9dd39f8bcc7f6f12e2e65cf2fcdf27cd169b5268':
  Shift+Meta+Space should reverse-rotate subtypes part 2.

Change-Id: I2b4d2c4856b1182d374163b10a3f614112d4472d
2016-04-11 22:37:43 +00:00
Yohei Yukawa
b1e2f4fc3a Shift+Meta+Space should reverse-rotate subtypes part 2.
This CL adds JavaDoc to clarify what previous CL [1] wanted to do.
No behavior change is intended in this CL.

 [1]: I3694edd80be6dfe18b90360e24ae4d451b331928
      d39ae85482

Bug: 25753404
Bug: 28103839
Change-Id: I246223c0856382d68323f22987b998cd1613e98c
2016-04-11 13:38:36 -07:00
Alan Viverette
435d55e66b Merge "Revert "Add scroll indicators to resolver list layouts"" into nyc-dev
am: 76961cc

* commit '76961ccc52c5cb9d73336782be2d74c23600c5a3':
  Revert "Add scroll indicators to resolver list layouts"

Change-Id: If7517611b7130e1c0995f14ffb0fff052d23a2e1
2016-04-11 18:07:09 +00:00
Alan Viverette
76961ccc52 Merge "Revert "Add scroll indicators to resolver list layouts"" into nyc-dev 2016-04-11 17:57:59 +00:00
Lorenzo Colitti
73ab8fd683 Merge changes Ic2c84de7,I379aef92 into nyc-dev
am: b89d33e

* commit 'b89d33ee4467161cb270d765bd873efab781004d':
  Remove duplicated code in NetworkStateTrackerHandler.
  Improve Tethering and NativeDaemonConnector logging.

Change-Id: I52159cd2e94d951699c21be656782b45b19f03d7
2016-04-11 14:37:03 +00:00
Lorenzo Colitti
b89d33ee44 Merge changes Ic2c84de7,I379aef92 into nyc-dev
* changes:
  Remove duplicated code in NetworkStateTrackerHandler.
  Improve Tethering and NativeDaemonConnector logging.
2016-04-11 14:27:31 +00:00
Alan Viverette
cc329e0cfe Revert "Add scroll indicators to resolver list layouts"
This reverts commit 81181dc356.

Change-Id: Ib5003bb131402bef007ce8025afcdb4a8f620541
2016-04-11 13:42:18 +00:00
Lorenzo Colitti
cd63d247f0 Improve Tethering and NativeDaemonConnector logging.
1. Deduplicate the Tethering message numbers, and use MessageUtils
   to convert them to strings.
2. Add a warning to NativeDaemonConnector when an unsolicited
   event is more than 500ms late or takes more than 500ms to
   process.

Bug: 27857665
Change-Id: I379aef9257027d1ccf30906e79c6389ef1f95420
2016-04-11 17:40:21 +09:00
Jeff Sharkey
5573294808 Merge "Use inode numbers for CE storage." into nyc-dev
am: 2e3ce4c

* commit '2e3ce4ca462c8d5f0ebea9ba39246d949fff85fd':
  Use inode numbers for CE storage.

Change-Id: I30229864f33d9d3835aa6bdf8840e7fbaedc39ee
2016-04-11 06:18:12 +00:00
Jeff Sharkey
2e3ce4ca46 Merge "Use inode numbers for CE storage." into nyc-dev 2016-04-11 06:12:37 +00:00
Jeff Sharkey
983d61dc9f Merge "Relax SparseMappingTable Slog.wtf()." into nyc-dev
am: f06de20

* commit 'f06de20835e5a372731b7359d0728dc93dac6d50':
  Relax SparseMappingTable Slog.wtf().

Change-Id: I2c7a784c2ee075fc806641acb10307aa482ff4a2
2016-04-11 05:55:00 +00:00
Jeff Sharkey
f06de20835 Merge "Relax SparseMappingTable Slog.wtf()." into nyc-dev 2016-04-11 05:50:41 +00:00
Jeff Sharkey
04b70fc63a Relax SparseMappingTable Slog.wtf().
When it's triggered, it happens with such frequency that it can DoS
the system server.

Bug: 28104329

Change-Id: I5c58e5f5bf4d88af2cb6215bcfddf35704e22eaa
2016-04-10 23:46:12 -06:00
Yohei Yukawa
ddee2875c1 Merge "Shift+Meta+Space should reverse-rotate subtypes." into nyc-dev
am: 270fe5d

* commit '270fe5dbe49b5619ac87ebd50cdececd699fc0ad':
  Shift+Meta+Space should reverse-rotate subtypes.

Change-Id: I8d0bd25545c6892f2788194350e290e6f8d9eb4c
2016-04-11 05:32:05 +00:00
Jeff Sharkey
4288419787 Use inode numbers for CE storage.
Certain operations, such as clearing/destroying app data, or just
counting on-disk size, require us to know the CE storage directory
of a particular app.  To facilitate these operations, offer a method
to get the inode of a CE directory, and accept that inode number
for later operations.  Collect and store the inode number in
PackageUserState for future use when that user's CE storage is
still locked.  This design means it's safe to clear/destroy app
data in both CE/DE storage at the same time.

Move most installd-related methods to a uniform calling convention
that accepts a single parent PackageParser.Package, and internally
fans out to handle all "leaf" packages under that parent.

In previous releases, we started installing apps using a new
directory-based layout, where all app code, unpacked native libraries,
and optimized code is bundled together.  So now we only have a single
path to measure for code size.  This fixes several outstanding bugs
that were causing sizes to be miscounted for apps supporting multiple
architectures.

Fix a subtle bug in PackageSettings that would cause "notLaunched"
to be parsed incorrectly.

Bug: 27828915, 27197819
Change-Id: Ia582cf3550553292bde4bb4313367111332913ec
2016-04-10 23:26:09 -06:00
Yohei Yukawa
d39ae85482 Shift+Meta+Space should reverse-rotate subtypes.
This is a follow up CL to my previous CL [1], which added a new key
binding Meta+Space to rotate enabled IME subtypes.  With this CL,
Shift+Meta+Space starts reverse-rotating enabled IME subtypes as
originally planed.

 [1]: I4005692215edfcf8bed3e86b1e07000148f986f5
      ae61f7118a

Bug: 25753404
Bug: 28103839
Change-Id: I3694edd80be6dfe18b90360e24ae4d451b331928
2016-04-10 20:28:40 -07:00
Jorim Jaggi
d6444fc78b Merge "Disable snap targets that make apps <220dp" into nyc-dev
am: c3769ae

* commit 'c3769ae3f344c8b69c14cbef789389699af15777':
  Disable snap targets that make apps <220dp

Change-Id: Ia5192f13cdebfb4b5c17958ae625b2a24d7414ac
2016-04-09 07:11:41 +00:00
Jorim Jaggi
19cf297258 Disable snap targets that make apps <220dp
- Make minimal task size 220dp.
- Disable upper and lower targets if they result in less
than 220dp task size.
- If even the middle target doesn't allow 220dp task size,
disable entering split screen altogether.

Bug: 26451260
Change-Id: I06e358c9b3da0172c5def75cdadf975f87f9fa57
2016-04-09 00:02:49 -07:00
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