Commit Graph

424299 Commits

Author SHA1 Message Date
TreeHugger Robot
97f5b4092a Merge "DO NOT MERGE - Kill apps outright for API contract violations" into qt-dev 2020-03-06 01:15:38 +00:00
Lucas Dupin
2b05cccddf Animate cuttout protection
Bug: 145095085
Change-Id: Ida54d4369a2cb8c300cbeb90f0d7f3e4b562be42
Merged-In: Ida54d4369a2cb8c300cbeb90f0d7f3e4b562be42
2020-03-06 00:41:51 +00:00
Automerger Merge Worker
79c052c569 [automerger skipped] Merge "DO NOT MERGE Ensure package names read from config are system packages." into pi-dev am: d48077745e -s ours am: 27e5817c14
Change-Id: I4cff2df117f81f570d35706f062402874dcb9178
2020-03-05 20:49:39 +00:00
Automerger Merge Worker
27e5817c14 [automerger skipped] Merge "DO NOT MERGE Ensure package names read from config are system packages." into pi-dev am: d48077745e -s ours
am skip reason: subject contains skip directive

Change-Id: I6ad69fe838bfad8214c14572309285c862c5944d
2020-03-05 20:44:09 +00:00
Automerger Merge Worker
103daa03cb [automerger skipped] Merge "DO NOT MERGE Ensure package names read from config are system packages." into qt-dev am: a7a4d730ea -s ours
am skip reason: Change-Id I1d23910cbd282f6702785c9dfb059d7be6b0e895 with SHA-1 6a56247200 is in history

Change-Id: Ia661b6d4d41f53088160da1fb2970da538173f02
2020-03-05 20:44:05 +00:00
TreeHugger Robot
a7a4d730ea Merge "DO NOT MERGE Ensure package names read from config are system packages." into qt-dev 2020-03-05 20:17:51 +00:00
TreeHugger Robot
d48077745e Merge "DO NOT MERGE Ensure package names read from config are system packages." into pi-dev 2020-03-05 20:17:47 +00:00
TreeHugger Robot
b8bbc3752c Merge "Add SafetyNet logging for package names read from config." into qt-qpr1-dev 2020-03-05 19:07:58 +00:00
Nadav Bar
f1f04649b5 Merge "Set/get allowed capture policy via AudioService." into qt-qpr1-dev 2020-03-05 11:58:53 +00:00
Heemin Seog
06a7bf9e9e DO NOT MERGE Set the sensor threshold only if sensor exists
Bug: 150779130
Test: atest SystemUITests and manual test for automotive
Change-Id: I18e3584c66f1286713a6fdadc678a9048869913b
2020-03-04 23:15:26 +00:00
Automerger Merge Worker
24b817588b [automerger skipped] DO NOT MERGE - Kill apps outright for API contract violations am: 874c974f73 -s ours am: fd72695e97 -s ours am: 28fe10035a
Change-Id: I2fab966766218172f2f2faa7c326d4a25be78d5c
2020-03-04 21:00:24 +00:00
Automerger Merge Worker
28fe10035a [automerger skipped] DO NOT MERGE - Kill apps outright for API contract violations am: 874c974f73 -s ours am: fd72695e97 -s ours
am skip reason: subject contains skip directive

Change-Id: Iaaf7fa37a8ebde71474b92f7020d074df69a5097
2020-03-04 20:50:41 +00:00
Automerger Merge Worker
fd72695e97 [automerger skipped] DO NOT MERGE - Kill apps outright for API contract violations am: 874c974f73 -s ours
am skip reason: subject contains skip directive

Change-Id: Ie3c61197c53f94596de20b8b80eb8aa9b599d3d7
2020-03-04 20:34:37 +00:00
Tyler Trephan
8af68ccfb5 Merge "Updated wakeLock permission descriptions." into qt-qpr1-dev 2020-03-04 18:29:14 +00:00
Automerger Merge Worker
8c91c69d32 [automerger skipped] Merge "RESTRICT AUTOMERGE Update keyguard locked state from TrustManagerService" into pi-dev am: 95d9a6c11c -s ours am: e3a1235c4b
Change-Id: I06d583a7e9a6c82c726b923ffb729e70eb81c888
2020-03-04 18:24:29 +00:00
Linus Tufvesson
bf89805ea3 RESTRICT AUTOMERGE
Block TYPE_PRESENTATION windows on default display

... and any other display that isn't considered a public presentation
display, as per Display.isPublicPresentation()

