Commit Graph

102431 Commits

Author SHA1 Message Date
Automerger Merge Worker
f8e6b84b22 Merge "DisplayModeDirector: use configGroup when choosing default config" into rvc-dev am: 97ce4799af am: 86a7b2c344 am: 8248bda4d0
Change-Id: I13a513c6997bfa800883d8d6066cf2b3aad52b99
2020-02-28 18:22:36 +00:00
TreeHugger Robot
97ce4799af Merge "DisplayModeDirector: use configGroup when choosing default config" into rvc-dev 2020-02-28 17:43:40 +00:00
Automerger Merge Worker
6df8137b23 Merge "PhoneWindow: Fix potential memory leak" into rvc-dev am: ee540c3245 am: 8d0a2cfa51
Change-Id: Ib3f524656841febd6c6ac63a7cafa4419eb4e9d2
2020-02-28 14:28:28 +00:00
Adrian Roos
ee540c3245 Merge "PhoneWindow: Fix potential memory leak" into rvc-dev 2020-02-28 13:58:48 +00:00
Automerger Merge Worker
9fe8ef5243 Merge "Show snoozed conversations in conversation header" into rvc-dev am: 66db87d0c0 am: 7d3b6fa67e
Change-Id: I0c4df740b14293fb63f7e825f39259027a439ebb
2020-02-28 12:09:12 +00:00
Julia Reynolds
66db87d0c0 Merge "Show snoozed conversations in conversation header" into rvc-dev 2020-02-28 11:46:33 +00:00
Automerger Merge Worker
bd300dec2f Merge "Skip no-state checkUseInstalled check inside PackageInfoUtils" into rvc-dev am: a57109b660 am: c5fa94559c
Change-Id: Ie135105f4b6506d3a50c70f139a1ab9d9b891028
2020-02-28 07:09:40 +00:00
Winson Chiu
a57109b660 Merge "Skip no-state checkUseInstalled check inside PackageInfoUtils" into rvc-dev 2020-02-28 06:31:06 +00:00
Ady Abraham
8a5e39174f DisplayModeDirector: use configGroup when choosing default config
When calling to SurfaceFlinger to set the display config spec, the
default configId needs to consider the config group of the config.

Bug: 149784270
Test: Simulate multiple config with debug change ag/10355181
Change-Id: I50dce6e31e8cc842a221baaa69e128428f67be99
2020-02-28 04:35:51 +00:00
Automerger Merge Worker
245b7d70e9 Merge "Settings(javadocs): Add alternatives for deprecated settings" into rvc-dev am: f5360ee034
Change-Id: I2c7932212092df07c88cec7a17f25924ee3edea4
2020-02-28 03:43:08 +00:00
Roshan Pius
f5360ee034 Merge "Settings(javadocs): Add alternatives for deprecated settings" into rvc-dev 2020-02-28 03:36:22 +00:00
Roshan Pius
b3b559f167 Settings(javadocs): Add alternatives for deprecated settings
Bug: 150219394
Test: Compiles
Change-Id: Ie4dfbfa640a042343e20d2238729444fdc8eadb6
2020-02-28 03:35:12 +00:00
Automerger Merge Worker
0b64d65f28 Merge "Fix crash and duplicated ethernet tethering request" am: 41c82c99df am: d74f557cbf
Change-Id: I64f6f64c643e626380403d3e15c6ed4b5f2330ef
2020-02-28 03:04:11 +00:00
Automerger Merge Worker
d74f557cbf Merge "Fix crash and duplicated ethernet tethering request" am: 41c82c99df
Change-Id: Idd4eca225909f88ef6d57fd8952ae497ec82115b
2020-02-28 02:49:58 +00:00
Julia Reynolds
138111fca3 Show snoozed conversations in conversation header
- And allow them to be unsnoozed with a tap.
- Also use the conversation's shortcut icon and name if available.
- And ignore the setting to turn off the strips since it now requires
explicit user action to make the strip visible

Note 1: unsnoozing a notification causes it to make sound again - we
probably want to change that for manually unsnoozed things
Note 2: the entries in the header don't yet persist across a reboot

Test: atest, manual
Bug: 149486431
Change-Id: Id661c25a49bc982e39deab977eb912f51eaf6757
2020-02-28 02:48:07 +00:00
Lorenzo Colitti
41c82c99df Merge "Fix crash and duplicated ethernet tethering request" 2020-02-28 02:37:45 +00:00
Automerger Merge Worker
23175eb03a Merge "Adds Zygote policy flags to control how applications are launched" into rvc-dev am: aa62588560
Change-Id: Ie3869a1b3a67939a0e3cdad2ea8ea1fc54da2dca
2020-02-28 01:32:15 +00:00
Winson
d2732995bb Skip no-state checkUseInstalled check inside PackageInfoUtils
PackageInfoWithoutStateUtils is designed for use in core when
the caller doesn't have a PackageSeting.

Because its generic generateApplicationInfo method does a simplified
checkUseInstalled check without the PackageSetting, this fails whenever
state must be taken into account.

