Commit Graph

458212 Commits

Author SHA1 Message Date
Bill Yi
79cd97d3ca Import translations. DO NOT MERGE
Change-Id: Idcd6cf3fb55de36ded9c2a077f59792d97725e8d
Auto-generated-cl: translation import
2020-01-05 17:05:23 -08:00
Dave Mankoff
c0e6e25c13 Merge "Disable falsing when resting on a Dock." 2020-01-04 16:59:01 +00:00
Joanne Chung
0041b17113 Merge "Ensure OVERTYPE event has an entity type." 2020-01-04 05:46:11 +00:00
Wale Ogunwale
13e8c70032 Merge "Pre-cleanup before unifying Task and Stack (82/n)" 2020-01-04 04:59:15 +00:00
Philip P. Moltmann
54354063a9 Merge "Collect AsyncNotedAppOp in same call as noteOp" 2020-01-04 03:24:00 +00:00
TreeHugger Robot
59ec070e88 Merge "Classify PINNED as a transient windowing mode." 2020-01-04 02:13:39 +00:00
Xiangyu/Malcolm Chen
a4e58b7e19 Merge changes from topic "146593004"
* changes:
  Use proper Telephony API to supply sim pin and puk.
  Hook supplyPin and supplyPuk to proper impl with subId specified
2020-01-04 02:07:01 +00:00
TreeHugger Robot
24a4c411db Merge "Added attributes for IME and AutofillService to indicate they support inline suggestions." 2020-01-04 01:18:46 +00:00
Ned Burns
31ad79e7be Merge changes I4b5dd1a6,I47cb9c8b,Iad7ed1af,I44c0b13c
* changes:
  Add GroupCoalescer to new pipeline
  Remove onBeginDispatchToListeners from CollectionReadyForBuildListener
  Rename NotifServiceListener -> NotificationHandler
  Extract NoManSimulator to top level
2020-01-04 01:17:30 +00:00
Ben Lin
3240c2c5ed Classify PINNED as a transient windowing mode.
Since we now perform setWindowingMode for PIP (even for the case of
re-parenting, we move the activities to a new stack first and then set
its windowing mode to PINNED), we can now add this condition.

Bug: 114842032
Bug: 144508210
Test: Try to do repro steps on b/144508210, no longer happens.
Change-Id: I0e491c52273e9d5edef05b1745c5fbffd9361ac0
2020-01-03 16:57:20 -08:00
Ameer Armaly
da8c253b3b Merge "Fix NullPointerException on double tap on hold." 2020-01-04 00:42:34 +00:00
TreeHugger Robot
431db93d36 Merge "Create permission for managing one-time permission sessions" 2020-01-04 00:15:06 +00:00
TreeHugger Robot
ebab3d10cb Merge "GpuStats: track whether the app creates ES1 context" 2020-01-03 23:51:00 +00:00
David Su
bc9dc45871 Merge "Wifi: Add java_api_finder plugin" 2020-01-03 23:50:49 +00:00
Xiangyu/Malcolm Chen
fe5de982c7 Merge "[Telephony Mainline] Make newFromBundle and fillInNotifierBundle System API" 2020-01-03 23:22:55 +00:00
David Su
ae86a373c3 Wifi: Add java_api_finder plugin
Add java_api_finder to find APIs that
framework-wifi depends on.

Bug: 146163587
Test: none
Change-Id: I57a101780490a93b358a467590997118b1ef99d0
2020-01-03 14:26:11 -08:00
Meng Wang
b3b8a1f793 Merge "SubscriptionPlan: remove getNetworkTypesBitMask" 2020-01-03 22:20:28 +00:00
Adam He
7bc8f60377 Added attributes for IME and AutofillService to indicate they support
inline suggestions.

Fixes: 146452946
Test: atest FrameworksCoreTests:android.view.inputmethod.InputMethodInfoTest
Change-Id: I709b16d3f12c693bc670600bdcb9125630eb9b8e
2020-01-03 14:14:17 -08:00
Ned Burns
a944ea3e64 Add GroupCoalescer to new pipeline
Adds the GroupCoalescer, which attempts to make posting notification
groups an atomic action. Currently, notif groups are posted in pieces,
with one post per child or summary. As a result, downstream code can't
tell whether a group is currently complete or whether more stuff is
coming down the line. This complicates a lot of logic, especially to do
with heads-upping.

The GroupCoalescer sits between the NotificationListener and the
NotifCollection and controls the flow of notification events between the
two. As a result, the full pipeline is now:

NotificationListener -> GroupCoalescer -> NotifCollection ->
NotifListBuilderImpl

Most events pass through the GroupCoalescer unhindered, but any event
that involves posting a grouped notification is temporarily delayed
within the coalescer to see if any other similar events occur. When the
delay times out, all delayed events for that group are posted to the
NotifCollection in a batch.

