Commit Graph

365693 Commits

Author SHA1 Message Date
Nicolas Geoffray
55ca4d33fe Add light grey APIs.
bug: 64382372
Test: m
Change-Id: If15820dda1c985dc8d367d211732611d0a56bd26
2018-04-20 13:16:18 +01:00
Nicolas Geoffray
75d3d96084 Merge "Light grey java.net.HttpCookie fields." into pi-dev 2018-04-20 09:37:36 +00:00
Nicolas Geoffray
2c321ccd7e Merge "Add some widget APIS to light grey." into pi-dev 2018-04-20 09:37:06 +00:00
Mathew Inwood
c72ee1a4f2 Merge "StrictMode: fix non-SDK API usage detection." into pi-dev 2018-04-20 08:04:07 +00:00
TreeHugger Robot
4e4b6ff508 Merge changes I7c48a326,I7395ecd4 into pi-dev
* changes:
  Fix wrong bouncer translation during hint animation
  Keep animating bouncer when fingerprint
2018-04-20 07:26:35 +00:00
Lucas Dupin
d7344dcd6c 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
2018-04-20 06:27:55 +00:00
TreeHugger Robot
6cc4575ced Merge "ExifInterface: Prevent infinite loop" into pi-dev 2018-04-20 02:43:54 +00:00
Jeff Sharkey
d101084db7 Merge "Never interact with "phone" while holding locks." into pi-dev 2018-04-20 02:38:09 +00:00
Jeff Sharkey
ddb15c471c Merge "Protect usage data with OP_GET_USAGE_STATS." into pi-dev 2018-04-20 02:38:01 +00:00
Lucas Dupin
52a9587a1c 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
2018-04-20 10:33:22 +08:00
TreeHugger Robot
6d9f7943fb Merge "Add more trace categories." into pi-dev 2018-04-20 02:12:44 +00:00
TreeHugger Robot
1c75189a0a Merge "Fix the implementation of BluetoothCodecStatus.equals()" into pi-dev 2018-04-20 02:12:09 +00:00
Winson Chung
1c0d00fac4 Merge "Workaround to ensure we cancel the recents animation prior to starting home" into pi-dev 2018-04-20 01:54:09 +00:00
Jin Seok Park
12e7aa5882 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
2018-04-20 10:36:00 +09:00
TreeHugger Robot
20c294be69 Merge "Add support for reading a snapshot of the APF data" into pi-dev 2018-04-20 01:26:49 +00:00
TreeHugger Robot
501889c7d1 Merge "Allow more than one temp view to be registered at a time" into pi-dev 2018-04-20 01:23:05 +00:00
gopinath
21799f8b05 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
2018-04-20 00:59:12 +00:00
TreeHugger Robot
96b4b4bd4e Merge "Clock padding and motion adjustments" into pi-dev 2018-04-20 00:43:53 +00:00
TreeHugger Robot
dd08f4b96a Merge "Actually resolve all IPs for Private DNS hostname" into pi-dev 2018-04-20 00:39:14 +00:00
Pavlin Radoslavov
a291ce625a 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 9d36e6babc)
2018-04-19 17:26:31 -07:00
TreeHugger Robot
c2120a10f7 Merge "Add ability to set onShowListener to custom dialog pref" into pi-dev 2018-04-20 00:15:45 +00:00
Sanry Huang
f0b7418f1b Merge "Fix b/77867175: Clear all of NavigationPanel is missing" into pi-dev 2018-04-20 00:03:33 +00:00
TreeHugger Robot
6664f982a7 Merge "AudioService: Add warning log when handleDeviceConnection failed" into pi-dev 2018-04-19 23:37:40 +00:00
TreeHugger Robot
4dddd61fa8 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."
2018-04-19 23:32:46 +00:00
TreeHugger Robot
8a87e9ddd8 Merge "Update wifi enabled state when connected." into pi-dev 2018-04-19 23:30:08 +00:00
TreeHugger Robot
caa429eada Merge "Allow QS expansion in switch access mode." into pi-dev 2018-04-19 23:29:13 +00:00
TreeHugger Robot
0b2f7503a8 Merge "Reset sticky navbar timeout when rotate btn shown" into pi-dev 2018-04-19 22:32:10 +00:00
Felipe Leme
9c05605f52 Document compatibility mode limitations.
Test: mmm -j108 frameworks/base/:doc-comment-check-docs