Bug: 141745510
Test: cts-tradefed run cts -m CtsActivityManagerDeviceTestCases -t android.server.am.PresentationTest
Change-Id: I2aaab1903dee54190338f7b6e49888aa51437108
2020-03-04 10:05:55 -08:00
Automerger Merge Worker
e3a1235c4b [automerger skipped] Merge "RESTRICT AUTOMERGE Update keyguard locked state from TrustManagerService" into pi-dev am: 95d9a6c11c -s ours
am skip reason: subject contains skip directive

Change-Id: I09e99b330c3000605f37270399916b75c00160e8
2020-03-04 18:05:28 +00:00
Linus Tufvesson
60a6583adf RESTRICT AUTOMERGE
Block TYPE_PRESENTATION windows on default display

... and any other display that isn't considered a public presentation
display, as per Display.isPublicPresentation()

Bug: 141745510
Test: cts-tradefed run cts -m CtsWindowManagerDeviceTestCases -t android.server.wm.PresentationTest
Change-Id: I2aaab1903dee54190338f7b6e49888aa51437108
2020-03-04 10:01:09 -08:00
Automerger Merge Worker
4dd9f6e113 Merge "RESTRICT AUTOMERGE Update keyguard locked state from TrustManagerService" into qt-dev am: 3c115495a0
Change-Id: I61ae5b51dc86ce7eb39ff669bf499a4a2235523a
2020-03-04 17:58:39 +00:00
Automerger Merge Worker
2130fd70bb RESTRICT AUTOMERGE am: f9418dbb2c
Change-Id: I7df2e50a6a58ace290c362bb3edf20d5c96cf676
2020-03-04 17:58:36 +00:00
TreeHugger Robot
95d9a6c11c Merge "RESTRICT AUTOMERGE Update keyguard locked state from TrustManagerService" into pi-dev 2020-03-04 17:43:37 +00:00
TreeHugger Robot
3c115495a0 Merge "RESTRICT AUTOMERGE Update keyguard locked state from TrustManagerService" into qt-dev 2020-03-04 17:43:32 +00:00
Automerger Merge Worker
d17b648a01 [automerger skipped] Merge "Only suspend package from system or shell" into pi-dev am: 986d537c88 am: d9725f72d3 -s ours
am skip reason: Change-Id I50ee768e792266ad2091f1913168e89d5d1463ed with SHA-1 adc39de3a1 is in history

Change-Id: Id8dbe594ef4015254755fd61373bf3c226987811
2020-03-04 14:59:11 +00:00
Automerger Merge Worker
d9725f72d3 Merge "Only suspend package from system or shell" into pi-dev am: 986d537c88
Change-Id: Idae1253f8530ca10612bd274818e90a82c3486b7
2020-03-04 14:51:05 +00:00
Beverly Tai
986d537c88 Merge "Only suspend package from system or shell" into pi-dev 2020-03-04 14:35:02 +00:00
Riddle Hsu
1ec2f403e9 RESTRICT AUTOMERGE Use consistent calling uid and package in navigateUpTo
Originally, if the caller of navigateUpTo is alive, even the calling
uid is set to the caller who launched the existing destination activity,
the uid from caller process has higher priority to replace the given
calling uid. So this change doesn't modify the existing behavior if
the caller process is valid. Besides, the case of delivering new intent
uses the source record as calling identity too, so the case of starting
new activity should be consistent.

Also forbid attaching null application thread to avoid unexpected state
in process record.

Bug: 144285917
Test: atest ActivityStackTests#testNavigateUpTo
Test: atest CtsSecurityTestCases:ActivityManagerTest# \
      testActivityManager_attachNullApplication
Change-Id: I60732f430256d37cb926d08d093581f051c4afed
2020-03-04 12:54:55 +00:00
Riddle Hsu
da78af4d66 RESTRICT AUTOMERGE Use consistent calling uid and package in navigateUpTo
Originally, if the caller of navigateUpTo is alive, even the calling
uid is set to the caller who launched the existing destination activity,
the uid from caller process has higher priority to replace the given
calling uid. So this change doesn't modify the existing behavior if
the caller process is valid. Besides, the case of delivering new intent
uses the source record as calling identity too, so the case of starting
new activity should be consistent.

Also forbid attaching null application thread to avoid unexpected state
in process record.

Bug: 144285917
Test: atest ActivityStackTests#testNavigateUpTo
Test: atest CtsSecurityTestCases:ActivityManagerTest# \
      testActivityManager_attachNullApplication
Change-Id: I60732f430256d37cb926d08d093581f051c4afed
2020-03-04 12:52:45 +00:00
Orion Hodson
2fd00cd403 Frameworks/base: Support dex2oat cpu-set system property
Check dalvik.vm.dex2oat-cpu-set in AndroidRuntime and pass to ART
with "--cpu-set=" as a compiler option, if found.

