473688 Commits

Author SHA1 Message Date
Lorenzo Colitti
1b93b670a1 Merge "Add a test for static IPv4 address tethering configuration." into rvc-dev 2020-04-07 04:30:58 +00:00
Lorenzo Colitti
4b6961d78d Merge "Use CompletableFuture instead of a latch." into rvc-dev 2020-04-07 04:30:33 +00:00
Pardis Beikzadeh
ecfe611854 Merge "Post cancelAsUser to mHandler." into rvc-dev 2020-04-07 03:48:33 +00:00
TreeHugger Robot
5eb9c8fada Merge "Store conversation requirement in a setting" into rvc-dev 2020-04-07 03:47:02 +00:00
Robert Snoeberger
0dadde727f Check if QQS shows player when updating height
The media session attached to the player may have changed since the last
time the QQS layout was switched. So, check if the QuickQSPanel is showing
a player when deciding how to update the height. Don't check the state
of the media session.

Fixes: 149503712
Test: play podcast, pause and dismiss app. Go to lock screen and swipe
down to see QuickQS. Verify that the panel is appropriately sized.

Change-Id: I1d6252a1ea09d6938fe1b5da6a4bee05b2ebc30c
2020-04-06 23:43:47 -04:00
Xiao Ma
b145e47021 Merge "Rename IDhcpLeaseCallbacks to IDhcpEventCallbacks for more generic." into rvc-dev 2020-04-07 02:50:41 +00:00
Lorenzo Colitti
7ec6f17b2b Add a test for static IPv4 address tethering configuration.
Bug: 150644681
Test: test-only change
Merged-In: I8f4a99da2351fdb5467f561a9732b14a8ebf674b
Change-Id: I8f4a99da2351fdb5467f561a9732b14a8ebf674b
2020-04-07 02:21:00 +00:00
Lorenzo Colitti
76602035b9 Use CompletableFuture instead of a latch.
Addresses review comments on aosp/1260100.

Bug: 150644681
Test: test-only change
Merged-In: Ia73ba8a121a3744a5e36795d2d2bff2f099c1394
Change-Id: Ia73ba8a121a3744a5e36795d2d2bff2f099c1394
2020-04-07 02:20:35 +00:00
Jing Ji
b7b84697fd Merge "Fix NullPointerException in ActiveService" into rvc-dev 2020-04-07 02:15:28 +00:00
Lorenzo Colitti
3a6906b9e3 Merge "Refactor the Nat464Xlat function for simplicity." into rvc-dev 2020-04-07 02:13:33 +00:00
Lorenzo Colitti
b99fc7b343 Merge "Migrate to TetherOffloadRuleParcel in IpServer" into rvc-dev 2020-04-07 02:12:50 +00:00
TreeHugger Robot
05a0fc26e0 Merge "Also load fs-verity cert from /system/etc/security/fsverity/" into rvc-dev 2020-04-07 02:00:07 +00:00
Joshua Duong
e7a452a2cd [adbwifi] Fix adbwifi string case.
Changed 'Scanner' to 'scanner'.

Bug: 153271332

Test: make
Change-Id: I4c34314753277859860dc3b981ba4ea86025557d
(cherry picked from commit 10b13264f68917355e32fb8ef17ee2fc62a8658b)
2020-04-07 01:59:23 +00:00
Xiao Ma
3eab4929c9 Rename IDhcpLeaseCallbacks to IDhcpEventCallbacks for more generic.
Bug: 130741856
Test: atest TetheringTests
Merged-In: I66614fbf67fba1e7dab0b8a2d41bc30a726e4f38
Change-Id: I66614fbf67fba1e7dab0b8a2d41bc30a726e4f38
2020-04-07 01:26:50 +00:00
Vinit Nayak
8694188f71 Merge "Avoid visibility change on navBar view if null" into rvc-dev 2020-04-07 01:25:23 +00:00
Paul Hu
0409ac518c Fix EntitlementManager issues
1. Add TETHERING_ETHERNET to vaild downstream type. So starting
   ethernet tethering will do entitlement check as well.
2. Ignore request with invalid downstream type on
   handleRequestLatestTetheringEntitlementValue()

Bug: 152828758
Bug: 152828142
Test: atests TetheringTests CtsTetheringTest

