OSDN Git Service

android-x86/frameworks-base.git
7 years agoMerge "Fix NPE in NavigationBarFragment"
Casey Burkhardt [Tue, 21 Mar 2017 16:40:01 +0000 (16:40 +0000)]
Merge "Fix NPE in NavigationBarFragment"

7 years agoMerge "[Resources] preloaded drawables few"
TreeHugger Robot [Tue, 21 Mar 2017 16:16:58 +0000 (16:16 +0000)]
Merge "[Resources] preloaded drawables few"

7 years agoMerge "Improvements to ActivityManagerService stack dumping"
Brian Carlstrom [Tue, 21 Mar 2017 16:11:51 +0000 (16:11 +0000)]
Merge "Improvements to ActivityManagerService stack dumping"

7 years agoMerge changes I7f7a9842,I4c74b269
Jorim Jaggi [Tue, 21 Mar 2017 15:53:48 +0000 (15:53 +0000)]
Merge changes I7f7a9842,I4c74b269

* changes:
  Implement new thumbnail loading strategy
  Also store reduced resolution screenshots

7 years agoMerge "Do not remove the default display during tests."
Bryce Lee [Tue, 21 Mar 2017 14:33:21 +0000 (14:33 +0000)]
Merge "Do not remove the default display during tests."

7 years agoMerge "Delete the Default Channel when an app starts using channels."
Geoffrey Pitsch [Tue, 21 Mar 2017 14:12:17 +0000 (14:12 +0000)]
Merge "Delete the Default Channel when an app starts using channels."

7 years agoImplement new thumbnail loading strategy
Jorim Jaggi [Fri, 17 Mar 2017 16:22:47 +0000 (17:22 +0100)]
Implement new thumbnail loading strategy

- By default, we load only the reduced resolution screenshots.
- As soon as the user stops scrolling fast, we also start loading
full resolution screenshots.
- We prefetch reduced resolution screenshots when scrolling from
back to front, as the other direction is automatically prefetched
because the thumbnails aren't immediately visible.

Test: Open many apps, adb restart, scroll fast and slow in recents
Test: runtest systemui -c com.android.systemui.recents.model.HighResThumbnailLoaderTest
Bug: 34829962
Change-Id: I7f7a9842eb28a09a18573426fa9677cee2877124

7 years agoAlso store reduced resolution screenshots
Jorim Jaggi [Fri, 17 Mar 2017 16:06:50 +0000 (17:06 +0100)]
Also store reduced resolution screenshots

In order to speed up loading time when scrolling through it
in recents. They will be used in recents in the next CL. Also, we
use JPG instead as loading JPG is much faster than PNG.

Test: TaskSnapshotPersisterLoaderTest
Test: TaskSnapshotCacheTest
Bug: 34829962
Change-Id: I4c74b26969ae459bd3b1a42707011a49f425abd9

7 years agoMerge "Fix build following change 0763650"
TreeHugger Robot [Tue, 21 Mar 2017 13:55:25 +0000 (13:55 +0000)]
Merge "Fix build following change 0763650"

7 years agoMerge "BZZZZZZT! BZZZZZT! New Vibrator APIs"
TreeHugger Robot [Tue, 21 Mar 2017 13:40:31 +0000 (13:40 +0000)]
Merge "BZZZZZZT! BZZZZZT! New Vibrator APIs"

7 years agoMerge "Modify VectorDrawable to scale path through canvas matrix"
TreeHugger Robot [Tue, 21 Mar 2017 13:29:16 +0000 (13:29 +0000)]
Merge "Modify VectorDrawable to scale path through canvas matrix"

7 years agoMerge "Do not allow WebView instantiation from privileged processes."
TreeHugger Robot [Tue, 21 Mar 2017 13:25:19 +0000 (13:25 +0000)]
Merge "Do not allow WebView instantiation from privileged processes."

7 years agoFix build following change 0763650
Diego Perez [Tue, 21 Mar 2017 11:47:47 +0000 (11:47 +0000)]
Fix build following change 0763650

Test: N/A
Change-Id: Ie376cb34f0a6ea1f33fab3871abb9db43c5fcf62

7 years agoMerge "add and incorporate TetheringConfiguration.dump()" am: 9eb959320f am: 9e46faff07
Erik Kline [Tue, 21 Mar 2017 10:29:58 +0000 (10:29 +0000)]
Merge "add and incorporate TetheringConfiguration.dump()" am: 9eb959320f am: 9e46faff07
am: d9f71bcf6d

Change-Id: I6b2a5aa4054fc0a2a465b940aea11194d3bc39a8