This introduces method variants which skips the checks and defers to
PackageInfoUtils's own check.

Bug: 150328400

Test: manual verify call into PackageManager#setSystemAppState with
    SYSTEM_APP_STATE_UNINSTALLED and verify
    PackageManager#getApplicationInfo throws NameNotFoundException
    without fix and succeeds with fix
Test: atest com.android.server.pm.parsing
Test: TODO PackageInfo(WithoutState)Utils test in follow up change

Change-Id: Ie00984c2e1b80d2a3948923dc1293fbfddf01037
2020-02-27 17:07:51 -08:00
Chris Wailes
ee398f9664 Adds Zygote policy flags to control how applications are launched
This patch adds a zygote policy parameter to functions in the
ActivityManagerService (and associated classes) to allow for different
launch behavior based on the triggering event.  This will allow for
latency sensitive applications to utilize the Unspecialized App Process
Pool, without other processes draining the pool and causing excessive
refill events.

Test: Booted and launched several apps
Bug: 147613193
Change-Id: Ib0a51c8720f95a7eafcab4ad2b5bb08f27a58d8c
(cherry picked from commit 4d05188588)
2020-02-27 20:33:12 +00:00
Automerger Merge Worker
832fe4a424 Merge changes from topic "actor-signature-policy-rvc-dev" into rvc-dev am: b0c5105b2d
Change-Id: I55a362a896901a09fc1bf49f9129455d53b2d440
2020-02-27 18:32:31 +00:00
Automerger Merge Worker
ff4d31eabd Merge "Hide TelephonyRegistryManager." into rvc-dev am: cc7682bd15
Change-Id: I41abdb3958da056ce8a58fb353af07310b370ea3
2020-02-27 18:31:01 +00:00
Winson Chiu
b0c5105b2d Merge changes from topic "actor-signature-policy-rvc-dev" into rvc-dev
* changes:
  Actor signature overlayable policy
  Refactor overlayable policy
2020-02-27 18:27:53 +00:00
Amit Mahajan
cc7682bd15 Merge "Hide TelephonyRegistryManager." into rvc-dev 2020-02-27 18:25:29 +00:00
Automerger Merge Worker
4ddef1c759 Merge "remove client token passing active VI service" into rvc-dev am: 626b24958f
Change-Id: If2a2a8e054a881c7d199cc57604361c25748be41
2020-02-27 18:02:55 +00:00
Automerger Merge Worker
10d700a0bf Merge "add enrollment application UID tracking" into rvc-dev am: a163d079d8
Change-Id: I0265fcd8e16ff37f7d1e2576ae1c8ede304a7543
2020-02-27 18:02:53 +00:00
Nicholas Ambur
626b24958f Merge "remove client token passing active VI service" into rvc-dev 2020-02-27 18:01:24 +00:00
Nicholas Ambur
a163d079d8 Merge "add enrollment application UID tracking" into rvc-dev 2020-02-27 18:01:24 +00:00
Automerger Merge Worker
3bb10386e1 Merge "Add context UID to package-name-based permission query" into rvc-dev am: ac3c969069
Change-Id: I52af6cb8007f4d4da57cc7f0c12d14815cbec208
2020-02-27 18:01:00 +00:00
Automerger Merge Worker
1f5e28c919 Merge "Include pending media as well when deleting mediastore entries." into rvc-dev am: 442399b1c1
Change-Id: Ia875d7ebfbc88076eca305b711505a5e5d9b51fe
2020-02-27 17:59:49 +00:00
Daniel Colascione
ac3c969069 Merge "Add context UID to package-name-based permission query" into rvc-dev 2020-02-27 17:52:24 +00:00
Sudheer Shanka
442399b1c1 Merge "Include pending media as well when deleting mediastore entries." into rvc-dev 2020-02-27 17:49:53 +00:00
Automerger Merge Worker
7bf8d8cbf9 Merge "camera2: Add documentation for getConcurrentStreamingCameraIds specifying multi-process use." into rvc-dev am: 84d6a305a2
Change-Id: I4fffe241e13caac45f6fbb91b21d2c95748e62c0
2020-02-27 17:43:11 +00:00
Jayant Chowdhary
84d6a305a2 Merge "camera2: Add documentation for getConcurrentStreamingCameraIds specifying multi-process use." into rvc-dev 2020-02-27 17:20:00 +00:00
Adrian Roos
cd9cf09965 PhoneWindow: Fix potential memory leak
Fixes an issue where PhoneWindow and thus Activity can be leaked through AttachInfo through
the OnContentApplyWindowInsetsListener.

