Commit Graph

468813 Commits

Author SHA1 Message Date
Automerger Merge Worker
b41fe0a9a3 Merge "Add permission check for CaptivePortal#reevaluateNetwork" am: 4940da0b98 am: 8c5e78eae6
Change-Id: Iebeb70078906b5eb12b17ee14c8ac7ea749917b2
2020-02-13 07:09:24 +00:00
Peter_Liang
994fb3a01b Add the intent extra for accessibility long press event.
Must add the intent extra EXTRA_SHORTCUT_TYPE to launch the activity.

Bug: 149444165
Bug: 149292053
Test: manual test
Change-Id: I11c1999e3d0740774b13d9e49e92c9cf66de7afc
2020-02-13 07:00:39 +00:00
Automerger Merge Worker
8c5e78eae6 Merge "Add permission check for CaptivePortal#reevaluateNetwork" am: 4940da0b98
Change-Id: I2f9de2582025c8fc3782870b8c561ce2002abaf8
2020-02-13 06:54:50 +00:00
Chiachang Wang
4940da0b98 Merge "Add permission check for CaptivePortal#reevaluateNetwork" 2020-02-13 06:41:53 +00:00
Tiger Huang
d810b82df8 Merge "Remove redundant mFocusedApp from DisplayPolicy" 2020-02-13 06:41:25 +00:00
Riddle Hsu
1371c57f6f Ensure clearCallingIdentity for getDisplayContentOrCreate
If a new display is created, it may acquire wakelock for freezing
display when configuring the display. That may raise an exception
that the calling uid is not the same as the owner uid.

Fix: 147778342
Test: atest DisplayPolicyTests
Change-Id: Ib31c0d1f98964874a0ab97725d43f6bbd009062c
2020-02-13 14:30:24 +08:00
Menghan Li
50c2ca9b41 Merge "Refines the hardware shortcut landing dialog behavior" 2020-02-13 06:28:42 +00:00
Chiachang Wang
35ca498d8d Add Intdef annotation for eventId in logEvent
Follow API guide.

Bug: 148379628
Test: make test-api-stubs-docs-update-current-api \
      system-api-stubs-docs-update-current-api

Change-Id: I410ef06b2fa82d8ef35513086733b0fc2cf0fe06
2020-02-13 06:26:35 +00:00
Chiachang Wang
a0608fd20e Merge "Add permission check for CaptivePortal#reevaluateNetwork" 2020-02-13 06:25:32 +00:00
Jackal Guo
ac234d6608 Support accessibility on embedded hierarchies (3/n)
Link embedded hierarchy for accessibility when #setChildSurfacePackage
is invoked.

Bug: 137593247
Test: a11y CTS & unit tests
Change-Id: I6e9cfb387c863314b0affc5b48fb3c4c62cdf950
2020-02-13 13:45:17 +08:00
JW Wang
339405fc43 Merge changes I4d020811,I4aeda1f2
* changes:
  Always enable apk-in-apex before the apex (2/n)
  Don't return early on error (1/n)
2020-02-13 05:40:20 +00:00
Siarhei Vishniakou
249b0c3b75 Merge "Cache VerifiedInputEvent class references" 2020-02-13 05:19:47 +00:00
Tyler Gunn
754493b82f API Review cleanups.
- New @SystemApis on Conference and PhoneAccount were missing the required
permissions annotations.
- Rename PROPERTY_ASSISTED_DIALING_USED to PROPERTY_ASSISTED_DIALING
- Standardize get/setConnectionStartElapsedRealtimeMillis method naming
across Connection and Conference classes.
- Clarify Conference#sendConferenceEvent API documentation to match the
docs present for similar method in Connection; include some examples of
valid event/extras combinations.
- Update TelecomManager#getDefaultdialerPackage to use UserHandle instead
of userId.
- Move Conference#getConnectionStartElapsedRealtimeMillis to public API
since the setter is already part of the public API.

Test: Run Telecom and Telephony CTS tests.
Test: Run Telephony unit tests.
Test: Perform manual single-party-conference regression test to confirm
that conference behavior does not regress.

Bug: 147301297
Bug: 148286830
Bug: 148284863
Bug: 148284843
Bug: 148287068
Bug: 148285484
Bug: 148285560
Change-Id: I1f446d81859fa109d74af3661a42a0bd224de5aa
2020-02-12 20:44:27 -08:00
Kevin Chyn
e38367008f Merge "Biometric phenotype updates" 2020-02-13 04:40:05 +00:00
Jack Yu
73036c4075 Added telephony display info support
Added the new APIs allowing clients like System UI to display
network icons correctly based on the provided telephony display
info.

