Commit Graph

301953 Commits

Author SHA1 Message Date
TreeHugger Robot
da8b27ce09 Merge "Fixing some interaction issues with the PIP menu." 2017-01-03 21:58:52 +00:00
Makoto Onuki
9bab1c4dd5 Merge "Get account features before taking lock" 2017-01-03 21:34:41 +00:00
Sunny Goyal
87a563e070 AppWidgetManager: direct add widget support.
Test: Manual test and all the unit tests:
adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest1 -w com.android.frameworks.servicestests
... to test9
adb shell am instrument -e class com.android.server.appwidget.AppWidgetServiceImplTest -w com.android.frameworks.servicestests

Bug 32404406
Change-Id: Icd6d4cbd25d9cdf4508da725d95d6401cc3a46a7
2017-01-03 13:28:56 -08:00
Hakan Seyalioglu
e1276bfe08 Do the sorting for the ShareSheet asynchronously.
This lets the screen fade out and share sheet start being displayed
before all results are sorted. Based heavily on ag/1126533. There are
two other follow ups that I'd like to do after this that aren't a part
of this change:

1) Investigating images being loaded multiple times (from original
   change)
2) Put placeholder space while the sorted images are coming in - at the
   moment there's some jank when the list of applications becomes
   visible.

Test: Unit tests for ChooserActivityTest (still would like to add tests
for ResolveInfoController and UsbResolverActivity).

Change-Id: I4c4a65fff1b0f17fc52b9bd01c3d5c59d649d119
2017-01-03 13:21:41 -08:00
Jean-Michel Trivi
791c48458e MediaPlayer: do not crash when there is no context
Prevent NPE when the instance is running without a context.
  This enables writing command-line test apps.

Test: vendor/google_toolbox/team/audio/cmds/ClMediaPlayer
Change-Id: Ie74112334675c5d9d3efdb28c7178c49d8729acb
2017-01-03 12:53:36 -08:00
Winson Chung
eb2206cb51 Add logging for task view thumbnail state.
Test: adb shell dumpsys activity com.android.systemui

Bug: 32735667
Change-Id: Ieb06b1c11f833f7489d1d4994e634efea4227db2
2017-01-03 20:39:10 +00:00
Marie Janssen
2a88008276 Bluetooth: track enabling in dumpsys am: a50cc71471
am: feb4c8cc23

Change-Id: I95fa35eda0a250b8c1f4a7a04eb74976ccf82191
2017-01-03 20:36:08 +00:00
Marie Janssen
feb4c8cc23 Bluetooth: track enabling in dumpsys
am: a50cc71471

Change-Id: Ifacdcb4c28d6a3a5b745434e1f6ae83c3688f7a9
2017-01-03 20:28:01 +00:00
Winson Chung
c85d9ced5e Fixing return type check when expanding via menu.
- When the menu is enabled in PIP, the focused stack when expanding
  a PIP activity to fullscreen is actually the pinned stack.  As a
  result, this was causing a crash since we were setting the return
  type falsely to APPLICATION_ACTIVITY_TYPE and later re-entering
  PIP.  Instead, this check should really just ensure that we only
  only set the application return type if the fullscreen stack is
  visible and we are moving the pinned stack tasks to top.  In all
  other cases, we should move the home stack along with the
  previously pinned task.

Test: Enable menu in SysUI tuner, hit expand and re-enter PIP over
      home and another activity.

Change-Id: I83b41b2f4178c88b9fc01b00eed79b3a53b48560
2017-01-03 12:11:17 -08:00
TreeHugger Robot
196bbe7a4b Merge "Fix NetworkScoreServiceTest.testSystemRunning." 2017-01-03 20:03:44 +00:00
Jeff Sharkey
dbc2ef417b Merge "Offer to measure disk stats using quotas." am: f8720b95be am: 4b80a4a372 am: 1e1cdbead1
am: 7664e61885

Change-Id: I91c0810aad2ec530650855bcd2f1d25c309717a1
2017-01-03 19:56:07 +00:00
Jeff Sharkey
7664e61885 Merge "Offer to measure disk stats using quotas." am: f8720b95be am: 4b80a4a372
am: 1e1cdbead1