Change-Id: Id0cb59cc4681f5ffbde7be54de05a05e46f0ffb8
Merged-In: Id0cb59cc4681f5ffbde7be54de05a05e46f0ffb8
(cherry picked from commit c502e050fd9543e8bde45014dd66ea1be91c90ef)
2020-04-07 01:23:49 +00:00
Selim Cinek
35910cacaa Merge changes I76df6529,I99594ae9 into rvc-dev
* changes:
  Fixed the heads up layout of conversations
  Fixed an issue where the conversation title was showing doubled
2020-04-07 01:22:04 +00:00
Jackal Guo
7e4cf533ac Merge "Use hand-written counted loop for ArrayList" into rvc-dev 2020-04-07 01:19:39 +00:00
TreeHugger Robot
e8931d06dd Merge "Rename vts-core to vts" into rvc-dev 2020-04-07 01:14:42 +00:00
Lee Shombert
81a3e1c578 Fix exception handling in getState() binder cache
Bug: 153103051

A binder cache query function cannot compute a result based on any data
that is not known to the binder server.  If the code depends on local
data that can change, then invalidation will not work properly.

The getState() method returns OFF if the bluetooth service is
unavailable.  This computation now occurs in the getState() method,
outside of the binder cache query() method.

The query method converts RemoteExceptions to RuntimeExceptions.  Then,
the conversion is reversed in getState().  This double conversion is
needed because the cache query() method has no throw spec.

Test: Run 'atest BluetoothInstrumentationTests' with a special debug
image that enables binder cache VERIFY.  The test found no cache
inconsistencies.

Change-Id: I80db86f66d8b51fa94207824c8b15972a9066ef5
2020-04-06 18:07:33 -07:00
TreeHugger Robot
55ace3ebb3 Merge "Fix tasks not resized in split-screen" into rvc-dev 2020-04-07 01:03:12 +00:00
Eric Laurent
b6c403b091 Merge "SoundTriggerHelper: improve in call behavior" into rvc-dev 2020-04-07 00:55:44 +00:00
Eric Laurent
3b13f5ef87 Merge "AudioSystem: add annotation on API used by CTS media" into rvc-dev 2020-04-07 00:48:55 +00:00
Jing Ji
622438feba Fix NullPointerException in ActiveService
Bug: 151985835
Test: Manual
Change-Id: Ib9e8a39e8cc07cccb12727e98efcc280d13852ab
2020-04-06 17:31:31 -07:00
Lucas Dupin
3a8531e39a Make control panel black
Background is now black, when showing home controls, without changing
the UI for legacy experiences.

Test: atest NotificationShadeDepthControllerTest
Test: open power menu on lock screen and home screen
Fixes: 151950882
Change-Id: Ieb183f9200a7eba8790640f863a0c7324d3b6faa
2020-04-06 17:18:09 -07:00
TreeHugger Robot
d5729ebc66 Merge "Remove obsolete/infeasible TODOs" into rvc-dev 2020-04-07 00:12:09 +00:00
Max Tauro
51a5c0c3e5 Merge "CarSystemUIModule/CarSystemUIRootComponent public" into rvc-dev 2020-04-07 00:09:50 +00:00
Maciej Zenczykowski
e7d685f488 Merge "Rename the *Nat64Prefix to *Nat64PrefixFromDns." into rvc-dev 2020-04-06 23:58:04 +00:00
Sally Yuen
63f5570796 Merge "Laziliy initialize SystemActionPerformer" into rvc-dev 2020-04-06 23:55:54 +00:00
Sally Yuen
de172d5438 Merge "Set the window title in AlertDialog's AlertController" into rvc-dev 2020-04-06 23:54:23 +00:00
Sally Yuen
3987ae1ad8 Merge "Make the system action API more clear with documentation" into rvc-dev 2020-04-06 23:54:03 +00:00
Jeff Sharkey
e0c12903db Merge "Additional notification performance improvements." into rvc-dev 2020-04-06 23:35:14 +00:00
Jeff Sharkey
5fae035ac5 Additional notification performance improvements.
The initial design that accepted a Collection<Uri> for notifyChange()
simply looped over the collection once inside the system_server, which
was offered a great initial performance improvement.

However, there were still inefficiencies in how we validated
ContentProvider access, dispatched sync adapter changes, and
invalidated internal caches.  This change optimizes those operations
by performing them only once per (authority, userId) tuple, and by
caching the getProviderPackageName() answer.  Local tests show that
this change roughly doubles the speed.

