474391 Commits

Author SHA1 Message Date
Winson Chung
1df39e2cf6 Send task description changed though task org taskInfoChanged
- This removes the need for a separate task stack listener and aligns
  with other task info change properties
- Also implement equals/hashCode for the token so we can use it in
  containers

Bug: 148977538
Test: atest TaskOrganizerTests

Signed-off-by: Winson Chung <winsonc@google.com>
Change-Id: Ie035e6389fdbdc374c1a4b4a684758efa0cb7a9e
2020-04-11 00:01:05 -07:00
TreeHugger Robot
18b8b2d75e Merge "Fix typo in stack traversal" into rvc-dev 2020-04-11 06:55:29 +00:00
chenbruce
5d95562622 Set transport types to resolver
For a given network, resolver doesn't know what transport types are.
Therefore, when a new network is created or transport types are changed
in a give network, transport types will be updated and sent by calling
setResolverConfiguration(). In the same time, if link properties or
transport types are null, setResolverConfiguration() won't be called.
The original behaviors of setResolverConfiguration() aren't changed.
Only increasing one new behavior that when a given network has transport
type change, calling setResolverConfiguration() directly and resolver
updates the transport types for that given network.

Bug: 143732914
Test: atest FrameworksNetTests
      atest FrameworksNetIntegrationTests
Change-Id: I6527cde0e177ba08c886576131b35fc769c2bb53
2020-04-11 14:39:59 +08:00
TreeHugger Robot
507bbaeb9b Merge "WifiConfiguration: Add a method to check if keymgmt needs preShareKey" into rvc-dev 2020-04-11 05:55:19 +00:00
Chalard Jean
ce6aa16b80 Merge "Fix a theoretical NPE" into rvc-dev 2020-04-11 05:06:32 +00:00
Daniel Bright
2a639e9786 Merge "Add CarrierConfig key to customize apn priority" into rvc-dev 2020-04-11 04:56:25 +00:00
Roshan Pius
71709e04c9 WifiConfiguration: Add a method to check if keymgmt needs preShareKey
Bug: 153435438
Test: atest android.net.wifi
Change-Id: If67d853000d99f32204bf0b8b95465909e8740e2
2020-04-11 04:38:59 +00:00
Tej Singh
e715d2f0e7 Merge "Statsd test mapping" into rvc-dev 2020-04-11 03:49:17 +00:00
Kevin Han
bd142939eb Remove setInflationCallback
The current use cases for NotificationRowBinderImpl and NotifInflater's
API don't really need a persistent inflation callback stored as opposed
to a one-shot callback. By explicitly putting the callback in the
inflate methods, it also makes it more clear which calls inflate and
expect a callback to be called.

Bug: 145749521
Test: atest SystemUITests
Test: smoke test (add, update, remove notification)
Change-Id: I001413f17b7472ea2ef637be21d9d454ee17015e
2020-04-10 20:34:15 -07:00
Treehugger Robot
67ac7abd21 Fix a theoretical NPE
Test: NetworkAgentTests
Bug: 153718627

Change-Id: I955b6dac6de48b12696dc640f131f5983ac552df
Merged-In: I08f57cce0cd85d5cd66e9a0ef948224290e9200e
(cherry picked from commit 31492c708746a51f70c74913a4d6cd97bf06ae63, aosp/1284575)
2020-04-11 03:26:27 +00:00
TreeHugger Robot
72a3d44773 Merge "Camera: Fix condition check for min/max zoom ratios" into rvc-dev 2020-04-11 02:19:12 +00:00
Andrii Kulian
1cb59dd027 7/n Use display area instead of display id in ATM methods
Bug: 152116619
Test: WM CTS and unit tests
Change-Id: I2267fdb7fc0e6e87ab8c3e9794de37947f2a70e7
2020-04-10 18:25:21 -07:00
Yurii Zubrytskyi
207f1d3036 Merge changes I668e8664,Ia44f7e45 into rvc-dev
* changes:
  [incfs] Fix a crash in worker thread calling JNI
  [incfs] Make native library extraction async
2020-04-11 01:24:45 +00:00
TreeHugger Robot
2f601f4dbe Merge "LiveData#getValue can return null" into rvc-dev 2020-04-11 01:19:37 +00:00
Feng Cao
1f0b18175c Resend previous inline suggestions when IME hides and shows again
* when IME hides (onInputViewFinish), autofill manager service will
  send an empty inline suggestions response to clear the previous
  non-empty response
