313200 Commits

Author SHA1 Message Date
Wale Ogunwale
7004a8801d Ensure visible activities when device is unlocked.
When the device is locked we transition all activities to the stopped
state. However, we were only resuming the activity in the focused stack
when the device is unlocked. We now:
- Ensure all visible acitvities when the device is unlocked regardless
of stack.
- If the activity is marked as visible, but in the STOPPED state, we go
ahead and restart it.
- Correctly set ActivityRecord.stopped to false when we restart an
activity into the PAUSED state.

Fixes: 37119770
Bug: 37244415
Test: Make sure docked activity state isn't STOPPED when device is
unlocked.

Change-Id: I1498eeddaa3c1f5dd5135dca56271ffc22b704f2
2017-04-11 11:13:04 -07:00
Bill Yi
a63e7a2d81 Import translations. DO NOT MERGE
Change-Id: I5ec6d0e311e7e86d0b23e8abd997cac887564202
Auto-generated-cl: translation import
2017-04-11 11:09:55 -07:00
Mathieu Chartier
94f11c531f Fix some maps to be HEAP_DALVIK_CODE_CACHE instead of HEAP_DALVIK_ACCOUNTING
dalvik-data-code-cache and dalvik-CompilerMetadata should be counted
in JITCache instead of .GC in dumpsys.

Bug: 37224159
Test: adb shell dumpsys meminfo -d

(cherry picked from commit 874c4cf56c0a9ea3b48468a13ec7fb78a3e2594b)

Change-Id: I41def949d91b2fdef0b3f502fe16ae436d058051
2017-04-11 11:07:37 -07:00
Derek Sollenberger
eb69cbbe22 Change behavior of setBitmap to cleanly reset the canvas
- identity matrix
 - no save stack
 - wide-open clip

This reverts commit 4f641d1e4586b027969052cc0ad6b65c1158e72e

Test: bit CtsGraphicsTestCases:.CanvasTest
Bug: 36218535
Change-Id: Id11deb06e37d6df61f1f171d424ab150d812a7a8
2017-04-11 14:00:25 -04:00
Jason Monk
209e03e2ff Visual changes to dual target tiles
Test: visual
Change-Id: I856cae03587fc9a1e49fbfbdbf1e6abfbbf114ca
Fixes: 37007988
2017-04-11 13:57:45 -04:00
Makoto Onuki
a2ea59c9bb Merge "Expose UserHandle.getIdentifier() to CTS." into oc-dev 2017-04-11 17:51:48 +00:00
TreeHugger Robot
e62e9a274a Merge "Import translations. DO NOT MERGE" into oc-dev 2017-04-11 17:49:39 +00:00
Jason Monk
be3235abcd Updates for QS DND tile
- Make detail panels not close when turned off
 - Add auto-rule state for DND tile

Test: manual
Change-Id: I533cf0a27c54e84cd74ede72dcf10e2e5f9a070f
Fixes: 34765805
2017-04-11 17:49:11 +00:00
Julia Reynolds
8ceb579ec7 Changing importance should record user locked field.
Test: runtest systemui
Change-Id: Ia200acb2e2a2b2163fd4a728a2bfc5430070c580
2017-04-11 13:25:47 -04:00
Roozbeh Pournader
f72b0eec6e Merge "Update fontchain_lint to test new emoji font" into oc-dev 2017-04-11 17:24:32 +00:00
Colin Cross
b666c16c15 Add missing transitive dependencies
Add android-support-v7-palette to SystemUI for
android-support-v7-mediarouter

Bug: 36902714
Test: m -j ANDROID_COMPILE_WITH_JACK=false checkbuild
Change-Id: I6aa18380fa338a01f73381ab0a3259ff94173ce1
(cherry picked from commit 2560663a1ed71b041e2de06918908a8f47153250)
2017-04-11 17:12:40 +00:00
Jason Monk
d24ecd9b5c Merge "Fix screen pinning in seascape" into oc-dev 2017-04-11 17:09:55 +00:00
Hyunyoung Song
72db7055b8 Change AOSP launcher icon mask
Test: manual
b/36854903

