229078 Commits

Author SHA1 Message Date
Nicolas Prevot
697397a28e Don't show suspended applications in system intent picker dialog.
BUG:26461656
Change-Id: I49cf501cb9992ee19091ab4909adb373cbb4bdce
2016-01-27 17:20:07 +00:00
Daichi Hirono
df7a1d69ea Merge "Clean up TestUtil." 2016-01-11 08:00:35 +00:00
Daichi Hirono
ab03cb1b46 Clean up TestUtil.
* Integrate two while loops waiting for valid device.
 * Try to open a device just after getting an device ownership so that
   other applicaitons do not steal device ownership before TestUtil
   opens a device.

Change-Id: Ia273cfb2a47fe630efd8c54b22d6ef5823a402b8
2016-01-11 16:32:57 +09:00
Jeff Sharkey
5eeefba37c Merge "Temporary patch to work around broken casting." 2016-01-11 03:41:22 +00:00
Jeff Sharkey
6c4b87be9e Temporary patch to work around broken casting.
Bug: 26481405
Change-Id: If91ecfbfda94a2cb694098d456126f87311e1d05
2016-01-10 20:40:08 -07:00
Jeff Sharkey
263ce2b52a Merge "Fix IndentingPrintWriter after JDK switch." 2016-01-10 21:32:30 +00:00
Jeff Sharkey
67be718476 Fix IndentingPrintWriter after JDK switch.
We needed to overload more methods.  Verified that tests pass.

Bug: 26191999
Change-Id: I2b75890239d3febf3411c4b7bb4df92a6d61f056
2016-01-10 14:30:47 -07:00
Jeff Sharkey
bc215b8426 Merge "Fix NPE when UID has no packages." 2016-01-10 20:18:20 +00:00
Jeff Sharkey
377ded0fce Fix NPE when UID has no packages.
Bug: 25224723
Change-Id: I637214666a1f02bd23474c27a285eea9152cfa9d
2016-01-10 13:15:43 -07:00
Jeff Sharkey
3ea44a52f0 Device encrypted storage is always available.
In order to support backup/restore on devices without native FBE
support, we always need to make the DE storage area available.  Add
docs clarifying the lifecycle.

Bug: 26279618
Change-Id: I789915f295b10aca6bf80ca58406aea212835ffd
2016-01-09 15:34:44 -07:00
Jeff Sharkey
4175be2f4e Triage SearchManagerService for missing apps.
Searchables aren't available until after the user is unlocked.  We
could scan for them while locked, but we're aiming for a minimalist
environment, and scanning them while locked would require us to send
a changed broadcast on every boot.

Switch to using new SystemService lifecycle for faster event
delivery.  Restore broken global search observer.  Verified that
apps on external storage are handled correctly.

Bug: 26471205
Change-Id: Id99ffe2ea6db37a394454cc7dfa4eab10280ff35
2016-01-09 14:57:47 -07:00
Jeff Sharkey
5aa86938b8 Fix docs build by removing bad links.
Also define InstallFlags and DeleteFlags, and point installPackage()
users towards new PackageInstaller APIs.  Remove old movePackage()
API that is no longer used.

Change-Id: I661a65149e4778a7591dbd912b72b4dd81b266da
2016-01-08 19:13:43 -07:00
Amith Yamasani
2b60ca45a1 Fix typo in javadoc
Change-Id: I7a61f84f9d19d5ebc64c3a6e01eea42c3fac4fed
2016-01-08 17:53:18 -08:00
Jeff Sharkey
7011c08b61 Merge "Even more PackageManager caller triage." 2016-01-09 01:47:14 +00:00
Jeff Sharkey
cd65448ccd Even more PackageManager caller triage.
Finish moving all UID/GID callers to single AIDL method that requires
callers to provide flags.

Triage AppWidgets and PrintServices, which currently can only live on
internal storage; we should revisit that later.

Fix two bugs where we'd drop pending install sessions and persisted
Uri grants for apps installed on external storage.