7 years agoMerge "add and incorporate TetheringConfiguration.dump()" am: 9eb959320f
Erik Kline [Tue, 21 Mar 2017 10:22:21 +0000 (10:22 +0000)]
Merge "add and incorporate TetheringConfiguration.dump()" am: 9eb959320f
am: 9e46faff07

Change-Id: I227d8bcd27ae2970ee65d6cc83faa37ff4e4f17a

7 years agoMerge "add and incorporate TetheringConfiguration.dump()"
Erik Kline [Tue, 21 Mar 2017 10:14:19 +0000 (10:14 +0000)]
Merge "add and incorporate TetheringConfiguration.dump()"
am: 9eb959320f

Change-Id: I29c80b36ddd14e1e03c88c63d35ee9982dcef887

7 years agoMerge "add and incorporate TetheringConfiguration.dump()"
Treehugger Robot [Tue, 21 Mar 2017 10:05:41 +0000 (10:05 +0000)]
Merge "add and incorporate TetheringConfiguration.dump()"

7 years agoMerge "Added ETWS primary message default message support" am: 2d3fb48b39 am: dfe1743b37
Jack Yu [Tue, 21 Mar 2017 09:32:53 +0000 (09:32 +0000)]
Merge "Added ETWS primary message default message support" am: 2d3fb48b39 am: dfe1743b37
am: 0f127ea929  -s ours

Change-Id: I8eef7fc8f253a647469b71328eb6d89a0210f6ff

7 years agoMerge "Added ETWS primary message default message support" am: 2d3fb48b39
Jack Yu [Tue, 21 Mar 2017 09:26:51 +0000 (09:26 +0000)]
Merge "Added ETWS primary message default message support" am: 2d3fb48b39
am: dfe1743b37

Change-Id: I71a1be66cb84ed8030df4ab9d406c390872f5346

7 years agoMerge "Added ETWS primary message default message support"
Jack Yu [Tue, 21 Mar 2017 09:20:17 +0000 (09:20 +0000)]
Merge "Added ETWS primary message default message support"
am: 2d3fb48b39

Change-Id: Ib03378e2f9c2da53b5efbedde08b20acc0b8c199

7 years agoMerge "Update AMS to wait for network state update if requested by the main thread."
TreeHugger Robot [Tue, 21 Mar 2017 09:16:11 +0000 (09:16 +0000)]
Merge "Update AMS to wait for network state update if requested by the main thread."

7 years agoMerge "Added ETWS primary message default message support"
Treehugger Robot [Tue, 21 Mar 2017 09:11:44 +0000 (09:11 +0000)]
Merge "Added ETWS primary message default message support"

7 years agoMerge "Fix an argument passing to putStorageDocuments."
TreeHugger Robot [Tue, 21 Mar 2017 07:55:54 +0000 (07:55 +0000)]
Merge "Fix an argument passing to putStorageDocuments."

7 years agoAdded ETWS primary message default message support
Jack Yu [Sat, 18 Mar 2017 06:21:48 +0000 (23:21 -0700)]
Added ETWS primary message default message support

ETWS primary message does not contain messagy body. We used
to use hardcoded "ETWS" as the body, which is not easy for
end users to understand what happened. Added the built-in
default messages provided by Japanese government guideline
for earthquake, Tsunami, test, and other channels support to
enhance the user experience.

Test: manual
bug: 33595007
Merged-In: I53659298d8ce3b3ba5c751c14c1b36e76d6dc562
Change-Id: I53659298d8ce3b3ba5c751c14c1b36e76d6dc562

7 years agoMerge "Added ETWS primary message default message support"
Jack Yu [Tue, 21 Mar 2017 07:38:20 +0000 (07:38 +0000)]
Merge "Added ETWS primary message default message support"

7 years agoUpdate AMS to wait for network state update if requested by the main thread.
Sudheer Shanka [Thu, 9 Mar 2017 02:19:01 +0000 (18:19 -0800)]
Update AMS to wait for network state update if requested by the main thread.

Bug: 27803922
Test: runtest -c com.android.server.am.ActivityManagerServiceTest frameworks-services
      runtest -c com.android.server.am.ActivityManagerInternalTest frameworks-services
      cts-tradefed run singleCommand cts-dev --module CtsHostsideNetworkTests
      and manual
Change-Id: I7d1052b9941c1fae51ff8ab1c9b89dca3919ccd2