Change-Id: Ic8d014b2b726ff0d5daf6b33d8f13e65a5033795
2017-04-11 10:05:37 -07:00
Colin Cross
c12fde4f25 Update layoutlib to match java library changes
javalib.jar is now only used for jars that contain dex files, so
host java libraries are now always called classes.jar.  Update
layoutlib's custom rules to match.  Also remove built_ext_data,
the classes.jar in built_ext_classes already contains the
resources.

Bug: 36902714
Test: layoutlib-tests
Change-Id: I522d9e3786ad7deeb291c7c1a61ec4b86be03dc2
(cherry picked from commit 15d18782065c05d6566841da43ce311e5000eddd)
2017-04-11 10:02:54 -07:00
Siyamed Sinir
a6284a20b5 Do not enforce paragraph constraint for copy ctr
Update SpannableStringBuilder, SpannedString and SpannableString classes
so that they don’t enforce paragraph constraint for copy constructors.
If a paragraph constraint is not satisfied for a span, that span is not
copied. Before this change it would throw an exception.

Test: New tests added for SpannableStringBuilder and SpannableString
      cts-tradefed run cts -m CtsTextTestCases
Bug: 36511794

Change-Id: I62abf08a8d4fe7e342ed97b8e8c3a577a9397e39
2017-04-11 09:57:02 -07:00
Adrian Roos
601fe4aca3 Revert "AOD: Wake up fully on gestures by default"
Bug: 35909567
Bug: 30876804

This reverts commit d84a080e9488c97031fb19a88798c798fe48ac13.

Change-Id: Id51edce39967075cffe8fbe3860200cfe3a355ae
(cherry picked from commit ae4306edba13d07bf090f07fde109d0b83e2f1e5)
2017-04-11 16:54:01 +00:00
Todd Kennedy
bf297bcf29 Allow instant app resolution for any user
Change-Id: Iaf26cfda3a8226d97eb147b0a9e62f051b33e81b
Fixes: 37215608
Test: Swtich to secondary user and see that instant apps resolve and launch
2017-04-11 09:37:16 -07:00
TreeHugger Robot
5094caafc2 Merge "Hide ColorSpace.Renderer" into oc-dev 2017-04-11 16:22:57 +00:00
TreeHugger Robot
96d4ac0cc6 Merge "ImageReader/Writer: add usage flag support" into oc-dev 2017-04-11 16:17:16 +00:00
Jakub Pawlowski
326996916d Remove enable from PeriodicAdvertisingPariameters (1/2)
Instead of setting enable to true, one can just pass null
PeriodicAdvertisingParameters and achieve same result when starting the
set.
Passing the "enable" when updating the parameters make no sense, and
might be confusing.
Experience with "timeout" field, which was a part of AdvertiseSettings
show that merging fields that go into different HCI commands can cause
problems during processing, so keep enable as separate field.

Test: manual
Bug: 30622771
Change-Id: Ida02c59eb8433537179b4d22202fe745f8b4bb3e
(cherry picked from commit e6c453d828fec3df82708d2b0c3bb00bd0a0dbf8)
2017-04-11 09:13:38 -07:00
Jakub Pawlowski
1ab569d43f Bluetooth 5 fix default AdvertisingSetParameters values
Having advertiser be scannable and connectable by default is a bad
choice for new advertising set.

Bug: 30622771
Test: sl4a Bt5ScanTest
Change-Id: I4fc270e78ca4e62d3077c5cd28aa59b0518d2e77
(cherry picked from commit 010cc95583d6b93bdcc9cf7959f8470d109f8a3d)
2017-04-11 09:13:31 -07:00
Jakub Pawlowski
5203f76933 Bluetooth: fix comment wording
Test: manual
Bug: 30622771
Change-Id: I5a589c98553f35248b0d95d332e9f35774075b24
(cherry picked from commit e7f89b07e6fa3a99877af3298c2a80db23a591d7)
2017-04-11 09:13:18 -07:00
Fan Zhang
3151a09dac Merge "Update string description and char limits" into oc-dev 2017-04-11 16:11:36 +00:00
Makoto Onuki
cb8936eae9 Expose UserHandle.getIdentifier() to CTS.
This allows CTS to pass user IDs returned by APIs as UserHandle to various
ADB commands.

