Commit Graph

417293 Commits

Author SHA1 Message Date
Tej Singh
29ac601429 Blacklist truncated atoms instead of whitelistnig
We used a whitelist to determine which atoms should have their
timestamps truncated to the nearest 5 minutes. This changes the logic
to a blacklist so that we can get fine grained timestamps from vendor and
mainline atoms. Also reserves a range for atoms that need to be
truncated in the future.

Bug: 134574701
Test: inspected generated statslog.cpp file to make sure it had the
correct blacklist
Test: testdrive on ScreenStateChanged to ensure timestamps are preserved
when they should be
Test: testdrive on CallStateChanged to ensure timestamps are truncated
when they should be.

Change-Id: Id3468542c830cdf41395a94c77f7df0b46cd11b7
2019-06-05 18:10:12 -07:00
Wale Ogunwale
2aa255a746 Merge "Revert "Collect NeededUriGrants without holding locks."" into qt-dev 2019-06-04 19:04:53 +00:00
TreeHugger Robot
075baa2e9b Merge "Rendering fixes for assist handles." into qt-dev 2019-06-04 18:03:32 +00:00
TreeHugger Robot
e2fb127e41 Merge "Allow passing in acceptUnvalidated without explicitlySelected" into qt-dev 2019-06-04 18:00:31 +00:00
Wale Ogunwale
586a8ee786 Revert "Collect NeededUriGrants without holding locks."
This reverts commit 344ce7ce70.

Bug: 115619667
Bug: 134494852
Reason for revert: Causes "Permission Denial: opening provider" error

Change-Id: I9986618b6e338fef9843b2103da6a728a36c6ea6
2019-06-04 17:21:25 +00:00
Makoto Onuki
dee07f5d7f Merge "Fix slow query log." into qt-dev 2019-06-04 16:57:23 +00:00
Hongyi Zhang
a1d0453641 Merge "Fix location API usage for API_ADD_GNSS_MEASUREMENTS_LISTENER" into qt-dev 2019-06-04 16:47:35 +00:00
TreeHugger Robot
4fd5870662 Merge "Skip legacy-fs-verity setup if file already has it" into qt-dev 2019-06-04 16:39:34 +00:00
Matt Casey
e2d395de7e Rendering fixes for assist handles.
Compute the arc angle based upon a fixed distance along the perimeter.
If that angle exceeds 90 degrees, add "arms" extending from the 90
degree corner and lighten the stroke slightly.

Fixes corner display on small-radius phones.

Bug: 134487710
Fixes: 133834204
Test: Visual inspection with UX across several devices.

Change-Id: I6ce625d14bd7224114da311e54c86b87e92533a1
2019-06-04 11:42:17 -04:00
TreeHugger Robot
eabafd5ceb Merge "Fix cannot create Nat-T keepalive on mobile data" into qt-dev 2019-06-04 15:38:18 +00:00
TreeHugger Robot
9fe4ba7a43 Merge "Fix atoi build errors" into qt-dev 2019-06-04 15:06:08 +00:00
Lorenzo Colitti
0e33bd1167 Allow passing in acceptUnvalidated without explicitlySelected
This will allow wifi to tell ConnectivityService that partial
connectivity is acceptable even if the network is not explicitly
selected.

This is needed when the user selects a partial connectivity
network and tells the system to connect to the network, and never
to ask again. In such cases, the system must switch to the
network even if it is not explicitly selected.

Bug: 130766237
Test: atest FrameworksNetTests
Test: unit tests in an upcoming CL
Change-Id: I13465090b7b1c0bf5dc83362387a5428d77b7e1d
2019-06-04 14:35:22 +00:00
Alan Stokes
9e2457622a Cleanup background activity starts for release.
This removes the parts of the feature that were only needed in beta
releases:
- Toast when a start is or would be blocked.
- Configurable whitelist of exempt apps.
- Global setting to disable.

Not to be submitted until after beta 5 is cut.

Bug: 131747138
Test: atest BackgroundActivityLaunchTest
Test: atest RootWindowContainerTests
Test: atest WmTests:ActivityStarterTests
Test: atest CtsWindowManagerDeviceTestCases:ActivityStarterTests
Test: atest CtsAppTestCases:.ServiceTest

Change-Id: I3d8b9c72c8fac86b93ac57a8a1988f4133043af8
2019-06-04 14:26:00 +00:00
junyulai
931ec8efa0 Fix cannot create Nat-T keepalive on mobile data
Currently phone process fail to unparcel NattKeepalivePacketData
since it is not in framework. Moves NattKeepalivePacketData to
framework to make it can be utilized by telephony.

This change also removes the error feedback triggered by calling
add keepalive packet filter to an unsupported network agent. This
is misinterpreted by KeepaliveTracker that start keepalive is
failing.

Bug: 134048171
Test: 1. atest android.net.cts.ConnectivityManagerTest#testSocketKeepaliveLimitTelephony
      2. atest android.net.cts.ConnectivityManagerTest
      3. atest FrameworksNetTests
      4. atest FrameworksTelephonyTests

