OSDN Git Service

android-x86/frameworks-base.git
6 years agoMerge "AOD: Add additional delayed dozeTimeTick after unpausing" into pi-dev
TreeHugger Robot [Fri, 20 Apr 2018 12:04:12 +0000 (12:04 +0000)]
Merge "AOD: Add additional delayed dozeTimeTick after unpausing" into pi-dev

6 years agoMerge "Adjust APF interpreter tests to match APFv4" into pi-dev
TreeHugger Robot [Fri, 20 Apr 2018 11:41:52 +0000 (11:41 +0000)]
Merge "Adjust APF interpreter tests to match APFv4" into pi-dev

6 years agoMerge "Add the list of private DNS addresses to LinkProperties" into pi-dev
TreeHugger Robot [Fri, 20 Apr 2018 11:23:56 +0000 (11:23 +0000)]
Merge "Add the list of private DNS addresses to LinkProperties" into pi-dev

6 years agoMerge "Fix cutout with temp inset bounds" into pi-dev
Jorim Jaggi [Fri, 20 Apr 2018 11:09:16 +0000 (11:09 +0000)]
Merge "Fix cutout with temp inset bounds" into pi-dev

6 years agoMerge "Add intrinsics on light greylist" into pi-dev
David Brazdil [Fri, 20 Apr 2018 10:45:26 +0000 (10:45 +0000)]
Merge "Add intrinsics on light greylist" into pi-dev

6 years agoMerge "Light grey java.net.HttpCookie fields." into pi-dev
Nicolas Geoffray [Fri, 20 Apr 2018 09:37:36 +0000 (09:37 +0000)]
Merge "Light grey java.net.HttpCookie fields." into pi-dev

6 years agoMerge "Add some widget APIS to light grey." into pi-dev
Nicolas Geoffray [Fri, 20 Apr 2018 09:37:06 +0000 (09:37 +0000)]
Merge "Add some widget APIS to light grey." into pi-dev

6 years agoAdjust APF interpreter tests to match APFv4
Bernie Innocenti [Mon, 16 Apr 2018 14:27:51 +0000 (23:27 +0900)]
Adjust APF interpreter tests to match APFv4

Change-Id: I4311c754f1cb79633d49c5c1c0b4e27c8dde727e
Bug: 73804303
Test: runtest -x tests/net/java/android/net/apf/ApfTest.java
(cherry picked from commit 545d9367e24d1d55b2539c02273f92c61da74af0)

6 years agoMerge "StrictMode: fix non-SDK API usage detection." into pi-dev
Mathew Inwood [Fri, 20 Apr 2018 08:04:07 +0000 (08:04 +0000)]
Merge "StrictMode: fix non-SDK API usage detection." into pi-dev

6 years agoAdd the list of private DNS addresses to LinkProperties
Chalard Jean [Wed, 11 Apr 2018 07:36:41 +0000 (16:36 +0900)]
Add the list of private DNS addresses to LinkProperties

Test: atest android.net.LinkPropertiesTest, also new tests pass
Bug: 73641539
Change-Id: If33a35b1354a67db09411ff098f20064797296ad

6 years agoMerge changes I7c48a326,I7395ecd4 into pi-dev
TreeHugger Robot [Fri, 20 Apr 2018 07:26:35 +0000 (07:26 +0000)]
Merge changes I7c48a326,I7395ecd4 into pi-dev

* changes:
  Fix wrong bouncer translation during hint animation
  Keep animating bouncer when fingerprint

6 years agoFix wrong bouncer translation during hint animation
Lucas Dupin [Fri, 20 Apr 2018 04:08:52 +0000 (12:08 +0800)]
Fix wrong bouncer translation during hint animation

It's not correct to assume that the bouncer translation is 0 when the
unlock hint animation is running. The correct translation is 1 since
the view is completely hidden.

FalsingManager was receiving the wrong bouncer state, and this caused
the rejection swipe gestures.

Change-Id: I7c48a326f054a2c09809e5a1096ca42907472eac
Fixes: 78108854
Test: tap on scrim, swipe notification
Test: turn on flasing logs, look at logcat
Test: go/sysui-bouncer-tests

6 years agoMerge "ExifInterface: Prevent infinite loop" into pi-dev
TreeHugger Robot [Fri, 20 Apr 2018 02:43:54 +0000 (02:43 +0000)]
Merge "ExifInterface: Prevent infinite loop" into pi-dev

6 years agoMerge "Never interact with "phone" while holding locks." into pi-dev
Jeff Sharkey [Fri, 20 Apr 2018 02:38:09 +0000 (02:38 +0000)]
Merge "Never interact with "phone" while holding locks." into pi-dev

6 years agoMerge "Protect usage data with OP_GET_USAGE_STATS." into pi-dev
Jeff Sharkey [Fri, 20 Apr 2018 02:38:01 +0000 (02:38 +0000)]
Merge "Protect usage data with OP_GET_USAGE_STATS." into pi-dev