Test: Exposing as TestApi only; m -j
Change-Id: Iedba6d83b717baacf9e7cf97f1d32f93c191a5ca
2017-04-11 08:42:57 -07:00
Geoffrey Pitsch
cadb5dc537 Toast whenever a notification fails to post
Help developers find their missing notifications.
Incremental change to move towards an all-channel world.

Bug: 35378789
Test: runtest systemui-notification
Change-Id: Ie3f3e307ff1f6450f5fc8eb9e34e5f566614c1f9
2017-04-11 11:35:02 -04:00
Soonil Nagarkar
6b3be41e30 Fix foreground importance bug in LocationManagerService.
Bug: 37121975
Test: tested locally
Change-Id: I2563408d10edfac74d04d68116cbf2a2ac66e9a3
(cherry picked from commit ebda0286d4326c67d9e13202180f37ee41b5323a)
2017-04-11 15:33:57 +00:00
TreeHugger Robot
f4077aa374 Merge "Fix race condition in removeForegroundServiceFlag" into oc-dev 2017-04-11 15:32:12 +00:00
Andreas Gampe
3e1b6ad1e3 OtaDexOptService: Log post-reboot moves
Disable artifact checks for non-upgrade booting. Log the number of
successfully move artifacts.

(cherry picked from commit 95349c0e9664ec6392a959893f96390310e3b8a4)

Bug: 37158297
Test: m
Test: manual
Change-Id: Ic81531950582ce937e2e3b7815fb9132888d9a42
2017-04-11 08:24:37 -07:00
Pavel Grafov
73f747ba25 Improve javadocs for SecurityLog class.
Test: checked rendering in Intellij Idea quick doc tooltip.
Bug: 34213443
Change-Id: I108df5af5a9aa05d701f2db6e2b57280f9f134b8
2017-04-11 16:05:25 +01:00
Romain Guy
66d7da6a41 Hide ColorSpace.Renderer
Bug: 37073273
Test: Compile, make sure CTS does not rely on this API
Change-Id: Ia5d2638676be44464a173f904a21158c554b9ebf
2017-04-11 16:24:56 +02:00
Jason Monk
e763a26c11 Fix screen pinning in seascape
Test: visual
Change-Id: I7792d0f5f98e83f0b2fd57a831e82efa07533c2b
Fixes: 34072199
2017-04-11 14:16:06 +00:00
TreeHugger Robot
2d008a5fc1 Merge "Don't ensure config for activity that is about to be invisible" into oc-dev 2017-04-11 12:47:00 +00:00
Johan Toras Halseth
9d5f8e11e1 Add helptext to bu command.
bu is used by adb backup/restore, but since flags passed to these adb
commands are just forwarded to bu, we have no guarantee that the help
text for adb shows an up to date description of what bu can do. We
therefore add the help text to bu, such that it is easier to keep in
sync.

Test: adb shell bu help

Bug: 36170696
Change-Id: I8155d17b5c942ce19b981f4a157e7cc7810490ce
2017-04-11 11:49:34 +01:00
Chris Warrington
014d315653 AAPT2: expose return values through JNI.
Test: Tests for JNI in the studio-master-dev branch.
Change-Id: I709595aabf31c9c2fea659c7af20a5c50d1e3d34
2017-04-11 09:21:29 +00:00
TreeHugger Robot
62abe8f802 Merge "Remove .(ll)ndk suffix from (ll)ndk_library" into oc-dev 2017-04-11 07:22:25 +00:00
TreeHugger Robot
7a6df3b777 Merge "Move API for disabling an autofill service to the manager" into oc-dev 2017-04-11 06:10:13 +00:00
Jaewan Kim
329b35f231 Add documentation for 'am start-foreground-service'
Bug: 35263881
Test: manual (Checked the am help)
Change-Id: Ibd7bbfdb65cf61b7e86d861d5a4f85ea57377f22
2017-04-11 11:20:37 +09:00
Bill Yi
c639a10e1d Import translations. DO NOT MERGE
Change-Id: I8152cc56a3626db7cbafd758eeabf55a275acadc
Auto-generated-cl: translation import
2017-04-10 19:18:58 -07:00
Bryce Lee
068b429c34 Merge "Revert "ViewRootImpl: Fix child lifetime."" into oc-dev 2017-04-11 02:05:33 +00:00
Bryce Lee
16e5089eb5 Revert "ViewRootImpl: Fix child lifetime."
This reverts commit ba29dbc3b38d9efb743d6fa7f9f8c4bb75c38b28.