Merged-In: If630d5b339aa722717258c721daa8ead8c431e2d
Change-Id: Ic0f168be6f5a6263a5e0565b6381dcb5c645660f
(cherry picked from commit 9ede677bb2)
2019-06-04 20:44:29 +08:00
TreeHugger Robot
b730e36596 Merge "Fix loading classloader for plugins whitelisted by component name" into qt-dev 2019-06-04 12:36:12 +00:00
TreeHugger Robot
8b865cd7d9 Merge "Dismiss all snoozed notifications upon swiping another" into qt-dev 2019-06-04 12:35:42 +00:00
Alan Stokes
02d9b9c35b Merge "Do not allow app to start background activity after stop app switches triggered" into qt-dev 2019-06-04 07:46:52 +00:00
Ryan Mitchell
7f08644bd7 Fix atoi build errors
Use strtol instead of atoi to check vendor partition version.

Bug: 119390857
Test: manual
Change-Id: I49c5963d8bbc5a803b3ccc0dd41d7bd7f2a42226
2019-06-04 06:05:31 +00:00
Lorenzo Colitti
f61e5f2410 Merge "Revert "[DO NOT MERGE] Handle config override via settings correctly"" into qt-dev 2019-06-04 03:57:07 +00:00
Yao Chen
6d647b78d3 Merge "Fix a bug in saving local history of the metrics report." into qt-dev 2019-06-04 03:31:15 +00:00
Lorenzo Colitti
69a015931e Revert "[DO NOT MERGE] Handle config override via settings correctly"
This reverts commit aa5ba4f75f.

Reason for revert: Breaks presubmits. Bootloops blueline on qt-dev.

Bug: 134445287
Change-Id: I6ad17fa66a1ddc681339966acd007ebd43d7ba3b
2019-06-04 03:18:12 +00:00
TreeHugger Robot
5eab79db10 Merge "Ignore setAssistHintVisible if overlays are not available." into qt-dev 2019-06-04 02:27:26 +00:00
Kevin Yao
327751f18f Merge "User education support on disambiguation dialog" into qt-dev 2019-06-04 01:29:21 +00:00
TreeHugger Robot
fafe6dd571 Merge "Fix regression in swiping up from lockscreen" into qt-dev 2019-06-04 01:20:51 +00:00
TreeHugger Robot
ed97f7b762 Merge "AudioService: hearing aid volume updates for voice vs media" into qt-dev 2019-06-04 00:54:05 +00:00
TreeHugger Robot
a85d8ba084 Merge "Don't auto-connect to networks that have no/limited connectivity." into qt-dev 2019-06-03 23:58:17 +00:00
Matt Casey
603c697d89 Ignore setAssistHintVisible if overlays are not available.
Fixes: 134066197
Test: TBD
Change-Id: If18322aa939e3433f5c3543699f91d06af7989e1
2019-06-03 19:21:34 -04:00
TreeHugger Robot
952bcb8ffe Merge "RootViewImpl: Fix measure size hint for WRAP_CONTENT windows" into qt-dev 2019-06-03 22:52:59 +00:00
Svetoslav Ganov
526ab77a51 Merge "[DO NOT MERGE] Handle config override via settings correctly" into qt-dev 2019-06-03 22:38:35 +00:00
Chavi Weingarten
f8b8c20c76 Merge "Clear VISIBLE_FOR_USER flag when isHiddenFromUser is true" into qt-dev 2019-06-03 22:22:49 +00:00
Winson Chung
241e63d2ff Fix regression in swiping up from lockscreen
Bug: 134391878
Test: Swipe up to assistant from lockscreen

Change-Id: I32fe638de507775c5744344bc5e71509e4a5b0e1
2019-06-03 22:16:11 +00:00
Yao Chen
5c10cb48a9 Fix a bug in saving local history of the metrics report.
A condition was reversed in code refactoring during previous code review.

Test: unit tests added for all 4 combination cases.
Bug: 134417583
Change-Id: Id79a827ec7a5404b9006769f9595de773b4724ef
2019-06-03 15:02:30 -07:00
Victor Hsieh
895a539d43 Skip legacy-fs-verity setup if file already has it
Test: 1. put com.foo.apk in /system/priv-app
      2. adb install-multiple -r -p com.foo split.apk
      3. adb install-multiple -r -p com.foo split.apk (second time, only
         succeed with this change)
Test: update a priv app (no regression)
Bug: 129509604
Change-Id: I591dd4504e3ba6f1499ebd045dc4f1adbd88d4e3
2019-06-03 21:57:47 +00:00
TreeHugger Robot
b13d88af52 Merge "Revert "Offload role manager work to background thread"" into qt-dev 2019-06-03 21:48:24 +00:00
Hongyi Zhang
ff1aeb3b6e Fix location API usage for API_ADD_GNSS_MEASUREMENTS_LISTENER
fix a typo when comparing gnssDataProvider, which leads to a bug of
logging API usage of add/remove NavigationMessageListener as API_ADD_GNSS_MEASUREMENTS_LISTENER