It's dangerous to reorder or delay events from the NotificationListener
for too long, so any event that would further modify the group, such as
updating or removing one of the delayed notifications, causes the batch
to be immediately emitted, followed by the modifying event.

Test: atest SystemUITests
Change-Id: I4b5dd1a6acb3a7704b2e199a5ed42fe855ab74cb
2020-01-03 17:12:59 -05:00
TreeHugger Robot
950e55d4f2 Merge "Add server side implementation for inline augmented autofill request." 2020-01-03 22:12:22 +00:00
Ned Burns
b175ed9460 Remove onBeginDispatchToListeners from CollectionReadyForBuildListener
I honestly can't remember why we needed this in the first place. But it
also conflicts with a few upcoming concepts:

- Notification batching (we might get multiple dispatchToListeners calls
before we get a single onBuildList call)
- Update debouncing (same issue)

So we're just going to remove it until we come up with a reason to want
it.

Test: atest SystemUITests
Change-Id: I47cb9c8b037af9daba64e1f59b20beddf138cce4
2020-01-03 16:58:36 -05:00
Ned Burns
e6855d6e9f Rename NotifServiceListener -> NotificationHandler
Just humor me here.

Test: atest
Change-Id: Iad7ed1af4cb2dae0880c0eb5e0e5195a59f9c16b
2020-01-03 16:58:30 -05:00
Ned Burns
d7bf792d73 Extract NoManSimulator to top level
So it can be used by other tests (see following CLs)

Also adds some more methods to SbnBuilder to modify the underling
Notification.

Test: atest
Change-Id: I44c0b13ceabd30d633848a68074c2a9b31427d56
2020-01-03 16:50:02 -05:00
Evan Severson
43e17e0369 Create permission for managing one-time permission sessions
Test: Manual
Bug: 136219229
Change-Id: I6870c7782f2dd51c655eea37bcb2487e5e29dfff
2020-01-03 13:49:33 -08:00
TreeHugger Robot
de12cc1af0 Merge "Enable clang-format for core/jni" 2020-01-03 21:43:59 +00:00
TreeHugger Robot
a812432da3 Merge "Remove obsolete comment from AppOpManager" 2020-01-03 20:49:33 +00:00
Philip P. Moltmann
da554e4de0 Collect AsyncNotedAppOp in same call as noteOp
This reduces the overhead of collecting noted app-ops to the same amount
of binder calls as if we would not have the feature

Before (conceptionally):
---------------------------------
mode = service.noteOp()
if (mode == allowed && shouldCollectAsyncOp) {
   fixup(message)
   service.noteAsyncOp()
}
----------------------------------

After (conceptionally):
----------------------------------
if (shouldCollectAsyncOp) {
   fixup(message)
}
mode = service.noteOp(shouldCollectAsyncOp, message)
----------------------------------

Bug: 136505050
Test: atest CtsAppOpsTestCases
Change-Id: If1b535a7c4b0f431f251c5d06cdf496c34920e23
2020-01-03 12:37:23 -08:00
Philip P. Moltmann
a574814474 Merge changes from topic "appOpFeatureId"
* changes:
  Restrict the number of features or size of ids.
  Use Pools for noteOp related data objects
  Allow apps to define featureIds in the manifest
2020-01-03 20:31:01 +00:00
Dave Mankoff
9febfeb097 Disable falsing when resting on a Dock.
Fix typo: Classifer -> Classifier.

Use Executor instead of Handler in falsing related code.

Show a dump of BrightLingFalsing related information.

Bug: 139785197
Test: atest SystemUITests && manual.
Change-Id: I3be68cb9f27ccfb5a686947cc85aae74f21f099c
2020-01-03 15:21:04 -05:00
TreeHugger Robot
789381b895 Merge "Import translations. DO NOT MERGE" 2020-01-03 19:46:49 +00:00
shafik
fc2130239d Remove obsolete comment from AppOpManager
Test: build
Change-Id: I6222c5f21b45adec10fbbf3b81030769424a8931
2020-01-03 19:40:43 +00:00
TreeHugger Robot
34fbbe3be2 Merge "Import translations. DO NOT MERGE" 2020-01-03 19:40:05 +00:00
Feng Cao
5bf0d2bc5e Add server side implementation for inline augmented autofill request.
Test: manual
Bug: 146453195

Change-Id: Id9c3e16cd5b05ba1c87eb8cdb4a95f2f79bfd77b
2020-01-03 11:28:21 -08:00
Automerger Merge Worker
c88b9ba9ed [automerger skipped] Merge "Removed LTE_CA from Annotations" am: 8ab4812386 am: 8288b90353 am: 55df86c362 -s ours
am skip reason: Change-Id I2d6ad7621560ef73b10d6eb861c44700b27a2ea6 with SHA-1 809d36111f is in history