6 years agoKeep animating bouncer when fingerprint
Lucas Dupin [Fri, 20 Apr 2018 02:28:07 +0000 (10:28 +0800)]
Keep animating bouncer when fingerprint

Before we wouldn't update the bouncer expansion after being unlocked,
this leads to a border case where the bouncer would be stuck if the user
authenticates with fingerprint while dragging up.

Change-Id: I7395ecd400957c656671640c7510fb279c671af3
Fixes: 78035213
Test: go/sysui-bouncer-tests

6 years agoMerge "Add more trace categories." into pi-dev
TreeHugger Robot [Fri, 20 Apr 2018 02:12:44 +0000 (02:12 +0000)]
Merge "Add more trace categories." into pi-dev

6 years agoMerge "Fix the implementation of BluetoothCodecStatus.equals()" into pi-dev
TreeHugger Robot [Fri, 20 Apr 2018 02:12:09 +0000 (02:12 +0000)]
Merge "Fix the implementation of BluetoothCodecStatus.equals()" into pi-dev

6 years agoMerge "Workaround to ensure we cancel the recents animation prior to starting home...
Winson Chung [Fri, 20 Apr 2018 01:54:09 +0000 (01:54 +0000)]
Merge "Workaround to ensure we cancel the recents animation prior to starting home" into pi-dev

6 years agoExifInterface: Prevent infinite loop
Jin Seok Park [Fri, 30 Mar 2018 09:07:30 +0000 (18:07 +0900)]
ExifInterface: Prevent infinite loop

A corrupted image file may create two problems.
1. A corrupted IFD pointer may point to an IFD that has already
been read, thus creating an infinite loop and a stack overflow.
2. A corrupted IFD offset value may have a negative value, thus
prompting a random reading of the file and creating an infinite
loop.
This CL addresses these issues.

Bug: 63800695
Test: Run cts (ExifInterfaceTest)
Change-Id: I706a0c3eae6af8301af69407333ea88e5681df3c

6 years agoMerge "Add support for reading a snapshot of the APF data" into pi-dev
TreeHugger Robot [Fri, 20 Apr 2018 01:26:49 +0000 (01:26 +0000)]
Merge "Add support for reading a snapshot of the APF data" into pi-dev

6 years agoMerge "Allow more than one temp view to be registered at a time" into pi-dev
TreeHugger Robot [Fri, 20 Apr 2018 01:23:05 +0000 (01:23 +0000)]
Merge "Allow more than one temp view to be registered at a time" into pi-dev

6 years agoAdd more trace categories.
gopinath [Fri, 20 Apr 2018 00:54:06 +0000 (17:54 -0700)]
Add more trace categories.

Add tracing for additional filters as well.

Bug : b/78244687, b/78301352

Test: atest hot-nodropcache-stable-test
Change-Id: Ie6fd109b645c92dcfa414e3c41cc5f43032fe6fd

6 years agoMerge "Clock padding and motion adjustments" into pi-dev
TreeHugger Robot [Fri, 20 Apr 2018 00:43:53 +0000 (00:43 +0000)]
Merge "Clock padding and motion adjustments" into pi-dev

6 years agoMerge "Actually resolve all IPs for Private DNS hostname" into pi-dev
TreeHugger Robot [Fri, 20 Apr 2018 00:39:14 +0000 (00:39 +0000)]
Merge "Actually resolve all IPs for Private DNS hostname" into pi-dev

6 years agoFix the implementation of BluetoothCodecStatus.equals()
Pavlin Radoslavov [Thu, 19 Apr 2018 21:16:15 +0000 (14:16 -0700)]
Fix the implementation of BluetoothCodecStatus.equals()

Previously, the BluetoothCodecStatus.equals() implementation
was incorrect when comparing arrays of capabilities.
In the new implementation, the arrays are compared correctly,
and also the ordering of the capabilities in each array is ignored.

Also, added unit tests for class BluetoothCodecConfig and class
BluetoothCodecStatus.

Bug: 73404858
Bug: 73379307
Test: Unit tests (in frameworks/base)
  runtest --path core/tests/bluetoothtests/src/android/bluetooth/BluetoothCodecConfigTest.java
  runtest --path core/tests/bluetoothtests/src/android/bluetooth/BluetoothCodecStatusTest.java

Change-Id: If22087465397b7c4175c33f7d1909a15d957fb24
Merged-In: If22087465397b7c4175c33f7d1909a15d957fb24
(cherry picked from commit 9d36e6babc38cf7017726a587b656bdd6f8b0051)

6 years agoMerge "Add ability to set onShowListener to custom dialog pref" into pi-dev
TreeHugger Robot [Fri, 20 Apr 2018 00:15:45 +0000 (00:15 +0000)]
Merge "Add ability to set onShowListener to custom dialog pref" into pi-dev

6 years agoMerge "Fix b/77867175: Clear all of NavigationPanel is missing" into pi-dev
Sanry Huang [Fri, 20 Apr 2018 00:03:33 +0000 (00:03 +0000)]
Merge "Fix b/77867175: Clear all of NavigationPanel is missing" into pi-dev

