OSDN Git Service

android-x86/frameworks-base.git
6 years agoIncludes annotations with statsd reports.
David Chen [Fri, 30 Mar 2018 22:14:04 +0000 (15:14 -0700)]
Includes annotations with statsd reports.

It's tricky to determine the source of the metrics on a device
currently since we can take the union of multiple configs and send
only one giant statsd_config into statsd. We will use the int64 field
to track the sub config id's and the int32 field to track the version
for each sub config, but the fields are named more generically as
annotations.

The annotations are available in both the reports and metadata.

Test: Check that all unit-tests pass on marlin-eng
Bug: 77327261
Change-Id: Ic37c549c8b2991676f69948c515156765c9f5108

6 years agoMerge "Separator width" into pi-dev
TreeHugger Robot [Wed, 4 Apr 2018 00:14:54 +0000 (00:14 +0000)]
Merge "Separator width" into pi-dev

6 years agoMerge "Support bypassing TLS in the framework" into pi-dev
TreeHugger Robot [Tue, 3 Apr 2018 23:47:23 +0000 (23:47 +0000)]
Merge "Support bypassing TLS in the framework" into pi-dev

6 years agoMerge "Use client-side version of inTouchMode" into pi-dev
TreeHugger Robot [Tue, 3 Apr 2018 23:25:34 +0000 (23:25 +0000)]
Merge "Use client-side version of inTouchMode" into pi-dev

6 years agoMerge "[DO NOT MERGE] Sort A11yService#getWindows by layer descending" into pi-dev
TreeHugger Robot [Tue, 3 Apr 2018 23:17:26 +0000 (23:17 +0000)]
Merge "[DO NOT MERGE] Sort A11yService#getWindows by layer descending" into pi-dev

6 years agoMerge "Bind to DefaultContainerService early for AIA" into pi-dev
TreeHugger Robot [Tue, 3 Apr 2018 23:15:19 +0000 (23:15 +0000)]
Merge "Bind to DefaultContainerService early for AIA" into pi-dev

6 years agoMerge "Move cts tests using reflection" into pi-dev
TreeHugger Robot [Tue, 3 Apr 2018 23:07:34 +0000 (23:07 +0000)]
Merge "Move cts tests using reflection" into pi-dev

6 years agoMerge "Show ripple on toggle" into pi-dev
Julia Reynolds [Tue, 3 Apr 2018 22:53:11 +0000 (22:53 +0000)]
Merge "Show ripple on toggle" into pi-dev

6 years agoMerge "Register broadcast receiver at runtime instead" into pi-dev
TreeHugger Robot [Tue, 3 Apr 2018 22:50:14 +0000 (22:50 +0000)]
Merge "Register broadcast receiver at runtime instead" into pi-dev

6 years agoMerge "Ensure that the blocking helper will run" into pi-dev
Julia Reynolds [Tue, 3 Apr 2018 22:48:05 +0000 (22:48 +0000)]
Merge "Ensure that the blocking helper will run" into pi-dev

6 years agoSupport bypassing TLS in the framework
Erik Kline [Wed, 21 Mar 2018 14:18:33 +0000 (07:18 -0700)]
Support bypassing TLS in the framework

This change comprises the following parts:

    [1] android.net.dns.ResolvUtil, containing methods that encapsulate the
        use of the high bit in netids used in DNS resolution contexts.

    [2] Updates to captive portal apps to call the ResolvUtil method that
        enables DNS-over-TLS bypass for the captive portal app process.

Test: as follows
    - builds
    - flashes
    - boots
    - runtest frameworks-net passes
Bug: 64133961
Bug: 72345192

Merged-In: I0994b53d24ed25a2eb9e65429c61cf6fa87c7513
Merged-In: I4c49e23d8caa4d485df1c1d2f135a7282d439c0b
Change-Id: I2072c1f68d6978fa0d7e9d8693135a2c51bb0f87
(cherry picked from commit 2140529d9b8e116d88c2a385a0b3179c2ede5ad7)

6 years agoMerge "Added two touch slops for easier home press (1/3)" into pi-dev
TreeHugger Robot [Tue, 3 Apr 2018 22:31:57 +0000 (22:31 +0000)]
Merge "Added two touch slops for easier home press (1/3)" into pi-dev

6 years agoMerge changes from topic "fw_quickstep_update" into pi-dev
TreeHugger Robot [Tue, 3 Apr 2018 22:31:57 +0000 (22:31 +0000)]
Merge changes from topic "fw_quickstep_update" into pi-dev

* changes:
  Reparent recents animation task leash to app animation layer
  Allow recents animation to override divider minimized state
  Prevent unnecessary reordering of the home stack