Check dalvik.vm.image-dex2oat-cpu-set in AndroidRuntime and pass
to ART with "--cpu-set=" as an image compiler option, if found.

Bug: 141446571
Bug: 149395059
Test: manual

Change-Id: Ica6a39048292d3d43aeb58d25f79f1398a7d5a79
Merged-In: Ica6a39048292d3d43aeb58d25f79f1398a7d5a79
(cherry picked from commit 870ce3f6d7)
2020-03-04 10:36:12 +00:00
Nate(Qiang) Jiang
96a9e48520 Create different KeyId for saved and suggestion network
Bug: 150500247
Test: atest android.net.wifi

Merged-In: I31ee6f3a3295aca0bd7fcb83ce74327922977797
Change-Id: Ia416b2e986c86fe0a29641f6a20236802d72a233
2020-03-04 00:58:50 +00:00
Dave Mankoff
97af8f1a55 Merge "Remove Dependency.staticOnConfigurationChanged" into qt-qpr1-dev 2020-03-03 22:30:59 +00:00
TreeHugger Robot
2e112273b6 Merge "Add EAP methods in wifi.proto" into qt-qpr1-dev 2020-03-03 18:53:10 +00:00
Kai Shi
24ee8ef61e Add EAP methods in wifi.proto
To help find the root cause of high authentication failure rate in enterprise network, add EAP method and authentication phase2 method in connection event metrics.

Bug: 150237135
Test: manual
Test: atest com.android.server.wifi
Merged-In: I7f3268b2842783f99c0a43d8b4996d0a7dd46c6e
Change-Id: Id4ac7947871785d16b81c0806986f54d64fdb0ce
2020-03-03 18:50:27 +00:00
Dave Mankoff
be885c832f Remove Dependency.staticOnConfigurationChanged
ConfigurationChangedReceiver is removed. Classes that want to be
notified of configuration changes should implement
ConfigurationController.ConfigurationListener instead and register
themselves with the ConfigurationController.

This CPs http://ag/9762349

Change-Id: I00c08a30b6d8dcac7e26230cb4354bc1fda74b10
Merged-In: Id2c3fe5ae2729b181769fb31b8050da264299d72
Bug: 150541820
Test: atest SystemUITests
2020-03-03 13:22:39 -05:00
Riddle Hsu
8a2c62c286 RESTRICT AUTOMERGE Use consistent calling uid and package in navigateUpTo
Originally, if the caller of navigateUpTo is alive, even the calling
uid is set to the caller who launched the existing destination activity,
the uid from caller process has higher priority to replace the given
calling uid. So this change doesn't modify the existing behavior if
the caller process is valid. Besides, the case of delivering new intent
uses the source record as calling identity too, so the case of starting
new activity should be consistent.

Also forbid attaching null application thread to avoid unexpected state
in process record.

Bug: 144285917
Test: atest ActivityStackTests#testNavigateUpTo
Change-Id: I60732f430256d37cb926d08d093581f051c4afed
2020-03-03 11:14:07 +00:00
jiabin
55e8fd2352 Set/get allowed capture policy via AudioService.
Do not call AudioSystem.setAllowedCapturePolicy directly in
AudioManager. Instead, send the request to AudioService and calling the
function in AudioService. In that case, AudioService can cached the
request so that it benefits returning correct playback configuration.

When querying capture policy, AudioManager will query AudioService first
to see if there is cached capture policy. If there is exception, return
cached capture policy in AudioManager.

Test: dumpsys audio, query active audio playback configuration
Test: atest AudioManagerTest, AudioAttributesTest
Test: atest AudioPlaybackCaptureTest, AudioPlaybackConfigurationTest
Bug: 145115448
Change-Id: I170571d8a67839bc5a53991d6c89127b99b5c794
Merged-In: I170571d8a67839bc5a53991d6c89127b99b5c794
(cherry picked from commit b33f36971d)
2020-03-03 07:38:38 +00:00
Riddle Hsu
0d7e27af30 RESTRICT AUTOMERGE Use consistent calling uid and package in navigateUpTo
Originally, if the caller of navigateUpTo is alive, even the calling
uid is set to the caller who launched the existing destination activity,
the uid from caller process has higher priority to replace the given
calling uid. So this change doesn't modify the existing behavior if
the caller process is valid. Besides, the case of delivering new intent
uses the source record as calling identity too, so the case of starting
new activity should be consistent.

Also forbid attaching null application thread to avoid unexpected state
in process record.