6 years agoMerge "AudioService: Add warning log when handleDeviceConnection failed" into pi-dev
TreeHugger Robot [Thu, 19 Apr 2018 23:37:40 +0000 (23:37 +0000)]
Merge "AudioService: Add warning log when handleDeviceConnection failed" into pi-dev

6 years agoMerge changes from topic "revert_save_info" into pi-dev
TreeHugger Robot [Thu, 19 Apr 2018 23:32:46 +0000 (23:32 +0000)]
Merge changes from topic "revert_save_info" into pi-dev

* changes:
  Document compatibility mode limitations.
  Revert "Always set FLAG_SAVE_ON_ALL_VIEWS_INVISIBLE on SaveInfo when on compat mode."

6 years agoMerge "Update wifi enabled state when connected." into pi-dev
TreeHugger Robot [Thu, 19 Apr 2018 23:30:08 +0000 (23:30 +0000)]
Merge "Update wifi enabled state when connected." into pi-dev

6 years agoMerge "Allow QS expansion in switch access mode." into pi-dev
TreeHugger Robot [Thu, 19 Apr 2018 23:29:13 +0000 (23:29 +0000)]
Merge "Allow QS expansion in switch access mode." into pi-dev

6 years agoMerge "Reset sticky navbar timeout when rotate btn shown" into pi-dev
TreeHugger Robot [Thu, 19 Apr 2018 22:32:10 +0000 (22:32 +0000)]
Merge "Reset sticky navbar timeout when rotate btn shown" into pi-dev

6 years agoDocument compatibility mode limitations.
Felipe Leme [Thu, 19 Apr 2018 17:33:20 +0000 (10:33 -0700)]
Document compatibility mode limitations.

Test: mmm -j108 frameworks/base/:doc-comment-check-docs

Fixes: 77655074

Change-Id: I527d882850442c7e6e9379b1b423673885e07f2b

6 years agoRevert "Always set FLAG_SAVE_ON_ALL_VIEWS_INVISIBLE on SaveInfo when on compat mode."
Felipe Leme [Wed, 18 Apr 2018 23:12:04 +0000 (16:12 -0700)]
Revert "Always set FLAG_SAVE_ON_ALL_VIEWS_INVISIBLE on SaveInfo when on compat mode."

Save has many limitations on compat mode, so we better not change the SaveInfo
behavior but rather document then.

This reverts commit 4f74a018c8ee9801f1d5ce2c7ec726251efc4fbf.

Test: atest CtsAutoFillServiceTestCases:VirtualContainerActivityTest \
CtsAutoFillServiceTestCases:VirtualContainerActivityCompatModeTest

Bug: 77655074

Change-Id: I36bd28ca546dcedefe75de7815b76b8b5827aee3

6 years agoAllow more than one temp view to be registered at a time
Brad Stenning [Wed, 18 Apr 2018 17:28:24 +0000 (10:28 -0700)]
Allow more than one temp view to be registered at a time

Without this we can't put the status bar above the full screen user
selection page

Bug:77148007

Test: with a second set of hvac

Change-Id: If422ad4cd2c3ad6ef4beb1d919327fed96184ba6

6 years agoMerge "Fix non-unique PendingIntent issue with TCImpl." into pi-dev
Abodunrinwa Toki [Thu, 19 Apr 2018 22:05:17 +0000 (22:05 +0000)]
Merge "Fix non-unique PendingIntent issue with TCImpl." into pi-dev

6 years agoAudioService: Add warning log when handleDeviceConnection failed
Jack He [Thu, 19 Apr 2018 22:03:43 +0000 (15:03 -0700)]
AudioService: Add warning log when handleDeviceConnection failed

Bug: 78284878
Test: make, no functional change
Change-Id: I3c0b90afe8f345fa63812a1f91350baccb59516e

6 years agoCleanup documentation for LE CoC in BluetoothAdapter
Stanley Tng [Thu, 5 Apr 2018 01:33:46 +0000 (18:33 -0700)]
Cleanup documentation for LE CoC in BluetoothAdapter

Test: Compile
Bug: 77631591
Change-Id: Ic3c7f13e560534a048bf5c8b274fe62190c214c7
(cherry picked from commit dac8e140184f3ac52210ff3638af3f53edca1ba0)

6 years agoMerge "Clarify API doc for BluetoothGattServer::addService" into pi-dev
Stanley Tng [Thu, 19 Apr 2018 21:56:38 +0000 (21:56 +0000)]
Merge "Clarify API doc for BluetoothGattServer::addService" into pi-dev

6 years agoProtect usage data with OP_GET_USAGE_STATS.
Jeff Sharkey [Thu, 19 Apr 2018 17:20:57 +0000 (11:20 -0600)]
Protect usage data with OP_GET_USAGE_STATS.

APIs that return package usage data (such as the new ArtManager)
must ensure that callers hold both the PACKAGE_USAGE_STATS permission
and the OP_GET_USAGE_STATS app-op.