7 years agoMerge "Add lastProcStateSeqDispatchedToObservers to UidRecord."
Sudheer Shanka [Tue, 21 Mar 2017 06:31:15 +0000 (06:31 +0000)]
Merge "Add lastProcStateSeqDispatchedToObservers to UidRecord."

7 years agoMerge "SurfaceView: Fix some log spam."
TreeHugger Robot [Tue, 21 Mar 2017 06:29:13 +0000 (06:29 +0000)]
Merge "SurfaceView: Fix some log spam."

7 years agoAdd lastProcStateSeqDispatchedToObservers to UidRecord.
Sudheer Shanka [Tue, 7 Mar 2017 23:38:01 +0000 (15:38 -0800)]
Add lastProcStateSeqDispatchedToObservers to UidRecord.

This will help in identifying the last procStateSeq for which AMS
notified NPMS about the process state change.

Bug: 27803922
Test: runtest -c com.android.server.am.ActivityManagerServiceTest frameworks-services

Change-Id: I741a8ffe31de92070f3ebbc9c4f95fc1c0a340cd

7 years agoMerge "Fix NPE when mDecor is null on ActivityClientRecord"
TreeHugger Robot [Tue, 21 Mar 2017 06:14:54 +0000 (06:14 +0000)]
Merge "Fix NPE when mDecor is null on ActivityClientRecord"

7 years agoMerge "Update NPMS to notify AMS when network policy rules are updated."
Sudheer Shanka [Tue, 21 Mar 2017 06:12:58 +0000 (06:12 +0000)]
Merge "Update NPMS to notify AMS when network policy rules are updated."

7 years agoAdded ETWS primary message default message support
Jack Yu [Sat, 18 Mar 2017 06:21:48 +0000 (23:21 -0700)]
Added ETWS primary message default message support

ETWS primary message does not contain messagy body. We used
to use hardcoded "ETWS" as the body, which is not easy for
end users to understand what happened. Added the built-in
default messages provided by Japanese government guideline
for earthquake, Tsunami, test, and other channels support to
enhance the user experience.

Test: manual
bug: 33595007
Change-Id: I53659298d8ce3b3ba5c751c14c1b36e76d6dc562

7 years agoMerge "Revert "AAPT: Version <adaptive-icon> to v26""
Guang Zhu [Tue, 21 Mar 2017 05:09:21 +0000 (05:09 +0000)]
Merge "Revert "AAPT: Version <adaptive-icon> to v26""

7 years agoSurfaceView: Fix some log spam.
Robert Carr [Tue, 21 Mar 2017 04:47:11 +0000 (21:47 -0700)]
SurfaceView: Fix some log spam.

We were throwing relatively harmless NPEs here
and catching them below. The log message when
catching exceptions also needed some updating.
Not assosciated with a particular bug just
noticed in logcat.

Test: Manual
Change-Id: I5f07e6fc8ff3a34318682bf7b6c309fbba4097e4

7 years agoMerge "Connectivity metrics: add transports to validation probes"
TreeHugger Robot [Tue, 21 Mar 2017 04:22:34 +0000 (04:22 +0000)]
Merge "Connectivity metrics: add transports to validation probes"

7 years agoMerge changes I8c710af6,Iedf30212
Adam Lesinski [Tue, 21 Mar 2017 03:54:10 +0000 (03:54 +0000)]
Merge changes I8c710af6,Iedf30212

* changes:
  libandroidfw: Fix mass logspam of ResourceTypes warnings
  NativeActivity JNI: Retain VM reference to AssetManager

7 years agoRevert "AAPT: Version <adaptive-icon> to v26"
Guang Zhu [Tue, 21 Mar 2017 03:53:43 +0000 (03:53 +0000)]
Revert "AAPT: Version <adaptive-icon> to v26"

Bug: 36462965
Bug: 35908647

This reverts commit c7614e5d1e8f9139cccf6ab9b78dda16b98f7656.

Change-Id: I25279e7c53823dad0703c7e2ea8ff91bdbc1a0f2

7 years agoMerge "log last fs shutdown time / stat before reboot"
Keun-young Park [Tue, 21 Mar 2017 03:50:40 +0000 (03:50 +0000)]
Merge "log last fs shutdown time / stat before reboot"

7 years agoMerge "Change string for connected via WFA."
TreeHugger Robot [Tue, 21 Mar 2017 03:15:10 +0000 (03:15 +0000)]
Merge "Change string for connected via WFA."

7 years agoMerge changes I8bfabcb1,I563a6a31
TreeHugger Robot [Tue, 21 Mar 2017 02:59:16 +0000 (02:59 +0000)]
Merge changes I8bfabcb1,I563a6a31