Test: Telephony sanity tests
Bug: 148540139
Change-Id: I4dfb6eb7a313539e0565a4239d555426f12e503e
2020-02-12 20:31:22 -08:00
Lyn Han
1e19d7fe74 Inflate bubble promoted from overflow
BubbleData#promoteBubbleFromOverflow
- inflate bubble; when done, go through notificationEntryUpdated (doAdd)

Fixes: 148247568
Fixes: 148878180
Bug: 148878788
Test: atest SystemUITests
Test: manual - tap bubble to promote it from overflow -> bubble shows up
left of row, gone from overflow; oldest bubble in row overflows when
count > 5, shows up left of first row in overflow
Change-Id: If33a0e0f5d9a5e4e042ad965f2b55a44e8b508dd
2020-02-12 19:56:46 -08:00
lesl
c7cfb00c84 wifi: Update softap config notification changed wording
Bug: 147877229
Test: Manual test to check UI wording (Screenshot updated on bug)
Change-Id: Ie6c9af967c878924611ddf557b2b20ebd0b57b59
2020-02-13 11:30:14 +08:00
JW Wang
b18925badc Tweak the lifecycle of rollbacks (2/n)
1. #createNewRollbackLocked now adds newly created rollbacks to
   mRollbacks
2. #completeEnableRollback no longer adds the rollback object to
   mRollbacks.
3. #completeEnableRollback delete and remove rollbacks from
   mRollbacks should any error happen.

Bug: 149258640
Test: atest RollbackTest StagedRollbackTest
Change-Id: Ie6668cf6bd00ce9b83096383776bc75198c4f194
2020-02-13 11:22:18 +08:00
JW Wang
7fcc730e8d Always enable apk-in-apex before the apex (2/n)
To keep a rollback object in a consistent state, an apex shouldn't be
enabled (for rollback) until all its embedded apk-in-apex are enabled
successfully.

Bug: 149352598
Test: test RollbackTest StagedRollbackTest
Change-Id: I4d0208118050f948675093f4ed67de8ae148f41b
2020-02-13 11:13:08 +08:00
JW Wang
38a5656b77 Let completeEnableRollback return a boolean (1/n)
Now #completeEnableRollback returns a boolean to indicate whether the
rollback object is successfully enable-completed or not.

Bug: 149258640
Test: atest RollbackTest StagedRollbackTest
Change-Id: Ib9803b4f6b12b3c31ea9a2d058f8be33150f0d51
2020-02-13 11:13:08 +08:00
JW Wang
b3ea9a61d4 Don't return early on error (1/n)
Continue the call flow even when #enableRollbackForPackageSession fails
so #completeEnableRollback has a chance to delete a rollback when any of
the child sessions fails to enable the rollback for the package.

Without this CL, the rollback data won't be deleted until next reboot.
Since storage cost might be heavy for the rollback data, we want to
delete it as soon as possible without waiting for reboot which might
happen much later.

Bug: 149352598
Test: test RollbackTest StagedRollbackTest
Change-Id: I4aeda1f2447e1b12353d2e3866408aab67a637eb
2020-02-13 11:13:05 +08:00
Ryan Lin
9ed37d137c Merge "Extract Mirror windowcontrol to a single class" 2020-02-13 03:06:25 +00:00
TreeHugger Robot
70a3ce1a2e Merge "Use CopyOnWriteArrayList to avoid ConcurrentModificationException" 2020-02-13 03:05:28 +00:00
Lyn Han
edb55e25b7 Update overflow button on theme change
Bug: 149146374
Fixes: 149176394
Test: change theme - overflow button changes with theme
Test: atest SystemUITests
Change-Id: I04d5e59f0451cac2010519477770add46aa727ee
2020-02-12 19:00:34 -08:00
nelsonli
4928e77869 [vts-core] add vts_defaultPermissions_validate_test to vts-core
VtsValidateDefaultPermissions is just the GTest of
vts_defaultPermissions_validate_test.

Bug: 142397658
Test: $atest vts_defaultPermissions_validate_test
Change-Id: I88de9b3b01957f3d76591f33b362bdedbf36acd2
2020-02-13 10:59:32 +08:00
TreeHugger Robot
0bff2b6695 Merge "Exclude the ActivityStack when processing the reset of a task" 2020-02-13 02:36:04 +00:00
Adrian Roos
8116358a6a WM: Build policy with DisplayAreaPolicyBuilder (5/n)
Add a builder to simplify building complex policies.