Bug: 144285917
Test: bit FrameworksServicesTests:com.android.server.am.ActivityStackTests
Change-Id: I60732f430256d37cb926d08d093581f051c4afed
2020-03-03 07:38:01 +00:00
Jay Aliomer
d9d21afdd4 Merge "Back porting Dark theme bug fixes from R" into qt-qpr1-dev 2020-03-02 23:18:48 +00:00
TreeHugger Robot
0b5967db15 Merge "Fix carrier config string typo." into qt-qpr1-dev 2020-03-02 23:14:27 +00:00
TreeHugger Robot
1dff734a27 Merge "FocusRequester: fix NPE" into qt-qpr1-dev 2020-03-02 21:04:49 +00:00
Agatha Man
cf5442cc03 Merge "AudioService - remove sendBroadcastToAll() from setMasterMuteInternalNoCallerCheck()" into qt-qpr1-dev 2020-03-02 20:56:34 +00:00
Babak Bostan
674bf0280f Merge "DO NOT MERGE Add toast message when bluetooth connects to voice recognition." into qt-qpr1-dev 2020-03-02 18:39:07 +00:00
TreeHugger Robot
a373984e96 Merge changes from topic "revert-9783082-1574797358199-802c4081-VGXGMNZIXS" into qt-qpr1-dev
* changes:
  DO NOT MERGE: Revert Move startInput for WINDOW_FOCUS_GAIN to background thread
  DO NOT MERGE: Revert: Freeup lock when IME is set inactive and unbound
2020-02-29 21:24:47 +00:00
Ram Periathiruvadi
8a4f32305c Merge "Resolve trust agents on USER_STARTED in addition to USER_ADDED." into qt-qpr1-dev 2020-02-29 04:52:07 +00:00
Yohei Yukawa
344858dd9c DO NOT MERGE: Revert Move startInput for WINDOW_FOCUS_GAIN to background thread
Reason for revert:
Caused an unexpected regression Bug 144174015

Bug: 139806621
Bug: 144103599
Fix: 144174015
Test: Manually verified Bug 144174015 disappeared as follows
 1. Open Gmail then start composing an email
 2. Swipe up the home button to recents then re-launch Gmail
 3. Do the step 2 several times.
 4. Make sure that you can still type something on Gmail.
Change-Id: I9265f01ed2f6e4aca7728d278f06ceea5633dac5
2020-02-28 23:07:53 +00:00
Yohei Yukawa
9494c9dbb7 DO NOT MERGE: Revert: Freeup lock when IME is set inactive and unbound
Reason for revert:
Caused an unexpected regression Bug 144174015

Bug: 139806621
Bug: 144103599
Fix: 144174015
Test: Manually verified Bug 144174015 disappeared as follows
 1. Open Gmail then start composing an email
 2. Swipe up the home button to recents then re-launch Gmail
 3. Do the step 2 several times.
 4. Make sure that you can still type something on Gmail.
Change-Id: I04a77afea17f9d3eb05017fa00313fad4e48cd5c
2020-02-28 23:06:57 +00:00
Tyler Trephan
3e27a33917 Updated wakeLock permission descriptions.
Test: None
Change-Id: Idc5e4be36b1527722e0dd84e8f2bcd0c2a7b02a3
Fix: 146586093
(cherry picked from commit 4701da640cc255253f87576c636b9fcac879bd89)
2020-02-28 13:02:59 -08:00
TreeHugger Robot
42e5ebf0f9 Merge "Use status_bar_padding_top in QS system icons" into qt-qpr1-dev 2020-02-28 19:08:44 +00:00
Matt Pape
eb2116bd30 CP ag/9571636 from master to qt-qpr1-dev
Bug: 143299398

--------------------------------------------------------------
Enforce READ_DEVICE_CONFIG in DeviceConfig.getProperties path.

Test: atest CtsDeviceConfigTestCases
      atest FrameworksCoreTests:DeviceConfigTest
      atest FrameworksCoreTests:SettingsProviderTest
      atest SettingsProviderTest:DeviceConfigServiceTest
Bug: 142891501

Change-Id: Ic01632514862b640d9e3b280b1ac15b1391c3c17
2020-02-28 17:18:04 +00:00
Malcolm Chen
9859e1724b Fix carrier config string typo.
Bug: 148611362
Test: build
Change-Id: Idf0c82a9920c62ecdc595973565656ed9ceedff6
2020-02-27 17:11:43 -08:00
Babak Bostan
d0555bba57 DO NOT MERGE Add toast message when bluetooth connects to voice recognition.
Bug: 143531081
Test: Manual
Change-Id: I342a1e5eefc59d25a8bea1c0fe72b8669bfdbe84
2020-02-27 15:51:14 -08:00