Commit Graph

469351 Commits

Author SHA1 Message Date
Adam He
4fbfa530d7 Merge "Fix explicit intent for instant app tests." into rvc-dev 2020-03-03 22:39:40 +00:00
Amy Zhang
139544fd63 Merge "Use correspondence to compare interible objects in test" into rvc-dev 2020-03-03 22:23:29 +00:00
Antoan Angelov
f6b536594b Merge "Show a spinner when waiting for the work profile to turn on." into rvc-dev 2020-03-03 21:34:02 +00:00
Winson Chiu
ff37a26f9a Merge "Fix PackageManagerService onlyCore and factoryTest ordering" into rvc-dev 2020-03-03 21:27:38 +00:00
Khaled Abdelmohsen
e2ab8ed00e Merge "Create source stamp verifier in platform" into rvc-dev 2020-03-03 21:10:50 +00:00
TreeHugger Robot
42e3933e54 Merge "Revert "Fix permission check for get/setSmscAddress."" into rvc-dev 2020-03-03 20:44:27 +00:00
Nate Jiang
b628b2b0f6 Merge "Create different KeyId for saved and suggestion network" into rvc-dev 2020-03-03 20:31:52 +00:00
Sudheer Shanka
dcc69b942e Merge "Compute digest in BackgroundThread which is limited to little cores." into rvc-dev 2020-03-03 20:08:39 +00:00
Will Brockman
83f3fb4610 Merge "Statsd-log notification channel changes." into rvc-dev 2020-03-03 19:49:54 +00:00
Amit Mahajan
dec964ceb6 Revert "Fix permission check for get/setSmscAddress."
This reverts commit 05e9720552.

Reason for revert: b/150666039
Bug: 150666039
Change-Id: I67a4ffe94e3caabd04a5b9305de3e476867bfbd1
2020-03-03 19:19:08 +00:00
TreeHugger Robot
1f9f5ddd1c Merge "Update BluetoothDevice SystemApi permissions and disallow passing a null pin to BluetoothDevice#setPin" into rvc-dev 2020-03-03 19:14:16 +00:00
Feng Cao
c9611acb62 Merge "Notify autofill with the IME start/finish input view events" into rvc-dev 2020-03-03 18:36:11 +00:00
Matt Pietal
2c2afb92e3 Merge changes I77671bd4,I22021266 into rvc-dev
* changes:
  Controls UI - Structure switching
  Controls - Structure persistence
2020-03-03 18:32:41 +00:00
arangelov
2dd9f7b64d Show a spinner when waiting for the work profile to turn on.
This covers the usecase when we show the share sheet or
intent resolver on a device with a work profile, and
the work profile is turned off. In that case, when
sharing from the personal profile, we show an empty
state screen with the option to turn on the work profile.
When we tap that button, we now show a spinner, as there
is a delay until the profile is actually enabled.

Fixes: 149821684
Test: manual

Change-Id: Id90b21a61b10ecce8172bddc42fdeec5fb61c5fe
2020-03-03 18:29:33 +00:00
TreeHugger Robot
1a224c079a Merge "Import translations. DO NOT MERGE" into rvc-dev 2020-03-03 18:14:42 +00:00
Roshan Pius
8d974dc239 Merge changes I80f66d19,I68810035 into rvc-dev
* changes:
  AndroidManifest.xml: Mark NetworkRequest UI intent protected
  Shell: Allow retrieval of wifi network credentials
2020-03-03 18:09:45 +00:00
Winson Chiu
f5f588e032 Merge changes I815bb92e,I1777f84c into rvc-dev
* changes:
  Adjust AndroidPackage String interning
  Add package parsing v1 vs v2 benchmark
2020-03-03 18:06:37 +00:00
TreeHugger Robot
5083ad7e2a Merge "use shell to open v4 signature file" into rvc-dev 2020-03-03 18:02:08 +00:00
TreeHugger Robot
a47fcc0557 Merge "add incremental installation test to presubmit" into rvc-dev 2020-03-03 18:02:08 +00:00
Matt Pietal
638253a67a Controls UI - Structure switching
Create a popupdialog similiar to a spinner widget. Move 'add controls'
into there as a permanent item. Support multiple structures per app,
but also default empty structures to just use the app name.

Bug: 148207527
Test: visual
Change-Id: I77671bd40859dfb749a90064b654a0bd14526622
2020-03-03 13:02:05 -05:00
Riddle Hsu
10c52d1013 Merge "Align the end time of wallpaper rotation transform to its target" into rvc-dev 2020-03-03 17:50:07 +00:00
Patrick Baumann
4fd9b75e52 Merge "Update test_mapping to point to test suite vs class" into rvc-dev 2020-03-03 17:48:37 +00:00
Songchun Fan
38dfe9a0d4 use shell to open v4 signature file
BUG: 133435829
Test: atest PackageManagerShellCommandIncrementalTest
Change-Id: I8e57b00f042f8b6c85d5f905460dd2da6199accc
(cherry picked from commit cdbcb34c2b)
2020-03-03 09:48:02 -08:00
Patrick Baumann
f6017075b6 Update test_mapping to point to test suite vs class
To address a clarity issue in a previous CL, this change updates the
TEST_MAPPING for ../pm to point to the app enumeration Cts test suite
instead of just the test class, which lacks the Cts prefix.

