OSDN Git Service
TreeHugger Robot [Mon, 9 Oct 2017 18:01:54 +0000 (18:01 +0000)]
Merge "Decreases likelihood of AoD flickering" into oc-mr1-dev
Rubin Xu [Fri, 6 Oct 2017 11:07:32 +0000 (12:07 +0100)]
Always synchronize the OEM unlock allowed bit to the FRP partition
For devices using OEMLock HAL, OEM unlock allowed bit is maintained by the HAL.
However PersistentDataBlockService will only look at the OEM unlock allowed bit
on the pst partition to make sure FRP data is cleared on a unlockable device.
As a short term fix, make sure the OEM unlock allowed bit on both the HAL and pst
partition is always in sync.
Bug:
67043266
Test: On walleye/taimen, add an account, enable OEM unlock, factory reset
via fastboot, and observe FRP is not enforced.
Change-Id: Id4a0d81d7a424e17c2751e7e65582b51c14bd073
Bill Yi [Sun, 8 Oct 2017 22:57:14 +0000 (22:57 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dev am:
2758e3af09 -s ours
am:
748d6e3404 -s ours
Change-Id: I30d9c967e92847e096a29761cb275e3dcd631789
Bill Yi [Sun, 8 Oct 2017 22:45:57 +0000 (22:45 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dev
am:
2758e3af09 -s ours
Change-Id: I84cd6ad222b419aee8c31c26a07922dd5c7d6746
TreeHugger Robot [Sun, 8 Oct 2017 22:34:13 +0000 (22:34 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-mr1-dev
TreeHugger Robot [Sun, 8 Oct 2017 22:32:15 +0000 (22:32 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dev
TreeHugger Robot [Sun, 8 Oct 2017 22:30:10 +0000 (22:30 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-mr1-dev
Bill Yi [Sun, 8 Oct 2017 16:14:18 +0000 (09:14 -0700)]
Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import
Bug:
64712476
Change-Id: Id495007a4f0069772a79e8abbd5e1a8bcfe6db92
Bill Yi [Sun, 8 Oct 2017 16:01:34 +0000 (09:01 -0700)]
Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import
Bug:
64712476
Change-Id: I317a9c13c04792c41f276258c095813298379366
Bill Yi [Sun, 8 Oct 2017 14:57:18 +0000 (14:57 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dr1-dev
am:
1c5bd422fd -s ours
Change-Id: I44be0362b31a91c724b7d5c8da7778bbdfc30990
TreeHugger Robot [Sun, 8 Oct 2017 14:52:12 +0000 (14:52 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-mr1-dev
TreeHugger Robot [Sun, 8 Oct 2017 14:50:51 +0000 (14:50 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dr1-dev
Bill Yi [Sun, 8 Oct 2017 14:23:51 +0000 (14:23 +0000)]
Import translations. DO NOT MERGE am:
80d87da085 -s ours am:
d250d3aa34 -s ours am:
09e6f1457b -s ours
am:
581e056425 -s ours
Change-Id: I2f31ca4fff4afedcabc66f2492c7252175c42733
Bill Yi [Sun, 8 Oct 2017 14:16:28 +0000 (14:16 +0000)]
Import translations. DO NOT MERGE am:
80d87da085 -s ours am:
d250d3aa34 -s ours
am:
09e6f1457b -s ours
Change-Id: I7010ae3bb92d9ec2adaa9eba4509ad2b713ecee7
Bill Yi [Sun, 8 Oct 2017 14:08:20 +0000 (14:08 +0000)]
Import translations. DO NOT MERGE am:
80d87da085 -s ours
am:
d250d3aa34 -s ours
Change-Id: I8b02ede43b1430713761f1ff89c7c864ef6ae4a7
Bill Yi [Sun, 8 Oct 2017 14:00:50 +0000 (14:00 +0000)]
Import translations. DO NOT MERGE
am:
80d87da085 -s ours
Change-Id: I7b560ea83669c408725cf2e7d6e1a7c3d7eb191f
Bill Yi [Sun, 8 Oct 2017 13:22:24 +0000 (06:22 -0700)]
Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import
Bug:
64712476
Change-Id: Ib770e076ec7294e42933896d1efb298912f1526c
Bill Yi [Sun, 8 Oct 2017 12:20:08 +0000 (05:20 -0700)]
Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import
Bug:
64712476
Change-Id: I4940cd7a3d5708a6e8091aad241320bf1eb15c8c
Bill Yi [Sun, 8 Oct 2017 12:07:09 +0000 (05:07 -0700)]
Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import
Bug:
64712476
Change-Id: I5d2a9d7f5d6f92f18b5433594c37cdecd9f8fe0c
Bill Yi [Sun, 8 Oct 2017 07:08:47 +0000 (07:08 +0000)]
Import translations. DO NOT MERGE
am:
87c4d55ccb -s ours
Change-Id: I088ba3df3f4339070c1f26929815b3827403dd18
TreeHugger Robot [Sun, 8 Oct 2017 06:59:49 +0000 (06:59 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-mr1-dev
Bill Yi [Sun, 8 Oct 2017 04:49:36 +0000 (21:49 -0700)]
Import translations. DO NOT MERGE
Change-Id: Ibfe6303b4d78d1ac0c8a0dbb235c6be683504018
Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import
Bill Yi [Sun, 8 Oct 2017 00:23:29 +0000 (17:23 -0700)]
Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import
Bug:
64712476
Change-Id: I944d5c1ac050fe65d777b815adb59f5d6536811a
Bill Yi [Sun, 8 Oct 2017 00:14:24 +0000 (17:14 -0700)]
Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import
Bug:
64712476
Change-Id: If025d5171c5b4109c98d13b8cf6df3073f2687e5
TreeHugger Robot [Sat, 7 Oct 2017 17:34:40 +0000 (17:34 +0000)]
Merge "Fixed an issue where added icons were white in multiwindow" into oc-mr1-dev
TreeHugger Robot [Sat, 7 Oct 2017 02:37:06 +0000 (02:37 +0000)]
Merge "Add keyguard state as a gate for VR Mode." into oc-mr1-dev
TreeHugger Robot [Sat, 7 Oct 2017 01:02:50 +0000 (01:02 +0000)]
Merge "Add permissions for LiveTv (AOSP)" into oc-mr1-dev
TreeHugger Robot [Sat, 7 Oct 2017 00:25:13 +0000 (00:25 +0000)]
Merge "Update ANOMALY_DETECTION_CONSTANTS javadoc." into oc-mr1-dev
TreeHugger Robot [Fri, 6 Oct 2017 23:29:32 +0000 (23:29 +0000)]
Merge "Add comment about flag VIRTUAL_DISPLAY_FLAG_DESTROY_CONTENT_ON_REMOVAL as recommended." into oc-mr1-dev
Santos Cordon [Thu, 5 Oct 2017 18:31:15 +0000 (11:31 -0700)]
Add keyguard state as a gate for VR Mode.
Problem: When the user toggles power button while in VR, they will be
taken to a black VR screen that occludes the keyguard.
VRManager previously used wakefulness and screen off as gates for VR Mode. However,
the keyguard state can be on or off when the device is awake so we need
to listen to the keyguard state as well.
Change:
1) Have ActivityManagerService tell VrManagerService about the keyguard
state the same as it does with wakefulness.
2) Stop applying any pending states when the device comes out of
sleep/screen-off/keyguard to force user into putting-headset-on (DON) UX
in those situations.
Bug:
66696304
Test: Manual - toggle device's power button and see logs of keyguard.
Test with all keyguard types.
Change-Id: I4ae03cb1c8c13acdc8cd11839f178bc8d8f6f515
Lucas Dupin [Fri, 6 Oct 2017 22:21:57 +0000 (15:21 -0700)]
Decreases likelihood of AoD flickering
The transition from display power modes isn't tightly coupled
to the AoD lifecycle. We rely on a timeout to show and hide
the sysui scrim. In this case we increased it.
Change-Id: I13a0d33205c9f904afced63f231176151aee15c4
Fixes:
64077859
Test: receive notificaition in AoD, observe.
Bryce Lee [Fri, 6 Oct 2017 21:58:50 +0000 (21:58 +0000)]
Merge "Restrict sending new intent to one invocation." into oc-mr1-dev
Andrew Sapperstein [Fri, 6 Oct 2017 01:23:13 +0000 (18:23 -0700)]
Update ANOMALY_DETECTION_CONSTANTS javadoc.
Adds more of the supported parameters including the new
wakeup blacklist parameter.
Bug:
67000019
Test: is comment change
Change-Id: Iee80b5cbf7972860e87efd5551bce962a3fa03c5
Shubang [Fri, 6 Oct 2017 01:31:00 +0000 (18:31 -0700)]
Add permissions for LiveTv (AOSP)
It crashes without the permissions
Bug:
67474061
Test: make; flashall; install and open LiveTv;
Change-Id: Ifec8bfb4ee93ac6b9189a9c337fdd2ef9ec34537
Selim Cinek [Fri, 6 Oct 2017 20:37:32 +0000 (13:37 -0700)]
Fixed an issue where added icons were white in multiwindow
Because it wasn't laid out yet, icons would appear white.
Change-Id: I9338966299de253f36ae325553e82b76defe3b9d
Fixes:
66711268
Test: add icon with light statusbar in multiwindow, icon looks normal
rongliu [Fri, 6 Oct 2017 18:01:02 +0000 (11:01 -0700)]
Add comment about flag VIRTUAL_DISPLAY_FLAG_DESTROY_CONTENT_ON_REMOVAL
as recommended.
Change-Id: I3778eed6f91e3ebf70683f40389c605648444b99
Bug:
67420451
Test: Only add comment.
Leon Scroggins III [Fri, 6 Oct 2017 17:49:02 +0000 (17:49 +0000)]
Merge "Stop explicitly using kCallerPasses_Ownership" into nyc-dev am:
cfe2352d88 am:
2399d935bc am:
f32424b90d am:
54c2cbb0f9 am:
85a68d9e71 -s ours am:
d9c818dce4 -s ours
am:
497520a1e8 -s ours
Change-Id: I636624656ef7f6b51b334f524554c0cd40833c04
Leon Scroggins III [Fri, 6 Oct 2017 17:28:40 +0000 (17:28 +0000)]
Merge "Stop explicitly using kCallerPasses_Ownership" into nyc-dev am:
cfe2352d88 am:
2399d935bc am:
f32424b90d am:
54c2cbb0f9 am:
85a68d9e71 -s ours
am:
d9c818dce4 -s ours
Change-Id: Ib0e20e79c8d9708845aede08f86d17bb08855642
Leon Scroggins III [Fri, 6 Oct 2017 17:10:50 +0000 (17:10 +0000)]
Merge "Stop explicitly using kCallerPasses_Ownership" into nyc-dev am:
cfe2352d88 am:
2399d935bc am:
f32424b90d am:
54c2cbb0f9
am:
85a68d9e71 -s ours
Change-Id: I09f8c134edef5c4cf67805faaf8cd56cae65ed69
Leon Scroggins III [Fri, 6 Oct 2017 16:53:46 +0000 (16:53 +0000)]
Merge "Stop explicitly using kCallerPasses_Ownership" into nyc-dev am:
cfe2352d88 am:
2399d935bc am:
f32424b90d
am:
54c2cbb0f9
Change-Id: Iae83cebe615d0df3a6f2c6bdee6f8002d3ae82b0
Bryce Lee [Fri, 6 Oct 2017 00:20:25 +0000 (17:20 -0700)]
Restrict sending new intent to one invocation.
A special condition, where the new intent is delivered outside
the normal logic flow, was extended to included documents as well.
This can lead to any intent marked with the document launch flag
sending the intent in this block as well as the normal flow.
This changelist restricts the number of times the intent can be
sent to once during each activity start.
Change-Id: If1e62527d260cbe5ff170680695b03d9de532c09
Fixes:
67367621
Test: open Photos link in gmail twice
Test: cts/hostsidetests/services/activityandwindowmanager/util/run-test CtsAppTestCases android.app.cts.NewDocumentTest
Leon Scroggins III [Fri, 6 Oct 2017 16:32:10 +0000 (16:32 +0000)]
Merge "Stop explicitly using kCallerPasses_Ownership" into nyc-dev am:
cfe2352d88 am:
2399d935bc
am:
f32424b90d
Change-Id: I405bee24b11319430e3490f3299d9c8b6438e407
Leon Scroggins III [Fri, 6 Oct 2017 16:18:49 +0000 (16:18 +0000)]
Merge "Stop explicitly using kCallerPasses_Ownership" into nyc-dev am:
cfe2352d88
am:
2399d935bc
Change-Id: Ib219c4c5299b681b6f3858cb67c70a7fd9110f20
Selim Cinek [Fri, 6 Oct 2017 16:09:29 +0000 (16:09 +0000)]
Merge "Fixed a bug where the order of the icons was wrong" into oc-mr1-dev
Leon Scroggins III [Fri, 6 Oct 2017 16:06:34 +0000 (16:06 +0000)]
Merge "Stop explicitly using kCallerPasses_Ownership" into nyc-dev
am:
cfe2352d88
Change-Id: Id7d59d95e8f5dfa68f7ff55ca5729a11a1fdf1d0
Jean-Michel Trivi [Fri, 6 Oct 2017 15:57:16 +0000 (15:57 +0000)]
Merge "AudioService: log focus changes and limit focus stack size" into oc-mr1-dev
TreeHugger Robot [Fri, 6 Oct 2017 15:45:37 +0000 (15:45 +0000)]
Merge "Stop explicitly using kCallerPasses_Ownership" into nyc-dev
TreeHugger Robot [Fri, 6 Oct 2017 14:38:42 +0000 (14:38 +0000)]
Merge "Add a flag to virtual display to indicates that content on this display need to be destroyed once the display is removed. Then apply this flag to VR virtual display." into oc-mr1-dev
TreeHugger Robot [Fri, 6 Oct 2017 07:21:43 +0000 (07:21 +0000)]
Merge "Log NAT update descriptions when receiving netlink errors" into oc-mr1-dev
Mike Ma [Fri, 6 Oct 2017 07:01:36 +0000 (07:01 +0000)]
Merge "Add AOD metrics in batterystats" into oc-mr1-dev
TreeHugger Robot [Fri, 6 Oct 2017 05:20:14 +0000 (05:20 +0000)]
Merge "Use rotation from MediaMetadataRetriever directly" into oc-mr1-dev
Erik Kline [Fri, 6 Oct 2017 03:56:55 +0000 (12:56 +0900)]
Log NAT update descriptions when receiving netlink errors
Test: as follows
- built
- flashed
- booted
- runtest frameworks-net passes
- new logging messages observed
2017-10-06T13:15:25.190 - [OffloadController] ERROR Error updating NAT conntrack entry >TCP (192.168.43.222, 58054) -> (198.35.26.112, 443)<: android.system.ErrnoException: NetlinkErrorMessage{...
Bug:
29337859
Bug:
32163131
Bug:
64976634
Bug:
67396342
Change-Id: Ie05d4e6588d75f8a9798f40b68a317e24b3b5050
Mike Ma [Tue, 19 Sep 2017 23:06:03 +0000 (16:06 -0700)]
Add AOD metrics in batterystats
Fixes:
64899521
Test: manual - flash build, reset batteryStats, use device > 1 hr
with alternating pattern between screen on/off/AOD. Dump stats, check
all screen related stats look normal, esp. record matches actual time
spent in each screen state. In raw bugreport:
Search "amount discharged" for % discharge;
Search "Screen on/off/doze discharge" for mAh discharge;
Search "time on battery" for up/real time in each state.
Test: Added two unit tests for note AOD screen state
Merged-In: I7193a36751124dd380818b2b665303c0f0d8c984
Change-Id: I51cead7f92abd9e4c620f7dfde393993cdad494e
Selim Cinek [Fri, 6 Oct 2017 00:12:18 +0000 (17:12 -0700)]
Fixed a bug where the order of the icons was wrong
Because the normal order would not factor in the
yTranslation.
Change-Id: Ie37b69ee5187c4f4bd58f90d8297cf73b7a4ed53
Fixes:
67017075
Test: swipe through notification in statusbar, observe right ordering
gopinath [Sat, 16 Sep 2017 01:09:02 +0000 (18:09 -0700)]
Avoid spaces in the trace file names.
Having spaces in the trace file names introduces slashes in the
file names and not able to pull the file names with the slashes
from the device.So avoid having spaces while constructing the
trace file names.
Bug : b/
65737738
Change-Id: Ie1971566586f77d18b17722ce0e3cc9ef3ebfdd3
(cherry picked from commit
3f04fb1bcf168e5ea8aae090f86b9122189c6390)
Chong Zhang [Thu, 5 Oct 2017 22:12:36 +0000 (15:12 -0700)]
Use rotation from MediaMetadataRetriever directly
MediaMetadataRetriever now reports rotation in clockwise,
no longer need to translate.
bug:
67470228
Test: verified rotation using test app attached in bug
Change-Id: Ifebcf25ea302477818e2e03db1e55525db985e67
Jean-Michel Trivi [Thu, 5 Oct 2017 19:19:23 +0000 (12:19 -0700)]
AudioService: log focus changes and limit focus stack size
Log audio focus request and abandon commands.
Limit the size of the audio focus stack to prevent malicious
applications trying to run the process out of memory.
Test: use media apps and speech reco, check dumpsys audio
Bug:
67055749
Change-Id: I529529fe40f33a8f67c64c3c61ba22d9530fb4d9
Ruben Brunk [Thu, 5 Oct 2017 20:30:47 +0000 (13:30 -0700)]
Fix NPE in dumpsys logs.
Bug:
67460310
Bug:
66967700
Test: adb shell dumpsys vrmanager
Change-Id: I008717663dd5ae4fe99ca62f631794a56ca2eb12
Ruben Brunk [Tue, 3 Oct 2017 22:39:41 +0000 (15:39 -0700)]
Change recovery logic for services bound by VrManagerService.
- On AIO VR devices (where live VR services are required to render
anything), reconnect to the VrListenerService and VR compositor service
indefinitely and never leave VR + persistent mode.
- On smartphone VR devices, do not reconnect if the VrListenerService
dies for any reason, instead immediately leave VR + persistent mode. If
the VR compositor dies, reconnect a limited number of times. The
expectation is that the VrListenerService process will detect the
compositor crashes separately (via a shared service binding), and chose
to either attempt to fall back to a previous render path or simply
propagate the crash and leave VR mode entirely.
- Update dumpsys logging to include lifecycle events from the
VrListenerService and VR compositor service.
Bug:
66967700
Test: Manual test with VrCore APK by logging when the VR services are
connected and killing each VrCore process from ADB shell.
e.g.:
- Repeatedly kill the VrCore main process.
- Repeatedly kill the VrCore compositor process.
- Repeatedly kill both processes.
Change-Id: I8952b872b39102a601f66bc6624fc0ad92ca0f30
TreeHugger Robot [Thu, 5 Oct 2017 03:53:44 +0000 (03:53 +0000)]
Merge "Bind VR compositor service from VrManagerService." into oc-mr1-dev
TreeHugger Robot [Thu, 5 Oct 2017 01:05:55 +0000 (01:05 +0000)]
Merge "Add isOpenNetwork() to WifiConfiguration." into oc-mr1-dev
TreeHugger Robot [Thu, 5 Oct 2017 00:51:50 +0000 (00:51 +0000)]
Merge "Fix race condition when entering low persistence mode" into oc-mr1-dev
rongliu [Thu, 5 Oct 2017 00:30:30 +0000 (17:30 -0700)]
Add a flag to virtual display to indicates that content on this
display need to be destroyed once the display is removed.
Then apply this flag to VR virtual display.
Change-Id: Icb5aa1280b6ebac5941afda1cc1b94b258ce44f4
Bug:
67420451
Test: Manually. "adb shell am stack list" does not show contents
from virtual display anymore after it's released.
TreeHugger Robot [Thu, 5 Oct 2017 00:34:02 +0000 (00:34 +0000)]
Merge "Hides the statusbar in recents for low ram devices" into oc-mr1-dev
TreeHugger Robot [Thu, 5 Oct 2017 00:08:53 +0000 (00:08 +0000)]
Merge "Update Settings properly when no Spell Checker is available." into oc-mr1-dev
Calin Juravle [Wed, 4 Oct 2017 23:59:10 +0000 (23:59 +0000)]
Merge "[framework] Compile secondary dex files in isolation" into oc-mr1-dev
TreeHugger Robot [Wed, 4 Oct 2017 23:48:04 +0000 (23:48 +0000)]
Merge "Finalize resource IDs for O-MR1" into oc-mr1-dev
TreeHugger Robot [Wed, 4 Oct 2017 23:35:51 +0000 (23:35 +0000)]
Merge "Disable seamless-rotation when other windows are visible." into oc-mr1-dev
Karthik Ravi Shankar [Wed, 4 Oct 2017 20:30:13 +0000 (13:30 -0700)]
Fix race condition when entering low persistence mode
The problem is that -
1) When the device enters a VR activity directly from screen off, there
is a chance the device is not in low persistence mode and ghosting is
really bad.
2) LocalDisplayAdapter gets to know that the device is in VR mode later
than PowerManagerService due to scheduling of it's runnable.
3) The call to Lights HAL to change the display mode only is made only
when there is a brightness change.
4) This opens up a race condition where the PowerManagerService knows device
is in VR mode and changes the brightness to VR brightness before the
LocalDisplayAdapter knows about the VR mode change.
5) Since there is no more brightness change to be done, the device is
not in low persistence mode creating really bad UX.
Fix is to trigger a brightness change call when there is a Display state
change so that LocalDisplayAdapter sets the low persistence mode
correctly always.
Bug:
67114120
Test:
1) Lock and unlock to VR puts the device in low persistence mode
correctly always.
2) Lock and unlock in normal mode changes brightness correctly.
3) Even with lockscreen, all of the use cases above work correctly.
Change-Id: Ic0e6d92ba145aaa94f86e6d53ab5aa08cbbae10c
Signed-off-by: Karthik Ravi Shankar <karthikrs@google.com>
TreeHugger Robot [Wed, 4 Oct 2017 22:17:11 +0000 (22:17 +0000)]
Merge "Sets AutofillClient on attachBaseContext()" into oc-mr1-dev
Matthew Ng [Wed, 4 Oct 2017 21:18:30 +0000 (14:18 -0700)]
Hides the statusbar in recents for low ram devices
When entering recents on a low ram device, the system will hide the
statusbar to match the spec (go/android-go-recents).
Test: manual - enter recents
Bug:
67346921
Change-Id: I180899560aa1379b0a68cf63ae9b780fdef1746d
Brad Ebinger [Wed, 4 Oct 2017 21:42:33 +0000 (21:42 +0000)]
Merge "Adds a filtering bitmask to DownloadStateCallback" into oc-mr1-dev
Robert Carr [Mon, 2 Oct 2017 20:00:55 +0000 (13:00 -0700)]
Disable seamless-rotation when other windows are visible.
Was never supported but has gotten more horrific for whatever reason.
Bug:
65612427
Change-Id: I25758f40876c76a6daaf6330ed7cfa84c759fc0f
Adam Lesinski [Wed, 4 Oct 2017 21:02:24 +0000 (14:02 -0700)]
Finalize resource IDs for O-MR1
Bug:
65543844
Test: manual
Merged-In: Ic1fd1278373a5f7486e214d3f7f4c13515edb9f9
Change-Id: Ic1fd1278373a5f7486e214d3f7f4c13515edb9f9
Calin Juravle [Wed, 4 Oct 2017 17:53:09 +0000 (10:53 -0700)]
[framework] Compile secondary dex files in isolation
The class loader context adds the overhead of extracting in-memory and
possibly extra verification which is being frowned upon when the loading
happens on the UI thread. Revert the correct fix of compiling secondary
dex files with their loading context until b/
64530081 is done.
Partial revert of commit
f1ff36f0f99ebb41d0c7e0f3248506a56998fa3f.
Test: adb shell cmd package compile -m quicken -f --secondary-dex
com.google.android.gms
Bug:
64530081
Bug:
66984396
Change-Id: Ib2815ce67b224883fe95c28d1424103e56342c6e
TreeHugger Robot [Wed, 4 Oct 2017 20:02:19 +0000 (20:02 +0000)]
Merge "Improved javadocs for Autofill save workflow." into oc-mr1-dev
Brad Ebinger [Wed, 4 Oct 2017 19:55:34 +0000 (19:55 +0000)]
Merge "Remove verification for DownloadReceiver when failure" into oc-mr1-dev
Yohei Yukawa [Wed, 4 Oct 2017 19:39:53 +0000 (19:39 +0000)]
Merge "Select only preinstalled Spell Checker Services" into oc-mr1-dev
Felipe Leme [Wed, 4 Oct 2017 16:56:21 +0000 (09:56 -0700)]
Sets AutofillClient on attachBaseContext()
When an activity overrides attachBaseContext(), the attached context must share
the same AutofillCient, otherwise it will break autofill in the activity.
Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases -t android.autofillservice.cts.AttachedContextActivityTest
Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases
Fixes:
67350639
Change-Id: I6b0c4c2fab5fa68eb6ee0714e107ca0816efb2cb
Brad Ebinger [Wed, 4 Oct 2017 18:35:12 +0000 (18:35 +0000)]
Merge "Decouple Content Name Locale from Content Language Locale" into oc-mr1-dev
Jean-Michel Trivi [Wed, 4 Oct 2017 18:33:42 +0000 (18:33 +0000)]
Merge "AudioService: log ducking and incall muting of audio players" into oc-mr1-dev
Brad Ebinger [Fri, 29 Sep 2017 22:12:08 +0000 (15:12 -0700)]
Adds a filtering bitmask to DownloadStateCallback
Adds the ability for an EMBMS app to specify a filtering
bitmask to DownloadStateCallback, which is used to filter
out callbacks that the EMBMS app doesn't need to listen
to.
Test: Testapps
Bug:
67112896
Merged-In: Iab96a457f45f759267b9a5a41df533c9988ede94
Change-Id: Id7f26ba3c3606c644b0ca3376df1107f5834facb
Jeremy Joslin [Tue, 3 Oct 2017 19:25:43 +0000 (12:25 -0700)]
Add isOpenNetwork() to WifiConfiguration.
Bug:
65639900
Test: ./frameworks/base/wifi/tests/runtests.sh
Change-Id: I6ebd09b348473f9aa0394de289fd77f279e878a8
Guliz Tuncay [Thu, 17 Aug 2017 22:25:38 +0000 (15:25 -0700)]
Update Settings properly when no Spell Checker is available.
Currently, Settings is not being updated properly when the current spell
checker service is removed or disabled and there is no other spell
checker service available. The correct behavior is that Secure.Settings
should be updated with empty string to indicate there is no selected
spell checker service.
Bug:
64812014
Fixes:
67412078
Test: Manually as follows:
0. Make sure AOSP keyboard is installed.
1. adb shell settings put --user 0 secure selected_spell_checker com.android.inputmethod.latin/.spellcheck.AndroidSpellCheckerService
2. tapas SampleSpellCheckerService
3. make -j
4. adb install --user 0 -r out/target/product/generic/system/app/SampleSpellCheckerService/SampleSpellCheckerService.apk
5. adb shell pm disable com.android.inputmethod.latin
6. adb shell settings get --user 0 secure selected_spell_checker
-> com.example.android.samplespellcheckerservice/.SampleSpellCheckerService
7. adb uninstall com.example.android.samplespellcheckerservice
8. adb shell settings get --user 0 secure selected_spell_checker
-> empty
9. adb root
10. adb shell settings get --user 0 secure selected_spell_checker
-> empty
11. adb shell pm enable com.android.inputmethod.latin
12. adb shell settings get --user 0 secure selected_spell_checker
Change-Id: I30902a3d94f2ddef33f4a8067799e98322ae3a03
Merged-In: I30902a3d94f2ddef33f4a8067799e98322ae3a03
(manual cherrypick of
83a7330bbe8ee1e8fcaa88ba2fb5e4cb3154c790)
Guliz Tuncay [Wed, 16 Aug 2017 19:02:31 +0000 (12:02 -0700)]
Select only preinstalled Spell Checker Services
When we are setting a new spell checker as the default one in
Secure.Settings, TSMS#findAvailSpellCheckerLocked can pick up
any available spell checker service. This violates the principle
that user should be warned whenever we are setting an untrusted
spell checker service as the default service, since the warning
dialog is never shown.
Bug:
64764051
Fixes:
67410643
Test: Manually as follows:
0. Make sure AOSP keyboard is pre-installed.
1. adb shell settings put --user 0 secure selected_spell_checker com.android.inputmethod.latin/.spellcheck.AndroidSpellCheckerService
2. tapas SampleSpellCheckerService
3. make -j
4. adb install --user 0 -r out/target/product/generic/system/app/SampleSpellCheckerService/SampleSpellCheckerService.apk
5. adb shell pm disable com.android.inputmethod.latin
6. adb shell settings get --user 0 secure selected_spell_checker
-> com.android.inputmethod.latin/.spellcheck.AndroidSpellCheckerService
7. adb reboot
8. adb shell settings get --user 0 secure selected_spell_checker
-> com.android.inputmethod.latin/.spellcheck.AndroidSpellCheckerService
Change-Id: I298ffbcfa5e32f43753f54fbebc40a414a5c0f9e
Merged-In: I298ffbcfa5e32f43753f54fbebc40a414a5c0f9e
(manual cherrypick of
0f0a37ba7def8db2c3e0ff1d7d8a30360e889f3f)
Eric Laurent [Wed, 4 Oct 2017 14:45:01 +0000 (14:45 +0000)]
Merge "Fix Cell broadcast sound in total silence" into oc-mr1-dev
TreeHugger Robot [Wed, 4 Oct 2017 12:40:39 +0000 (12:40 +0000)]
Merge "Fix NPE in ActivityThread" into oc-mr1-dev
Sudheer Shanka [Wed, 4 Oct 2017 06:47:13 +0000 (06:47 +0000)]
Merge "Update NPMS to inform NMS of the changes in fw rules synchronously." into oc-mr1-dev
Ruben Brunk [Tue, 3 Oct 2017 06:51:25 +0000 (23:51 -0700)]
Bind VR compositor service from VrManagerService.
- Allow VR system application to have VR manager service bind a
compositor process so that oom scoring for the compositor process can be
adjusted.
Bug:
38390640
Test: Check that the VrCore compositor process is -700 on AIO devices with:
adb shell procrank -o
Change-Id: I7b5bce5eb87bd5ed0fdeadf4ec7bdd2b361ab875
TreeHugger Robot [Wed, 4 Oct 2017 00:57:04 +0000 (00:57 +0000)]
Merge "Fixes rounded corners for clear all button on low ram devices" into oc-mr1-dev
TreeHugger Robot [Wed, 4 Oct 2017 00:21:37 +0000 (00:21 +0000)]
Merge "Fixed URL used on sample." into oc-mr1-dev
Sudheer Shanka [Tue, 3 Oct 2017 16:43:20 +0000 (09:43 -0700)]
Update NPMS to inform NMS of the changes in fw rules synchronously.
Currently, NPMS informs NMS synchronously at some events and
asynchronously at some others. If these sync and async calls get
interleaved, then NMS will end up in an inconsistent state.
In N-MR1, NPMS was updated to inform NMS asynchronously to avoid some
lock contentions during screen unlock. This shouldn't be a problem any more
since NPMS no longer updates its internal state on ui thread and also
netd calls have been optimized from ~50ms to ~7ms since then.
Bug:
66015813
Test: cts-tradefed run singleCommand cts-dev -m CtsHostsideNetworkTests -t \
com.android.cts.net.HostsideRestrictBackgroundNetworkTests
Change-Id: I24ccb5819430f19014630e7b90cba1f0b993e430
Matthew Ng [Tue, 3 Oct 2017 22:17:16 +0000 (15:17 -0700)]
Fixes rounded corners for clear all button on low ram devices
Fixed rounded corners for clear all button by using a themed
background color on a shape with rounded corners instead of
programmatically changing the background color.
Change-Id: Iaaf4f0d94d417b0064c7e6bf4895b49d9fa6561f
Fixes:
67368134
Test: manual - go to recents and scroll up to show clear all button
Felipe Leme [Tue, 3 Oct 2017 21:48:43 +0000 (14:48 -0700)]
Fixed URL used on sample.
Test: nope!
Bug:
66963249
Change-Id: Ieb46c00d97c8657a4e7498a8136c6da46760fbdd
TreeHugger Robot [Tue, 3 Oct 2017 21:24:48 +0000 (21:24 +0000)]
Merge "AAPT2: Fix R.java styleable + indices ordering" into oc-mr1-dev
TreeHugger Robot [Tue, 3 Oct 2017 21:24:16 +0000 (21:24 +0000)]
Merge "AAPT2: Preserve line numbers when deserializing from binary XML" into oc-mr1-dev
Felipe Leme [Tue, 3 Oct 2017 18:41:52 +0000 (11:41 -0700)]
Improved javadocs for Autofill save workflow.
Test: ran 'm -j doc-comment-check-docs' and checked resulting HTML
Bug:
67367585
Change-Id: I25e0f2f6667a4fad6e039f9518c973bac0bc8c7c
Brad Ebinger [Fri, 29 Sep 2017 18:04:05 +0000 (11:04 -0700)]
Remove verification for DownloadReceiver when failure
When the ACTION_DOWNLOAD_RESULT_INTERNAL intent is received
with a failure result, don't require that extras exist
in the receiver.
Test: Manual, Testapps
Bug:
67112896
Merged-In: I9ce32afc0c6e99b0a61e05a2d2b65855f054abd9
Change-Id: I9ac43a33aff88755cbc804890ce230743195f44d
Brad Ebinger [Fri, 29 Sep 2017 01:00:46 +0000 (18:00 -0700)]
Decouple Content Name Locale from Content Language Locale
There was an assumption that content language Locale was
a 1:1 mapping with content locale name, which is not the
case. This change separates the two and provides a new
API for retreiving the set of Locales for content name.
Test: Manual
Bug:
67112896
Merged-In: If87094f15e3a1dfe36d37745ed3d2cf79cc441f1
Change-Id: I44cb527ceb77fe321500f9d5fc00f6880ee52cb7
TreeHugger Robot [Tue, 3 Oct 2017 20:23:32 +0000 (20:23 +0000)]
Merge "Foreground service notis must be correctly formed." into oc-mr1-dev