6 years agoMerge "Fix "auto battery saver" confirmation dialog button layout" into pi-dev
Makoto Onuki [Tue, 3 Apr 2018 22:25:37 +0000 (22:25 +0000)]
Merge "Fix "auto battery saver" confirmation dialog button layout" into pi-dev

6 years agoMerge "Add method to get blocked channel counts" into pi-dev
TreeHugger Robot [Tue, 3 Apr 2018 22:22:24 +0000 (22:22 +0000)]
Merge "Add method to get blocked channel counts" into pi-dev

6 years agoMerge "Remove work_profile_deleted_description in symbols.xml" into pi-dev
TreeHugger Robot [Tue, 3 Apr 2018 22:12:18 +0000 (22:12 +0000)]
Merge "Remove work_profile_deleted_description in symbols.xml" into pi-dev

6 years agoMerge "Update notification to allow multiline text" into pi-dev
TreeHugger Robot [Tue, 3 Apr 2018 21:54:31 +0000 (21:54 +0000)]
Merge "Update notification to allow multiline text" into pi-dev

6 years agoMerge "Only tag foreground notifications" into pi-dev
TreeHugger Robot [Tue, 3 Apr 2018 21:52:17 +0000 (21:52 +0000)]
Merge "Only tag foreground notifications" into pi-dev

6 years ago[DO NOT MERGE] Sort A11yService#getWindows by layer descending
Eugene Susla [Mon, 26 Feb 2018 18:41:28 +0000 (10:41 -0800)]
[DO NOT MERGE] Sort A11yService#getWindows by layer descending

This is what A11yService#getWindows promises in the javadoc.

Fixes: 71581072
Test: using testback ensure the order is correct
Change-Id: I5038c4de29c60e235b65751f7bd7771ef35eb339
(cherry picked from commit f40da1a884493b6af61e3b978fdf7c7ff059b2dc)

6 years agoSeparator width
Lucas Dupin [Tue, 3 Apr 2018 21:23:52 +0000 (14:23 -0700)]
Separator width

Test: visual
Change-Id: I5bcac302d8b0c6648c0c75bf9671c09543d1c826
Fixes: 77540159

6 years agoMerge "Longer wake lock timeout" into pi-dev
TreeHugger Robot [Tue, 3 Apr 2018 21:23:35 +0000 (21:23 +0000)]
Merge "Longer wake lock timeout" into pi-dev

6 years agoMerge "Avoid null pointer when in getAmbientBrightnessStats" into pi-dev
TreeHugger Robot [Tue, 3 Apr 2018 21:15:26 +0000 (21:15 +0000)]
Merge "Avoid null pointer when in getAmbientBrightnessStats" into pi-dev

6 years agoMerge "Update displayId when a window is moved to a new display" into pi-dev
TreeHugger Robot [Tue, 3 Apr 2018 21:06:39 +0000 (21:06 +0000)]
Merge "Update displayId when a window is moved to a new display" into pi-dev

6 years agoMerge "AudioService: prevent muting of alarm / accessibility" into pi-dev
TreeHugger Robot [Tue, 3 Apr 2018 21:06:15 +0000 (21:06 +0000)]
Merge "AudioService: prevent muting of alarm / accessibility" into pi-dev

6 years agoMerge "Correct provider filtering" into pi-dev
TreeHugger Robot [Tue, 3 Apr 2018 20:53:21 +0000 (20:53 +0000)]
Merge "Correct provider filtering" into pi-dev

6 years agoMerge "Fix test location provider bug" into pi-dev
Maggie Wang [Tue, 3 Apr 2018 20:44:29 +0000 (20:44 +0000)]
Merge "Fix test location provider bug" into pi-dev

6 years agoAdded two touch slops for easier home press (1/3)
Matthew Ng [Fri, 30 Mar 2018 23:47:22 +0000 (16:47 -0700)]
Added two touch slops for easier home press (1/3)

The first slop starts the drag either for quick step or scrub. At this
point either launcher can animate swipe up or the home button moves for
scrub, however the home button is still active and can be pressed or
long pressed. The second slop is for activating quick step or scrub.
Similar to before when an operation has activated, the home button
cannot be pressed or long pressed. This allows the home button to have a
larger area to be clicked.

Change-Id: I0a3dd2b5e0f41748a7ba9ebb6241283291995228
Fixes: 76430825
Test: scrub or swipe up

6 years agoMerge "Relax angle-related false touch classification." into pi-dev
Steve Pfetsch [Tue, 3 Apr 2018 20:31:31 +0000 (20:31 +0000)]
Merge "Relax angle-related false touch classification." into pi-dev