Fixes: 77655074

Change-Id: I527d882850442c7e6e9379b1b423673885e07f2b
2018-04-19 15:26:48 -07:00
Felipe Leme
a7f3e9c7cb 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 4f74a018c8.

Test: atest CtsAutoFillServiceTestCases:VirtualContainerActivityTest \
CtsAutoFillServiceTestCases:VirtualContainerActivityCompatModeTest

Bug: 77655074

Change-Id: I36bd28ca546dcedefe75de7815b76b8b5827aee3
2018-04-19 15:25:49 -07:00
Brad Stenning
2f3444f9e1 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
2018-04-19 22:17:17 +00:00
Abodunrinwa Toki
993890fbf4 Merge "Fix non-unique PendingIntent issue with TCImpl." into pi-dev 2018-04-19 22:05:17 +00:00
Jack He
f05e516f1d AudioService: Add warning log when handleDeviceConnection failed
Bug: 78284878
Test: make, no functional change
Change-Id: I3c0b90afe8f345fa63812a1f91350baccb59516e
2018-04-19 15:03:43 -07:00
Stanley Tng
0d5aa574d6 Cleanup documentation for LE CoC in BluetoothAdapter
Test: Compile
Bug: 77631591
Change-Id: Ic3c7f13e560534a048bf5c8b274fe62190c214c7
(cherry picked from commit dac8e14018)
2018-04-19 21:57:09 +00:00
Stanley Tng
fb4da73e76 Merge "Clarify API doc for BluetoothGattServer::addService" into pi-dev 2018-04-19 21:56:38 +00:00
Jeff Sharkey
0ad6283da7 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
2018-04-19 15:46:59 -06:00
Ryan Mitchell
247ecfa498 Merge "AAPT2: Support id reference chaining from AAPT" into pi-dev 2018-04-19 21:35:59 +00:00
TreeHugger Robot
bb35e9e0e9 Merge "[DO NOT MERGE] [Companion] Call notifyDataSetChanged on main thread" into pi-dev 2018-04-19 21:11:57 +00:00
Winson Chung
703719be15 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>
2018-04-19 13:58:19 -07:00
TreeHugger Robot
5de9459c81 Merge "Fix channels --stats dump" into pi-dev 2018-04-19 20:55:49 +00:00
Jeff Sharkey
146bb336ec 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: 77908520, 77154412
Test: atest com.android.server.NetworkPolicyManagerServiceTest
Test: atest com.android.server.net.NetworkStatsServiceTest
Change-Id: I177d3fa6cddc78d745b35a9ede12451d458b892c
2018-04-19 14:41:35 -06:00
TreeHugger Robot
dd61c7e8e7 Merge "Fix screen on count text dump" into pi-dev 2018-04-19 20:16:28 +00:00
TreeHugger Robot
62bb0802f9 Merge "Don't crash during layout of non-attached but focused view" into pi-dev 2018-04-19 20:13:32 +00:00
Julia Reynolds
ad23a8021d Fix channels --stats dump
Test: manual inspection
Bug: 78292990
Change-Id: Iab75627494213870184e503bc2585cc8644ca1dd
2018-04-19 15:50:31 -04:00
Abodunrinwa Toki
904a931cfc 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
2018-04-19 18:23:51 +00:00
Mike Digman
9b50b76700 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
2018-04-19 10:57:49 -07:00
TreeHugger Robot
3f8884829f Merge "Adjust media.codec process group upon request from mediaserver" into pi-dev 2018-04-19 17:40:39 +00:00
Makoto Onuki
d329ae8010 Merge "SyncManager: Dump per-source last sync time too." into pi-dev 2018-04-19 17:37:45 +00:00
Makoto Onuki
dbdf5df96e Merge "Split provider / service dumpsys into platform and non-platform" into pi-dev 2018-04-19 17:21:48 +00:00
Amin Shaikh
8a3e23ce63 Allow QS expansion in switch access mode.
Change-Id: I90ffc96f3bbbc8e5cad1509cc8d7b4028ff3fe04
Fixes: 78129194
Test: manually
2018-04-19 13:14:21 -04:00
TreeHugger Robot
7468d361e3 Merge "Update notification shade text on zen change" into pi-dev 2018-04-19 17:11:25 +00:00