Test: atest CtsAppEnumerationTestCases
Fixes: 150693167
Change-Id: Iab08d4915db596eac70736bb63bd1c9b28491a00
2020-03-03 17:47:25 +00:00
Jayachandran Chinnakkannu
4a758b479b Merge "Add carrier config to show wifi calling icon in status bar" into rvc-dev 2020-03-03 17:36:57 +00:00
Julia Reynolds
77c74c8227 Merge "Schedule delete for files as soon as they are written" into rvc-dev 2020-03-03 17:36:21 +00:00
Will Brockman
23db6d4c2a Statsd-log notification channel changes.
Logs when a notification channel is created, substantially modified, or deleted.
Channels are identified by app uid & package, and a small hash of the channel ID.
Distinguishes user modifications from app modifications.
Distinguishes conversation (system-created sub-channel) from regular
channel create/delete.

Bug: 146488473
Test: atest com.android.server.notification.PreferencesHelperTest
Test: adb shell cmd stats print-logs && adb logcat -s statsd:I | grep ' (246)'
Change-Id: Icf2b2707a69dc9d2fb5fa59d0033930e067f201b
2020-03-03 12:34:44 -05:00
Bill Yi
b50d94c0bf Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Change-Id: I1845be6cfa878ab8bdc416052e680229b303e89d
2020-03-03 09:31:52 -08:00
Roshan Pius
98d019df63 AndroidManifest.xml: Mark NetworkRequest UI intent protected
Bug: 150680093
Test: Verifeid with CtsVerifier tests
Change-Id: I80f66d19294e78bafa1bc1cb2523bae259944056
2020-03-03 09:26:43 -08:00
Roshan Pius
75dbcfff98 Shell: Allow retrieval of wifi network credentials
This permission is needed for some wifi CTS tests.

Is the minimally scoped permission that needs to be added?
- Yes, this only allows the retireval of the saved wifi network
credentials on the device.

What options did you explore that did not need this permission?
- Possibly creating a UI to ask for manual entry of network credentials.
But, that would not let us do automated CTS tests (will need to become
CTS verifier tests then).

Bug: 150236894
Test: atest android.net.wifi.cts.WifiNetworkSpecifierTest
Change-Id: I6881003510191f667950be1ab27a5399fe3914b4
2020-03-03 09:26:27 -08:00
Sarah Chin
5bebe02dd3 Merge "Framework did not notifyDisplayInfoChanged" into rvc-dev 2020-03-03 17:20:09 +00:00
Khaled Abdelmohsen
8ce84c8567 Create source stamp verifier in platform
Bug: 148005911
Test: atest FrameworksCoreTests:SourceStampVerifierTest
Change-Id: Ibdaedf0355f5dd3537a425a031e298b710aae9f7
2020-03-03 17:16:56 +00:00
Jorim Jaggi
13fa025773 Merge "Fix WindowInsetsController lifecycle" into rvc-dev 2020-03-03 17:02:38 +00:00
Songchun Fan
964f9fdd2f Merge "fix streaming installation for splits" into rvc-dev 2020-03-03 16:40:53 +00:00
Song Pan
4cbd3b7a8e Merge "Fix some bugs for robustness." into rvc-dev 2020-03-03 16:10:31 +00:00
SongFerngWang
f64b4f2b24 Framework did not notifyDisplayInfoChanged
Bug: 150648297
Test: adb shell am broadcast -a com.android.internal.telephony.TestServiceState \
--ei data_rat 14 --ei nr_state 3 --ei nr_frequency_range 4
Change-Id: I151833df7652b58d4bd599938e84b88e112cc0d7
2020-03-03 16:08:06 +00:00
TreeHugger Robot
2b4ac673cd Merge "Update docs for getGenericConferenceActiveChildCall" into rvc-dev 2020-03-03 16:01:21 +00:00
Matt Pietal
313f37de55 Controls - Structure persistence
Allow structure to be persisted and restored. Assume structure can be
null in XML, to ease migration. Null values from Control will be
mapped to an empty string in ControlInfo. Reduce binding controller
to a single binding at a time.

Bug: 148207527
Test: atest ControlsFavoritePersistenceWrapperTest
ControlsControllerImplTest ControlsBindingControllerImplTest

Change-Id: I220212666258311bd58b498d4d579977c11d3fae
2020-03-03 09:59:12 -05:00
Jorim Jaggi
57157ac5d8 Fix WindowInsetsController lifecycle
Provide a recording insets controller before the window gets
created, and replay the commands once a view gets attached. This
allows the client to use the controller in Activity.onCreate.