6 years agoUse client-side version of inTouchMode
Evan Rosky [Tue, 3 Apr 2018 20:21:55 +0000 (13:21 -0700)]
Use client-side version of inTouchMode

Was bindering into WM service pretty often due to this which was
causing some jank

Bug: 72236832
Test: Related touchmode/focus CTS tests still pass
Change-Id: Ia0f89429b67464beea07c702d8fe2d8b813f8d38

6 years agoUpdate notification to allow multiline text
Salvador Martinez [Tue, 3 Apr 2018 20:05:39 +0000 (13:05 -0700)]
Update notification to allow multiline text

Sometimes the remaining time text can be a bit too long for one line.
This change updates the notification to allow the text to go onto the
second line.

Test: visual inspection
Bug: 77500880
Change-Id: I8f87383dab9b27890934ad969d0c4e8a26f3c3a3

6 years agoMerge "Based on the discussion of ag/3818243, this is the initial list. The reason...
Yi Jin [Tue, 3 Apr 2018 20:02:21 +0000 (20:02 +0000)]
Merge "Based on the discussion of ag/3818243, this is the initial list. The reason to repropose this is because of some changes like ag/3619568. We don't want to allow this happens again." into pi-dev

6 years agoShow ripple on toggle
Julia Reynolds [Tue, 3 Apr 2018 19:23:03 +0000 (15:23 -0400)]
Show ripple on toggle

Use the correct default value when the settings doesn't
exist yet.

Test: manual
Change-Id: Id661c9552fb59a4776dcaef8956c5ed49460e5fd
Fixes: 74617040

6 years agoOnly tag foreground notifications
Julia Reynolds [Mon, 2 Apr 2018 20:24:11 +0000 (16:24 -0400)]
Only tag foreground notifications

With active permission icons

Test: atest SystemUITests
Change-Id: I31828f6239b1253794f9569d29dccdac5c10b0da
Fixes: 75276447

6 years agoEnsure that the blocking helper will run
Julia Reynolds [Mon, 2 Apr 2018 15:03:32 +0000 (11:03 -0400)]
Ensure that the blocking helper will run

On upgraded devices.

Test: runtest systemui-notification
Change-Id: I600d40100fc97ea25718ebc8800425d6bf7194ef
Fixes: 77325257

6 years agoMerge "Dejank QS edit screen." into pi-dev
TreeHugger Robot [Tue, 3 Apr 2018 19:50:20 +0000 (19:50 +0000)]
Merge "Dejank QS edit screen." into pi-dev

6 years agoMerge "Atoms: remove bluetooth a2dp" into pi-dev
TreeHugger Robot [Tue, 3 Apr 2018 19:48:33 +0000 (19:48 +0000)]
Merge "Atoms: remove bluetooth a2dp" into pi-dev

6 years agoMerge "Add DISABLE_CLOCK flags to status bar, fix transitions" into pi-dev
TreeHugger Robot [Tue, 3 Apr 2018 19:46:29 +0000 (19:46 +0000)]
Merge "Add DISABLE_CLOCK flags to status bar, fix transitions" into pi-dev

6 years agoMerge "null check on qspanel before called method on it." into pi-dev
TreeHugger Robot [Tue, 3 Apr 2018 19:37:28 +0000 (19:37 +0000)]
Merge "null check on qspanel before called method on it." into pi-dev

6 years agoRegister broadcast receiver at runtime instead
Mike Ma [Mon, 2 Apr 2018 17:28:28 +0000 (10:28 -0700)]
Register broadcast receiver at runtime instead

Cannot find class when registering Usb connection broadcast receiver
in AndroidManifest, causing system process to crash. Switch to
register receiver at runtime when boot complete.

Fixes: 77274266
Test: Manually plug & unplug usb cable, and reboot device
Test: Verify usb_data appears in batterystats dump
Test: Verify there is no crash log
Change-Id: If4a9e85aa81173ad6d8cb6ce28cc030814c520a5

6 years agoMerge "Handle getNetworkWatchlistConfigHash() without config case" into pi-dev
Ricky Wai [Tue, 3 Apr 2018 19:32:27 +0000 (19:32 +0000)]
Merge "Handle getNetworkWatchlistConfigHash() without config case" into pi-dev

6 years agoMerge changes from topic "omapi" into pi-dev
Ruchi Kandoi [Tue, 3 Apr 2018 19:17:18 +0000 (19:17 +0000)]
Merge changes from topic "omapi" into pi-dev