Before this CL:
    notifyInsert count=50 duration=5958061219ns average=119ms
    notifyUpdate count=50 duration=5696640780ns average=113ms
    notifyDelete count=50 duration=4344581840ns average=86ms

After this CL:
    notifyInsert count=50 duration=3287114546ns average=65ms
    notifyUpdate count=50 duration=3103146196ns average=62ms
    notifyDelete count=50 duration=2033265671ns average=40ms

Bug: 144464323
Test: atest CtsDatabaseTestCases
Test: atest CtsContentTestCases:android.content.cts.ContentResolverTest
Test: atest FrameworksServicesTests:com.android.server.content.ObserverNodeTest
Test: atest com.android.providers.media.client.PerformanceTest#testBulk
Change-Id: Idfda019fcc123ee7118b1856a8ff7332a17b5ef9
2020-04-06 17:34:22 -06:00
Pardis Beikzadeh
3c2dc2896f Post cancelAsUser to mHandler.
This is to fix a java.lang.SecurityException: Caller android:1010157 cannot post for pkg android in user 10
that was coming from this line.

Bug: 153016511
Test: Manual - did make, flash, ran a test app to repro the SecurityException to verify it does not.
Change-Id: Icb1bb9982a7fb4b377b0b6773c19a146c5ea8f63
2020-04-06 16:30:09 -07:00
Dan Shi
a1d69738ef Rename vts-core to vts
Bug: 151896491
Test: presubmit check
Exempt-From-Owner-Approval: This CL renames suite name vts-core to vts.
It won't change test logic or behavior.

Change-Id: I79cddf5e4a65486b8f1286ea430360479ad2b93d
2020-04-06 16:23:37 -07:00
Gavin Corkery
7f05f6a566 Call startObservingHealth on handler thread
Both RescueParty and PackageWatchdog receive DeviceConfig callbacks.
RescueParty may act on this callback by calling startObservingHealth,
while PackageWatchdog will call updateConfigs. There may be a
contention for PackageWatchdog#mLock in this case. Move some of the
logic in startObservingHealth to the long task handler thread to avoid
this.

Bug: 150114865
Test: atest StagedRollbackTest
Test: atest RescuePartyTest
Change-Id: I74e1b21b7adddf35759e70211c47d31acfcae7f2
2020-04-07 00:12:15 +01:00
Kevin Chyn
8ae64b5c29 Update bouncer fingerprint lockout logic
Do not request fingerprint auth if the user is locked out and
they have attempted credential on bouncer. This fixes an issue
where the incorrect PIN/Pattern/Password message would be
overwritten by the fingerprint lockout message.

KeyguardUpdateMonitor controlls biometric requests for
lockscreen/bouncer, so poke in credential attempts so it can
be used for determining if biometric should be requested.

Fixes: 141960543

Test: 1) set up PIN/Pattern/Password and fingerprint
      2) reject fingerprint 5 times, then swipe up to bouncer
      3) note that "too many attempts" message is shown
      4) enter wrong PIN/Pattern/Password
      5) note that from now on, this current bouncer session will
         only show credential-related errors

Change-Id: Ifb837b29f93caa5b8762bd5609ca09601b6e4784
2020-04-06 15:56:33 -07:00
Vinit Nayak
d19ef551b5 Avoid visibility change on navBar view if null
Nav bar view could not be instantiated when changing
navigation modes or when NavigationModeController
notifies of action OVERLAY_CHANGED via its broadcast
receiver.

Fixes: 153275085
Change-Id: I76b96aaded82f3172dad101eb897b286935e448e
2020-04-06 15:36:58 -07:00
François Gaffie
d83e946d53 AudioSystem: add annotation on API used by CTS media
Add @TestApi for the class so some methods and
constants can be visible to test API.
  Also @hide for all other members of the class
that are not @TestApi, as they are exposed to the
test API visibility.