Test: toggling button "Measurements" in apk Gnssloger
Bug: 133906682

Change-Id: I81c386ebba01ec89d73347a979d307fbcd7b3617
2019-06-03 14:46:48 -07:00
Jean-Michel Trivi
b97b3980f4 AudioService: hearing aid volume updates for voice vs media
Fix interactions between hearing aid volume control and Sound
Settings and Slice UIs with the following changes:

  When receiving volume change, only change the hearing aid volume
if the device is hearing aid and the stream type to change matches
the stream type returned by AudioService.getHearingAidStreamType().

  Modify AudioService.getHearingAidStreamType() to rely on the
audio mode OR the activity of the VOICE_COMMUNICATION* usage.

  Add a listener of audio playback activity to monitor the start
and end of the use of VOICE_COMMUNICATION* to reset the hearing
aid volume to that of media.
Do this only when HEARING_AID device is connected: register/unregister
callback for playback activity according to hearing aid connections.

Bug: 129163231
Test: use Sound Settings UI to control voice vol outside of call, verify
volume is unchanged when listening to media later.

Change-Id: I7af9554d04139e1a3929efa53cdcb04e37878571
2019-06-03 14:44:05 -07:00
TreeHugger Robot
575f58e26c Merge "Sharesheet - Adjust dark mode colors for GAR" into qt-dev 2019-06-03 21:29:16 +00:00
Heemin Seog
0247f19816 Merge "Small fixes to CarSysUI Volume Dialog" into qt-dev 2019-06-03 21:17:01 +00:00
Makoto Onuki
c1fb7dd218 Merge "Remove STOPSHIP (disable debug flag) in WatchDog.java" into qt-dev 2019-06-03 20:57:21 +00:00
TreeHugger Robot
f5671d390d Merge "Remove stopship for idmap2 vendor sdk checking" into qt-dev 2019-06-03 20:31:59 +00:00
Jeff Sharkey
aac39e204d Merge "Collect NeededUriGrants without holding locks." into qt-dev 2019-06-03 20:11:33 +00:00
Ritwika Mitra
d1ca4823d5 Merge "Initializing the Telephony Sms DB based on RoleManager.ROLE_SMS" into qt-dev 2019-06-03 19:15:49 +00:00
Hai Zhang
c00c31e97e Revert "Offload role manager work to background thread"
This reverts commit f105c93c4a.

Reason for revert: b/132974796#23 the offloaded thread will be holding a lock for a noticeable period of time and cause contention.

Bug: 132974796
Change-Id: Ic81a2e3ee7226266c8f97b606fc1a2834240f689
2019-06-03 18:50:55 +00:00
TreeHugger Robot
7a9a83f6a1 Merge changes from topic "SoftHardStoragePerm" into qt-dev
* changes:
  Link to SoftRestrictedPermissionPolicy twin
  Pre-Q storage perm should behave hard restricted
  Factor out soft restricted permissions policy
2019-06-03 18:29:30 +00:00
Ryan Mitchell
56db15b843 Remove stopship for idmap2 vendor sdk checking
Idmap now checks if the version of the vendor partition is greater than
or equal to 29 or a development codename to enable enforcement of
overlayable resources.

Bug: 119390857
Test: manual
Change-Id: Ica25800432993beb7464436d4fba7cb391e621ef
2019-06-03 11:22:36 -07:00
Ned Burns
798aa80cf5 Merge "Allow notification reordering after user adjusts importance" into qt-dev 2019-06-03 18:21:19 +00:00
TreeHugger Robot
a54b943d59 Merge "Fix a bug about missing onConfigurationChanged" into qt-dev 2019-06-03 18:09:34 +00:00
Steve Elliott
66109771d3 Fix loading classloader for plugins whitelisted by component name
Fixes: 134162974
Test: manual
Change-Id: I1e6df38b455eb0038f1b255724619ba53561ff2a
2019-06-03 14:05:37 -04:00
chaviw
bb6bd8ac18 Clear VISIBLE_FOR_USER flag when isHiddenFromUser is true
The current code was clearing the LEGACY_POLICY_VISIBILITY flag when
isHiddenFromUser was returning true. This was causing issues since there was no
path to add that flag when the Window was visible for that user. The correct
way is to clear the VISIBLE_FOR_USER flag since that flag will get added again
when the window is visible for that user.

Fixes: 133235040
Test: Switch from one user to another and back. Launcher is visible.
Change-Id: I5161dd83a7a0811a7e3a6ab2af439f352f967a6c
2019-06-03 10:58:18 -07:00
Ritwika Mitra
19afd4690f Initializing the Telephony Sms DB based on RoleManager.ROLE_SMS
Fix: 133356079
Test: manual

Change-Id: I49dcdc450e1113ffae887ad488d39f74a96787ed
2019-06-03 10:42:43 -07:00