- 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
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
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
* 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
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
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
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
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
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
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
... 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
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
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
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
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
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
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
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