Fixes: 148799801
Test: make droid; atest WindowTest
Change-Id: I1de5518c84fd7e6d1aa1542a9252b1c600f5712d
2020-02-27 17:01:09 +00:00
Automerger Merge Worker
cae404839c Merge "Cache binder calls in CompatChanges" into rvc-dev am: 6d1c0c7d90
Change-Id: If52eb5cf492a77aabadd4afe50a65f81c932a0ab
2020-02-27 15:16:34 +00:00
Anna Trostanetski
6d1c0c7d90 Merge "Cache binder calls in CompatChanges" into rvc-dev 2020-02-27 14:58:13 +00:00
Daniel Colascione
614105b373 Add context UID to package-name-based permission query
The code for caching permission queries incorrectly used the UID of
the calling process instead of the Context UID when asking
PermissionManagerService whether a package (identified by name) has a
permission. As a result, permission checks produced incorrect results
for certain cross-user scenarios. This CL makes the checking UID part
of the package-name-based permission query.

Test: atest com.android.car.VmsPublisherSubscriberTest
Bug: 150172373
Bug: 150025558
Bug: 150140220
Change-Id: I903a9e79fbbba97ea987120066817eeea9b01d51
2020-02-27 12:29:30 +00:00
Automerger Merge Worker
0ea0273c5c Merge "Makes sure the magnifier source bounds doesn't beyond the surface." into rvc-dev am: 2c591e8c6b
Change-Id: I9758995b034bb99545cddf29359207407b3907c6
2020-02-27 12:02:33 +00:00
Shu Chen
2c591e8c6b Merge "Makes sure the magnifier source bounds doesn't beyond the surface." into rvc-dev 2020-02-27 11:47:13 +00:00
Automerger Merge Worker
b84b8d1585 Merge "Remove the public APIs for allow rich content." into rvc-dev am: 2ebe60b5df
Change-Id: Ib2b98a1ba9f8dc7dfa78f1bbfb611f68da69ef6d
2020-02-27 10:42:25 +00:00
PETER LIANG
2ebe60b5df Merge "Remove the public APIs for allow rich content." into rvc-dev 2020-02-27 10:27:47 +00:00
Automerger Merge Worker
c62c15f942 Merge "Pipe windowToken for hideSoftInput" into rvc-dev am: 73b1d16d28
Change-Id: Ib1bfa73ddc7b31cb59c9c15eb2b6495d543406eb
2020-02-27 07:29:34 +00:00
Taran Singh
73b1d16d28 Merge "Pipe windowToken for hideSoftInput" into rvc-dev 2020-02-27 07:14:04 +00:00
markchien
d2d8d45b89 Fix crash and duplicated ethernet tethering request
This change fix two things:
1. Handle ethernet callback in internal thread to avoid crash. IpServer
should be created from tethering thread, otherwise mIpNeighborMonitor of
IpServer would throw
   IllegalStateException("start() called from off-thread")
2. Ethernet tethering request may be duplicated if multiple
startTethering is called but no stopTethering

Bug: 130840861
Bug: 148824036
Test: ON/OFF ethernet tehtering manually
      atest TetheringTests

Change-Id: I7c5127e96d80d077735010d2e62c7227805ccb10
2020-02-27 14:50:16 +08:00
Peter_Liang
01a592bfd1 Remove the public APIs for allow rich content.
1. Mark @hide for "Drawable loadAnimatedImage(Context)" and "String loadHtmlDescription(PackageManager)".
2. Move common function into util.

Bug: 149516547
Bug: 142532186
Test: maunal test
Change-Id: I4f734a496938f64bcde990268e11a2d1a5be4771
Merged-In: I4f734a496938f64bcde990268e11a2d1a5be4771
(cherry picked from commit a2f7f84938)
2020-02-27 04:19:53 +00:00
Tarandeep Singh
4fe5b654a1 Pipe windowToken for hideSoftInput
Pipe the windowToken of the window requesting hideSoftInput just like we
did it for showSoftInput [1].
This calls hideInsets on the correct display when control target is
different from IME target e.g. ActivityView.
Also hideInsets should be called on InsetsControlTarget instead which was
originally attempted in [2]

[1]: Ia49e23dd077d264a58d28a7b8acffde54b7db187
[2]: I7133e151a1037c42b275b97857936437a7a6725f

Bug: 149870112
Bug: 133381284
Test: Manually using steps mentioned in bug.

Change-Id: Ia596a392eb73ae46debd097151c8c9a7edd59833
2020-02-27 04:13:25 +00:00
Automerger Merge Worker
73f40b8b72 Merge "Hide CarrierMessagingServiceWrapper for now." into rvc-dev am: 8e5e4e03a9
Change-Id: I232254dd0f3f094b600f60c8e4baf4f4fde43dcf
2020-02-27 04:08:21 +00:00
TreeHugger Robot
8e5e4e03a9 Merge "Hide CarrierMessagingServiceWrapper for now." into rvc-dev 2020-02-27 04:04:35 +00:00
Automerger Merge Worker
33086f9d78 Merge "Add methods to send connected/disconnected state." am: bdb86ff8ab
Change-Id: If69bd650e129dc9f058e47832d48651b9243a3bb
2020-02-27 03:23:48 +00:00
Automerger Merge Worker
ec01225c09 Merge "A few inline autofill API tweaks." into rvc-dev am: 658fc6d6d6
Change-Id: I38bc6d0694372eabce98c2c288e9b68d1a66928c
2020-02-27 03:21:21 +00:00