Test: WindowInsetsControllerTests
Bug: 118118435
Change-Id: I1a825ecc4367c02b27f2d08cd5442325315d4f89
2020-03-03 15:12:15 +01:00
Fabian Kozynski
35886c0d47 Merge "Remove favorites when app is uninstalled" into rvc-dev 2020-03-03 14:03:13 +00:00
Fabian Kozynski
1a42c21099 Merge "Controls management Minor polish changes" into rvc-dev 2020-03-03 14:02:59 +00:00
Sergey Nikolaienkov
88ad796fa9 Merge "Workaround for not initializing StatusBar on TVs" into rvc-dev 2020-03-03 13:01:06 +00:00
TreeHugger Robot
e339218972 Merge "Clear binder identity before checking with compat service" into rvc-dev 2020-03-03 11:49:24 +00:00
Riddle Hsu
6393ad1293 Align the end time of wallpaper rotation transform to its target
That fixes the flicker when backing from a different orientation
activity than home. Because the wallpaper window may be updated
later than home's transition. Ideally, the fixed rotation transform
of wallpaper should be synced with its target for consistency.

Also fixes various hidden errors of RecentsAnimationControllerTest.
Mostly about mDisplayContent:
 - It is not default display so it requires additional mock.
 - It contains many testing windows from default setup, that may
   disturb the test flow.
 - Currently it cannot rotate due to wrong condition in
   TestDisplayContent.Builder.
That leads to several false positive results. Now it is changed to
use the existing default display and home stack, which is more
efficient and reasonable.

Bug: 148000485
Test: atest RecentsAnimationControllerTest# \
      testWallpaperHasFixedRotationApplied
Change-Id: I4c054e8a5c9ef654c635055509e2c55f519be932
2020-03-03 19:00:00 +08:00
Sergey Nikolaienkov
d1789c605a Workaround for not initializing StatusBar on TVs
The fact that StatusBar gets initialized and injected on TVs is causing
several issues. While we are working on the permanent solution -
unbinding StatusBar on TVs (bug: 150666950)

Change-Id: I123685dbb49aa6df95f32faeefca9c13123ec527
Test: make, flash, make sure HDMI-CEC is disabled, use +/- buttons on
a remote to adjust volume, see the appropriate UI
Bug: 150663447
Bug: 146188087

Change-Id: Ifa5ba67db1bdaf6b6ae1f685989e4cd47fa1ac18
2020-03-03 10:33:21 +01:00
Lee Chou
920105c38b Revert "Remove exception from OverlayConfig zygote method"
Commit ag/9740370 caused problem with robotests b/149806146
The fix ag/10373855 froze targets like run_host_tests
This revert will unfreeze run_host_tests but robotests will break

Bug: 150011638
Test: m RunSettingsRoboTests0
Change-Id: Ibe954e9d0dc1542477ba7156da5799479631cfb0
2020-03-03 17:11:49 +08:00
TreeHugger Robot
fdd209e94b Merge "Fix AppOps collection bug." into rvc-dev 2020-03-03 07:14:52 +00:00
Kunhung Li
147a229ab8 Add metrics for live wallpaper preview panel
Add actions to know if users have tapped info or customize page for
live wallpaper.

Bug: 149981022
Test: make statsd_testdrive
Change-Id: I7caa1c169652af7af0363b3f6679ad101593c84b
2020-03-03 06:56:59 +00:00
TreeHugger Robot
bb26e42b19 Merge "Register IonHeapSize puller only if supported" into rvc-dev 2020-03-03 06:38:56 +00:00
Feng Cao
7c85eb79a7 Notify autofill with the IME start/finish input view events
* autofill will cache the inline suggestions response until it receives
  a start input view event from IME
* the data flow from IMS point of view is:
  IMS#startViews and IMS#doStartInput (before calling onStartInputView)
  ->
  [async] InlineSuggestionsRequestCallback#onInputMethodStartInputView()
  --- process boundary ---
  ->
  IMMS.InlineSuggestionsRequestCallbackDecorator
     #onInputMethodStartInputView()
  ->
  InlineSuggestionSession.InlineSuggestionsRequestCallbackImpl
     #onInputMethodStartInputView()
* similar data flow for  IMS#finishViews()
* this CL should not block IME's UI thread because it's only issuing a
  new async IPC from IMS start/finish input view call that's running on
  the UI thread.
* there should not be performance impact on IMEs if autofill inline
  integration is not active

Test: manual verification, atest EditorInfoTest
Test: atest android.autofillservice.cts.inline, with two failing cases:
 InlineAugmentedLoginActivityTest#testAugmentedAutoFill_twoDatasetThenFilledSecond
 and InlineAugmentedLoginActivityTest#testAugmentedAutoFill_oneDatasetThenFilled
 due to the test itself being broken, I'll fix the test in a separate patch
Bug: 149522488
Bug: 149442582
Change-Id: I2faa3577b9f95a122f26a6d7fa7822a769a51e34
2020-03-02 21:18:16 -08:00