Bug: 147406652
Test: atest WmTests DisplayAreaPolicyBuilderTest
Change-Id: I4ebc00a1f16b7915b7d926d9e0a43e7a79fc22c0
2020-02-12 18:32:49 -08:00
Kenny Root
6afde9247b Merge "Resume-on-Reboot: add logs to aid in debugging" 2020-02-13 01:54:53 +00:00
Siarhei Vishniakou
b01c6135ea Cache VerifiedInputEvent class references
Currently, the variables 'clazz' and 'constructor' are not stored properly.
Cache them to make it consistent with all of the other jni code.

This would also prevent a crash in checkjni for using deleted local
reference (it's never made global in the current code).

Bug: 134977432
Test: atest VerifyInputEventTest (run several times)
Change-Id: Icef5271d915fce49b24d987923942fbdc4b6898b
2020-02-12 17:36:44 -08:00
JW Wang
d22bc99894 Merge "Extract common code to a lib (4/n)" 2020-02-13 01:36:23 +00:00
Alec Mouri
bb55b7f4ec Add global frame histograms into SF atoms
Adding CPU and GPU histograms for regression tracking.

Bug: 144037240
Test: builds
Change-Id: I2f9aec93a78c9a28a8a393c3fc70eec6e8927f91
2020-02-12 17:35:01 -08:00
François Gaffie
51aca3ee10 audioservice: fix persistency for volume per attributes
Volumes can be set by stream or attributes. Attributes based API
does neither uses a cache nor persistent storage.
So, settings are not persistent, shared among user and in case of
audioserver crash, the volume indexes are lost at lower layer.

This CL aligns the volume per attributes API on stream based API by
   -using a local cache of indexes
   -using Settings persistent storage
   -forcing refresh on audioserver crash
   -allowing mutliuser settings

It also provides dump and log to align level of service for attributes
based volume API.

Bug: 147208571
Test: -change user && dumpsys audio && dumpsys settings
    -killall audioserver && dumpsys audio && dumpsys media.audio_policy
Signed-off-by: François Gaffie <francois.gaffie@renault.com>

Change-Id: I042b13f0588b2ae3f88fa9f8d72d0f0c99e5b850
Merged-In: I042b13f0588b2ae3f88fa9f8d72d0f0c99e5b850
2020-02-13 01:33:04 +00:00
François Gaffie
0cb833bea2 audioservice: fix persistency for volume per attributes
Volumes can be set by stream or attributes. Attributes based API
does neither uses a cache nor persistent storage.
So, settings are not persistent, shared among user and in case of
audioserver crash, the volume indexes are lost at lower layer.

This CL aligns the volume per attributes API on stream based API by
   -using a local cache of indexes
   -using Settings persistent storage
   -forcing refresh on audioserver crash
   -allowing mutliuser settings

It also provides dump and log to align level of service for attributes
based volume API.

Bug: 147208571
Test: -change user && dumpsys audio && dumpsys settings
    -killall audioserver && dumpsys audio && dumpsys media.audio_policy
Signed-off-by: François Gaffie <francois.gaffie@renault.com>

Change-Id: I042b13f0588b2ae3f88fa9f8d72d0f0c99e5b850
2020-02-12 17:25:45 -08:00
Jonathan Nguyen
727a964d17 Add comments and prevent duplicate experiment ids being added.
Test: atest GtsStatsdHostTestCases
Change-Id: I9e0f8c8d6e0bb120106e9cc659955ce8f7f2f260
2020-02-12 17:24:32 -08:00
Pinyao Ting
15f5e47265 Merge "Be a good android citizen and clean up following build warnings." 2020-02-13 01:15:20 +00:00
TreeHugger Robot
b97ff63151 Merge "Move the view inflation outside of constructor." 2020-02-13 01:15:14 +00:00
Evgenii Stepanov
5750d3b153 Refactor NativeHeapTagging compat feature.
Move the logic to startProcessLocked so that it can use app info/flags.

Bug: 135754954
Test: NFC
Change-Id: Ief86185c6866640700e2548259df9ba1fb617e4d
2020-02-12 17:07:34 -08:00
Yuliya Kamatkova
4d5b0be481 Merge "Restrict visibility of LOCUS_ID_SET events." 2020-02-13 01:05:09 +00:00
Winson Chung
74a2c39322 Merge "Add compat call for getting the rotation from the window config" 2020-02-13 01:03:52 +00:00
Adrian Roos
bdb30cb6bb API Lint: Ignore existing CallbackMethodName violations
Bug: 149430296
Test: make checkapi
Change-Id: Ic6f634355c77f4236083065f7ca933fbee5534a6
Exempt-From-Owner-Approval: API Lint suppresion
2020-02-13 00:59:51 +00:00
Roshan Pius
ef628d3a79 RELAND: NetworkRequest: Embed requestor uid & packageName
Add the requestorUid & requestorPackageName fields to
NetworkCapabilities. This is populated by CS when
a new network request is received.
These 2 requestor fields are also optionally used for network
matching. All of the regular app initiated requests will have the
requestor uid and package name set by connectivity service. Network
agents can optionally set the requestorUid and requestorPackageName
to restrict the network created only to the app that requested the network.

This will help removing the necessity for the various specifiers to embed
the uid & package name info in the specifier for network matching.

Note: NetworkSpecifier.assertValidFromUid() is deprecated & removed in
favor of setting the uid/package name on the agent to restrict the
network to a certain app (useful for wifi peer to peer API & wifi aware).

Bug: 144102365
Test: Verified that wifi network request related CTS verifier tests
pass.
Test: Device boots up and connects to wifi networks
Merged-In: I207c446108afdac7ee2c25e6bbcbc37c4e3f6529

Change-Id: I58775e82aa7725aac5aa27ca9d2b5ee8f0be4242
2020-02-12 16:58:36 -08:00
Philip P. Moltmann
88583ddfe6 Reduce app-ops settle time
to match more what the user expects while still preventing thrashing on
app launch.

Fixes: 149432350
Test: Pure settings change
Change-Id: I5fa519afa9886e9f969d0150ed8ff75aeba93ef3
2020-02-12 16:55:32 -08:00
Automerger Merge Worker
be255041db [automerger skipped] Merge "Revert "NetworkRequest: Embed requestor uid & packageName"" am: 617b4b00e3 am: 438129f4aa am: b4a6263610 -s ours
am skip reason: skipped by user rpius

Change-Id: I32f14eb9d9157a2e139b239d091c80b710b29e57
2020-02-13 00:31:25 +00:00
kwaky
6073f3c58b DO NOT MERGE Adjust NotificationView bottom margin based on whether Keyboard is shown.
If the Keyboard is shown, then margin bottom is 0.
Otherwise, the margin is the height of the NavBar.

Bug: 149022190
Test: Manual. Verify that NotificationView's margin adjusts based on
whether keyboard or IME is shown.

Change-Id: I96c50a4d773dfac9b57ab1c15cfc59d315da4605
2020-02-12 16:29:11 -08:00
Kweku Adams
f327a3d993 Throw API limit exception for all debuggable apps.
Since we're only throwing an exception for debuggable apps that reach
the API limit, it doesn't make sense to gate the throwing on target SDK
version.

Bug: 148236938
Test: atest CtsJobSchedulerTestCases
Change-Id: I17e0b011aff96626f6f5a037ae96bbee0fbce482
2020-02-12 16:21:55 -08:00
Martijn Coenen
dc333b58c1 Merge "Remove appDirRoot argument from setupAppDir." 2020-02-13 00:08:25 +00:00
Automerger Merge Worker
b4a6263610 Merge "Revert "NetworkRequest: Embed requestor uid & packageName"" am: 617b4b00e3 am: 438129f4aa
Change-Id: I5784b867346a280307966721cd47e562fffcbe17
2020-02-13 00:06:04 +00:00
Kweku Adams
32c5cfb232 Improve API signature.
There's nothing actionable for someone calling addToWhitelist() if the
addition fails (since it means the package wasn't found), so there's no
reason to have a return value. Removing the return value and clarifying
that calling the API will add the app to the permanent power save
whitelist.

Bug: 149216029
Test: atest PowerWhitelistTest
Change-Id: I54da34703c9f8862fa641f6b0313e6dfa37948e7
2020-02-12 16:00:29 -08:00
Anton Hansson
79e35c3beb Enable compat checking & lint for module_lib api
These were previously turned off as there were no previous
releases to compare it to. Check in empty files as comparison.

The new tethering APIs fail lint -- I have filed a release
blocking bug to get these cleaned up.

Bug: 149430003
Bug: 147559833
Test: m module-lib-api-api-lint
Test: m module-lib-api-check-last-released-api (with+without incompatibilities)
Change-Id: I2b171dc836ca121502fb345d8dd512a05c566a49
2020-02-12 23:55:41 +00:00
Automerger Merge Worker
438129f4aa Merge "Revert "NetworkRequest: Embed requestor uid & packageName"" am: 617b4b00e3
Change-Id: I00dd341f699d2a22cc3d190b43314a49bee9062a
2020-02-12 23:55:00 +00:00