Bug: 77662908
Test: atest vendor/xts/gts-tests/hostsidetests/dexapis/host/
Change-Id: I7a85d959f1682d2bd5cf3684415e368fece88101

6 years agoMerge "AAPT2: Support id reference chaining from AAPT" into pi-dev
Ryan Mitchell [Thu, 19 Apr 2018 21:35:59 +0000 (21:35 +0000)]
Merge "AAPT2: Support id reference chaining from AAPT" into pi-dev

6 years agoMerge "[DO NOT MERGE] [Companion] Call notifyDataSetChanged on main thread" into...
TreeHugger Robot [Thu, 19 Apr 2018 21:11:57 +0000 (21:11 +0000)]
Merge "[DO NOT MERGE] [Companion] Call notifyDataSetChanged on main thread" into pi-dev

6 years agoWorkaround to ensure we cancel the recents animation prior to starting home
Winson Chung [Thu, 19 Apr 2018 00:53:15 +0000 (17:53 -0700)]
Workaround to ensure we cancel the recents animation prior to starting home

- It is possible for the call from SystemUI to cancel the recents animation
  to be processed and handled after the virtual key has been processed in
  PhoneWindowManager. This causes a misordering in which the canceling of
  the Recents animation clears the pending start activity remote animation
  (which is waiting for app transition ready).

  Instead, move the canceling of the Recents animation to PhoneWindowManager
  where the nav button is handled, to ensure that we cancel the animation
  on the same thread before we start the activity.

Bug: 73188263
Test: Only able to reproduce so far artificially, which points to this
      misordering

Change-Id: I1f3477acdf988953a5b3cef2e3b2b402af2d9909
Signed-off-by: Winson Chung <winsonc@google.com>
6 years agoMerge "Fix channels --stats dump" into pi-dev
TreeHugger Robot [Thu, 19 Apr 2018 20:55:49 +0000 (20:55 +0000)]
Merge "Fix channels --stats dump" into pi-dev

6 years agoNever interact with "phone" while holding locks.
Jeff Sharkey [Wed, 18 Apr 2018 21:42:57 +0000 (15:42 -0600)]
Never interact with "phone" while holding locks.

We've seen devices where heavy communication between "system_server"
and the "phone" process can exhuast Binder threads, especially when
calling while holding locks.  To mitigate this, we now interact with
the "phone" process before acquiring any locks.

Update our internal data structures either when we see a connectivity
change, or when SubscriptionManager tells us something changed.

Fix bug in resolveSubscriptionPlan() that always picked the 0'th
SubscriptionPlan instead of looking for the currently active plan;
we now use the same logic for both NSS and NPMS.

Bug: 7790852077154412
Test: atest com.android.server.NetworkPolicyManagerServiceTest
Test: atest com.android.server.net.NetworkStatsServiceTest
Change-Id: I177d3fa6cddc78d745b35a9ede12451d458b892c

6 years agoMerge "Fix screen on count text dump" into pi-dev
TreeHugger Robot [Thu, 19 Apr 2018 20:16:28 +0000 (20:16 +0000)]
Merge "Fix screen on count text dump" into pi-dev

6 years agoMerge "Don't crash during layout of non-attached but focused view" into pi-dev
TreeHugger Robot [Thu, 19 Apr 2018 20:13:32 +0000 (20:13 +0000)]
Merge "Don't crash during layout of non-attached but focused view" into pi-dev

6 years agoFix channels --stats dump
Julia Reynolds [Thu, 19 Apr 2018 19:50:31 +0000 (15:50 -0400)]
Fix channels --stats dump

Test: manual inspection
Bug: 78292990
Change-Id: Iab75627494213870184e503bc2585cc8644ca1dd

6 years agoFix non-unique PendingIntent issue with TCImpl.
Abodunrinwa Toki [Wed, 18 Apr 2018 20:21:27 +0000 (21:21 +0100)]
Fix non-unique PendingIntent issue with TCImpl.

As per the referenced bug, we're running into issues where apps are
being fired with stale intents. The reason is because we need intents we
fire to be unique by Intent.filterEquals. Some of the intents we
generate put unique data in the intent extra which is not considered by
filterEquals. The solution here is to create PendingIntents with unique
request codes (using classifiedText.hashCode()).
See more info about this in
https://developer.android.com/reference/android/app/PendingIntent.html

Bug: 77930684
Test: manually tested broken scenarios. See referenced bug
Test: bit FrameworksCoreTests:android.view.textclassifier.TextClassificationManagerTest
Test: bit CtsViewTestCases:android.view.textclassifier.cts.TextClassificationManagerTest
Test: bit FrameworksCoreTests:android.view.textclassifier.TextClassificationTest
Test: bit CtsWidgetTestCases:android.widget.cts.TextViewTest
Test: bit FrameworksCoreTests:android.widget.TextViewActivityTest
Change-Id: Ib7275f94ca5ada51e4ba191742d4b614df12e1ea

6 years agoReset sticky navbar timeout when rotate btn shown
Mike Digman [Thu, 19 Apr 2018 17:50:35 +0000 (10:50 -0700)]
Reset sticky navbar timeout when rotate btn shown