* when IME shows again (onInputViewStart), if the focus didn't change,
  the autofill manager service will resend the previous non-empty inline
  suggestions response to the IME

Test: atest android.autofillservice.cts.inline
Test: atest CtsInputMethodTestCases
Bug: 152577411
Bug: 153702698

Change-Id: Ic6a4b1db54c93040dc47c2a0d1cdc2e98f64d8ff
2020-04-10 17:53:31 -07:00
Youngjun Kwak
0abf11e202 Merge "Implement AAOS-specific KeyguardViewController and decouple keyguard from statusbar." into rvc-dev 2020-04-11 00:42:04 +00:00
Jeffrey Huang
9446080f3c Remove clear/restore callingUid
We no longer need to do this because UserManager.getUserHandles and
PackageManager.getInstalledPackagesAsUser are now called in a separate
background thread.

Bug: 130773130
Test: adb shell stop statsd && adb shell start statsd. Manually verified
that the uidmap was sent successfully.

Change-Id: Ifde1ba09575a479952bdbcd98aec4c34b3210974
2020-04-10 17:40:59 -07:00
Kevin Han
3742322d04 Clean up NotificationRowBinderImpl
Clean up a few things in NotificationRowBinderImpl

*Remove a bunch of dead parameters and methodsd
*Split logic into three main helper methods
   1) bindRow - called once when row is made
   2) updateRow - called to update row view state whenever the
   notification is updated
   3) inflateContentViews - called to initiate row content inflation
   whenever notification is updated
*Try to move other logic to appropriate places
  -Mainly move targetSdk resolution to be right after setting the sbn
  instead of after the row is inflated. This also makes icons neater to
  manage since we can immediately set the tag

Bug: 145749521
Test: atest SystemUITests
Change-Id: Id59a28c0fbbe1df5ffc4ec8eef58d760b8c6df05
2020-04-10 17:25:56 -07:00
Daniel Bright
14ad84249a Add CarrierConfig key to customize apn priority
Test: atest on com.android.internal.telephony.dataconnection
Test: Make phone call
Test: Send text message
Test: Hit websites on chrome
Test: Override pririties using carrier config using broadcast
Bug: 152324921
Change-Id: Ib2139a93768999c2a867e40fea8d86c0ce730130
Merged-In: I259071334c135709fc98c989a9b7c8c35f449578
2020-04-10 23:53:21 +00:00
Sarah Chin
31354ac59f Merge "Add carrier configs for NR SA unmetered" into rvc-dev 2020-04-10 23:38:37 +00:00
TreeHugger Robot
5b3e4d946f Merge "Make internal printing tests compatible with helpers" into rvc-dev 2020-04-10 23:15:19 +00:00
TreeHugger Robot
c3721ac874 Merge "Deprecates the animatingBounds from WM to SysUI" into rvc-dev 2020-04-10 23:13:52 +00:00
TreeHugger Robot
f622ff9add Merge "Fix preventable NPE & probable others" into rvc-dev 2020-04-10 23:03:15 +00:00
Andrii Kulian
5bb053bfe7 Fix typo in stack traversal
Bug: 152116619
Test: RootActivityContainerTests#testRemovingStackOnAppCrash_multipleDisplayAreas
Change-Id: I1672bc0c712c2bfd3f2f87139414da612a039226
2020-04-10 16:01:07 -07:00
Robert Snoeberger
0cf2bc2f53 LiveData#getValue can return null
The documentation recommends not calling this method on a background
thread. The problem is that it returns null until the value is set, and
setting the value requires waiting for the set-task to run on the main
thread.

Fixes: 153697933
Test: seek bar is still working
Change-Id: Idbb02e1c9baafd1676f67c1a5408107ed84c41d2
2020-04-10 18:51:36 -04:00
Tyler Gunn
79110a9fd7 Ensure conference state is posted to Telecom for new conferences.
There is an edge-case where an IMS conference fails to merge two
participants into a conference, AND the conference event package comes in
before the ImsCall indicates it is multiparty.  In this case, the CEP
will have a single participant which means we'll treat the call as a
standalone call.  ImsConference correctly sets the conference state, but
this was previously just passed along the ConnectionService adapter
to Telecom.  In this case the conference isn't even added to Telecom so
the method call in effect does nothing.