* changes:
  Add an Executor for the onConnectedListener
  Make OMAPI stricter

6 years agoMerge "Avoids vibration over deadzone in navigationbar" into pi-dev
TreeHugger Robot [Tue, 3 Apr 2018 19:09:22 +0000 (19:09 +0000)]
Merge "Avoids vibration over deadzone in navigationbar" into pi-dev

6 years agoMerge "Add logging constant to track settings slice changes" into pi-dev
TreeHugger Robot [Tue, 3 Apr 2018 19:04:38 +0000 (19:04 +0000)]
Merge "Add logging constant to track settings slice changes" into pi-dev

6 years agoFix test location provider bug
Maggie [Wed, 21 Mar 2018 18:47:28 +0000 (11:47 -0700)]
Fix test location provider bug

LocationManager.isProviderEnabled should return true for a test provider if:
1. A test provider is added through LocationManager.addTestProvider
2. The test provider is enabled through LocationManager.setTestProviderEnabled

This fix changes the logic if LocationManager.isProviderEnabled and
LocationManager.setProviderEnabledForUser to allow users get/set test
location provider status.

Bug: 72647543
Bug: 77238940
Test: Manual
Test: run cts --module CtsLocationTestCases -t android.location.cts.LocationManagerTest
Change-Id: Ib241e5b487fd873c1fa0d7ac34b82b8592fc0906

6 years agoRemove work_profile_deleted_description in symbols.xml
Tony Mak [Tue, 3 Apr 2018 18:18:33 +0000 (19:18 +0100)]
Remove work_profile_deleted_description in symbols.xml

Test: BUILD
Fixes: 77528187

Change-Id: I37813f3071c30d6c5af6f26c4fe835f5e44b9a77

6 years agoFix "auto battery saver" confirmation dialog button layout
Makoto Onuki [Tue, 3 Apr 2018 18:46:02 +0000 (11:46 -0700)]
Fix "auto battery saver" confirmation dialog button layout

Bug: 77225862
Fixes: 77225862
Test: Manual test after resetting the BS states with the following commands:
adb shell settings delete global low_power
adb shell settings delete global low_power_sticky
adb shell settings delete global low_power_trigger_level
adb shell settings delete secure low_power_manual_activation_count
adb shell settings delete secure low_power_warning_acknowledged
adb shell settings delete secure suppress_auto_battery_saver

Change-Id: I2d826b1dadd3f2e2bf22746e874534d483f2cc39

6 years agoMerge "Nav icons and quick step states are determined by service enabled" into pi-dev
TreeHugger Robot [Tue, 3 Apr 2018 18:47:22 +0000 (18:47 +0000)]
Merge "Nav icons and quick step states are determined by service enabled" into pi-dev

6 years agoMerge "Free up all scratch resources when the app's UI is hidden" into pi-dev
TreeHugger Robot [Tue, 3 Apr 2018 18:41:17 +0000 (18:41 +0000)]
Merge "Free up all scratch resources when the app's UI is hidden" into pi-dev

6 years agoLonger wake lock timeout
Lucas Dupin [Tue, 3 Apr 2018 18:31:27 +0000 (11:31 -0700)]
Longer wake lock timeout

This isn't a definitive fix but should
make the symptoms less visible.

Bug: 71913808
Test: cover prox sensor, uncover it
Change-Id: I49976d5ba09d416e96cc5e623e49d55ecacf5567

6 years agoMerge "Add AppOps Checks for MANAGE_IPSEC_TUNNELS" into pi-dev
Nathan Harold [Tue, 3 Apr 2018 18:24:31 +0000 (18:24 +0000)]
Merge "Add AppOps Checks for MANAGE_IPSEC_TUNNELS" into pi-dev

6 years agoAdd AppOps Checks for MANAGE_IPSEC_TUNNELS
Nathan Harold [Fri, 16 Mar 2018 01:06:06 +0000 (18:06 -0700)]
Add AppOps Checks for MANAGE_IPSEC_TUNNELS

Adds support for a new AppOp to permit services to
use IpSec tunnel mode. The IpSecService now needs
a context so change the service mode to a cached
service rather than a static service.

Bug: 66955045
Test: runtest frameworks-net
Change-Id: I17a4a286225b432c3e15ea1587d946189931b4f4

6 years agoMerge "Change signature of requestBluetoothAudio" into pi-dev
Hall Liu [Tue, 3 Apr 2018 18:19:30 +0000 (18:19 +0000)]
Merge "Change signature of requestBluetoothAudio" into pi-dev

6 years agoMove cts tests using reflection
Phil Weaver [Tue, 3 Apr 2018 18:02:52 +0000 (11:02 -0700)]
Move cts tests using reflection