First revealing the navbar and then rotating in an
immersive sticky activity makes the rotate navbar button
hard to tap. Signal to the navbar to reset sticky hiding
timeouts if the button becomes visible or changes.

Change-Id: I381bbfd2e0192465b8358bedd213f23dde8ec982
Fixes: 78248328
Test: manual testing with custom immersive sticky activity

6 years agoMerge "Adjust media.codec process group upon request from mediaserver" into pi-dev
TreeHugger Robot [Thu, 19 Apr 2018 17:40:39 +0000 (17:40 +0000)]
Merge "Adjust media.codec process group upon request from mediaserver" into pi-dev

6 years agoMerge "SyncManager: Dump per-source last sync time too." into pi-dev
Makoto Onuki [Thu, 19 Apr 2018 17:37:45 +0000 (17:37 +0000)]
Merge "SyncManager: Dump per-source last sync time too." into pi-dev

6 years agoMerge "Split provider / service dumpsys into platform and non-platform" into pi-dev
Makoto Onuki [Thu, 19 Apr 2018 17:21:48 +0000 (17:21 +0000)]
Merge "Split provider / service dumpsys into platform and non-platform" into pi-dev

6 years agoAllow QS expansion in switch access mode.
Amin Shaikh [Tue, 17 Apr 2018 15:14:32 +0000 (11:14 -0400)]
Allow QS expansion in switch access mode.

Change-Id: I90ffc96f3bbbc8e5cad1509cc8d7b4028ff3fe04
Fixes: 78129194
Test: manually

6 years agoMerge "Update notification shade text on zen change" into pi-dev
TreeHugger Robot [Thu, 19 Apr 2018 17:11:25 +0000 (17:11 +0000)]
Merge "Update notification shade text on zen change" into pi-dev

6 years agoClock padding and motion adjustments
Lucas Dupin [Thu, 12 Apr 2018 17:50:13 +0000 (10:50 -0700)]
Clock padding and motion adjustments

Fixes: 73830624
Test: manual
Test: atest packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/PropertyAnimatorTest.java
Change-Id: I9b7785cfbc610db9e4b920eef518ab24b97a6bbc

6 years agoMerge "getUserIdLPr should take application id as input" into pi-dev
TreeHugger Robot [Thu, 19 Apr 2018 16:51:23 +0000 (16:51 +0000)]
Merge "getUserIdLPr should take application id as input" into pi-dev

6 years agoMerge "Update bluetooth QS tile secondary text." into pi-dev
TreeHugger Robot [Thu, 19 Apr 2018 16:29:52 +0000 (16:29 +0000)]
Merge "Update bluetooth QS tile secondary text." into pi-dev

6 years agoMerge "Fail gracefully if we get a bad API whitelist." into pi-dev
Mathew Inwood [Thu, 19 Apr 2018 16:24:31 +0000 (16:24 +0000)]
Merge "Fail gracefully if we get a bad API whitelist." into pi-dev

6 years agoMerge "Don't mute ringer if apps can bypass dnd" into pi-dev
Beverly Tai [Thu, 19 Apr 2018 16:08:28 +0000 (16:08 +0000)]
Merge "Don't mute ringer if apps can bypass dnd" into pi-dev

6 years agoMerge "Add setMin for all slider in volume panel." into pi-dev
TreeHugger Robot [Thu, 19 Apr 2018 16:07:12 +0000 (16:07 +0000)]
Merge "Add setMin for all slider in volume panel." into pi-dev

6 years agoMerge "Clean up punctuation in SIM locked strings." into pi-dev
TreeHugger Robot [Thu, 19 Apr 2018 16:00:35 +0000 (16:00 +0000)]
Merge "Clean up punctuation in SIM locked strings." into pi-dev

6 years agoMerge "Status bar icon ordering" into pi-dev
TreeHugger Robot [Thu, 19 Apr 2018 15:47:38 +0000 (15:47 +0000)]
Merge "Status bar icon ordering" into pi-dev

6 years agoMerge "Translate SystemUi NotifChannels on locale change" into pi-dev
TreeHugger Robot [Thu, 19 Apr 2018 15:32:45 +0000 (15:32 +0000)]
Merge "Translate SystemUi NotifChannels on locale change" into pi-dev

6 years agoMerge "Update docs 'since' for API 28." into pi-dev
Anton Hansson [Thu, 19 Apr 2018 15:30:07 +0000 (15:30 +0000)]
Merge "Update docs 'since' for API 28." into pi-dev

6 years agoUpdate wifi enabled state when connected.
Amin Shaikh [Wed, 18 Apr 2018 21:43:53 +0000 (17:43 -0400)]
Update wifi enabled state when connected.

Change-Id: Ib0be6b3ab8139781868781c370688d70cef22553
Fixes: 78242165
Test: runtest systemui

6 years agoStrictMode: fix non-SDK API usage detection.
Mathew Inwood [Thu, 19 Apr 2018 13:42:58 +0000 (14:42 +0100)]
StrictMode: fix non-SDK API usage detection.