Bug: 26471205
Change-Id: I66fdfc737fda0042050d81ff8839de55c2b4effd
2016-01-08 18:35:54 -07:00
Chong Zhang
f9ecbbc5fe Merge "Transfer focus on any touch down action" 2016-01-09 01:14:42 +00:00
Ben Kwa
d20d01061c Merge "Increase the stability of sorting in the Model." 2016-01-09 01:05:06 +00:00
Ben Kwa
e2564f9f19 Increase the stability of sorting in the Model.
This is necessary to prevent UI thrash (items continually shuffling
around) when the underlying Provider doesn't return its contents in a
stable order from one load event to another (DownloadStorageProvider is
an example).

BUG=26417297

Change-Id: Ie99e56b610f5d01d5318be07c0379b506c828735
2016-01-08 16:59:20 -08:00
Chris Craik
775f1552c2 Merge "Unclipped savelayer support in new renderer" 2016-01-09 00:07:20 +00:00
Chris Craik
7435eb148e Unclipped savelayer support in new renderer
bug:22480459

Change-Id: I89dd5de8d7d008a1e298d227d767aabff5c96e27
2016-01-08 16:05:35 -08:00
Chong Zhang
9817dd098d Transfer focus on any touch down action
Currently we are deliberately not transfering focus if the ACTION_UP
and ACTION_DOWN points are different. Removing this logic so that we
transfer the focus if user touched within a non-focused task.

If user is scrolling using a pointer device without touch action, it
will not result in focus transfer.

bug: 26040818

Change-Id: If1fd6b8405e1507f60be44f12b6fc599555b8ba7
2016-01-08 15:48:40 -08:00
Christopher Tate
ca8bce51f9 Fix typo in protected broadcast decls
Bug 26471149

Change-Id: I4332fd9adc52d3bd2f6ee0ce3718bf844f1f9843
2016-01-08 15:39:14 -08:00
Jeff Sharkey
629f98466a Fix build.
Change-Id: If128c90225a2237ea015063cec526a64af5bf576
2016-01-08 16:36:54 -07:00
Jeff Sharkey
c4fd3c9871 Merge "Update javadoc for flags" 2016-01-08 23:18:13 +00:00
Andy Hung
867b339660 Merge "Add setMasterMono and getMasterMono" 2016-01-08 23:17:56 +00:00
Todd Kennedy
6b9bfa1d16 Update javadoc for flags
Bug: 25997037
Change-Id: Ia44634b0271ad0195d857ef13afec2a1ef022fae
2016-01-08 16:16:25 -07:00
Jeff Sharkey
0ab0bdde2b Merge "More progress on triaging PackageManager callers." 2016-01-08 23:14:25 +00:00
Jeff Sharkey
c5967e9862 More progress on triaging PackageManager callers.
Catch a bunch of simple cases where the PackageManager flags are
obvious.  Add the ability to use the MATCH_SYSTEM_ONLY flag on
PackageInfo and ApplicationInfo queries.

Re-examine recent tasks after a user is unlocked, since some of the
activities may now be available and runnable.

Bug: 26471205, 26253870
Change-Id: I989d9f8409070e5cae13202b47e2c7de85bf4a5b
2016-01-08 16:10:33 -07:00
Ben Kwa
53aaec12bc Merge "Hide the divider in list mode." 2016-01-08 22:57:28 +00:00
Filip Gruszczynski
8e25f731d3 Short-circuit AMS.setFocusedTask if the task is already focused.
Bug: 25236192
Change-Id: I369d3815c171ccef99d7dbe68dfb2b1f61be65dc
2016-01-08 14:49:13 -08:00
Andy Hung
f04b84d4c6 Add setMasterMono and getMasterMono
Bug: 15283594
Bug: 22700363
Change-Id: I5d0552938ec2a54be4450512974d92ff8c77b1e9
2016-01-08 14:02:47 -08:00
Ben Kwa
90bf9f5f28 Hide the divider in list mode.
BUG=26399570