* changes:
  Connectivity metrics: change how interface names are logged
  Connectivity metrics: serialize networkId, transports, ifname

7 years agoConnectivity metrics: add transports to validation probes
Hugo Benichi [Fri, 17 Mar 2017 06:42:40 +0000 (15:42 +0900)]
Connectivity metrics: add transports to validation probes

This patch adds transports info to ValidationProbeEvent and migrates
netId logging for this event to the topt-level netId field in
ConnectivityMetricsEvent.

Test: modified unit tests. $ runtest frameworks-net passes
Bug: 3490169
Change-Id: Ibf51049ba8901ae5ca4ea86e2f500944a4738b5c

7 years agoChange string for connected via WFA.
Stephen Chen [Mon, 20 Mar 2017 20:27:51 +0000 (13:27 -0700)]
Change string for connected via WFA.

Bug: 34773168
Test: runtest
Change-Id: I292013c874012cca004be1078f854cb3ee145112

7 years agoConnectivity metrics: change how interface names are logged
Hugo Benichi [Thu, 16 Mar 2017 07:33:47 +0000 (16:33 +0900)]
Connectivity metrics: change how interface names are logged

This patch deprecates the ifname field for specific metrics events of
types DhcpClientEvent, DhcpErrorEvent, IpReachabilityEvent and
IpManagerEvent.

Instead ifnames are logged in ConnectivityMetricsEvent, allowing for
link layer inference.

Test: updated unit tests, $ runtest frameworks-net passes
Bug: 34901696
Change-Id: I8bfabcb115bbd5289471d653c153a40bb48f28cd

7 years agoConnectivity metrics: serialize networkId, transports, ifname
Hugo Benichi [Wed, 15 Mar 2017 14:05:01 +0000 (23:05 +0900)]
Connectivity metrics: serialize networkId, transports, ifname

This patch adds translation from ConnectivityMetricsEvent to
IpConnectivityEvent of recently added fields:
 - top-level network id
 - top-level ifname
 - transports

Also adds inference of link layer from transports or ifname.

At the moment these new fields are not populated in
ConnectivityMetricsEvent. Follow-up patches will fill this gap for
the events of the android.net.metrics package.

Test: new unit tests, $ runtest frameworks-net passes
Bug: 34901696
Change-Id: I563a6a3183470bdfaabb7c781a1beaf6b1058bf0

7 years agoMerge "AssetManager: Guard against null in array retrieval"
Adam Lesinski [Tue, 21 Mar 2017 01:03:14 +0000 (01:03 +0000)]
Merge "AssetManager: Guard against null in array retrieval"

7 years agoFix an argument passing to putStorageDocuments.
Daichi Hirono [Tue, 21 Mar 2017 00:55:07 +0000 (09:55 +0900)]
Fix an argument passing to putStorageDocuments.

Previously device.eventSupported was wrongly passed to
putStorageDocuments while we need to pass device.operationSupported.

Bug: 35855598
Test: manually copied a file from phone to phone
Change-Id: Iaa5d8973b3af0a157ed3196fb83971aeb148d203

7 years agoMerge "Updated javadocs for sendUssd APIs."
Pankaj Kanwar [Tue, 21 Mar 2017 00:45:50 +0000 (00:45 +0000)]
Merge "Updated javadocs for sendUssd APIs."

7 years agolog last fs shutdown time / stat before reboot
Keun-young Park [Thu, 16 Mar 2017 00:05:15 +0000 (17:05 -0700)]
log last fs shutdown time / stat before reboot

- init will record shutdown time spent in file system part
  to kernel log, and it is avaiable as last_kmsg after reboot.
- Find it from last_kmsg and log it.

bug: 36004738
Test: reboot / cold boot and check logs
Change-Id: Ic5795b327eec482895ac79b39be2a246c6997999

7 years agoUpdate NPMS to notify AMS when network policy rules are updated.
Sudheer Shanka [Tue, 7 Mar 2017 19:51:46 +0000 (11:51 -0800)]
Update NPMS to notify AMS when network policy rules are updated.

Bug: 27803922
Test: runtest -c com.android.server.am.ActivityManagerInternalTest frameworks-services
      runtest -c com.android.server.NetworkPolicyManagerServiceTest frameworks-services

Change-Id: I357fd5c80b7e6d3e63df95397e328c52f233958b

7 years agoMerge "Update PiP AppOps flag to enforce all PiP functionality."
Winson Chung [Tue, 21 Mar 2017 00:28:57 +0000 (00:28 +0000)]
Merge "Update PiP AppOps flag to enforce all PiP functionality."