Moving them into unit tests.

Bug: 77266422
Test: Run a11y coretests
Change-Id: Id6305586a43c0a8fc9df207765ed3f0459ae247e

6 years agoDejank QS edit screen.
Amin Shaikh [Tue, 3 Apr 2018 17:39:53 +0000 (13:39 -0400)]
Dejank QS edit screen.

Do not show any tile animations on the QS edit screen.

Change-Id: I7cd409c859da0b4606a54d1308f85c01d92baff9
Fixes: 72086633
Test: visual

6 years agoAdd DISABLE_CLOCK flags to status bar, fix transitions
Evan Laird [Thu, 29 Mar 2018 22:21:48 +0000 (18:21 -0400)]
Add DISABLE_CLOCK flags to status bar, fix transitions

- CollapsedStatusBarFragment now listens to DISABLE_CLOCK so that it can
be requested to hide with disable flags (fixes SUW)
- PhoneStatusBarTransitions cares about the entire left side as a unit
instead of just notifications.

Test: atest frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/CollapsedStatusBarFragmentTest.java
Test: go through SUW, also change users from guest -> owner from lock
screen.

Change-Id: Ia693386b9ef0438a4fe341d056731e2ba6e973a0
Fixes: 71512617
Fixes: 71360226

6 years agoMerge "Move forward the alarm timestamp when config is added to statsd." into pi-dev
TreeHugger Robot [Tue, 3 Apr 2018 17:57:43 +0000 (17:57 +0000)]
Merge "Move forward the alarm timestamp when config is added to statsd." into pi-dev

6 years agonull check on qspanel before called method on it.
Lujiang Xue [Tue, 3 Apr 2018 17:52:22 +0000 (10:52 -0700)]
null check on qspanel before called method on it.

Bug: 77324282

Test: manually launched on head unit
Change-Id: Ia484d527cd07f6998d6e9907250ae9eb0c031674

6 years agoMerge "Add com.android.development to the package whitelist." into pi-dev
TreeHugger Robot [Tue, 3 Apr 2018 17:40:33 +0000 (17:40 +0000)]
Merge "Add com.android.development to the package whitelist." into pi-dev

6 years agoBased on the discussion of ag/3818243, this is the initial list. The
Yi Jin [Mon, 2 Apr 2018 22:35:17 +0000 (15:35 -0700)]
Based on the discussion of ag/3818243, this is the initial list. The
reason to repropose this is because of some changes like ag/3619568.
We don't want to allow this happens again.

Bug: 77277590
Test: N/A
Change-Id: Icfbbced7b441c2503a937eae8e6ca51485885040

6 years agoMerge "Camera: sort getCameraIdList output" into pi-dev
TreeHugger Robot [Tue, 3 Apr 2018 17:13:39 +0000 (17:13 +0000)]
Merge "Camera: sort getCameraIdList output" into pi-dev

6 years agoMerge "Do not run peek animation when keyguard is fading" into pi-dev
Lucas Dupin [Tue, 3 Apr 2018 17:07:03 +0000 (17:07 +0000)]
Merge "Do not run peek animation when keyguard is fading" into pi-dev

6 years agoMerge "Add dedicated flag to control app image generation" into pi-dev
Mathieu Chartier [Tue, 3 Apr 2018 16:04:32 +0000 (16:04 +0000)]
Merge "Add dedicated flag to control app image generation" into pi-dev

6 years agoMerge "Make getText hidden and getWidth/getBounds public" into pi-dev
Seigo Nonaka [Tue, 3 Apr 2018 15:54:49 +0000 (15:54 +0000)]
Merge "Make getText hidden and getWidth/getBounds public" into pi-dev

6 years agoFree up all scratch resources when the app's UI is hidden
Derek Sollenberger [Mon, 2 Apr 2018 17:36:45 +0000 (13:36 -0400)]
Free up all scratch resources when the app's UI is hidden

Bug: 73808481
Test: hwui_unit_tests
Change-Id: I9f191c776a936c1be40702ff0924c7ad054526d5

6 years agoAdd com.android.development to the package whitelist.
Nicolas Geoffray [Tue, 3 Apr 2018 15:51:56 +0000 (16:51 +0100)]
Add com.android.development to the package whitelist.

bug: 77477866
Test: m
Change-Id: I9ac27dd3e7ee0d764d61ab9a8d2ae1065ce151e5

6 years agoReparent recents animation task leash to app animation layer
Winson Chung [Fri, 16 Mar 2018 22:26:07 +0000 (15:26 -0700)]
Reparent recents animation task leash to app animation layer