The original commit causes apps such as phone and clock to not wake the
device.

Fixes: 37197491
Change-Id: I1b45cafbcbf12991d8e1e716e4d1751cd077c556
2017-04-11 02:02:11 +00:00
Keun-young Park
cae7db3c9c Merge "ignore RemoteException from pm if shutdown is already on-going" into oc-dev 2017-04-11 01:48:26 +00:00
Mady Mellor
4c19760b91 Don't offer snooze for foreground service notifications
Also updates NotificationMenuRow tests to actually check if menu
was created.

Test: Manual, have foreground service, check if snooze is visible
Bug: 37152715
Change-Id: I09cf60598c3e8991f2da731da1ef7e0a718c3435
2017-04-10 18:30:27 -07:00
Jaekyun Seok
42d53f6b18 Bring back the priority feature for static RRO
Supporting the priority feature is requested by partners because they
want to layer RRO for their customers.
Applying the priority feature on non-static RRO isn't feasible because
their priority should be managed directly by users.

Test: building succeeded and tested on sailfish device.
Bug: 37185740
Change-Id: I8ef83c5e3178bd395ec7e6498764a535f24ef235
2017-04-11 10:29:34 +09:00
Jorim Jaggi
30d64f3a93 Revert "Revert "Handle case when snapshot dimensions don't match""
This reverts commit ba53d8ae410976709e1413b74173a791e8dead15.

Also fixes that we always had a size mismatch.

Test: TaskSnapshotSurfaceTest
Test: Open app in different orientation than snapshot, make sure
looks ok.

Bug: 36991071
Change-Id: If572b68fd72cec7679984fdff0be5905caba69f4
Fixes: 36703868
2017-04-10 18:10:44 -07:00
TreeHugger Robot
45fe7eef89 Merge "Ensure the system boots with a halfway sane time/date" into oc-dev 2017-04-11 01:05:43 +00:00
Nathan Harold
33dd867f86 Deprecate TelephonyManager.getCellLocation()
This API has been long-marked for deprecation. It has numerous problems:
-It does not support LTE
-It returns a limited subset of information
-It uses old (and poorly-chosen) sentinel values for fields that are
 not provided.

Bug: 36076138
Test: compilation
Change-Id: I87004710e5d046d4534ad3a0a938540440b0e83b
(cherry picked from commit c12d6c5983a11ca989a85dd553d11c3583ff7aaf)
2017-04-10 18:04:39 -07:00
Jaekyun Seok
467ef375b7 Rebase enabled overlays for every PackageParser.generateActivityInfo() call
PackageParser.generateActivityInfo() generates ApplicationInfo as well.
So enabled overlays should be rebased for the ApplicationInfo to keep
the overlay path info correctly.

Test: building succeeded and tested on sailfish device.
Bug: 37179769
Change-Id: I12727fd27c1d4cf37ad63b333792108a82efccd6
2017-04-11 09:53:42 +09:00
Svet Ganov
f20a037ba2 Move API for disabling an autofill service to the manager
Test: the topic has a CTS test

bug:37170723

Change-Id: I2be18968ea8df0fd3fb070fe2efc3e811b0e5a76
2017-04-10 17:43:44 -07:00
TreeHugger Robot
aedca2e55d Merge "Cache mEphemeralAppsDisabled state" into oc-dev 2017-04-11 00:43:39 +00:00
Adam Lesinski
ec8f353668 Merge "OverlayManagerService: Make broadcasts/updates explicit" into oc-dev 2017-04-11 00:04:41 +00:00