7 years agoMerge "Showing notification when activity is in PiP."
Winson Chung [Tue, 21 Mar 2017 00:28:57 +0000 (00:28 +0000)]
Merge "Showing notification when activity is in PiP."

7 years agoMerge "Revert "Add remote callbacks for persistent vr mode""
Jin Qian [Tue, 21 Mar 2017 00:19:26 +0000 (00:19 +0000)]
Merge "Revert "Add remote callbacks for persistent vr mode""

7 years agoMerge changes Ie70977f9,I45ef3001
Kevin Hufnagle [Tue, 21 Mar 2017 00:16:01 +0000 (00:16 +0000)]
Merge changes Ie70977f9,I45ef3001

* changes:
  2-way cherry-pick from oc-preview-docs-release: docs: Updated ShortcutManager Javadoc for Android O Developer Preview.
  docs: Edited ShortcutManager reference docs for Android O.

7 years agoMerge "AAPT: Version <adaptive-icon> to v26"
Adam Lesinski [Tue, 21 Mar 2017 00:15:25 +0000 (00:15 +0000)]
Merge "AAPT: Version <adaptive-icon> to v26"

7 years agoMerge "In isTetheringSupported, call isAdmin user from system." am: 4a8953094f am...
Jeremy Klein [Tue, 21 Mar 2017 00:10:46 +0000 (00:10 +0000)]
Merge "In isTetheringSupported, call isAdmin user from system." am: 4a8953094f am: 23d6ba12f1
am: 0b8756e735

Change-Id: I76d02e97382c0332e3d93383d60e8e7fc9951a08

7 years agoRevert "Add remote callbacks for persistent vr mode"
Jin Qian [Tue, 21 Mar 2017 00:04:53 +0000 (00:04 +0000)]
Revert "Add remote callbacks for persistent vr mode"

This reverts commit 504c6d67d0c2e4cda5201372551914f94acce710.

Change-Id: Ia0f8d508272211736d421cf097abaa0bcbc3abab

7 years agoMerge "Fine-grained systrace for NetworkPolicyManagerService"
TreeHugger Robot [Tue, 21 Mar 2017 00:04:22 +0000 (00:04 +0000)]
Merge "Fine-grained systrace for NetworkPolicyManagerService"

7 years agoMerge "In isTetheringSupported, call isAdmin user from system." am: 4a8953094f
Jeremy Klein [Tue, 21 Mar 2017 00:04:11 +0000 (00:04 +0000)]
Merge "In isTetheringSupported, call isAdmin user from system." am: 4a8953094f
am: 23d6ba12f1

Change-Id: I35f45927c564773c10da78e1476814f0a1c7f1be

7 years agoMerge "In isTetheringSupported, call isAdmin user from system."
Jeremy Klein [Mon, 20 Mar 2017 23:58:09 +0000 (23:58 +0000)]
Merge "In isTetheringSupported, call isAdmin user from system."
am: 4a8953094f

Change-Id: Ibefe655ed377c55322d871e02d87c0d001327da8

7 years agoMerge "In isTetheringSupported, call isAdmin user from system."
Jeremy Klein [Mon, 20 Mar 2017 23:50:57 +0000 (23:50 +0000)]
Merge "In isTetheringSupported, call isAdmin user from system."

7 years agoFix NPE in NavigationBarFragment
Casey Burkhardt [Mon, 20 Mar 2017 22:10:16 +0000 (15:10 -0700)]
Fix NPE in NavigationBarFragment

Retains handle to a ContentResolver within NavigationBarFragment
to account for Context sometimes being unavailable.

Bug: 36356742
Change-Id: Id9070276feb77126e4d0358b8db91516f27ace47
Test: Manual

7 years agoFix NPE when mDecor is null on ActivityClientRecord
Stephen Kiazyk [Mon, 20 Mar 2017 23:23:45 +0000 (16:23 -0700)]
Fix NPE when mDecor is null on ActivityClientRecord

It seems like this case is handled in all other instances that mDecor is
accessed, so I can only assume that this should also check for null.

Bug: 36396248
Test: Compile and run VR application, crash no longer observed.
Change-Id: I53559bd6f1b9e14f93b8f3881ba5b52b45289f65

7 years agoMerge "Add remote callbacks for persistent vr mode"
Steven Thomas [Mon, 20 Mar 2017 23:43:46 +0000 (23:43 +0000)]
Merge "Add remote callbacks for persistent vr mode"