Change-Id: I9b6ee11e403d062b50ea9001c9e93bae886b380f
2020-01-03 19:24:28 +00:00
Automerger Merge Worker
55df86c362 Merge "Removed LTE_CA from Annotations" am: 8ab4812386 am: 8288b90353
Change-Id: I25f4bb36d55d20f8b4d99fecfa238bdd60bc0d44
2020-01-03 19:11:22 +00:00
Siarhei Vishniakou
cd2fe53533 Enable clang-format for core/jni
To have consistent code style and avoid format-related comments in code
review, enable clang-format in frameworks/base/core/jni.

Bug: none
Test: repo upload
Change-Id: Ie9e5408d85036dfabae3a9c60b238b4a190da5fc
2020-01-03 11:01:01 -08:00
Daniel Bright
8288b90353 Merge "Removed LTE_CA from Annotations"
am: 8ab4812386

Change-Id: Ica0be9172523403712cca78c5c1d96a4ff08bbb5
2020-01-03 10:59:33 -08:00
Treehugger Robot
8ab4812386 Merge "Removed LTE_CA from Annotations" 2020-01-03 18:51:33 +00:00
Aran Ink
6ebbebed66 Merge "Correctly prevent the bubble screenshot menu when setting missing." 2020-01-03 18:31:35 +00:00
Meng Wang
0c8855d36c SubscriptionPlan: remove getNetworkTypesBitMask
To avoid using hidden API TelephonyManager#getBitMaskForNetworkType

Bug: 140908357
Test: make
Change-Id: Ibb04fd43117d4b7cf9f768e6ccf9a8f605a2f5e8
2020-01-03 10:28:26 -08:00
Automerger Merge Worker
4f8f6ae778 [automerger skipped] Merge "DO NOT MERGE - Merge QQ1A.200105.003 into stage-aosp-master" into stage-aosp-master am: a7707c4db7 am: 1e9752f9e7 -s ours
am skip reason: subject contains skip directive

Change-Id: I12223069a987f2a24fbd07df05e7d8806b4fb3f3
2020-01-03 18:22:37 +00:00
Automerger Merge Worker
a24b4a5852 [automerger skipped] DO NOT MERGE - Merge QQ1A.200105.003 into stage-aosp-master am: dd7e1b8a32 am: dcb14343d4 -s ours
am skip reason: subject contains skip directive

Change-Id: I84bb7aba4b254b5b5fd093485796efa816676e2f
2020-01-03 18:20:39 +00:00
Tobias Thierer
3ba71b6909 Merge "Replace com.android.internal.util.Preconditions.checkNotNull with java.util.Objects.requireNonNull" 2020-01-03 18:15:21 +00:00
TreeHugger Robot
15b215316f Merge "Replace com.android.internal.util.Preconditions.checkNotNull with java.util.Objects.requireNonNull" 2020-01-03 18:12:45 +00:00
Daulet Zhanguzin
8ea0a62579 Replace com.android.internal.util.Preconditions.checkNotNull with
java.util.Objects.requireNonNull

Bug: 126528330

Test: Treehugger
Exempt-From-Owner-Approval: Global refactoring.
Change-Id: Ie484297bc6d451cdeadc462ffe797befcc7f5e0e
2020-01-03 18:12:35 +00:00
Bill Yi
f47b84cd12 Import translations. DO NOT MERGE
Change-Id: Ifde0391e62eff2b927579a363ae85022c9e06936
Auto-generated-cl: translation import
2020-01-03 18:12:27 +00:00
TreeHugger Robot
1e4fd5160a Merge "Replace com.android.internal.util.Preconditions.checkNotNull with java.util.Objects.requireNonNull" 2020-01-03 18:11:55 +00:00
Daulet Zhanguzin
c6c641f548 Replace com.android.internal.util.Preconditions.checkNotNull with
java.util.Objects.requireNonNull

Bug: 126528330

Test: Treehugger
Exempt-From-Owner-Approval: Global refactoring.
Change-Id: I4ced82dd459898ea40f165127aaf08ec71e967d6
2020-01-03 18:11:47 +00:00
TreeHugger Robot
9611d7537a Merge "Replace com.android.internal.util.Preconditions.checkNotNull with java.util.Objects.requireNonNull" 2020-01-03 18:11:25 +00:00
Daulet Zhanguzin
cb0d19b0b5 Replace com.android.internal.util.Preconditions.checkNotNull with
java.util.Objects.requireNonNull

Bug: 126528330

Test: Treehugger
Exempt-From-Owner-Approval: Global refactoring.
Change-Id: Idf0949bd58a73bef2b5f3ecb6b99b2be2d1059c4
2020-01-03 18:11:08 +00:00