Changed to cache the conference state and ensure when adding the conference
to Telecom that we call the setConferenceState method (yeah, could have
put this in the ParcelableConference, but this is an edge case).

Test: Wrote unit test to verify property is set.
Fixes: 134047008
Change-Id: Ib48437abb1295d147e227727ce4ff2996f28b5de
2020-04-10 15:27:27 -07:00
Lucas Dupin
97f0c5fecd Fix wallpaper flickering when turning screen off
Test: visual
Bug: 153559173
Change-Id: If16a59464b4524e757f6df0c372d64a8791770b4
2020-04-10 15:23:38 -07:00
kwaky
4ed2e207c5 Implement AAOS-specific KeyguardViewController and decouple keyguard from statusbar.
Bug: 150162295
Bug: 150164054
Test: Manual. Unit Tests Pending.
Change-Id: I66586e15d114eb6da55254f778511bde4fce3154
2020-04-10 15:22:51 -07:00
Lyn Han
89fb39dc4e Show last selected bubble when stack expands
Fixes: 152888262

Test: manual
        1. Have 5 bubbles, select -middle- bubble, select overflow
        2. Collapse stack, reopen stack
        -> See that middle bubble is now first in stack and selected

Test: manual
        1. Have 5 bubbles, select -first- bubble, select overflow
        2. Collapse stack, reopen stack
        -> See that first bubble is selected again

Test: manual (overflow disabled)
        -> Previously selected bubble shows first in stack on expand

Change-Id: I8749306be247be3136d2b8a36852e796a5195ef7
2020-04-10 15:01:12 -07:00
Joshua Duong
4d7fb0b4c2 Merge "Hide notification shade when WifiDebuggingActivity is shown." into rvc-dev 2020-04-10 21:59:01 +00:00
Ytai Ben-Tsvi
9fac2c86ce Reboot the soundtrigger HAL on failure
... and avoid rebooting system_server.
There is no benefit in rebooting the system_server.

Fixes: 153461865
Test: Tested via a shell command that the sound trigger middleware
      service can indeed reboot the HAL and correctly recover from it
      dying.
Change-Id: Ie476968b6acf97bf701d0e2929e7bd099e19cd56
2020-04-10 14:55:19 -07:00
Robert Snoeberger
a86df87eaa Merge "Get media devices for each media application" into rvc-dev 2020-04-10 21:46:23 +00:00
Roshan Pius
5e85ab2683 wifi: Jar jar all external dependencies to a singe namespace
Differentiation between framework-wifi & service-wifi included static
dependencies were getting a little hard to manage. Also, use
com.androd.wifi.x@0 to preserve the original package name.

Bug: 153697614
Test: Device boots up and connects to wifi networks
Test: Manual inspection using dexdump on both framework-wifi.jar & service-wifi.jar
Change-Id: Ifa1efaa772a708c0d40d2d9be415d0c42b71b332
2020-04-10 14:41:01 -07:00
Evan Severson
3535e8156f Make one-time permission sessions continue over service restarts
When a sticky service crashes and is restarted by the system it should
retain its permission even if granted one-time.
Also make one time permission manager aware of package uninstalls.

Test: atest OneTimePermissionTest
Bug: 151405396
Fixes: 153701894
Change-Id: I7c440394aecf4308ecfe904ff56ffac94f0150ef
2020-04-10 14:23:09 -07:00
Fabian Kozynski
0935694b5a Merge "Add controls rearrange activity" into rvc-dev 2020-04-10 21:02:01 +00:00
Benjamin Gordon
65bab93fcc Make internal printing tests compatible with helpers
WorkflowTest and IPrintManagerParametersTest extend BasePrintTest from
CtsPrintTestCases, which means they now try to load a helper when
BasePrintTest.setUp() runs.  Add the helper installer target preparer
and package to their build files so that these can be found as expected.

With UiDevice being removed from BasePrintTest, also move getUiDevice()
over into the internal tests directly so that they can continue using it.

Bug: 153727434
Test: atest PrintSpoolerOutOfProcessTests android.test.IPrintManagerParametersTest
Change-Id: I7ff580c4288c83a69e319ff3668dcb98b11e4f41
2020-04-10 14:57:22 -06:00
Yurii Zubrytskyi
8632140038 [incfs] Fix a crash in worker thread calling JNI
Worker thread has to initialize JNI separately to be able
to call into managed binders implemented in the same
system_server process, e.g. DataLoaderManager