- When swiping up in split screen, the task is clipped by the unminimized
  stack bounds, instead reparent to app animation layer to allow it to be
  unconstrained. Currently, this will bump it up to the top, but we need
  a mechanism later to bump it only to under the primary splitscreen stack.

Bug: 73118672
Test: Swipe up from split screen, ensure app window is not clipped
Change-Id: Iacc6d6b82274b8b26b2dab85628479b5ff490817

6 years agoMerge "Icon updates (1 of many)" into pi-dev
TreeHugger Robot [Tue, 3 Apr 2018 15:21:32 +0000 (15:21 +0000)]
Merge "Icon updates (1 of many)" into pi-dev

6 years agoMerge "Update javadocs for ImageDecoder and related" into pi-dev
Leon Scroggins [Tue, 3 Apr 2018 14:43:01 +0000 (14:43 +0000)]
Merge "Update javadocs for ImageDecoder and related" into pi-dev

6 years agoMerge "QS tile transition fixes." into pi-dev
TreeHugger Robot [Tue, 3 Apr 2018 14:30:10 +0000 (14:30 +0000)]
Merge "QS tile transition fixes." into pi-dev

6 years agoMerge "Fix strings for QS header status." into pi-dev
TreeHugger Robot [Tue, 3 Apr 2018 14:27:32 +0000 (14:27 +0000)]
Merge "Fix strings for QS header status." into pi-dev

6 years agoMerge "Greylist AccessibilityInteractionClient methods" into pi-dev
TreeHugger Robot [Tue, 3 Apr 2018 13:42:42 +0000 (13:42 +0000)]
Merge "Greylist AccessibilityInteractionClient methods" into pi-dev

6 years agoAdd method to get blocked channel counts
Julia Reynolds [Fri, 30 Mar 2018 14:36:42 +0000 (10:36 -0400)]
Add method to get blocked channel counts

Test: runtest systemui-notification
Bug: 72442731
Change-Id: I9ff30003edd0325f0ee0ad7154962c38523f9218

6 years agoMerge "Camera: Update external camera orientation guidelines" into pi-dev
TreeHugger Robot [Tue, 3 Apr 2018 12:57:19 +0000 (12:57 +0000)]
Merge "Camera: Update external camera orientation guidelines" into pi-dev

6 years agoAvoid null pointer when in getAmbientBrightnessStats
Kenny Guy [Tue, 3 Apr 2018 12:16:58 +0000 (13:16 +0100)]
Avoid null pointer when in getAmbientBrightnessStats

Check whether the tracker has been started before
trying to return stats.
Add unit test to check empty lists are returned
rather than null.

Bug: 76008231
Test: atest BrightnessTrackerTest
Change-Id: Icc7ef0ee43a95eb182cb1b0b9452f122363e67ba

6 years agoGreylist AccessibilityInteractionClient methods
Artem Iglikov [Tue, 3 Apr 2018 11:57:26 +0000 (12:57 +0100)]
Greylist AccessibilityInteractionClient methods

These are used to clear accessibility cache in tests driven by
UIAutomator.

Bug: 77401534
Test: n/a
Change-Id: Id0bb808e94e0efdd8ddc59f94ddd5ea71394c8a2

6 years agoAdd more APIs to hidden API light greylist
David Brazdil [Tue, 3 Apr 2018 10:15:18 +0000 (11:15 +0100)]
Add more APIs to hidden API light greylist

Bug: 64382372
Bug: 77289927
Bug: 77487374
Bug: 74430927
Test: make out/target/common/obj/PACKAGING/hiddenapi-blacklist.txt
Change-Id: I2a65babbef3ead001f37549c2c470b0e6c118ef3

6 years agoHandle getNetworkWatchlistConfigHash() without config case
Ricky Wai [Thu, 29 Mar 2018 10:47:27 +0000 (11:47 +0100)]
Handle getNetworkWatchlistConfigHash() without config case

Follow ConnectivityManager.getNetworkWatchlistConfigHash() javadoc,
it should return null when watchlist config file does not exist

Bug: 76212923
Test: NULL
Change-Id: Ice2de0732cb07f5159d1e068fb8f95b979191d1a

6 years agoMerge "APF: drop multicast ICMPv6 while in doze mode" into pi-dev
Bernie Innocenti [Tue, 3 Apr 2018 09:42:19 +0000 (09:42 +0000)]
Merge "APF: drop multicast ICMPv6 while in doze mode" into pi-dev