Change-Id: I5013bf9ae80c003419f3f22dcf2a7e6787c19711
2016-01-08 13:31:11 -08:00
Julia Reynolds
d1d533610a Increase notification priority for adb connections.
Change-Id: I04ec4dac40737d59a32775e579f734a5460db25c
2016-01-08 16:12:13 -05:00
Chong Zhang
495f138181 Merge "Remove dead window if its activity record is cleared from history" 2016-01-08 21:10:43 +00:00
Todd Kennedy
7764025585 Merge "resolve merge conflicts of 0271416563 to master." 2016-01-08 21:01:06 +00:00
Todd Kennedy
3b16e7b1a5 resolve merge conflicts of 0271416563 to master.
Change-Id: If5673a4db65bd9ea7da71b0d25f7c26e88cc4818
2016-01-08 12:58:52 -08:00
Ben Kwa
433df5c865 Merge "Fix home key behaviour when there are no subdirs in cwd." 2016-01-08 20:58:24 +00:00
Ben Kwa
2ad8214916 Merge "Fix shift-selection." 2016-01-08 20:57:40 +00:00
Ben Kwa
2613802d4b Fix shift-selection.
The shift-selection code was failing to correctly anchor the selection
prior to shifting focus.  This meant that the first shift-navigation
event (i.e. starting from non-selection mode) would not select the right
set of stuff.

BUG=26459949

Change-Id: I62ed959fb549198c503cfd2131d2499f9a61f7e5
2016-01-08 12:56:10 -08:00
Michael Wright
0de19dfa47 Merge changes from topic 'kb-layout'
* changes:
  Always show enabled keyboards.
  Bandaid over broken keyboard layout selection process.
2016-01-08 20:55:02 +00:00
Mahaver Chopra
d68cc200ec Merge "Handle null pointer exception" 2016-01-08 20:20:02 +00:00
Ben Kwa
f5ce1035d4 Fix home key behaviour when there are no subdirs in cwd.
The divider is extraneous when a directory contains only subdirs, or
only files.  The "only dirs" case works (the divider is omitted) but in
the case where a directory contains only files, a divider gets inserted
at position 0, which messes up navigation.  This change adds code to
avoid adding a divider when a directory contains only files.

BUG=26406821

Change-Id: I7333911baf94e34bf428a3dd18b55694a73e3a62
2016-01-08 11:36:55 -08:00
Jeff Sharkey
f8565afc8a Merge "Verifier is required, except when it's not." 2016-01-08 19:30:59 +00:00
Jeff Sharkey
a440d94d0f Verifier is required, except when it's not.
There are still some devices out there that are missing a verifier,
so relax this until we have time to look closer.

Bug: 26438767
Change-Id: I10e154d736619963c20aaed8199a457f3004011c
2016-01-08 12:29:21 -07:00
Anna Galusza
69c952f833 Merge "Add remaining Accessibility Settings to backup list. Note additional settings that should not be restored if they are already set (on account of the new Setup Wizard, which allows critical Accessibility Settings to be set before restore)." 2016-01-08 19:25:01 +00:00
Mahaver Chopra
87648756e3 Handle null pointer exception
Handle null pointer exception, just in case calling entitity doesn't
check.

Change-Id: I1b4809476cc689ad3dfd426e123a64e9a0336c87
2016-01-08 19:23:57 +00:00
Jeff Sharkey
6e274cf6c7 Merge "Skip package updates when user is locked." 2016-01-08 19:03:29 +00:00
Jeff Sharkey
f0e4daecc9 Skip package updates when user is locked.
Bug: 26464060
Change-Id: If762ce799f402571fd0387947f19c824f4a1b000
2016-01-08 12:02:45 -07:00
Mahaver Chopra
932f66428c Merge "Added Data roaming user restriction" 2016-01-08 18:39:15 +00:00
Victor Chan
48426d5943 Merge "Fix crash in car system ui." 2016-01-08 18:28:23 +00:00