Commit Graph

412867 Commits

Author SHA1 Message Date
TreeHugger Robot
433bb84545 Merge "Adding documentation to getElapsedRealtimeUncertaintyNanos following api council guidance." into qt-dev 2019-04-08 17:13:58 +00:00
TreeHugger Robot
15777f204d Merge changes Ic4eb56fc,I7ba66213,I4b4dba44 into qt-dev
* changes:
  WifiScannerTest: More unit tests
  WifiScannerTest: Add unit tests
  WifiManagerTest: Add unit tests
2019-04-08 17:08:54 +00:00
Oscar Shu
a39c85fc2b Merge "wifi proto change for some legacy API usage metrics" into qt-dev 2019-04-08 17:07:11 +00:00
Steven Moreland
623b90d65e Merge "ApplicationLoaders: hard failures & tests" into qt-dev 2019-04-08 16:27:21 +00:00
TreeHugger Robot
c57062f763 Merge "Grant sound recorder microphone permissions" into qt-dev 2019-04-08 15:33:22 +00:00
TreeHugger Robot
658312b51c Merge "Sharesheet - Fix scroll behavior moving past bounds" into qt-dev 2019-04-08 15:27:12 +00:00
TreeHugger Robot
e9d146ec9a Merge "Remove DELEGATION_PACKAGE_INSTALLATION" into qt-dev 2019-04-08 15:10:59 +00:00
Svetoslav Ganov
9dfc48d06e Merge "Restricted permission mechanism - framework" into qt-dev 2019-04-08 14:54:03 +00:00
Aaron Heuckroth
cb15368628 Merge "Use marquee in Global Actions menu. Fix centering on classic Global Actions menu." into qt-dev 2019-04-08 14:20:58 +00:00
Anthony Tripaldi
06db71ad7c Merge "Remove OPTED_OUT Secure Setting based on API Council feedback." into qt-dev 2019-04-08 14:15:46 +00:00
Mark Renouf
c4a1f88951 Merge "BubbleData [1/n]: remove unused parameter" into qt-dev 2019-04-08 13:58:33 +00:00
Matt Pietal
d568294c1a Sharesheet - Fix scroll behavior moving past bounds
ResolverDrawerLayout is tracking fractions of pixels, but just drops
these fractions when offsetting the child views. When scrolling up and
down continuously, this can lead to the view scrolling past the window
bounds. Do not discard these fractions. Track the remainders and add
them in when the sum to >= 1px.

Bug: 129979914
Test: Manual scrolling test
Change-Id: I0e8ea04baca341c6b6e0573e086f3f2f8c2b39b5
2019-04-08 09:57:07 -04:00
Justin Klaassen
d1410c013d Grant sound recorder microphone permissions
Bug: 128599472
Test: DefaultPermissionGrantPolicyTest#testDefaultGrant
Change-Id: I3016a13ca36fec0cc8c2ecbb2f11a4dcf17c63c1
2019-04-08 13:49:04 +00:00
Zimuzo Ezeozue
0a94974b67 Merge "Allow different explicit health and package expiry timeouts" into qt-dev 2019-04-08 13:05:15 +00:00
Lorenzo Colitti
462864489a Merge "Prevent SIGN_IN notification pop up several times" into qt-dev 2019-04-08 12:03:10 +00:00
Zimuzo
7c6c28f18b Allow different explicit health and package expiry timeouts
We have always evaluated the explicit health check results on package
expiry. Since I29e2d619a5296716c29893ab3aa2f35f69bfb4d7 we now receive
explicit health check timeouts from ExtServices. This cl doesn't yet
use the timeout but it treats explicit health check timeouts as
different events from package expiry. This is in preparation to use
the timeouts from the cl mentioned above.

Improved readability: Logging, comments, variable and function names

Bug: 120598832
Test: atest PackageWatchdogTest
Change-Id: I8030dae1fef5b8fee42095c1eaf16861cc33ac59
2019-04-08 11:33:14 +01:00
TreeHugger Robot
9f0eb916f3 Merge "Fixed incorrect service state populated" into qt-dev 2019-04-08 10:09:27 +00:00
TreeHugger Robot
e29637d8dc Merge "Add system captions manager service" into qt-dev 2019-04-08 08:57:44 +00:00
Anthony Tripaldi
8c1ebec4f1 Remove OPTED_OUT Secure Setting based on API Council feedback.
Bug:129768185
Test: manual
Change-Id: I51d47142cfb2abeb17d6ad5e99b8f7d1ea585fc7
2019-04-08 08:35:38 +00:00
Remi NGUYEN VAN
28fd318974 Merge "Remove SocketUtils#setSocketTimeValueOption" into qt-dev 2019-04-08 08:27:49 +00:00
Remi NGUYEN VAN
7d4a9b5b26 Merge "Move attach*Filter() and addArpEntry() methods to NetworkStack" into qt-dev 2019-04-08 08:27:19 +00:00
TreeHugger Robot
aaae9b2426 Merge "Revert "Depecrate flags, and try to match them to actions"" into qt-dev 2019-04-08 08:15:12 +00:00
Jack Yu
9302618da6 Fixed incorrect service state populated
ServiceState.setStateOutOfService does not correctly
clean up the information so the old WLAN registration info
got populated for the next time use.

