OSDN Git Service

android-x86/frameworks-base.git
6 years agorelease-request-a41f1f54-b764-45d4-b9ce-16ae3001be88-for-git_oc-mr1-release-4362737...
android-build-team Robot [Wed, 27 Sep 2017 07:34:04 +0000 (07:34 +0000)]
release-request-a41f1f54-b764-45d4-b9ce-16ae3001be88-for-git_oc-mr1-release-4362737 snap-temp-L87100000106492125

Change-Id: I464b4ce9e6b50415f73cf917ec568071a1b2f563

6 years agoMerge "Do not throw on call to isTetheringSupported w/o permission" into oc-mr1-dev
Chalard Jean [Wed, 27 Sep 2017 02:04:33 +0000 (02:04 +0000)]
Merge "Do not throw on call to isTetheringSupported w/o permission" into oc-mr1-dev

6 years agoMerge "AudioService: Don't honour SCO ON request if SCO is not connected" into oc...
TreeHugger Robot [Wed, 27 Sep 2017 01:52:54 +0000 (01:52 +0000)]
Merge "AudioService: Don't honour SCO ON request if SCO is not connected" into oc-mr1-dev

6 years agoMerge "Fix spelling mistake in dumpsys output" into oc-mr1-dev
TreeHugger Robot [Wed, 27 Sep 2017 01:14:35 +0000 (01:14 +0000)]
Merge "Fix spelling mistake in dumpsys output" into oc-mr1-dev

6 years agoMerge "Remove obsolete & broken handling of precompiled sys apps" into oc-mr1-dev
TreeHugger Robot [Wed, 27 Sep 2017 00:13:22 +0000 (00:13 +0000)]
Merge "Remove obsolete & broken handling of precompiled sys apps" into oc-mr1-dev

6 years agoMerge "Added missing quote (") on anchor tag." into oc-mr1-dev
Felipe Leme [Tue, 26 Sep 2017 23:35:41 +0000 (23:35 +0000)]
Merge "Added missing quote (") on anchor tag." into oc-mr1-dev

6 years agoMerge "Adjusted chooser padding so 2nd line isn't cutoff." into oc-mr1-dev
TreeHugger Robot [Tue, 26 Sep 2017 23:14:08 +0000 (23:14 +0000)]
Merge "Adjusted chooser padding so 2nd line isn't cutoff." into oc-mr1-dev

6 years agoMerge "Don't convert all sounds to vibrations in vibrate mode" into oc-mr1-dev
TreeHugger Robot [Tue, 26 Sep 2017 23:04:24 +0000 (23:04 +0000)]
Merge "Don't convert all sounds to vibrations in vibrate mode" into oc-mr1-dev

6 years agoMerge "Shorter notification text on AoD" into oc-mr1-dev
TreeHugger Robot [Tue, 26 Sep 2017 22:48:42 +0000 (22:48 +0000)]
Merge "Shorter notification text on AoD" into oc-mr1-dev

6 years agoMerge "Fix crash when creating a HW Bitmap on a detached view" into oc-mr1-dev
Doris Liu [Tue, 26 Sep 2017 21:46:42 +0000 (21:46 +0000)]
Merge "Fix crash when creating a HW Bitmap on a detached view" into oc-mr1-dev

6 years agoRemove obsolete & broken handling of precompiled sys apps
Calin Juravle [Tue, 26 Sep 2017 01:13:38 +0000 (18:13 -0700)]
Remove obsolete & broken handling of precompiled sys apps

During the times we used verify-profile for OTAs we had to ensure that
prebuilds do not regress by verifying at runtime. For that we added a
hackish check in PMS.

Now, we no longer use verify-profile and we have no configuration which
will leave the prebuilds unverified (assume-verify does not count here).
So, we can remove this check which blocks system apps to be compiled with
speed-profile.

(Also worth mentioning that
!Environment.getReferenceProfile(pkg.packageName).exists() was broken...
most likely because of an SElinux policy update which we did not handled
:/ )

Bug: 66903791
Test: build & boot

(cherry picked from commit efc022768eba2f33d3fadbda7eaa6adf1730d3fc)

Merged-In: I981e463d61c42ab8455d489ff86cc300632a2a90
Change-Id: I981e463d61c42ab8455d489ff86cc300632a2a90

6 years agoFix spelling mistake in dumpsys output
Calin Juravle [Tue, 26 Sep 2017 20:23:00 +0000 (13:23 -0700)]
Fix spelling mistake in dumpsys output

Bug: 65843255
Test: build
Change-Id: Icc748dd14b52641e37b149f51d61a4086e55ed41

6 years agoMerge "Update the bt background color." into oc-mr1-dev
TreeHugger Robot [Tue, 26 Sep 2017 20:21:50 +0000 (20:21 +0000)]
Merge "Update the bt background color." into oc-mr1-dev