6 years agoMerge "Use user-defined data limits in multipath quota." into pi-dev
Remi NGUYEN VAN [Tue, 3 Apr 2018 08:07:08 +0000 (08:07 +0000)]
Merge "Use user-defined data limits in multipath quota." into pi-dev

6 years agoAPF: drop multicast ICMPv6 while in doze mode
Bernie Innocenti [Wed, 28 Mar 2018 11:11:49 +0000 (20:11 +0900)]
APF: drop multicast ICMPv6 while in doze mode

Some WiFi hotspots send excessive multicast IPv6 ping requests which
cause considerable power drain. Thus, drop all multicast ICMPv6 ping
requests while the device is in doze mode.

Bug: 66930077
Test: runtest -x tests/net/java/android/net/apf/ApfTest.java
Test: manual - compared generated APF bytecode using apf_disassembler
Test: manual - force idle mode while sending multicast pings to device
Change-Id: I25dbf99985cf4413b4d0e3920d281fe6d663197a
(cherry picked from commit e2c70f8a6092f740ea10e7476b33860d756cf94f)

6 years agoMerge "Fix wrong linear navigation order when TalkBack is on" into pi-dev
Sanry Huang [Tue, 3 Apr 2018 05:31:10 +0000 (05:31 +0000)]
Merge "Fix wrong linear navigation order when TalkBack is on" into pi-dev

6 years agoUse user-defined data limits in multipath quota.
Remi NGUYEN VAN [Mon, 2 Apr 2018 01:16:50 +0000 (10:16 +0900)]
Use user-defined data limits in multipath quota.

When data plan information is not available, use user-defined data
warning or limit to estimate a reasonable multipath quota.

New version of change to avoid editing NetworkPolicyManagerService.

Test: Tests in go/ag/3828171 pass.
Bug: 72631572
Bug: 72877610
Change-Id: Ied4215a093377dc3322c4f18a83969d364c19b2a

6 years agoUpdate displayId when a window is moved to a new display
Brad Stenning [Mon, 2 Apr 2018 19:03:19 +0000 (12:03 -0700)]
Update displayId when a window is moved to a new display

Bug:77474140

Test: Unit or use a single instance app and move it from and activity view to display 0
Change-Id: I780c5af3b9d46d6f67271a100f378a6a51435aff

6 years agoMerge "Fix PIP window going offset in landscape mode." into pi-dev
TreeHugger Robot [Tue, 3 Apr 2018 03:35:40 +0000 (03:35 +0000)]
Merge "Fix PIP window going offset in landscape mode." into pi-dev

6 years agoAtoms: remove bluetooth a2dp
Tej Singh [Tue, 3 Apr 2018 02:37:59 +0000 (19:37 -0700)]
Atoms: remove bluetooth a2dp

We are punting this atom. remove it from atoms.proto

Test: build success on marlin
Bug: b/73971848
Change-Id: Ia2da3d673f8d6078304f6bd0d20dbe3c34f079da

6 years agoMerge "Add fileds to AppCrash and ANR atoms" into pi-dev
TreeHugger Robot [Tue, 3 Apr 2018 02:31:27 +0000 (02:31 +0000)]
Merge "Add fileds to AppCrash and ANR atoms" into pi-dev

6 years agoMerge "Refactor isTetheringSupported() calls" into pi-dev
TreeHugger Robot [Tue, 3 Apr 2018 02:25:49 +0000 (02:25 +0000)]
Merge "Refactor isTetheringSupported() calls" into pi-dev

6 years agoMerge "android:ui crash on longpress of empty tile" into pi-dev
Sanry Huang [Tue, 3 Apr 2018 02:22:48 +0000 (02:22 +0000)]
Merge "android:ui crash on longpress of empty tile" into pi-dev

6 years agoMerge "Revert "Throw invalid cert exception when deprecated initRecoveryService metho...
TreeHugger Robot [Tue, 3 Apr 2018 01:55:30 +0000 (01:55 +0000)]
Merge "Revert "Throw invalid cert exception when deprecated initRecoveryService method"" into pi-dev

6 years agoMerge "Disabling print dumping for now." into pi-dev
TreeHugger Robot [Tue, 3 Apr 2018 01:36:23 +0000 (01:36 +0000)]
Merge "Disabling print dumping for now." into pi-dev

6 years agoFix PIP window going offset in landscape mode.
Tracy Zhou [Tue, 3 Apr 2018 01:19:43 +0000 (18:19 -0700)]
Fix PIP window going offset in landscape mode.

In landscape mode, PIP window can go offset while launching IME. We want to align the top of the PIP window with the top of the movement bounds in that case.