The warning dedupe logic in the runtime meant that only the first usage of
each API was detected. Disable this logic when DETECT_VM_NON_SDK_API_USAGE
is enabled.

Test: m
Test: $ atest android.os.cts.StrictModeTest#testNonSdkApiUsage
Bug: 78268765
Change-Id: Iba1127b84180b9a5e5eb68abc4691ccad082b80e

6 years agoMerge "Revert "Don't consider resources < 0 as invalid"" into pi-dev
Jorim Jaggi [Thu, 19 Apr 2018 15:18:23 +0000 (15:18 +0000)]
Merge "Revert "Don't consider resources < 0 as invalid"" into pi-dev

6 years agoMerge "Visit Uris in RemoteViews for granting purposes." into pi-dev
Jeff Sharkey [Thu, 19 Apr 2018 14:58:02 +0000 (14:58 +0000)]
Merge "Visit Uris in RemoteViews for granting purposes." into pi-dev

6 years agoUpdate notification shade text on zen change
Beverly [Wed, 18 Apr 2018 21:32:56 +0000 (17:32 -0400)]
Update notification shade text on zen change

Change-Id: I6b75af1a94f7da95ac78fac122651924db7c1308
Fixes: 76143428
Test: NotificationStackScrollLayoutTest

6 years agoAdd intrinsics on light greylist
David Brazdil [Thu, 19 Apr 2018 14:09:04 +0000 (15:09 +0100)]
Add intrinsics on light greylist

Put intrinsics which are hidden API on light greylist. These were
implicitly considered white so far, so we would not have seen warnings
about their uses and should greylist them for P.

Note that these have been greylisted before in CL
I8fba27a529a83751ab27859b1c1b791ab85786cf but the CL was reverted.

Bug: 64382372
Test: make
Change-Id: I21fe58d244b8b43bf4ddeab556c805d256c13512

6 years agoClean up punctuation in SIM locked strings.
Dan Sandler [Sat, 14 Apr 2018 00:39:39 +0000 (20:39 -0400)]
Clean up punctuation in SIM locked strings.

Bug: 76122305
Test: visual
Change-Id: I4795b10fee950fd37efc0bd95af87cb14d0947ff

6 years agoAdd some widget APIS to light grey.
Nicolas Geoffray [Thu, 19 Apr 2018 14:48:05 +0000 (15:48 +0100)]
Add some widget APIS to light grey.

bug: 78045614
Test: m
Change-Id: I77c7059e55a3504173f29c0cf263b77f5ecb8012

6 years agoFix cutout with temp inset bounds
Jorim Jaggi [Wed, 18 Apr 2018 15:27:27 +0000 (17:27 +0200)]
Fix cutout with temp inset bounds

Cutout needs to be calculated before shifting back, otherwise it
will end up at the wrong position.

Test: WindowFrameTests
Test: Resize with cutout, less jank
Bug: 78214347
Change-Id: I4eebd61aff9c13b2b53d0ed1afa7e4159eb29b29

6 years agoLight grey java.net.HttpCookie fields.
Nicolas Geoffray [Thu, 19 Apr 2018 14:18:18 +0000 (15:18 +0100)]
Light grey java.net.HttpCookie fields.

bug: 78182056
bug: 77925754
Test: m
Change-Id: I930ad319e8477ac93ab19632565e3696317053e1

6 years agoTranslate SystemUi NotifChannels on locale change
Beverly [Thu, 19 Apr 2018 14:27:06 +0000 (10:27 -0400)]
Translate SystemUi NotifChannels on locale change

Register receiver outside of the on boot receiver

Test: manual
Change-Id: Id286647ffe68704f928ca55dcae14dadc4fa998d
Fixes: 64887866

6 years agoMerge "AOD: Ensure WakeLock is held for delayed dozeTimeTick" into pi-dev
TreeHugger Robot [Thu, 19 Apr 2018 13:59:25 +0000 (13:59 +0000)]
Merge "AOD: Ensure WakeLock is held for delayed dozeTimeTick" into pi-dev

6 years agoUpdate bluetooth QS tile secondary text.
Amin Shaikh [Wed, 18 Apr 2018 18:14:38 +0000 (14:14 -0400)]
Update bluetooth QS tile secondary text.

Only show detailed status when connected to exactly one device.
Otherwise show "X devices".
Also, listen for bluetooth profile service callbacks to initialize the
bluetooth device state after systemui crashes.

TODO: Update string to "X devices connected" after P

Change-Id: I99a3484c3dfa7eb0d6d8836336ebb84cbdaadbe5
Fixes: 76102598
Fixes: 77498698
Test: manual

6 years agogetUserIdLPr should take application id as input
Tony Mak [Thu, 19 Apr 2018 13:24:10 +0000 (14:24 +0100)]
getUserIdLPr should take application id as input

Fixes: 78265824
Test: Setup work profile using TestDPC -> add account into work profile.
Test: Add google.com in personal side to trigger work profile setup.