6 years agoAdded missing quote (") on anchor tag.
Felipe Leme [Tue, 26 Sep 2017 20:05:36 +0000 (13:05 -0700)]
Added missing quote (") on anchor tag.

Test: 'm -j doc-comment-check-docs' then verify resulting HTML
Fixes: 66958057

Change-Id: Ie5914a5af191866404b6fbf244c78e145c59a8b1

6 years agoMerge "Re-add callback to onCancel() when screen is touched outside Save UI." into...
TreeHugger Robot [Tue, 26 Sep 2017 19:40:53 +0000 (19:40 +0000)]
Merge "Re-add callback to onCancel() when screen is touched outside Save UI." into oc-mr1-dev

6 years agoMerge "Add null check in a11y callback" into oc-mr1-dev
Phil Weaver [Tue, 26 Sep 2017 19:22:51 +0000 (19:22 +0000)]
Merge "Add null check in a11y callback" into oc-mr1-dev

6 years agoMerge "Import translations. DO NOT MERGE" into oc-dev am: 4414109220 -s ours
Bill Yi [Tue, 26 Sep 2017 19:03:54 +0000 (19:03 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dev am: 4414109220  -s ours
am: 46181531ec  -s ours

Change-Id: I2dab29638f0813d6e52c9b4ec7b279b7ddcb06a0

6 years agoMerge "Import translations. DO NOT MERGE" into oc-dev
Bill Yi [Tue, 26 Sep 2017 18:55:20 +0000 (18:55 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dev
am: 4414109220  -s ours

Change-Id: I3820c0c5decca7f1a839a40a65e9021fa6e999d1

6 years agoMerge "Import translations. DO NOT MERGE" into oc-dev
TreeHugger Robot [Tue, 26 Sep 2017 18:42:25 +0000 (18:42 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dev

6 years agoShorter notification text on AoD
Lucas Dupin [Mon, 25 Sep 2017 22:41:23 +0000 (15:41 -0700)]
Shorter notification text on AoD

Change-Id: I961c7348d6ce2389c9ac0fba980237548eaf26c9
Fixes: 66242485
Test: Send notification with big text, look at AoD

6 years agoImport translations. DO NOT MERGE am: 1df9bbaafe -s ours am: 6cc2a9cdc2 -s ours...
Bill Yi [Tue, 26 Sep 2017 18:20:23 +0000 (18:20 +0000)]
Import translations. DO NOT MERGE am: 1df9bbaafe  -s ours am: 6cc2a9cdc2  -s ours am: 5cf5642cbd  -s ours
am: 7b3e838ec1  -s ours

Change-Id: I4706a62f6bc875294a66ae70f157949b36df60a8

6 years agoImport translations. DO NOT MERGE am: 1df9bbaafe -s ours am: 6cc2a9cdc2 -s ours
Bill Yi [Tue, 26 Sep 2017 18:13:03 +0000 (18:13 +0000)]
Import translations. DO NOT MERGE am: 1df9bbaafe  -s ours am: 6cc2a9cdc2  -s ours
am: 5cf5642cbd  -s ours

Change-Id: Ie5c5a0ddabdc8dc0bfd081c48c3c279425cc2682

6 years agoImport translations. DO NOT MERGE am: 1df9bbaafe -s ours
Bill Yi [Tue, 26 Sep 2017 18:03:49 +0000 (18:03 +0000)]
Import translations. DO NOT MERGE am: 1df9bbaafe  -s ours
am: 6cc2a9cdc2  -s ours

Change-Id: I4d3d9da8dcdc0c898c49856cae530c14f6aa915e

6 years agoImport translations. DO NOT MERGE
Bill Yi [Tue, 26 Sep 2017 17:53:44 +0000 (17:53 +0000)]
Import translations. DO NOT MERGE
am: 1df9bbaafe  -s ours

Change-Id: I2bf2ceaea1279df64cf7409c57c75039caaa7879

6 years agoMerge "Quick fix: Make incorrect animator usage a warning" into oc-mr1-dev
John Reck [Tue, 26 Sep 2017 16:23:43 +0000 (16:23 +0000)]
Merge "Quick fix: Make incorrect animator usage a warning" into oc-mr1-dev

6 years agoRe-add callback to onCancel() when screen is touched outside Save UI.
Felipe Leme [Tue, 26 Sep 2017 16:01:59 +0000 (09:01 -0700)]
Re-add callback to onCancel() when screen is touched outside Save UI.

That callback was accidentally removed because it should not trigger the
negative listener, but the right approach was to pass a null listener.

Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases

Bug: 66235266
Fixes: 66944844

Change-Id: I5b71d3d03335d952e3b47078d1373f9783366437

6 years agoMerge "Fix wifi tile animating full-dark when slashing/unslashing" into oc-mr1-dev
Evan Laird [Tue, 26 Sep 2017 14:09:09 +0000 (14:09 +0000)]
Merge "Fix wifi tile animating full-dark when slashing/unslashing" into oc-mr1-dev

6 years agoImport translations. DO NOT MERGE
Bill Yi [Tue, 26 Sep 2017 13:58:36 +0000 (06:58 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import

Bug: 64712476
Change-Id: I348ab7ada9d98e745fe4716beadb6857d39705ec

6 years agoDo not throw on call to isTetheringSupported w/o permission
Chalard Jean [Tue, 26 Sep 2017 06:45:18 +0000 (15:45 +0900)]
Do not throw on call to isTetheringSupported w/o permission

...just return false instead. This will change in P.

Test: Made an app to test this. Made sure it doesn't have
Test: the required permission. Checked it crashes with
Test: SecurityException without this change. Checked it
Test: doesn't with it.

Bug: 65404184

Change-Id: Id20d3c240ec5d70d085e0366b92ab3a514f3e7c8

6 years agorelease-request-787c7134-f106-4590-90f7-0fb685b91259-for-git_oc-mr1-release-4360035...
android-build-team Robot [Tue, 26 Sep 2017 07:33:34 +0000 (07:33 +0000)]
release-request-787c7134-f106-4590-90f7-0fb685b91259-for-git_oc-mr1-release-4360035 snap-temp-L24200000106060350

Change-Id: I2a6858753e424f3143ff5e55ed5de7acbc4ab7b8

6 years agoImport translations. DO NOT MERGE
Bill Yi [Tue, 26 Sep 2017 05:29:40 +0000 (22:29 -0700)]
Import translations. DO NOT MERGE

Change-Id: I3bce312584c61d6bc31d4e7c4068b757336fbe25
Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import

6 years agoFix crash when creating a HW Bitmap on a detached view
Doris Liu [Mon, 25 Sep 2017 22:45:05 +0000 (15:45 -0700)]
Fix crash when creating a HW Bitmap on a detached view

BUG: 65160121
Test: Unable to repro the crash before or after the fix

Change-Id: I84fa28557c67a6672b8d82443d4da7be4f28a50d

6 years agoMerge "Restrict when a window receives new Configurations." into oc-mr1-dev
Bryce Lee [Tue, 26 Sep 2017 00:12:15 +0000 (00:12 +0000)]
Merge "Restrict when a window receives new Configurations." into oc-mr1-dev

6 years agoQuick fix: Make incorrect animator usage a warning
John Reck [Mon, 25 Sep 2017 21:22:40 +0000 (14:22 -0700)]
Quick fix: Make incorrect animator usage a warning

Change-Id: I6d59033433a63d02be746bb8523b312d7c8fe9fa
Bug: 65160121
Test: Repro from bug doesn't repro anymore

6 years agoMerge "LockSettingsStrongAuth shouldn't get fingerprintservice on unsupported devices...
Kevin Chyn [Mon, 25 Sep 2017 23:01:40 +0000 (23:01 +0000)]
Merge "LockSettingsStrongAuth shouldn't get fingerprintservice on unsupported devices" into oc-mr1-dev

6 years agoMerge "Revert "Add preopt profile logic for compiling during first boot"" into oc...
Mathieu Chartier [Mon, 25 Sep 2017 22:52:31 +0000 (22:52 +0000)]
Merge "Revert "Add preopt profile logic for compiling during first boot"" into oc-mr1-dev

6 years agoRevert "Add preopt profile logic for compiling during first boot"
Mathieu Chartier [Mon, 25 Sep 2017 18:39:30 +0000 (11:39 -0700)]
Revert "Add preopt profile logic for compiling during first boot"

Test: flash build and forrest
Bug: 66903791

This reverts commit 20ad4b92a7528f24adf6e4f6d23d9d3a02a8792a.

Change-Id: I2c0f22f2a7c04221ed7b1562e516be98d27c7a50

6 years agoMerge "Hide autofill popup if anchor removed" into oc-mr1-dev
TreeHugger Robot [Mon, 25 Sep 2017 22:24:25 +0000 (22:24 +0000)]
Merge "Hide autofill popup if anchor removed" into oc-mr1-dev

6 years agoRestrict when a window receives new Configurations.
Bryce Lee [Thu, 21 Sep 2017 17:38:20 +0000 (10:38 -0700)]
Restrict when a window receives new Configurations.

It is possible that a window will relayout while it's being hidden,
but after the Configuration has changed. In this case, the window can
receive an updated Configuration incompatible with its settings.
Additionally, an Activity's window may relayout and receive a
Configuration during resume after its visibility has changed but
before the Configuration has been updated based on the current
AppWindowTokens.

This changelist addresses these issues by first only sending an
updated Configuration to the client if the associated AppWindowToken
is not requested to be hidden. In this case, the last reported
Configuration is returned instead. For the resume issue, we
address the race condition by making setting the visibility and
updating the configuration synchronized.

Fixes: 64916689
Test: go/wm-smoke
Test: place clock widget on launcher, launch landscape only activity,
      return to launcher, verify layout.

Change-Id: Ie07068be64120c2fdbe380d58af330372df6a1ab

6 years agoMerge "FRP: Add config flag for disabling credential FRP" into oc-mr1-dev
Adrian Roos [Mon, 25 Sep 2017 18:33:01 +0000 (18:33 +0000)]
Merge "FRP: Add config flag for disabling credential FRP" into oc-mr1-dev

6 years agoMerge "Fixed that telephony registry service reference incorrectly assigned" into...
TreeHugger Robot [Mon, 25 Sep 2017 17:23:08 +0000 (17:23 +0000)]
Merge "Fixed that telephony registry service reference incorrectly assigned" into oc-mr1-dev

6 years agoMerge "Fixing session abandon logging bug" into oc-mr1-dev
TreeHugger Robot [Mon, 25 Sep 2017 15:42:49 +0000 (15:42 +0000)]
Merge "Fixing session abandon logging bug" into oc-mr1-dev

6 years agoMerge "Fixed bug in handling of OTHER as terminal" into oc-mr1-dev
TreeHugger Robot [Mon, 25 Sep 2017 15:19:01 +0000 (15:19 +0000)]
Merge "Fixed bug in handling of OTHER as terminal" into oc-mr1-dev

6 years agoFRP: Add config flag for disabling credential FRP
Adrian Roos [Tue, 5 Sep 2017 15:01:42 +0000 (17:01 +0200)]
FRP: Add config flag for disabling credential FRP

Bug: 65258606
Test: Verify FRP still works when not disabled
Change-Id: I78e308b6eaba73c794615b1eebdbfacb334ae72f

6 years agoFixing session abandon logging bug
Jan Althaus [Fri, 22 Sep 2017 16:26:06 +0000 (18:26 +0200)]
Fixing session abandon logging bug

Previously, making two selections quickly one after the other could lead
to the first session missing the terminal event, and the second one getting
terminated prematurely - getting marked incorrectly as abandoned.

Bug: 64914512
Test: Manually tested that logs are correct.
Change-Id: Icd75dcabe707b591f30629b9b9b42c5459ed7dda

6 years agoFixed bug in handling of OTHER as terminal
Jan Althaus [Fri, 22 Sep 2017 17:55:17 +0000 (19:55 +0200)]
Fixed bug in handling of OTHER as terminal

This bug resulted in a tap on a non-default action mode item to get logged
as OTHER, followed by ABANDON.

Bug: 64914512
Test: Manually tested that logs are correct.
Change-Id: I3cdba7ccff896939e22c567843f335c54d4a97f3

6 years agoMerge "Select correct system audio route in updateAudioRoutes" into oc-mr1-dev
TreeHugger Robot [Mon, 25 Sep 2017 07:06:42 +0000 (07:06 +0000)]
Merge "Select correct system audio route in updateAudioRoutes" into oc-mr1-dev

6 years agoSelect correct system audio route in updateAudioRoutes
Sungsoo Lim [Mon, 18 Sep 2017 05:28:38 +0000 (14:28 +0900)]
Select correct system audio route in updateAudioRoutes

While update audio routes, MediaRouter had an access to the variable
of MediaRouterService.mGlobalBluetoothA2dpOn, which was updated in
the callback of AudioRoutesObserver.dispatchAudioRoutesChanged().
However, since updateAudioRoutes() was also called by the same
callback, mGlobalBluetoothA2dpOn could be used in updateAudioRoutes()
before its value was updated.

Bug: 65629167
Test: passed MediaRouterTest
Test: Manually confirmed that the issue is fixed with this CL
Change-Id: Id0034996a51a6d8d1e8bd9d2c6ca386aabbb8baf
Merged-In: Id0034996a51a6d8d1e8bd9d2c6ca386aabbb8baf

6 years agorelease-request-2950741e-0b24-4d70-b748-67bb2b5435b5-for-git_oc-mr1-release-4357583...
android-build-team Robot [Sun, 24 Sep 2017 07:41:13 +0000 (07:41 +0000)]
release-request-2950741e-0b24-4d70-b748-67bb2b5435b5-for-git_oc-mr1-release-4357583 snap-temp-L55500000105655441

Change-Id: Ia123a1129e955a94ab57cde2d3f9554fe5ef512c

6 years agoMerge "Logs how long it took to show the Autofill UI after a field was focused."...
TreeHugger Robot [Sun, 24 Sep 2017 05:42:38 +0000 (05:42 +0000)]
Merge "Logs how long it took to show the Autofill UI after a field was focused." into oc-mr1-dev

6 years agoHide autofill popup if anchor removed
Svet Ganov [Sat, 23 Sep 2017 00:19:04 +0000 (17:19 -0700)]
Hide autofill popup if anchor removed

Test: Manual
Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases

bug:64601372

Change-Id: Ic55dabb99cd5015d318ab3be1231b6aa5c67294e

6 years agoMerge "Add preopt profile logic for compiling during first boot" into oc-mr1-dev
Mathieu Chartier [Sat, 23 Sep 2017 00:49:17 +0000 (00:49 +0000)]
Merge "Add preopt profile logic for compiling during first boot" into oc-mr1-dev

6 years agoLogs how long it took to show the Autofill UI after a field was focused.
Felipe Leme [Fri, 22 Sep 2017 16:23:02 +0000 (09:23 -0700)]
Logs how long it took to show the Autofill UI after a field was focused.

Test: adb shell logcat -b events | grep sysui_
Test: adb dumpsys autofill
Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases

Bug: 65376559
Bug: 66508098

Merged-In: Ia17f8b30d6eef0141b020085985b9ebacff7a455
Change-Id: Ia17f8b30d6eef0141b020085985b9ebacff7a455

6 years agoMerge "Speculative fix for missing target crash" into oc-mr1-dev
TreeHugger Robot [Fri, 22 Sep 2017 22:41:59 +0000 (22:41 +0000)]
Merge "Speculative fix for missing target crash" into oc-mr1-dev

6 years agoMerge "Add metrics (and moar logging) for when a service disables itself." into oc...
TreeHugger Robot [Fri, 22 Sep 2017 21:04:02 +0000 (21:04 +0000)]
Merge "Add metrics (and moar logging) for when a service disables itself." into oc-mr1-dev

6 years agoMerge "Remove isHighEndGfx check" into oc-mr1-dev
Zhi An Ng [Fri, 22 Sep 2017 20:17:15 +0000 (20:17 +0000)]
Merge "Remove isHighEndGfx check" into oc-mr1-dev

6 years agoAdd null check in a11y callback
Phil Weaver [Fri, 22 Sep 2017 18:03:06 +0000 (11:03 -0700)]
Add null check in a11y callback

Bug: 65475473
Test: Verified it still builds
Change-Id: I9ad1249c44cb73153066f67164c90333779d284e

6 years agoLockSettingsStrongAuth shouldn't get fingerprintservice on unsupported devices
Kevin Chyn [Fri, 22 Sep 2017 16:44:17 +0000 (09:44 -0700)]
LockSettingsStrongAuth shouldn't get fingerprintservice on unsupported devices

Fixes: 65838275

Test: tested on ryu and walleye, no logs when system starts and everything
works fine

Change-Id: I7d53214a021e9094618162109f3c38c0e029bda3

6 years agoMerge "Add systrace for VectorDrawable inflation and draw" into oc-mr1-dev
Tenghui Zhu [Fri, 22 Sep 2017 19:45:17 +0000 (19:45 +0000)]
Merge "Add systrace for VectorDrawable inflation and draw" into oc-mr1-dev

6 years agoAdd systrace for VectorDrawable inflation and draw
ztenghui [Wed, 13 Sep 2017 17:32:50 +0000 (10:32 -0700)]
Add systrace for VectorDrawable inflation and draw

We didn't trace the draw from cache.
Here we add trace for draw into bitmap, which is normally heavy.

fix: 65060698
Bug: 65060698
Test: run test app and get systrace and check

Change-Id: Ia81127c4aa285b3277e9c9edbdf356d85cb28b5e
(cherry picked from commit cf0c41dbc221c2619212c7e25e6d90a9c4d05b05)

6 years agoMerge "hwuitest: added hwui test for TV application" into oc-mr1-dev
Dake Gu [Fri, 22 Sep 2017 19:26:42 +0000 (19:26 +0000)]
Merge "hwuitest: added hwui test for TV application" into oc-mr1-dev

6 years agoAdd preopt profile logic for compiling during first boot
Mathieu Chartier [Fri, 15 Sep 2017 02:22:39 +0000 (19:22 -0700)]
Add preopt profile logic for compiling during first boot

Allows pushing profiles on device that are used to optimize apps
during first boot.

Added logic to copy profiles to reference location for compressed APKs.

Bug: 38032017
Bug: 64503246
Test: adb shell rm -rf /data/app/*
Test: adb shell rm /data/system/package*
Test: adb shell stop && adb shell start
Test: look at apps in /data/app to make sure they are profile compiled

Change-Id: I30452098a19a65a331d098107d37498e5b10c10f

6 years agoMerge cherrypicks of [2944626, 2944869, 2941173, 2943653] into oc-mr1-release
android-build-team Robot [Fri, 22 Sep 2017 18:15:48 +0000 (18:15 +0000)]
Merge cherrypicks of [2944626294486929411732943653] into oc-mr1-release

Change-Id: I814319e5084fee44af58bfe8a1130610589fc016

6 years agoSwipe for notifications should work when navigation occludes keyguard
Kevin Chyn [Thu, 21 Sep 2017 18:41:01 +0000 (11:41 -0700)]
Swipe for notifications should work when navigation occludes keyguard

Fixes: 65780650

Test: 1) Enable FP swipe
2) Start navigation
3) Turn off screen
4) Turn on screen
5) Swipe for notifications should work while maps is on top of keyguard

Change-Id: I5d8c75db940bfdfa4e29643c1ba89a119ec6a954
(cherry picked from commit 20a68dcefbc74317d15f073a0f2470f09a6a0c24)

6 years agoFixed that telephony registry service reference incorrectly assigned
Jack Yu [Fri, 22 Sep 2017 06:48:29 +0000 (23:48 -0700)]
Fixed that telephony registry service reference incorrectly assigned

The reference to telephony registry service was assigned
prior telephony registry service was ready. Fixed by
casting the binder every time when we use it.

Test: Manual
Bug: 65593241
Change-Id: Ib234cdfd93130f7af44ef79271b106fffb8ebad5

6 years agoSpeculative fix for missing target crash
Chris Craik [Fri, 22 Sep 2017 16:31:05 +0000 (09:31 -0700)]
Speculative fix for missing target crash

Bug: 66451158
Test: manual app usage

Change-Id: I2db3aa73edcb80da25ead64205011705f0beef91

6 years agoRemove isHighEndGfx check
Ng Zhi An [Fri, 22 Sep 2017 16:15:29 +0000 (09:15 -0700)]
Remove isHighEndGfx check

We want the nav bar to be translucent, having a solid black
bar on small gobo devices looks heavy.
The memory impact of removing this check has been accessed
in the referenced bug and is minimal.

Change-Id: Iaa967623fc2252ada268a7045f014a791fe83c29
Fixes: 65024600
Test: runtest frameworks-services

6 years agoAdd metrics (and moar logging) for when a service disables itself.
Felipe Leme [Wed, 20 Sep 2017 20:55:28 +0000 (13:55 -0700)]
Add metrics (and moar logging) for when a service disables itself.

Test: adb shell logcat -b events | grep sysui_
Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases

Bug: 65376559
Bug: 65856399

Change-Id: Ieb54bb0a58ecd51da663170a12817d33188ac9f0

6 years agoAudioService: Don't honour SCO ON request if SCO is not connected
Sharad Sangle [Tue, 9 May 2017 10:35:40 +0000 (16:05 +0530)]
AudioService: Don't honour SCO ON request if SCO is not connected

Usecase:
1. Pair and connect BT headset supporting HFP.
2. Make VOIP calls using application that calls
   setBluetoothScoOn(true) before SCO is actually connected.

Failure:
No audio / ANR are observed on connecting and disconnecting BT headset
during VOIP call.

Rootcause:
On BT connection during VOIP call, app is calling startBluetoothSco()
to setup BT SCO connection. Even before remote BT device SCO connection
establishment(which is taking around 4 secs in issue case), VOIP app
is calling force SCO routing using setBluetoothScoOn() API. This will
result audio modules to force route VOIP call to BT SCO, which results
audio failure/side effects as BT driver return failures. As SCO routing
retry continues several iterations (because of connection delays), this
results ADSP render buffer full followed by improper behavior.

Fix:
Check if SCO connection is establisted before honouring the
setBluetoothScoOn request, if SCO is not connected then
do not process SCO connection.
Only modify internal state when calls to setBluetoothScoOn() are from
system component
Inform audio HAL of SCO audio state via setParameters.

Test: 1. Pair and connect BT headset supporting HFP
      2. Make VOIP calls using application that calls
         setBluetoothScoOn(true) before SCO is actually connected.

Bug: 62051216
Bug: 63740200
Change-Id: Iab8e83613e21831abf5502a0268b1c4f89d6bba5

6 years agoBump the importance of foreground service notis
Julia Reynolds [Mon, 18 Sep 2017 20:52:37 +0000 (16:52 -0400)]
Bump the importance of foreground service notis

Unless the user has chosen an importance.

Change-Id: Ibe82c91c6a98a75fc623784300f3f906879e8a80
Fixes: 65640487
Test: runtest systemui-notification

6 years agoDon't convert all sounds to vibrations in vibrate mode
Julia Reynolds [Wed, 20 Sep 2017 16:54:52 +0000 (12:54 -0400)]
Don't convert all sounds to vibrations in vibrate mode

Only those that are on the notification/ringer stream.

Change-Id: Id99c613a6de42ac8ed1d674b4c6e05067d9cf52c
Fixes: 65815310
Test: runtest systemui-notification

6 years agoMerge "Move non-public intent out of the public namespace" into oc-mr1-dev
TreeHugger Robot [Fri, 22 Sep 2017 10:24:43 +0000 (10:24 +0000)]
Merge "Move non-public intent out of the public namespace" into oc-mr1-dev

6 years agoMerge "Bump up OOM priority of bound VrListenerService." into oc-mr1-dev
TreeHugger Robot [Fri, 22 Sep 2017 00:59:29 +0000 (00:59 +0000)]
Merge "Bump up OOM priority of bound VrListenerService." into oc-mr1-dev

6 years agoMerge "Implement ConnectivityService TODO and fix many race conditions" into oc-mr1-dev
Hugo Benichi [Fri, 22 Sep 2017 00:50:39 +0000 (00:50 +0000)]
Merge "Implement ConnectivityService TODO and fix many race conditions" into oc-mr1-dev

6 years agoMerge "Swipe for notifications should work when navigation occludes keyguard" into...
Kevin Chyn [Fri, 22 Sep 2017 00:07:16 +0000 (00:07 +0000)]
Merge "Swipe for notifications should work when navigation occludes keyguard" into oc-mr1-dev

6 years agoUpdate the bt background color.
jackqdyulei [Thu, 21 Sep 2017 22:25:15 +0000 (15:25 -0700)]
Update the bt background color.

The previous cl pass in the resource id rather than real color.
This cl fix the bug.

Bug: 65397557
Test: RunSettingslibRoboTests
Change-Id: I9dafc8bef6adf48b37eba4deff7462f9ba83a695

6 years agoMerge "Remove debug logging from PowerManagerService." into oc-mr1-dev
Santos Cordon [Thu, 21 Sep 2017 22:23:48 +0000 (22:23 +0000)]
Merge "Remove debug logging from PowerManagerService." into oc-mr1-dev

6 years agoMerge "Improve AVRCP quality and state handling (2/2)" into oc-dev am: 5c54a732f1
Andre Eisenbach [Thu, 21 Sep 2017 21:52:43 +0000 (21:52 +0000)]
Merge "Improve AVRCP quality and state handling (2/2)" into oc-dev am: 5c54a732f1
am: 60315cab7a

Change-Id: I951c387b9f3d2c2df5eccb6b3d5e50206b0db84e

6 years agoMerge "Improve AVRCP quality and state handling (2/2)" into oc-dev
Andre Eisenbach [Thu, 21 Sep 2017 21:40:45 +0000 (21:40 +0000)]
Merge "Improve AVRCP quality and state handling (2/2)" into oc-dev
am: 5c54a732f1

Change-Id: I62bacf450c64f98e44e15e0a1ec7a4f13f2982c4

6 years agoAdjusted chooser padding so 2nd line isn't cutoff.
Beverly [Thu, 21 Sep 2017 14:01:41 +0000 (10:01 -0400)]
Adjusted chooser padding so 2nd line isn't cutoff.

Change-Id: I171eafed073b4412904e3c0dc6f88efb8370d3bf
Fixes: 65546796
Test: manual

6 years agoMerge "Only call negative listener when SaveUI is dismissed by tapping button." into...
TreeHugger Robot [Thu, 21 Sep 2017 20:44:50 +0000 (20:44 +0000)]
Merge "Only call negative listener when SaveUI is dismissed by tapping button." into oc-mr1-dev

6 years agoMerge "Camera: Add more documentation about thrown exceptions." into oc-mr1-dev
TreeHugger Robot [Thu, 21 Sep 2017 19:50:33 +0000 (19:50 +0000)]
Merge "Camera: Add more documentation about thrown exceptions." into oc-mr1-dev

6 years agoMerge "Import translations. DO NOT MERGE" into oc-mr1-dev
TreeHugger Robot [Thu, 21 Sep 2017 18:42:51 +0000 (18:42 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-mr1-dev

6 years agoSwipe for notifications should work when navigation occludes keyguard
Kevin Chyn [Thu, 21 Sep 2017 18:41:01 +0000 (11:41 -0700)]
Swipe for notifications should work when navigation occludes keyguard

Fixes: 65780650

Test: 1) Enable FP swipe
2) Start navigation
3) Turn off screen
4) Turn on screen
5) Swipe for notifications should work while maps is on top of keyguard

Change-Id: I5d8c75db940bfdfa4e29643c1ba89a119ec6a954

6 years agoMerge "Improve AVRCP quality and state handling (2/2)" into oc-dev
Andre Eisenbach [Thu, 21 Sep 2017 18:15:27 +0000 (18:15 +0000)]
Merge "Improve AVRCP quality and state handling (2/2)" into oc-dev

6 years agoFix wifi tile animating full-dark when slashing/unslashing
Evan Laird [Thu, 21 Sep 2017 18:11:00 +0000 (14:11 -0400)]
Fix wifi tile animating full-dark when slashing/unslashing

WifiTile now owns a specific tile view that will animate the tint/alpha
of the slash but not the underlying drawable. Becasue we always animate
from the disconnected icon <-> disabled icon, this fixes the problem
where the disabled icon will start off as full-dark and appear to flash.

Fixes: 63534380
Test: turn wifi on/off; runtest -x
tests/src/com/android/systemui/qs/AlphaControlledSignalTileViewTest.java

Change-Id: I824572fdf00e122b7c17104b727171d81ff104c5

6 years agoRemove debug logging from PowerManagerService.
Santos Cordon [Wed, 20 Sep 2017 22:25:44 +0000 (15:25 -0700)]
Remove debug logging from PowerManagerService.

Previously set to true accidentally.
Bug: 66209945
Test: Manual

Change-Id: Ie34ff30b43107897cbffc6258cb6c3e867d5da2e

6 years agoMerge "Remove finished sessions on ACTION_CLOSE_SYSTEM_DIALOGS." into oc-mr1-dev
TreeHugger Robot [Thu, 21 Sep 2017 16:54:44 +0000 (16:54 +0000)]
Merge "Remove finished sessions on ACTION_CLOSE_SYSTEM_DIALOGS." into oc-mr1-dev

6 years agoMerge "Ensure profile-specific PiP notification is shown." into oc-mr1-dev
Winson Chung [Thu, 21 Sep 2017 16:38:16 +0000 (16:38 +0000)]
Merge "Ensure profile-specific PiP notification is shown." into oc-mr1-dev

6 years agoImport translations. DO NOT MERGE am: de5eefa935 -s ours am: 9d008286c7 -s ours...
Bill Yi [Thu, 21 Sep 2017 16:19:40 +0000 (16:19 +0000)]
Import translations. DO NOT MERGE am: de5eefa935  -s ours am: 9d008286c7  -s ours am: b4e9b3f651  -s ours
am: 7139a4dd5e  -s ours

Change-Id: I7192304b8aaad74dfab22571892b66e8c84a9736

6 years agoImport translations. DO NOT MERGE am: de5eefa935 -s ours am: 9d008286c7 -s ours
Bill Yi [Thu, 21 Sep 2017 16:13:13 +0000 (16:13 +0000)]
Import translations. DO NOT MERGE am: de5eefa935  -s ours am: 9d008286c7  -s ours
am: b4e9b3f651  -s ours

Change-Id: I8b727efb19b68f7adfc1f3eda4240e70551b8102

6 years agoImport translations. DO NOT MERGE am: 50e19c566e -s ours
Bill Yi [Thu, 21 Sep 2017 16:11:12 +0000 (16:11 +0000)]
Import translations. DO NOT MERGE am: 50e19c566e  -s ours
am: e708378dc9  -s ours

Change-Id: Ifdce36eb6dbb6c0af7a1f65d9142e77b05a2f5da

6 years agoImport translations. DO NOT MERGE
Bill Yi [Thu, 21 Sep 2017 16:06:29 +0000 (16:06 +0000)]
Import translations. DO NOT MERGE
am: 50e19c566e  -s ours

Change-Id: I82b5f21b00ed2e75a74859ffe70560e6999902a6

6 years agoImport translations. DO NOT MERGE am: de5eefa935 -s ours
Bill Yi [Thu, 21 Sep 2017 16:04:11 +0000 (16:04 +0000)]
Import translations. DO NOT MERGE am: de5eefa935  -s ours
am: 9d008286c7  -s ours

Change-Id: I5535968d3817e8c09e9d5e3e0a75180d29dbe303

6 years agoImport translations. DO NOT MERGE
Bill Yi [Thu, 21 Sep 2017 15:56:53 +0000 (15:56 +0000)]
Import translations. DO NOT MERGE
am: de5eefa935  -s ours

Change-Id: I53abfc53a067bca1cec279285f59185b8b18a64e

6 years agoMove non-public intent out of the public namespace
Neil Fuller [Thu, 21 Sep 2017 12:00:23 +0000 (13:00 +0100)]
Move non-public intent out of the public namespace

Move a non-public intent out of the public android.intent.action
namespace. The new name is
com.android.intent.action.timezone.TRIGGER_RULES_UPDATE_CHECK.

Bug: 65991376
Test: CTS: run -m CtsIntentSignatureTestCases
Test: PTS: run -m PtsTimeZoneTestCases
Change-Id: I619b564aa6262108ab2d1c95ba6e288efd8cc9f2

6 years agoImplement ConnectivityService TODO and fix many race conditions
Hugo Benichi [Wed, 20 Sep 2017 02:20:14 +0000 (11:20 +0900)]
Implement ConnectivityService TODO and fix many race conditions

This patch implements an outstanding TODO in ConnectivityService to add
synchronization over the map of network request ids to network agent
info objects.

This structure is accessed from multiple threads:
 - Binder thread on public aidl methods, most notably via
   getDefaultNetwork().
 - Internal handler.

This leads to many race conditions that can crash the system server and
reboot the phone if getDefaultNetwork() is called on a Binder thread to
service a public ConnectivityManager api while the default network state
is being updated on the internal handler after losing the default
network.

Bug: 65911184
Test: runtest frameworks-net
Merged-In: I86c830ebd559e31d4576a7606705a056afb064ac
Merged-In: I2011e23c9f894c079ab66cd7cc5c14af572a956d
Merged-In: Ic70901a6aa22a03e97f494e793920ab07a0fd612
Merged-In: I4a7658e1fa6946063ab86a251269413903841ee8
Merged-In: Ia59d45f4e95a536d7982f61ac9c9a1bfc5e8ebb8

(cherry picked from commit cd95278e55bd0e4935f42214d964f8c6aa52b4ea)

Change-Id: I2e26bef9eddd342f51c02b991632c7ea04fe7e66

6 years agoImport translations. DO NOT MERGE
Bill Yi [Thu, 21 Sep 2017 10:12:01 +0000 (03:12 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import

Bug: 64712476
Change-Id: I0e4df67a950b6e0d541548c01f0812141102fb91

6 years agoMerge "Use noteOpNoThrow instead in AMS" into oc-mr1-dev
TreeHugger Robot [Thu, 21 Sep 2017 09:17:12 +0000 (09:17 +0000)]
Merge "Use noteOpNoThrow instead in AMS" into oc-mr1-dev

6 years agoUse noteOpNoThrow instead in AMS
Tony Mak [Wed, 20 Sep 2017 20:23:48 +0000 (21:23 +0100)]
Use noteOpNoThrow instead in AMS

We just want a boolean result to tell whether a package has certain permissions,
we do not expect the check to throw SecurityException, so let's use
noteOpNoThrow instead.

Fixes: 65912167

Test: Disable Gmail, install a test app and run setPassword. No crash.
Change-Id: Ifc6e7fbbae1121bda329f0a291522af9698959db