7 years agoMerge "Register PackageMonitor for CompanionDeviceManagerService"
Eugene Susla [Mon, 20 Mar 2017 23:04:11 +0000 (23:04 +0000)]
Merge "Register PackageMonitor for CompanionDeviceManagerService"

7 years agoMerge "Ensure that we update the controller before setting menu visibility."
TreeHugger Robot [Mon, 20 Mar 2017 22:56:18 +0000 (22:56 +0000)]
Merge "Ensure that we update the controller before setting menu visibility."

7 years agoMerge "Bluetooth 5 AdvertisingSet implementation (1/4)" am: f0c963a5b6 am: 375741e99a
Jakub Pawlowski [Mon, 20 Mar 2017 22:41:06 +0000 (22:41 +0000)]
Merge "Bluetooth 5 AdvertisingSet implementation (1/4)" am: f0c963a5b6 am: 375741e99a
am: d7714c45e0

Change-Id: I71d5455248a9840aadf02859ba8652bd80eca559

7 years agoMerge "More RecoverableSecurityException docs."
TreeHugger Robot [Mon, 20 Mar 2017 22:37:20 +0000 (22:37 +0000)]
Merge "More RecoverableSecurityException docs."

7 years agoMerge "Allow setting a persistent VR thread."
TreeHugger Robot [Mon, 20 Mar 2017 22:35:36 +0000 (22:35 +0000)]
Merge "Allow setting a persistent VR thread."

7 years agoMerge "Bluetooth 5 AdvertisingSet implementation (1/4)" am: f0c963a5b6
Jakub Pawlowski [Mon, 20 Mar 2017 22:33:09 +0000 (22:33 +0000)]
Merge "Bluetooth 5 AdvertisingSet implementation (1/4)" am: f0c963a5b6
am: 375741e99a

Change-Id: Ieb03aed00cee20c367f52aa8ea1b1fd02a6fbbac

7 years agoMerge "Bluetooth 5 AdvertisingSet implementation (1/4)"
Jakub Pawlowski [Mon, 20 Mar 2017 22:26:42 +0000 (22:26 +0000)]
Merge "Bluetooth 5 AdvertisingSet implementation (1/4)"
am: f0c963a5b6

Change-Id: Ia401ccf8935b8cb315849803c5c82d1d7dd64b81

7 years agoMerge "Bluetooth 5 AdvertisingSet implementation (1/4)"
Jakub Pawlowski [Mon, 20 Mar 2017 22:19:07 +0000 (22:19 +0000)]
Merge "Bluetooth 5 AdvertisingSet implementation (1/4)"

7 years agoFine-grained systrace for NetworkPolicyManagerService
Makoto Onuki [Mon, 20 Mar 2017 21:53:00 +0000 (14:53 -0700)]
Fine-grained systrace for NetworkPolicyManagerService

Bug 34961340
Test: manual test with systrace.py

Change-Id: I6b0e53758d80db1ed9e522f82fff9ccc16301fb0

7 years agoMerge "Add Long Press to Launch All Apps View"
Sid Soundararajan [Mon, 20 Mar 2017 22:17:06 +0000 (22:17 +0000)]
Merge "Add Long Press to Launch All Apps View"

7 years agoUpdate PiP AppOps flag to enforce all PiP functionality.
Winson Chung [Fri, 17 Mar 2017 19:34:12 +0000 (12:34 -0700)]
Update PiP AppOps flag to enforce all PiP functionality.

- Previously it only enforced whether an app could enter PiP as it was
  hiding.
- Also updating metrics constant name to reflect the change.
- Adding public OPSTR for apps to check if it the user has disabled PiP

Bug: 35957404
Test: android.server.cts.ActivityManagerPinnedStackTests
Change-Id: I979b5c6d4c85946623999ced1cfb197d830ccecb

7 years agoMerge "Batch autofill() calls to views with virtual children."
TreeHugger Robot [Mon, 20 Mar 2017 22:03:16 +0000 (22:03 +0000)]
Merge "Batch autofill() calls to views with virtual children."

7 years agoIn isTetheringSupported, call isAdmin user from system.
Jeremy Klein [Fri, 17 Mar 2017 21:30:02 +0000 (14:30 -0700)]
In isTetheringSupported, call isAdmin user from system.

This avoids requiring the MANAGE_USERS permission in this function.

Bug: 32671528
Test: Manual. Also seeking unit test guidance from reviewer.
Change-Id: I841e721013b0e4b6db34d629a1e97b3cd54cd73b

