Almost all calls to ConnectivityService#updateCapabilities use
all the current data in the network, and thus call the method
like this:
updateCapabilities(nai.getCurrentScore(), nai, nai.networkCapabilities);
Introduce a convenience method to simplify this frequent use case.
Bug: 173331190
Test: passes existing ConnectivityService tests
Change-Id: I6eb6d92bd159f2575d10a929bd59f6dd1b7a4b4e
1. Remove OK button
2. If user taps Yes, closes dialog and if user taps No, redirects to
long press setting
Test: atest FeedbackInfoTest
Bug: 173460479
Change-Id: Idee79a0b28f480a51bf11bc0d31e836cf3eba9fc
This reverts commit a99ab83e43.
Server side flag will be added, and in the meantime, these strings
will be added as a resource in MediaProvider
Bug: 174161238
Test: atest TranscodeTest
Change-Id: I2d3d9abc1ee5dc230e15f76aed2cc97064013ed5
More pleasant colors for the background and icon of the slider. Also,
have the icon change color as the slider passes by.
There doesn't seem to be an easy way to use a vector drawable as an item
while at the same time changing the tint and alpha.
Test: manual
Fixes: 17476414
Change-Id: Ie545c3b681885ea8372808aae8804f58c85f2f67
Update tracked devices CEC version based on messages received by remote
devices.
Messages that can indicate CEC version are: <CEC Version>, <Report
Features>, <Report Power Status> (broadcast).
Bug: 169121287
Test: atest HdmiCecNetworkTest
Change-Id: I944dc1cdb93b32fb28fef4b2c111a08b232543c4
These PIs need an explicit mutability flag. This temporay flag is being
used to mark these points in code and should be replaced ASAP.
See go/immutable-pendingintents for more context.
Bug: 160794467
Test: TH
Change-Id: I4ee94224f25d64dcb7ba71b3dc62d3cf55924760
This reverts commit 95cf4e7088.
Reason for revert: the fix is not working and also found that it is set to -1 on purpose
Change-Id: I3ea5553606a7824ba23909b0e36b2538d0f3d29f
The current behaviour with regards to changing the owner UID is
bizarre and arguably incorrect. A NetworkAgent can change the
owner to whatever other app it wants, regardless of signatures,
at any time. This includes, for example, transferring ownership
to another UID and then recovering it.
Fortunately no existing NetworkAgent appears to do this:
- ClientModeImpl sets it to the UID of the app that created the
configuration. It doesn't look like it can change while the
network is connected.
- Vpn sets it to the UID of the VPN owner. That also can't change.
- Telephony does not appear to set it at all, it only sets the
administrator UIDs (and updates them whenever it gets
EVENT_CARRIER_PRIVILEGED_UIDS_CHANGED).
Disallow this now before code is written that depends on it.
Bug: 175188445
Test: modified tests in ConnectivityServiceTest
Change-Id: I638e29fda2481ec3bf4fff562ea66a73322881df
Currently, NetworkCapabilities's equals and hashCode methods
ignore mOwnerUID. This is confusing because it is inconsistent
with pretty much every other member of this class.
Bug: 175188445
Test: atest CtsNetTestCases:NetworkAgentTest \
CtsNetTestCases:Ikev2VpnTest \
CtsNetTestCases:VpnServiceTest HostsideVpnTests \
CtsNetTestCases:android.net.cts.ConnectivityDiagnosticsManagerTest \
ConnectivityServiceTest com.android.server.connectivity.VpnTest
Change-Id: I2348b7a35f32a931687f2d3c2fa57620a12fe06f
Store CEC version for each device. Defaults to HDMI CEC 1.4b.
Bug: 174732339
Test: make; atest HdmiDeviceInfoTest
Change-Id: I97c962d58b16ddfab9010a1738670a107e12481f
Connectivity service is going to become a mainline module which
will not be able to access hidden APIs. TcpKeepaliveController
is a part of CS mainline module, it uses TcpRepairWindow to
store tcp repair window info. Thus, expose TcpRepairWindow as
module-lib API to support the usage.
Bug: 172183305
Test: atest FrameworksNetTests
Change-Id: I1b6f5ae698f4b6e030a0f776aeafc774fa9f1437
When magnification switch button locates near to the system gesture
area, a user would feel hard to drag the button because the touch event
is dispatch to system gesture in priority.
To make the switch button easier to be dragged, we exclude the button
from system gesture area and adjust the layout size and the padding.
Bug: 172899084
Test: atest MagnificationModeSwitchTest
Change-Id: Ida99289ec63e6dc95d93eab979d9f8e985c3b889
Bug: 172181610
Test: (1) run statsd_testdrive 277, and check the
metric output correctness after content switching.
(2) run statsd_testdrive 90, and check the metric
output correctness after launching the output dialog
via Sound Setting / Volume Rocker / Media Object Chip.
(3) atest MediaOutputControllerTest
(4) atest MediaOutputDialogTest
(5) atest MediaOutputBaseDialogTest
Change-Id: I4094a510b5483a456522da9d0d8a6eee1526f687
Merged-In: I0fea0c59afcb44fc1d22920036107524f221a7be
As part of bringing up these tests in Cystalball,
use Collector helper library to wait for device to stabilize
before running the test.
Bug: 163826419
Test: atest BlobStorePerfTests
Change-Id: Iad31b9e0a5b1f17f83499984f41e39118d8cc153
Caused by: java.lang.NullPointerException: Attempt to invoke interface method 'java.util.Iterator java.util.Set.iterator()' on a null object reference
at com.android.server.media.BluetoothRouteProvider.buildBluetoothRoutes(BluetoothRouteProvider.java:165)
at com.android.server.media.BluetoothRouteProvider.access$900(BluetoothRouteProvider.java:53)
at com.android.server.media.BluetoothRouteProvider$AdapterStateChangedReceiver.onReceive(BluetoothRouteProvider.java:462)
at com.android.server.media.BluetoothRouteProvider$BluetoothBroadcastReceiver.onReceive(BluetoothRouteProvider.java:445)
at android.app.LoadedApk$ReceiverDispatcher$Args.lambda$getRunnable$0$LoadedApk$ReceiverDispatcher$Args(LoadedApk.java:1564)
Signed-off-by: liuxiaoyu7 <liuxiaoyu7@xiaomi.com>
Change-Id: I6828a319248deff851d46f259cfaf392fde04a1d
Previously the logic was to reuse the same permission delegate,
however since we are moving to the new API, that reuse is no longer
possible. So just always set up the permission delegate again to avoid
delegated permissions not being updated in PermissionManagerService.
Bug: 158736025
Fixes: 175085645
Test: MultiUserRollbackTest
Change-Id: I58acefe7bd9053a032b3df24c0c793f4e2aacde1
Now that we are reading the transcode_compat_manifest from DeviceConfig,
we don't need the app-level transcode settings under Media transcoding
settings. So, removing the string.
BUG=169327180
Test: manual testing.
Change-Id: I95c2d15f7645b5aadc40283dd83d45fd14f87d88
Activity handles insets on its own (e.g. under status bar or navigation bar). After task's surface is repositioned, intersection between an activity and insets can change but if it doesn't, the activity should be shown under insets to maximize visible area.
Also, an activity can use area under insets and insets shouldn't be cropped in this case regardless of a position on the screen.
Test: atest LetterboxTaskListenerTest
Fix: 174086576
Change-Id: I84cd28520ead3fb0099f15cc672167871c7d78a1