Change-Id: I7e89538c9a51d78294037b474caedcdf31edf7c4
Fixes: 77337070
Test: Manual test

6 years agoMerge "A test api to override carrier information" into pi-dev
Chen Xu [Tue, 3 Apr 2018 01:14:24 +0000 (01:14 +0000)]
Merge "A test api to override carrier information" into pi-dev

6 years agoMove forward the alarm timestamp when config is added to statsd.
Yangster-mac [Mon, 2 Apr 2018 21:37:33 +0000 (14:37 -0700)]
Move forward the alarm timestamp when config is added to statsd.

Test: statsd test
BUG: b/77344187

Change-Id: Ieacffaa29422829b8956f2b3fcb2c647c8c3eed9

6 years agoAudioService: prevent muting of alarm / accessibility
Jean-Michel Trivi [Fri, 9 Mar 2018 02:56:34 +0000 (18:56 -0800)]
AudioService: prevent muting of alarm / accessibility

STREAM_ACCESSIBILITY / ALARM min volume is index 1

Prevent a11y stream volume to be 0 when used separately from
  media.
Prevent setting a volume index above min value.

Bug: 72403580
Bug: 74985293
Test: verify media vol can go to 0 ; enable Talkback verify
    a11y volume can't be muted with vol keys or UI

Change-Id: Id46506d4c407f42fe3aca463055b0973e1a7c4dc

6 years agoMerge "Signal view is no loner apart of this fragment Removing custom battery display...
TreeHugger Robot [Tue, 3 Apr 2018 00:30:34 +0000 (00:30 +0000)]
Merge "Signal view is no loner apart of this fragment Removing custom battery display functionality until a complete fix is implemented." into pi-dev

6 years agoMerge "Expose the JNI scrypt function in a standalone Java class so we can use it...
Bo Zhu [Tue, 3 Apr 2018 00:28:43 +0000 (00:28 +0000)]
Merge "Expose the JNI scrypt function in a standalone Java class so we can use it in RecoverableKeyStore as well" into pi-dev

6 years agoMerge "Adding a member of Android Auto Embedded to the owners file" into pi-dev
TreeHugger Robot [Tue, 3 Apr 2018 00:25:47 +0000 (00:25 +0000)]
Merge "Adding a member of Android Auto Embedded to the owners file" into pi-dev

6 years agoRevert "Throw invalid cert exception when deprecated initRecoveryService method"
Dmitry Dementyev [Tue, 3 Apr 2018 00:16:20 +0000 (00:16 +0000)]
Revert "Throw invalid cert exception when deprecated initRecoveryService method"

This reverts commit 50bc7e42d73c9ca8d77dcd538619c6d6eeaf6dea.

Reason for revert: API is still used by old binary

Change-Id: I3c8348211baa26245786abda6360a8df96e2d223
Bug: 77293264

6 years agoRefactor isTetheringSupported() calls
Erik Kline [Fri, 9 Mar 2018 05:18:02 +0000 (14:18 +0900)]
Refactor isTetheringSupported() calls

Tethering currently wants access to complex isTetheringSupported
logic that is only available in ConnectivityService. Instead of
trying to access that via ConnectivityManager, pass this capability
in to Tethering directly, in the TetheringDependencies object.

Also:
    - ConnectivityManager is only a source of static constants now,
      so "import static" all the constants that are actually used.

Test: as follows
    - built
    - flashed
    - booted
    - runtest frameworks-net works
    - manual USB towards WiFi tethering works
Bug: 68951715

Merged-In: Ifa121b057f9959ddb980edc940327929e48ea973
Merged-In: Iad6358dc2f1d10b322d22ec90543adc50882962d
Change-Id: Ia64faaadefb4a5d84a50da98bdebd544b6fda101
(cherry picked from commit 465ff3a0c1da8afd5cb13b25ed9a3c95ee0dd2c4)

6 years agoNav icons and quick step states are determined by service enabled
Matthew Ng [Tue, 27 Mar 2018 22:25:28 +0000 (15:25 -0700)]
Nav icons and quick step states are determined by service enabled

When the device quickly changes states (such as language or font size),
it would disconnect and then reconnect the service and as a result a
flash of the nav buttons will occur. Since the nav bar is connected to
launcher service unless 3rd party launchers are used, that should
determine if the icons should change or quick step should be
enabled/disabled instead of if there is a connection. Also hold the last
interaction flags and apply on startup until service is disabled (using
3rd party launcher).

Test: go to settings and change the font size under display
Change-Id: Ibebc8c3f8493574dd21774bd292c2096cfdad469
Fixes: 74199057
Fixes: 73483047
Fixes: 72225004