7 years ago2-way cherry-pick from oc-preview-docs-release: docs: Updated ShortcutManager Javadoc...
Kevin Hufnagle [Sat, 18 Mar 2017 01:11:20 +0000 (18:11 -0700)]
2-way cherry-pick from oc-preview-docs-release: docs: Updated ShortcutManager Javadoc for Android O Developer Preview.

Test: make ds-docs -j12

Bug: 34685739
Change-Id: Ie70977f9b7b5b08de8bdd583a1e21b8a00eb5970
Original-Change-Id: I3cfa360ebd025a7eb198d7fe54f96059f42cd7f5
Original-Change-Id: I45ef30010f696604c06ce2cd7e2eca1db012e68b

7 years agoMerge "Add support for MTP perceived device type property." am: b6ed343e85 am: 7644b885c7
Jerry Zhang [Mon, 20 Mar 2017 21:54:28 +0000 (21:54 +0000)]
Merge "Add support for MTP perceived device type property." am: b6ed343e85 am: 7644b885c7
am: 136f37b88f

Change-Id: I446cd52e5fd8cda48e9af46ee3faee5578cae286

7 years agolibandroidfw: Fix mass logspam of ResourceTypes warnings
Adam Lesinski [Mon, 20 Mar 2017 17:55:01 +0000 (10:55 -0700)]
libandroidfw: Fix mass logspam of ResourceTypes warnings

An overlay was incorrectly leaking its own resources into the
framework resource package, which caused warnings for every app
that tried to access framework resources (all of them).

This change skips including any resources that are not overlaying
anything (not present in IDMAP).

Bug: 36256974
Test: make libandroidfw_tests
Change-Id: I8c710af6849bb848938825aacca02799ee96c003

7 years agoMerge "Do not defer wm display logic when called from am."
Bryce Lee [Mon, 20 Mar 2017 21:48:47 +0000 (21:48 +0000)]
Merge "Do not defer wm display logic when called from am."

7 years agoDo not remove the default display during tests.
Bryce Lee [Sat, 18 Mar 2017 00:22:35 +0000 (17:22 -0700)]
Do not remove the default display during tests.

The default display is used by some tests that exercise features only
functional only on the default display (like policy rotation). This CL
makes this display not get removed with the created test displays and
ensures no collision in id space from a previous test run (done in the
test setup).

Change-Id: Ia14b9c023c779d263283fe8c7b512dca17ff312f
Fix: 36385757
Test: bit FrameworksServicesTests:com.android.server.wm.StackWindowControllerTests#testRemoveContainer_deferRemoval

7 years agoMerge "Add support for MTP perceived device type property." am: b6ed343e85
Jerry Zhang [Mon, 20 Mar 2017 21:46:01 +0000 (21:46 +0000)]
Merge "Add support for MTP perceived device type property." am: b6ed343e85
am: 7644b885c7

Change-Id: If09ce7609ff999c7dc32d7cc5db4917eae50748c

7 years agoMerge "Add support for MTP perceived device type property."
Jerry Zhang [Mon, 20 Mar 2017 21:39:17 +0000 (21:39 +0000)]
Merge "Add support for MTP perceived device type property."
am: b6ed343e85

Change-Id: I58417625aa6c669eb82af3a11a4e35c77952f539

7 years agoMerge "Add token to the resolver APIs"
TreeHugger Robot [Mon, 20 Mar 2017 21:25:30 +0000 (21:25 +0000)]
Merge "Add token to the resolver APIs"

7 years agodocs: Edited ShortcutManager reference docs for Android O.
Kevin Hufnagle [Fri, 17 Mar 2017 00:22:14 +0000 (17:22 -0700)]
docs: Edited ShortcutManager reference docs for Android O.

Added descriptions of features that have been added or have changed
within the ShortcutManager class.

Bug: 34685739
Change-Id: I45ef30010f696604c06ce2cd7e2eca1db012e68b

7 years agoMerge "Prefer to launch activities on the source display"
David Stevens [Mon, 20 Mar 2017 21:23:18 +0000 (21:23 +0000)]
Merge "Prefer to launch activities on the source display"

7 years agoMerge "Add support for MTP perceived device type property."
Treehugger Robot [Mon, 20 Mar 2017 21:23:10 +0000 (21:23 +0000)]
Merge "Add support for MTP perceived device type property."

7 years agoEnsure that we update the controller before setting menu visibility.
Winson Chung [Mon, 20 Mar 2017 21:01:36 +0000 (14:01 -0700)]
Ensure that we update the controller before setting menu visibility.

Bug: 36444329
Test: Launch PIP with media session, expand to see menu
Change-Id: I8ca4d459a2989c93c4300ac687dce298f4233822