Change-Id: Ib87301fc98d0ebf1baa043e4badb5144a0f62377

6 years agoRevert "Don't consider resources < 0 as invalid"
Jorim Jaggi [Thu, 19 Apr 2018 13:27:52 +0000 (13:27 +0000)]
Revert "Don't consider resources < 0 as invalid"

This reverts commit fbcf20819182107fcf1d3fb894881754e2fbb7f6.

Reason for revert: Breaks all window animations

Bug: 78264055
Change-Id: Iaa09626ad8dc26a3fde1ecc402dc2bd28df99627

6 years agoUpdate docs 'since' for API 28.
Anton Hansson [Thu, 19 Apr 2018 13:04:32 +0000 (14:04 +0100)]
Update docs 'since' for API 28.

I'm replacing this list with a for-loop in master, so it shouldn't need
updating in future (except for temporary apis).

Bug: 77588754
Test: make docs
Change-Id: Ib48218e303b53e2b16a13866e4423ee2ad1c2f4a

6 years agoMerge "Animate home in separate layer" into pi-dev
Jorim Jaggi [Thu, 19 Apr 2018 13:01:48 +0000 (13:01 +0000)]
Merge "Animate home in separate layer" into pi-dev

6 years agoMerge "Add one more hidden API to light greylist" into pi-dev
David Brazdil [Thu, 19 Apr 2018 12:59:40 +0000 (12:59 +0000)]
Merge "Add one more hidden API to light greylist" into pi-dev

6 years agoMerge "Add UUID->leastSigBits to light grey." into pi-dev
Nicolas Geoffray [Thu, 19 Apr 2018 12:51:27 +0000 (12:51 +0000)]
Merge "Add UUID->leastSigBits to light grey." into pi-dev

6 years agoActually resolve all IPs for Private DNS hostname
Erik Kline [Thu, 19 Apr 2018 08:58:15 +0000 (17:58 +0900)]
Actually resolve all IPs for Private DNS hostname

Previously, we reused the OneAddressPerFamilyNetwork which does
what it says on the tin.  For the resolution that will be used
to program netd this is not what we really want.

Test: as follows
    - built
    - flashed
    - booted
    - runtest frameworks-net passes
    - manual testing of Private DNS passes
Bug: 64133961
Merged-In: I1e5de255c4ee11f46dc8a1e3f5eaca2f2be1c792
Merged-In: Ia52675649a17f25f1baff9393f8a50b586893a56
Change-Id: Ieccc4d208b314b81061dc78d83848f97acefe04b
(cherry picked from commit 71d90c43016909308b44ec4fcbeb824f1c82db9f)

6 years agoAdd support for reading a snapshot of the APF data
Bernie Innocenti [Mon, 16 Apr 2018 11:15:12 +0000 (20:15 +0900)]
Add support for reading a snapshot of the APF data

No functional change yet, since startReadPacketFilter() has no callers
at this time.  In the future, this new hook will be used to take
periodic snapshots of the APF memory (for instance, when the device
wakes up).

Design note: WifiStateMachine grabs the APF data synchronously
from another thread, but then the data snapshot is delivered to IpClient
via an asynchronous reply, following the same pattern used by other
commands. This means that there's no (practical) way for IpClient to
read the APF data just before replacing the APF program.

Even with this limitation, it's still possible to reliably decode packet
counters and compute deltas relative to the last snapshot, provided that
the address range isn't cleared when installing a new APF filter.

Bug: 73804303
Test: Manual - called the new code and inspected 'dumpsys wifi' output.
Change-Id: Ia0923d71cf3ee4128fb1c381557316300adac1a3

6 years agoFix b/77867175: Clear all of NavigationPanel is missing
Ahan Wu [Mon, 16 Apr 2018 03:33:01 +0000 (11:33 +0800)]
Fix b/77867175: Clear all of NavigationPanel is missing

Two views shared the same states: mAnimating and mIsVisible thus some
alpha animations would be skipped due to ambiguous states.

This solution uses dedicated flags for each view and isolates
isVisible() from isSecondaryVisible(), making them more distinct.

Bug: 77867175
Test: runtest systemui
Change-Id: Id63b3498f9b5df581ca98202d227bd608c198d80

6 years agoAdd one more hidden API to light greylist
David Brazdil [Thu, 19 Apr 2018 09:59:32 +0000 (10:59 +0100)]
Add one more hidden API to light greylist

Bug: 78229662
Test: make
Change-Id: I603e48d795d6d805f46389f9edbd81ffd6c66696

6 years agoFail gracefully if we get a bad API whitelist.
Mathew Inwood [Mon, 9 Apr 2018 16:29:12 +0000 (17:29 +0100)]
Fail gracefully if we get a bad API whitelist.

If we send a bad API whitelist to the Zygote, it causes it to close the
socket. If we take no further action in AMS, it results in the same list
of exceptions being sent when we re-open the socket, resulting in it again
being closed. This results in no longer fork/start any new processes.
Since the list is persisted, this would result in the device entering a
boot loop upon reboot. Since no apps could be started, we cannot recover.