Change-Id: Ic00acfb0efb6188a15357322528075d41467310b
2017-01-03 19:48:36 +00:00
Robert Greenwalt
7751269d37 resolve merge conflicts of e6b6653da8 to nyc-mr2-dev-plus-aosp
am: 5f0dad0e64

Change-Id: Icbd5899dd0c8a35be4c290b3aeab29d46c64e1c0
2017-01-03 19:48:04 +00:00
Robert Greenwalt
5f0dad0e64 resolve merge conflicts of e6b6653da8 to nyc-mr2-dev-plus-aosp
Change-Id: Ifbbe0d2758ab25aee7001412f71b0445c62cbdac
2017-01-03 11:35:37 -08:00
Jeff Sharkey
1e1cdbead1 Merge "Offer to measure disk stats using quotas." am: f8720b95be
am: 4b80a4a372

Change-Id: I2ab9a2bd2ff60cafea332998789ad947dda0140b
2017-01-03 19:31:36 +00:00
Winson Chung
c75ffe8ccb Fixing some interaction issues with the PIP menu.
- Due to jank when finishing the PIP menu activity, we handle the
  menu visibility explicitly and keep the menu activity around
  once triggered (until PIP ends), instead of finishing and
  recreating it each time it is invoked.  This also gives us the
  flexibility to control how the animation looks of both the menu
  and individual actions.
- Allow dragging the PIP while the menu activity is showing and
  taking input
- Tapping outside of the PIP now hides the menu

Test: Enable the tap-to-interact in the SysUI tuner and drag while
      the menu is showing.

Change-Id: Iac74710100d793e6825b00c7c0d71b85fb420fa0
Signed-off-by: Winson Chung <winsonc@google.com>
2017-01-03 11:28:37 -08:00
Jeff Sharkey
4b80a4a372 Merge "Offer to measure disk stats using quotas."
am: f8720b95be

Change-Id: I56bab3ec4895c232ce8287623827c20f2dbfaaf6
2017-01-03 19:24:00 +00:00
jackqdyulei
76471a5d9e Add TileColorPicker to remove hardcoded tile state color
1. Remove hardcoded color qs_tile_tint_* in colors.xml
2. Add tint_color_selector.xml which uses colorForeground and alpha
to tint.
3. Use TileColorPicker to grab tile state colors from
tint_color_selector.xml and provide them to customTile and BatteryTile

Bug: 32592245
Test: make -j40 SystemUITests
Change-Id: Ie5fc828c3c6d4e1f192643592c034f462fae5313
2017-01-03 11:21:59 -08:00
Lei Yu
50e0a9a396 Merge "Set background of DrawerLayout to statusBarColor" 2017-01-03 19:10:08 +00:00
Jeff Sharkey
f8720b95be Merge "Offer to measure disk stats using quotas." 2017-01-03 19:08:08 +00:00
Makoto Onuki
606da7778f Get account features before taking lock
Test: cts-tradefed run cts --skip-device-info --skip-preconditions --skip-system-status-check com.android.compatibility.common.tradefed.targetprep.NetworkConnectivityChecker -a armeabi-v7a -m CtsDevicePolicyManagerTestCases -t com.android.cts.devicepolicy.AccountCheckHostSideTest
* without having Id49f2bd5dfa80ecf35b3a23c789100ade38c2656 *

Test: adb shell am instrument -e class com.android.server.devicepolicy.DevicePolicyManagerTest -w com.android.frameworks.servicestests

Bug: 33481725
Change-Id: I1e4dd9701a76ca366f86fdaf2fc6c282e9dbe5c1
2017-01-03 10:58:23 -08:00
Robin Lee
f8ced7790a Merge "Don't check for monitoring CA certs in cryptkeeper" 2017-01-03 18:43:52 +00:00
TreeHugger Robot
dc143e01cc Merge "Fix out of bounds memory read in GIFMovie.cpp" 2017-01-03 18:18:02 +00:00
Marie Janssen
a50cc71471 Bluetooth: track enabling in dumpsys
Move basic state dumpsys to here from AdapterService.

Track which apps are enabling and disabling Bluetooth, including BLE
apps, and show the apps in the dumpsys logs.