Bug: 136121584
Test: run cts-dev -m CtsMediaTestCase --test android.media.cts.AudioProductStrategyTest
run cts-dev -m CtsMediaTestCase --test android.media.cts.AudioVolumeGroupTest
run cts-dev -m CtsMediaTestCase --test android.media.cts.AudioVolumeGroupChangeHandlerTest
run cts-dev -m CtsMediaTestCase --test android.media.cts.AudioManagerTest#testPermissionsForVolumePerAttributes
run cts-dev -m CtsMediaTestCase --test android.media.cts.AudioManagerTest#testGetAndValidateProductStrategies
run cts-dev -m CtsMediaTestCase --test android.media.cts.AudioManagerTest#testGetAndValidateVolumeGroups
run cts-dev -m CtsMediaTestCase --test android.media.cts.AudioManagerTest#testSetGetVolumePerAttributesWithInvalidAttributes
run cts-dev -m CtsMediaTestCase --test android.media.cts.AudioManagerTest#testSetGetVolumePerAttributes
run cts-dev -m CtsMediaTestCase --test android.media.cts.AudioManagerTest#testVolumeGroupCallback
Signed-off-by: François Gaffie <francois.gaffie@renault.com>

Change-Id: Iff9abda2cf971d9c234dcf7df7c2b9a4ad5294c3
2020-04-06 15:04:22 -07:00
Bernardo Rufino
2de79fb6fd Merge "Wire user info and use user context for text toasts" into rvc-dev 2020-04-06 21:59:20 +00:00
Susi Kharraz-Post
7e9bfdfd63 Merge "Fix NPE for Open With ChooserActivity Logging Bug" into rvc-dev 2020-04-06 21:58:13 +00:00
Winson Chung
be022550d8 Merge "Revert "Keep task hidden until task appeared"" into rvc-dev 2020-04-06 21:19:57 +00:00
Leon Scroggins III
f97b29d2e3 Switch get_env_or_die to requireEnv
Fixes: 153099745
Test: manual

The heif decoder may need to continue reading the input from a
JavaInputStreamAdaptor on the AnimatedImageThread. Attach the JVM like
we do for ByteBufferStream and ByteArrayStream.

Similarly, if the AnimatedImageThread is holding a reference to an
AnimatedImageDrawable, it is possible to call its destructor, and
ultimately InvokeListener's destructor or ByteBufferStreamAdaptor's
release_proc on that thread without the JVM attached. Attach in that
case, too.

Change-Id: I84d236eed2fb5c8617533aed0cae4c762d1eb6dd
2020-04-06 21:11:37 +00:00
Ruchir Rastogi
1d4fdcb6de Remove obsolete/infeasible TODOs
(a) Clean up LogEvent::parseBuffer - having those variables be member
variables really helps with code readability.

(b) Don't hold locks when writing to pipe within ShellSubscriber -
ag/150969574 describes why holding a lock is necessary.

Test: m
Bug: 150312423 (allows this bug to be marked as obsolete)
Change-Id: I4903de1dc87a552932b70e5975a7cde91df05b3b
2020-04-06 14:10:04 -07:00
TreeHugger Robot
60c8c9cece Merge "Fixes AppsFilterTest" into rvc-dev 2020-04-06 21:09:48 +00:00
TreeHugger Robot
97e7461981 Merge "Use existing content resolver" into rvc-dev 2020-04-06 21:08:06 +00:00
TreeHugger Robot
f9dea8b4b3 Merge "Fix NPE when bubble being dragged out" into rvc-dev 2020-04-06 21:07:46 +00:00
TreeHugger Robot
e5370e91d3 Merge "Appops permission monitoring for GET_USAGE_STATS." into rvc-dev 2020-04-06 21:02:38 +00:00
TreeHugger Robot
48a7be797d Merge "Tuner API: set Frontend and Lnb info to TRM" into rvc-dev 2020-04-06 21:02:15 +00:00
sallyyuen
5a5c74f350 Check for text when adding CollectionInfo and CollectionItemInfo
Generally, the button's text is displayed next to the check box, but
Sound Settings uses its own views to display the text, distinct from
RadioGroup and RadioButton. This results in TalkBack announcing out
of list state too early, since the text content is not considered
part of the collection.

Add a check to exclude buttons with no text when counting the children
to be in the collection. Developers should be either setting the button
text or implementing their own views to appear alongside the buttons.

Bug: 149064784
Test: Added CTS test. Manual testing of Settings -> Sound -> Do no
disturb -> Advanced -> Set Duration for Quick Settings

Change-Id: Ie9abe4cccc4ab53e79a583b9a2ce45535dcf1cc0
2020-04-06 14:00:21 -07:00