Bug: 130048577
Test: Telephony sanity tests
Change-Id: I7fab7090c22390914af024c44bffd643c13f33e5
2019-04-08 01:10:27 -07:00
lucaslin
2b14c799b8 Prevent SIGN_IN notification pop up several times
SIGN_IN notification may pop up several times before user
logged in the network if someone trigger
ConnectivityService#reportNetworkConnectivity().
Add a boolean to make sure SIGN_IN notification will only pop up
once to user before user logged in.

Bug: b/122164725
Test: Build pass.
Change-Id: I9c7f1d47fde8e5dfadd6646497023b05f3b0ed88
Merged-In: I9c7f1d47fde8e5dfadd6646497023b05f3b0ed88
2019-04-08 15:47:25 +08:00
Svet Ganov
d8eb8b2690 Restricted permission mechanism - framework
This change adds a mechanism for restricting permissions (only runtime
for now), so that an app cannot hold the permission if it is not white
listed. The whitelisting can happen at install or at any later point.

There are three whitelists: system: OS managed with default grants
and role holders being on it; upgrade: only OS puts on this list
apps when upgrading from a pre to post restriction permission database
version and OS and installer on record can remove; installer: only
the installer on record can add and remove (and the system of course).

Added a permission policy service that sits on top of permissions
and app ops and is responsible to sync between permissions and app
ops when there is an interdependecy in any direction.

Added versioning to the runtime permissions database to allow operations
that need to be done once on upgrade such as adding all permissions held
by apps pre upgrade to the upgrade whitelist if the new permisison version
inctroduces a new restricted permission. The upgrade logic is in the
permission controller and we will eventually put the default grants there.

NOTE: This change is reacting to a VP feedback for how we would handle
SMS/CallLog restriction as we pivoted from role based approach to roles
for things the user would understand plus whitelist for everything else.
This would also help us roll out softly the storage permisison as there
is too much churm coming from developer feedback.

Exempt-From-Owner-Approval: trivial change due to APi adjustment

Test: atest CtsAppSecurityHostTestCases:android.appsecurity.cts.PermissionsHostTest
Test: atest CtsPermissionTestCases
Test: atest CtsPermission2TestCases
Test: atest RoleManagerTestCases

bug:124769181

Change-Id: Ic48e3c728387ecf02f89d517ba1fe785ab9c75fd
2019-04-07 22:39:54 -07:00
Remi NGUYEN VAN
909dfd1352 Remove SocketUtils#setSocketTimeValueOption
This API was added in Q but is not necessary anymore as
Os#setsockoptTimeval was exposed as public API.

Test: m
Fixes: 129433363
Merged-In: If4a75f23c6c0589c23cadce3b088966649062463
(cherry picked from commit 77f9d85f12)

Change-Id: I4669eb2f9fa073d765be6bcb5863a5887eaf1ab5
2019-04-08 04:38:37 +00:00
Remi NGUYEN VAN
995aada788 Move attach*Filter() and addArpEntry() methods to NetworkStack
The SocketUtils.attach*Filter and SocketUtils.addArpEntry methods
were added there because they could not be added as JNI inside
the NetworkStack. This was not possible because on Go devices,
the NetworkStack was a jar library. But now, Go also uses an APK.
Hence, move these methods to the NetworkStack.

Fixes: 129433183
Merged-In: I66d7b3e4fbfa32bb0bc853e8cf9399031daff8a9
(cherry picked from commit fe71be2b04)

Change-Id: Ice433a41469e784385f19498c154345d7b9c69b5
2019-04-08 01:41:39 +00:00
TreeHugger Robot
835f260d60 Merge "Import translations. DO NOT MERGE" into qt-dev 2019-04-08 00:35:13 +00:00
TreeHugger Robot
da4d6e86a3 Merge "Revert "Fix lifecycle issue in CommonPool"" into qt-dev 2019-04-07 22:23:51 +00:00
Bill Yi
7bbe36c8eb Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I120e035377ab67c16f3173921065deabad07c2e3
2019-04-07 13:58:46 -07:00
Robert Berry
835123dba2 Add system captions manager service
This service connects to a remote system captions manager service. This
service is responsible for enabling system captions when the user
requests them. As the system binds to it, this service will be
persistent.

Cherry pick from ag/6761232

Bug: 128925852
Test: Manual. I created an implementation of the service.
Merged-In: Iafde1bb68f4754d8167624f47c6833d43c0ec336
Change-Id: Iafde1bb68f4754d8167624f47c6833d43c0ec336
2019-04-07 15:09:06 +00:00
TreeHugger Robot
986f1f4e5f Merge "Add provisioning extra definition to skip education screens" into qt-dev 2019-04-07 10:33:28 +00:00
TreeHugger Robot
bd99f25f94 Merge "Import translations. DO NOT MERGE" into qt-dev 2019-04-07 06:24:23 +00:00
David James
162305aace Revert "Fix lifecycle issue in CommonPool"
This reverts commit 5ff61f32a7.