Bug: 153513507
Test: adb install megacity.nov4.apk; adb install megacity.v4.apk
Change-Id: I668e8664361cd2fb3353ec50efd689c7d613658f
2020-04-10 13:47:54 -07:00
Hongwei Wang
3c981f6eb7 Deprecates the animatingBounds from WM to SysUI
PipTouchHandler, similar to other components in SysUI, should be in-sync
with the destination bounds calculated within SysUI rather than WM.

Fixed also the empty movement bounds upon the first call to
PipTouchHandler#onMovementBoundsChanged. Together, this change should
fix the PIP not being lifted on IME show up. PipTouchHandlerTest is
updated correspondingly.

Bug: 153352899
Test: manually enter/exit PiP
Test: atest PipTouchHandlerTest
Change-Id: I2912af2a181b7fb57c6d90751744d46c6b3366d2
2020-04-10 13:47:14 -07:00
TreeHugger Robot
47709f0e8b Merge "Controls UI - Support detail panels" into rvc-dev 2020-04-10 20:45:45 +00:00
Mady Mellor
2dce0fe593 Fix preventable NPE & probable others
Test: treehugger
Bug: 153698788
Change-Id: I77bab3f8db7dc633784a2bbb03c57125726c1ffe
2020-04-10 13:44:35 -07:00
Roshan Pius
661a6fdd56 Merge "wifi: Add subfilters for android.hardware.wifi" into rvc-dev 2020-04-10 20:40:04 +00:00
TreeHugger Robot
186affa9af Merge "Controls a11y - Set activity titles" into rvc-dev 2020-04-10 20:14:08 +00:00
Julia Reynolds
7aca3b64aa Add guidance on conversation notifications
Test: make
Fixes: 153469444
Change-Id: I3df7fcdd03418bf8fe80c531385868d1d39409d8
2020-04-10 16:00:46 -04:00
TreeHugger Robot
55815db140 Merge "Add /apex to the list of allowed SystemServer paths" into rvc-dev 2020-04-10 19:52:26 +00:00
Yurii Zubrytskyi
da208016d6 [incfs] Make native library extraction async
IncrementalService can create the library files beforehand, but
delay filling in their data. As it takes quite a while in
general (over a second in cases when the phone is busy), it's
better to run the unzipping and filling in a separate thread
and only make sure it finishes before the whole installation
process is complete.
This speeds up the megacity.apk installation by ~250-300ms,
1000-1100ms -> 750-800ms

Bug: 153513507
Test: adb install megacity.apk

Change-Id: Ia44f7e45b9e0abaebdfb6fe5352f9dcf29ab4ece
2020-04-10 12:30:49 -07:00
TreeHugger Robot
03c66eb0e4 Merge "Update READ_PHONE_STATE doc to remove reference to phone number" into rvc-dev 2020-04-10 19:27:23 +00:00
Joshua Duong
fab030b9c0 Hide notification shade when WifiDebuggingActivity is shown.
Wireless debugging can be enabled from a quick settings tile, and this
gets covered by the notification shade.

Bug: 153275926

Test: Enable wifi debugging qstile from Settings > Developer options >
Quick settings developer tiles > Wireless debugging. On notification
shade, enable wireless debugging on an untrusted network. Notification
shade should be hidden to reveal the WifiDebuggingActivity.

Change-Id: I347e23ab85ee1235c20eab9a2318e1d8afe8975a
(cherry picked from commit 96f32de847a25c1c4a33b2e3d6c0f402ae64d2d4)
Exempt-From-Owner-Approval: cherry-pick
2020-04-10 19:11:33 +00:00
Anton Hansson
a31590bb4a Merge "Use sdk_version: none for platform stubs" into rvc-dev 2020-04-10 18:53:30 +00:00
Chris Wren
1886acb2c4 Merge "port more global actions legacy logs to new pipeline" into rvc-dev 2020-04-10 18:42:46 +00:00
Jeffrey Huang
b010fc5534 Merge changes I3f912418,Idd2465d5 into rvc-dev
* changes:
  Send boot completed to statsd
  Send puller registration signal to statsd
2020-04-10 18:38:00 +00:00