So in the case that the exemptions list causes problems, clear out the
list so we don't try to send it again next time. This means we will see
a single failure, but future attempts will succeed (obviously without
any whitelist). The device should not enter a boot loop.

Note, the test below relies on the fact that we can send at most 1024
arguments in a command to the Zygote (MAX_ZYGOTE_ARGC), and that each
item on the list is a separate argument.

Test: adb shell settings put global hidden_api_blacklist_exemptions \
Test:    $(for i in {1..1025}; do echo -n $i,; done)
Bug: 64382372
Change-Id: Ie47095d516c247ff6a8d667a2ac9b7be45f1acda

6 years agoMerge "Add proto constants for hidden API logging." into pi-dev
Mathew Inwood [Thu, 19 Apr 2018 07:09:19 +0000 (07:09 +0000)]
Merge "Add proto constants for hidden API logging." into pi-dev

6 years agoMerge "Fix notification bar can be dragged when SIM PIN lock screen." into pi-dev
Sanry Huang [Thu, 19 Apr 2018 06:49:19 +0000 (06:49 +0000)]
Merge "Fix notification bar can be dragged when SIM PIN lock screen." into pi-dev

6 years agoMerge "Fix unnecessarily extended View lifetime in IMMS" into pi-dev
TreeHugger Robot [Thu, 19 Apr 2018 04:01:36 +0000 (04:01 +0000)]
Merge "Fix unnecessarily extended View lifetime in IMMS" into pi-dev

6 years agoVisit Uris in RemoteViews for granting purposes.
Jeff Sharkey [Thu, 19 Apr 2018 03:32:12 +0000 (21:32 -0600)]
Visit Uris in RemoteViews for granting purposes.

RemoteViews end up passing around Uris, so we need to extend Uri
permission grants for them to ensure the recipient of a Notification
object is able to render its contents.

Bug: 9069730
Test: atest frameworks/base/services/tests/uiservicestests/src/com/android/server/notification
Change-Id: Id31b5adaf2ee66113a1b503e32126aeddbf97b28

6 years agoMerge "Fixed autofill forged package check to only compare the package name." into...
TreeHugger Robot [Thu, 19 Apr 2018 03:10:35 +0000 (03:10 +0000)]
Merge "Fixed autofill forged package check to only compare the package name." into pi-dev

6 years agoFixed autofill forged package check to only compare the package name.
Felipe Leme [Wed, 18 Apr 2018 21:25:00 +0000 (14:25 -0700)]
Fixed autofill forged package check to only compare the package name.

Otherwise, it will log false negatives when app launches a new activity in the
same autofill session. Example:

04-18 19:34:32.392  5423  7199 W AutofillSession: Activity ComponentInfo{com.netgear.WiFiAnalytics/com.netgear.WiFiAnalytics.WiFiAnalyticsWifiRoomSignal} forged different component on AssistStructure: ComponentInfo{com.netgear.WiFiAnalytics/com.netgear.WiFiAnalytics.WiFiAnalyticsWifiAnalyzerTab}

Fixes: 78235438
Bug: 69981710
Test: manual verification, cannot be CTS tested.
Test: CtsAutoFillServiceTestCases

Change-Id: I0408cd159c2be22841a1f6c36a4a2c17e59a6219

6 years agoMerge "Implement swipe up and quick scrub onboarding" into pi-dev
TreeHugger Robot [Thu, 19 Apr 2018 01:16:20 +0000 (01:16 +0000)]
Merge "Implement swipe up and quick scrub onboarding" into pi-dev

6 years agoMerge "Reducing the touch slop for quickstep" into pi-dev
TreeHugger Robot [Thu, 19 Apr 2018 01:04:45 +0000 (01:04 +0000)]
Merge "Reducing the touch slop for quickstep" into pi-dev

6 years agoFix unnecessarily extended View lifetime in IMMS
Yohei Yukawa [Thu, 19 Apr 2018 00:31:27 +0000 (17:31 -0700)]
Fix unnecessarily extended View lifetime in IMMS

Currently InputMethodManagerService (IMMS) unnecessarily extends the
lifetime of View objects used to show IME switcher dialog until the
dialog is shown again, because it forgets to clear
IMMS#mSwitchingDialogTitleView with null even after the dialog is
closed.

As a result, roughly 1.5MB of RAM will be unnecessarily consumed by
the system_server once after the IME switcher dialog is shown until
the device is rebooted.

With this CL, IMMS#mSwitchingDialogTitleView will be cleared with null
when the dialog is closed.

Fixes: 78245299
Test: Manually made sure that IMMS does not hold strong references to
      View objects used for IME switcher dialog after the dialog is
      closed.
Change-Id: I9fee92bb2974edeceacc680686095df480efba29

6 years agoMerge "No AppStandby tracking of non existent packages and add parole window" into...
TreeHugger Robot [Thu, 19 Apr 2018 00:16:08 +0000 (00:16 +0000)]
Merge "No AppStandby tracking of non existent packages and add parole window" into pi-dev