Reason for revert: causes global presubmit to be very flaky, see b/130081457
Fixes: b/130081457

Change-Id: I93aa5d6686cd6b5bf831766c9e47c291749526a9
2019-04-07 04:28:50 +00:00
Mathieu Chartier
5d6c852211 Merge "Enabled the USAP Pool by default." into qt-dev 2019-04-06 19:21:30 +00:00
Bill Yi
41eb2d0b20 Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: If83787f9703cc88c8f7b24357360b2c88379e614
2019-04-06 10:26:49 -07:00
TreeHugger Robot
0cb4124055 Merge "Don't update process-level configutaion for MSIME process" into qt-dev 2019-04-06 16:49:20 +00:00
Yunfan Chen
0fe2d3b75d Merge "Move no longer flaky tests into pre-submit" into qt-dev 2019-04-06 15:10:02 +00:00
TreeHugger Robot
b24094f373 Merge "Do not start jit profile in app zygote" into qt-dev 2019-04-06 11:55:48 +00:00
TreeHugger Robot
f20d282a6c Merge "Java code for mainline modules to log to statsd." into qt-dev 2019-04-06 11:43:39 +00:00
lumark
5df4951c1f Don't update process-level configutaion for MSIME process
Currently, process-level display configuration change for IME process
is only for single-client IME window moving to another display to update
UI layout according display configuration.

It's not applicable for MSIME use case since other IMEs on other displays
will also receive this configuration change due to IME services use
the same application config/context, so add a check to fix this issue.

Fix: 129723692
Test: atest MultiDisplaySystemDecorationTests
Test: manual
      1. Enable config_perDisplayFocusEnabled config,
      2. Install MultiClientInputMethod app
      3. Set multi client IME component by "adb shell setprop persist.debug.multi_client_ime \
         com.example.android.multiclientinputmethod/.MultiClientInputMethod"
      4. Reboot device to initiate MultiClientInputMethod
      5. In Settings -> developer options -> Enable Simulated display &
         Force desktop mode.
      6. Reboot device to enable multi-display test environment.
      7. In primary & external display, launch app with EditText.
      8. Focus EditText in both displays and see if keyboard can displayed
         with correct layout.

Change-Id: Ic556ca212d285de183e3709b032427d5d97e0623
(cherry picked from commit 7234a64355)
2019-04-06 09:39:03 +00:00
Lyn Han
02cca81c10 Update color for permission, settings, pointer
Fix bug where we created inset drawable from adaptive icon
drawable, instead of the original settings drawable.

And refactors.

Test: manual
Bug: 123829494
Bug: 123663905
Change-Id: I9342213365cf3679facd22da8592325777d3d17f
2019-04-06 05:44:11 +00:00
Tej Singh
2910d5aa16 Java code for mainline modules to log to statsd.
Adds support for generating app code to allow java mainline modules to
call the StatsLog.writeRaw public API. Supports primitives, enums,
attribution chains, MODE_BYTES. Does not support key value pairs,
worksource methods (because worksource uses hidden apis in the
worksource object).

Test: manually tested atom logging from DocumentsUI
Test: existing autogenerated code is not modified
Test: cts will follow
Bug: 126134616

Change-Id: Ia321cf2d9952e3875ed0c7a28db1f4113711513f
2019-04-06 01:26:12 +00:00
Christine Franks
2b67a2b31d Merge "Add display white balance enabled methods to CDS" into qt-dev 2019-04-06 01:25:41 +00:00
TreeHugger Robot
67a43354b3 Merge "Fix LaTeX formatting in Android documentation" into qt-dev 2019-04-06 01:20:24 +00:00
TreeHugger Robot
5589916a5d Merge "Change elapsedRealtimeUncertaintyNanos from long to double" into qt-dev 2019-04-06 01:11:24 +00:00
Pierre Fite-Georgel
d017319f57 Adding documentation to getElapsedRealtimeUncertaintyNanos following api council guidance.
Test: N/A comment only
Bug: 129769397
Change-Id: I906494b0b72898149322959f5900626a12d6d86b
(cherry picked from commit d6d4d1efa2)
2019-04-06 00:44:46 +00:00
TreeHugger Robot
113f85298b Merge "Run end actions immediately if there are no children to animate." into qt-dev 2019-04-06 00:29:11 +00:00
TreeHugger Robot
6e975493c4 Merge "Guard CDS settings against USER_NULL" into qt-dev 2019-04-06 00:23:39 +00:00
Xiangyu/Malcolm Chen
8cadcf07fa Merge "Opportunistic Sub Grouping Keys in CarrierConfig" into qt-dev 2019-04-06 00:05:15 +00:00