Test: start phone and enable/disable, take bug report
Bug: 33692282
Change-Id: I6ea62ebdcfd7873d0be1bb5c5c520bbce3737a40
(cherry picked from commit 5980456040)
2017-01-03 10:13:55 -08:00
Robert Greenwalt
e6b6653da8 Merge "Add IMEI_NOT_ACCEPTED disconnect cause" am: 43ced5941e
am: 14a5b810b6

Change-Id: Ib7a87a5028975e8f55dd6ba311cde78a3c1c2460
2017-01-03 17:40:27 +00:00
Robert Greenwalt
14a5b810b6 Merge "Add IMEI_NOT_ACCEPTED disconnect cause"
am: 43ced5941e

Change-Id: I5457b80932f4bb155bf136fc4e05199f04ca7e7c
2017-01-03 17:32:59 +00:00
Robert Greenwalt
43ced5941e Merge "Add IMEI_NOT_ACCEPTED disconnect cause" 2017-01-03 17:26:59 +00:00
Kang Li
a2c7774d21 Rank apps by Logistic Regression for Smart-Sharing.
Bug: 30982298
Test: manual - tested by sharing images in Photos and sharing texts in
Chrome.

Change-Id: I9808abdefbc898d3452e684f3462efafdfd53c23
2017-01-03 09:24:28 -08:00
Jeff Sharkey
5eb3eb58ac Offer to measure disk stats using quotas.
Now we're getting somewhere!  This CL starts measuring disk usage
using quotactl(), which is almost instant and has much lower impact
on flash memory lifetime.

We now grant the per-app cache GID to every launched app, and the
ContextImpl logic that creates cache directories matches the logic
down in installd.

Test: builds, boots, quota stats match manual stats
Bug: 27948817
Change-Id: Ie269a2958ce0e1c17cb74dbfecc791a5c12922cf
2017-01-03 10:22:39 -07:00
dongwan0605.kim
16ea7f7640 Merge "QS: Fix QuickQS visibility at non-first page" am: fce04dc0be am: 56812a0146 am: 852fb2b1f1
am: 29d656dbe1

Change-Id: Ibfa95306964670aa10618bc5aa377a0a1bb6ab06
2017-01-03 16:34:00 +00:00
dongwan0605.kim
29d656dbe1 Merge "QS: Fix QuickQS visibility at non-first page" am: fce04dc0be am: 56812a0146
am: 852fb2b1f1

Change-Id: Ide5e7c588eb1707015ac33a13fb9788e80617587
2017-01-03 16:27:27 +00:00
dongwan0605.kim
852fb2b1f1 Merge "QS: Fix QuickQS visibility at non-first page" am: fce04dc0be
am: 56812a0146

Change-Id: If8d2963ed44e49e3b33b73a82378b2af32ba4676
2017-01-03 16:17:28 +00:00
dongwan0605.kim
56812a0146 Merge "QS: Fix QuickQS visibility at non-first page"
am: fce04dc0be

Change-Id: I83100ac5c1f4d896d96d2ff12d0ad59eba8b533b
2017-01-03 16:09:21 +00:00
Leon Scroggins III
e2327c0fda Fix out of bounds memory read in GIFMovie.cpp
Test: TODO (to be separately uploaded to CTS)

When decoding a GIF image, do not attempt to copy an index if it is out
of range.

BUG:33897722
Change-Id: I8c8ca69b00bf1f655e62bbe1798b9a47bf6699be
2017-01-03 11:02:03 -05:00
Narayan Kamath
fb2afbf7fa PackageParser: Add serialization mechanism for parse results.
Also adds unit tests that assert that the cached value is equivalent
to the parsed value.

bug: 30792387
Test: PackageParserTest
Change-Id: Ibf6dfd1225243b436e3d7473170c2ccc31cfbbd7
2017-01-03 15:55:09 +00:00
Treehugger Robot
fce04dc0be Merge "QS: Fix QuickQS visibility at non-first page" 2017-01-03 15:54:21 +00:00
Jerome Gaillard
39bdc174ae Update layoulib following changes in Android source code
This reflects modifications from Id2374bba and I99e1942d.