7 years agoDelete the Default Channel when an app starts using channels.
Geoffrey Pitsch [Tue, 3 Jan 2017 21:44:20 +0000 (16:44 -0500)]
Delete the Default Channel when an app starts using channels.

New apps should create their own channels.
Not using channels will silently fail.

STOPSHIPS:
Throw to provide better feedback for developers.
Delete the default channel for all apps that target O.

Test: runtest systemui-notification
Change-Id: Ic93f103efe397f563eaaf1c2e7d8bf9093b2b2e1

7 years agoRegister PackageMonitor for CompanionDeviceManagerService
Eugene Susla [Mon, 13 Mar 2017 19:57:58 +0000 (12:57 -0700)]
Register PackageMonitor for CompanionDeviceManagerService

1. On package removed -> remove all its associations
2. On package updated -> if had associations, update special access permission
in accordance with (potentially changed) permission entries in manifest

Bug: 30932767
Test: 1. Remove app, and ensure xml entries for it got removed.
2. adb install new version of app without special permissions in manifest, and
ensure whitelist removal method got called
Change-Id: I87261c05ddcf40a18332d160b44ee2f8284df5e4

7 years agoMore RecoverableSecurityException docs.
Jeff Sharkey [Mon, 20 Mar 2017 20:38:04 +0000 (14:38 -0600)]
More RecoverableSecurityException docs.

Mention convenience methods in class docs, and require a valid
NotificationChannel to be provided to match O best-practices.

Also mention that notifyChange() should be triggered when the action
is finished.

Test: builds, boots
Bug: 34676491
Change-Id: I0e6c6d43a93cbce1a5de02621290cc2ff9423274

7 years agoUpdated javadocs for sendUssd APIs.
pkanwar [Mon, 20 Mar 2017 19:23:42 +0000 (12:23 -0700)]
Updated javadocs for sendUssd APIs.

Bug: 35766546
Change-Id: I40f0addc15331184b3409b3d1b5c9dc1455d8b5b
Test: manual

7 years agoAllow setting a persistent VR thread.
Craig Donner [Wed, 8 Mar 2017 17:51:47 +0000 (09:51 -0800)]
Allow setting a persistent VR thread.

Bug: 36215076
Test: adb shell am instrument -w -e class \
android.os.SetPersistentVrThreadTest \
com.android.frameworks.coretests/\
android.support.test.runner.AndroidJUnitRunner
cts-tradefed run cts -m CtsVrTestCases -t android.vr.cts.VrSetFIFOThreadTest
Change-Id: If2f3a5f1c8593c74ac35964f68dcbe75b4da472e

7 years agoMerge "Apps must opt into using icon badges."
TreeHugger Robot [Mon, 20 Mar 2017 20:02:13 +0000 (20:02 +0000)]
Merge "Apps must opt into using icon badges."

7 years agoBluetooth 5 AdvertisingSet implementation (1/4)
Jakub Pawlowski [Fri, 17 Mar 2017 22:33:27 +0000 (15:33 -0700)]
Bluetooth 5 AdvertisingSet implementation (1/4)

Test: manual
Bug: 30622771
Change-Id: Ia89718c0c2ab2eaa71b158ecdcae989af907769f

7 years agoMerge "StartHidlServices wait for StartSensorService."
TreeHugger Robot [Mon, 20 Mar 2017 19:57:14 +0000 (19:57 +0000)]
Merge "StartHidlServices wait for StartSensorService."

7 years agoMerge "Expose AIRPLANE_MODE_ON to Instant Apps"
TreeHugger Robot [Mon, 20 Mar 2017 19:52:37 +0000 (19:52 +0000)]
Merge "Expose AIRPLANE_MODE_ON to Instant Apps"

7 years agoMerge "Expose Intents to Instant Apps"
TreeHugger Robot [Mon, 20 Mar 2017 19:47:42 +0000 (19:47 +0000)]
Merge "Expose Intents to Instant Apps"

7 years agoMerge changes from topic 'revert_dozing'
Selim Cinek [Mon, 20 Mar 2017 19:35:23 +0000 (19:35 +0000)]
Merge changes from topic 'revert_dozing'

* changes:
  Revert "NotificationWrappers: Factor out doze treatment"
  Revert "AOD: Use color filter to invert icons for AOD"

7 years agoMerge "Expose Android ID to Instant Apps"
TreeHugger Robot [Mon, 20 Mar 2017 19:29:04 +0000 (19:29 +0000)]
Merge "Expose Android ID to Instant Apps"