Test: Run layoutlib tests
Change-Id: I5cd56d8417b997b99be668825d950de661d75818
2017-01-03 15:32:53 +00:00
Ivan Podogov
9cb68a081c Merge "Merge "In permission review mode, always request user's consent to toggle BT." into cw-f-dev am: 34624a5d83 am: 2dd60e81ad" into nyc-mr2-dev-plus-aosp
am: 873c2054c9

Change-Id: I63dda24101762a8407f1fafa5b21d4adb99c71d9
2017-01-03 14:16:59 +00:00
Ivan Podogov
21a7dbb9e8 Merge "In permission review mode, always request user's consent to toggle BT." into cw-f-dev am: 34624a5d83 am: 2dd60e81ad
am: 171af67a69

Change-Id: I0c9c6a6f8fd3c0f5246426741c244699438def24
2017-01-03 14:16:48 +00:00
Ivan Podogov
0407c4a64a Merge "Merge "In permission review mode, always request user's consent to toggle BT." into cw-f-dev am: 34624a5d83 am: 57f7c2db57" into nyc-mr2-dev-plus-aosp
am: e337729543

Change-Id: I741841d40df5a46e479160ab4e75b958eea9cc1e
2017-01-03 14:15:01 +00:00
Ivan Podogov
7273449a8b Merge "In permission review mode, always request user's consent to toggle BT." into cw-f-dev am: 34624a5d83 am: 57f7c2db57
am: 2518fb03dc

Change-Id: If70af15581f2182a4175e9b48a7b2b93d3cbd2f5
2017-01-03 14:14:52 +00:00
Ivan Podogov
f297340b61 Merge "In permission review mode, always request user's consent to toggle BT. am: d2d32b1f32 am: 0368be4523" into nyc-mr2-dev-plus-aosp
am: 03b1d52088

Change-Id: I7ba648d4df507ccdc69cbf9e2387f9825d650621
2017-01-03 14:13:03 +00:00
Ivan Podogov
a01a471d4f In permission review mode, always request user's consent to toggle BT. am: d2d32b1f32 am: 0368be4523
am: bf3e524976

Change-Id: Idfb0800fbbbdb5a274f2e22eeb560c710b4549c8
2017-01-03 14:12:53 +00:00
Ivan Podogov
1ab8725378 resolve merge conflicts of 43dc6e7 to master
Test: make
Change-Id: I7d49e2c1480e3296f8de25d5e8e94db7b58dd8f5
2017-01-03 12:38:31 +00:00
Niels Egberts
9b01193770 Merge "Remove refernces to V1 API, as V2 doesn't exist anymore." 2017-01-03 11:52:42 +00:00
Charles He
57ed46aa14 Update SystemUpdatePolicy javadoc.
This is a pure javadoc update to reflect the fact that security updates
are no longer affected by the postponement policy. The CL also includes
rewording of some existing javadoc to clarify the expiration of local
policies.

Test: none
Bug: 33101785
Change-Id: If8c9947a41b4bac9c143613a940a62fee54879fc
2017-01-03 11:48:07 +00:00
Android Build Merger (Role)
873c2054c9 Merge "Merge "In permission review mode, always request user's consent to toggle BT." into cw-f-dev am: 34624a5d83 am: 2dd60e81ad" into nyc-mr2-dev-plus-aosp 2017-01-03 11:18:36 +00:00
Android Build Merger (Role)
e337729543 Merge "Merge "In permission review mode, always request user's consent to toggle BT." into cw-f-dev am: 34624a5d83 am: 57f7c2db57" into nyc-mr2-dev-plus-aosp 2017-01-03 11:18:29 +00:00
Ivan Podogov
171af67a69 Merge "In permission review mode, always request user's consent to toggle BT." into cw-f-dev am: 34624a5d83
am: 2dd60e81ad

Change-Id: Ie0b2f16368d5d6d1d12a140bf57049ae29c7b84f
2017-01-03 11:17:45 +00:00
Ivan Podogov
2518fb03dc Merge "In permission review mode, always request user's consent to toggle BT." into cw-f-dev am: 34624a5d83
am: 57f7c2db57

Change-Id: If36ef6f3fd072fa5ac0593584b499e050d30d4dc
2017-01-03 11:17:39 +00:00