Commit Graph

94153 Commits

Author SHA1 Message Date
Tiger Huang
2ca7a2bd55 Merge "Fix a bug about missing onConfigurationChanged" into qt-dev am: a54b943d59
am: 64f447cd7b

Change-Id: I9e774a45368888e75fc2e71e59166b3006af0e6a
2019-06-03 11:30:37 -07:00
Tiger Huang
64f447cd7b Merge "Fix a bug about missing onConfigurationChanged" into qt-dev
am: a54b943d59

Change-Id: I276e822663cde616a21f49332f6f9161ec69a550
2019-06-03 11:23:29 -07:00
TreeHugger Robot
a54b943d59 Merge "Fix a bug about missing onConfigurationChanged" into qt-dev 2019-06-03 18:09:34 +00:00
Chavi Weingarten
2e011e66b2 Merge "Only updateBoundsSurface when surface size has changed." into qt-dev am: fd979ca3d2
am: 71df88b5b0

Change-Id: I4aabdc78505d5da7e20ffa3ea6257aa7b5c30dac
2019-06-03 09:23:01 -07:00
Chavi Weingarten
71df88b5b0 Merge "Only updateBoundsSurface when surface size has changed." into qt-dev
am: fd979ca3d2

Change-Id: I4fc1da4bd8f3dd74f873a1955c8ef350e0d00c36
2019-06-03 09:18:02 -07:00
Chavi Weingarten
fd979ca3d2 Merge "Only updateBoundsSurface when surface size has changed." into qt-dev 2019-06-03 16:08:42 +00:00
Riddle Hsu
3dafb4e54b Merge "Invoke setWindowStopped on the thread that created the view" into qt-dev am: 3bc96f9113
am: 789d90fc0e

Change-Id: Id21b33aeb613341e6e5e8dae692f37f0a096522d
2019-06-03 03:25:19 -07:00
Riddle Hsu
789d90fc0e Merge "Invoke setWindowStopped on the thread that created the view" into qt-dev
am: 3bc96f9113

Change-Id: I8215c828fadc888d59b10ad85088b2edf17378df
2019-06-03 03:19:21 -07:00
TreeHugger Robot
3bc96f9113 Merge "Invoke setWindowStopped on the thread that created the view" into qt-dev 2019-06-03 10:13:18 +00:00
Shuzhen Wang
36d2c4211e Merge "Camera: Handle hidden physical camera without camcorder profile" into qt-dev am: 3960d2232d
am: 3cc5d8d876

Change-Id: Ie9591f5ea93465211fe99b8db0ae16f3f2af8264
2019-06-01 18:54:52 -07:00
Shuzhen Wang
0c65fb0931 Merge "Camera: Handle hidden physical camera without camcorder profile" into qt-dev
am: 3960d2232d

Change-Id: I0be4d73cb018510ca49a498a895ac5aacf4463eb
2019-06-01 18:49:56 -07:00
Shuzhen Wang
3cc5d8d876 Merge "Camera: Handle hidden physical camera without camcorder profile" into qt-dev
am: 3960d2232d

Change-Id: I9e5631d8ccef955a7062f4323093d7f4aaac5c8b
2019-06-01 18:49:51 -07:00
TreeHugger Robot
3960d2232d Merge "Camera: Handle hidden physical camera without camcorder profile" into qt-dev 2019-06-02 01:41:54 +00:00
Dario Freni
74e3a49702 Merge "Verify staged APKs pre-reboot." into qt-dev
am: e5e876265c

Change-Id: Icf1406811af1c425e9b934a4561457dcfd1e6495
2019-05-31 19:51:28 -07:00
Christopher Ferris
9ab82236f5 Merge "Avoid using usap when wrap property set." into qt-dev
am: cbd4908c9f

Change-Id: I1a7bc0553a08923ba0ae4a808aede578250a7310
2019-05-31 19:43:23 -07:00
Dario Freni
6a0bf91690 Merge "Verify staged APKs pre-reboot." into qt-dev am: e5e876265c
am: f1d9180e68

Change-Id: I35ea4865fadd0b729ac26bacb09f6e0fe1ca0c40
2019-05-31 19:40:50 -07:00
Christopher Ferris
a180c4592a Merge "Avoid using usap when wrap property set." into qt-dev am: cbd4908c9f
am: 62a1a7d833

Change-Id: I6061eee060e6b0dafbbd1175879bb2d2ed0edea6
2019-05-31 19:38:10 -07:00
Dario Freni
f1d9180e68 Merge "Verify staged APKs pre-reboot." into qt-dev
am: e5e876265c

Change-Id: Id30f05784a99abbe2a4d4d21c8fc9b04f2b61525
2019-05-31 19:16:16 -07:00
Christopher Ferris
62a1a7d833 Merge "Avoid using usap when wrap property set." into qt-dev
am: cbd4908c9f

Change-Id: I0df94d8321e32aa2f1711af5c97446df8e6548f2
2019-05-31 19:15:02 -07:00
TreeHugger Robot
e5e876265c Merge "Verify staged APKs pre-reboot." into qt-dev 2019-06-01 00:25:51 +00:00
chaviw
c0a8c4edbd Only updateBoundsSurface when surface size has changed.
Currently, updateBoundsSurface was getting called when the surface
changed, not just when the size changed. This meant it could be calling
setWindowCrop and deferTransaction when no size had changed. If size
hadn't changed, there was a high possibility that no new frames would be
submitted by the client, causing the deferTransaction to wait forever.

Since the deferTransaction was still waiting, SurfaceFlinger would wake
up every vsync to check if it should call doTransaction for the deferred
transaction. This caused 60Hz composition even when frames were rendered
slower.

Fixes: 132110524
Test: SF doesn't compose 30fps app at 60Hz
Change-Id: Icf3a99b34c288575438bfcd05e9077ea7919b4ca
2019-06-01 00:12:09 +00:00
Shuzhen Wang
aae389639d Camera: Handle hidden physical camera without camcorder profile
For hidden physical sub-camera, if there is no camcorder profile,
use stream configuration map to figure out maximum recording size.

Test: RobustnessTest
Bug: 133819902
Change-Id: Ie0e76b51b1942b6fd3612c0b849a07bbb5d205e9
2019-05-31 13:23:40 -07:00
Christopher Ferris
6db1108ddc Avoid using usap when wrap property set.
Bug: 133515802

Test: Verified that malloc debug can be enabled on a USAP enabled device.

(cherry picked from commit 86bd25d5ed)

Change-Id: I5f25030ce8e667d175712796c0950f38baa2532d
Merged-In: I5f25030ce8e667d175712796c0950f38baa2532d
2019-05-31 12:46:42 -07:00
Christopher Tate
fea5cc6981 Merge "Prevent double teardown of service connections" into qt-dev am: ae76af46b2
am: 991bcc3d78

Change-Id: I7048f2a8f862601bafd37d30eab437368a7ddea6
2019-05-31 10:51:34 -07:00
Christopher Tate
f9c9ab4540 Merge "Prevent double teardown of service connections" into qt-dev
am: ae76af46b2

Change-Id: If1c2545572c07a72c930fd63b216b8c26bdf2615
2019-05-31 10:36:00 -07:00
Christopher Tate
991bcc3d78 Merge "Prevent double teardown of service connections" into qt-dev
am: ae76af46b2

Change-Id: I47d3b9eb266f19a9f81ef6c1447fb8f112be89dd
2019-05-31 10:34:46 -07:00
TreeHugger Robot
ae76af46b2 Merge "Prevent double teardown of service connections" into qt-dev 2019-05-31 17:27:34 +00:00
Gavin Corkery
86f9858534 Merge "Perform user data back up in post install stage" into qt-dev am: 5b9e00273b
am: 909ced209c

Change-Id: Ie792af7ab6c1bf182eacb8fd402ab56741e6f897
2019-05-31 09:23:24 -07:00
Gavin Corkery
9b87b9a6dd Merge "Perform user data back up in post install stage" into qt-dev
am: 5b9e00273b

Change-Id: I7b45401aeaf34855921f25a2c00c9af1a1a25035
2019-05-31 09:18:06 -07:00
Gavin Corkery
909ced209c Merge "Perform user data back up in post install stage" into qt-dev
am: 5b9e00273b

Change-Id: Ib053ae856ba412e9057782f2b259d211c8a91972
2019-05-31 09:17:34 -07:00
Gavin Corkery
5b9e00273b Merge "Perform user data back up in post install stage" into qt-dev 2019-05-31 16:10:13 +00:00
Dario Freni
f141aab4ed Verify staged APKs pre-reboot.
Test: adb install --staged file.apk on taimen-eng target; adb
install-multi-package file1.apex file2.apex file3.apk file4.apk
Test: atest StagedRollbackTest
Bug: 123753157
Change-Id: I41121b73c0db8ca55bafd2f57cba73bb3b940149
2019-05-31 14:55:08 +01:00
Gavin Corkery
ab5ee411e5 Perform user data back up in post install stage
Currently the backup of user data is done in the enable rollback stage,
during which there is no guarantee that the package being backed up is
not currently running. Moving the backup to the post install stage will
guarantee that the package is not running.

Test: atest RollbackTest
Test: atest StagedRollbackTest
Bug: 124032231
Change-Id: I4b42a0c5ade1645585d1d6f698637df950d05c72
2019-05-31 10:26:56 +01:00
lumark
e1af2ac64d Merge "Skip IME initialization when received the token that already registered" into qt-dev am: 9bb2607703
am: 5846614ff1

Change-Id: I76c497ddc7caedb2217b3cdddaf53d0fcfa5a9df
2019-05-30 10:54:41 -07:00
lumark
5846614ff1 Merge "Skip IME initialization when received the token that already registered" into qt-dev
am: 9bb2607703

Change-Id: I9746ca99bc03a83beb6549605394b6760d48b835
2019-05-30 10:44:20 -07:00
lumark
9992e08829 Merge "Skip IME initialization when received the token that already registered" into qt-dev
am: 9bb2607703

Change-Id: I47e3521b214d5b5e057c979dfe8d96696bd42009
2019-05-30 10:44:19 -07:00
TreeHugger Robot
9bb2607703 Merge "Skip IME initialization when received the token that already registered" into qt-dev 2019-05-30 17:33:17 +00:00
arangelov
4ad99fe5ce Merge "Remove @VisibleForTesting from DevicePolicyEventLogger getters." into qt-dev am: 26a28f64c5
am: 31bcbb7edc

Change-Id: I9b9bebd253052a5ff1475831fc2b1a900e8c5ade
2019-05-30 09:40:57 -07:00
arangelov
6fd8108679 Merge "Remove @VisibleForTesting from DevicePolicyEventLogger getters." into qt-dev
am: 26a28f64c5

Change-Id: Idbdde0976e2df6253a22e950837c414d51d92237
2019-05-30 09:24:43 -07:00
arangelov
31bcbb7edc Merge "Remove @VisibleForTesting from DevicePolicyEventLogger getters." into qt-dev
am: 26a28f64c5

Change-Id: I279f5764f1340f6fd7c2a4a71fe84d0e06f43bd1
2019-05-30 09:23:52 -07:00
Luke Huang
dd6b466b89 Merge "Fix issue for DnsResolver#query" into qt-dev
am: 23d7a55d18

Change-Id: I572d498fcbaf6df44a91a5b77552e497bc9f5cb7
2019-05-30 09:17:08 -07:00
TreeHugger Robot
26a28f64c5 Merge "Remove @VisibleForTesting from DevicePolicyEventLogger getters." into qt-dev 2019-05-30 15:05:26 +00:00
arangelov
3b37af4c3c Remove @VisibleForTesting from DevicePolicyEventLogger getters.
Also make it extendable for mocking and update atoms.proto comments.

Bug: 131833599
Test: compiled
Change-Id: I6a0e8a6175e7e9e46572ea4aa50ce7669a02588b
2019-05-30 14:40:12 +01:00
Luke Huang
459a5becd9 Fix issue for DnsResolver#query
1. Previously, getDnsNetId doesn't handle all the cases.
Fix it with cosidering bypass private DNS flag.
2. Make getDnsNetId return Network instead of netId,
and change name from getDnsNetId to getDnsNetwork

Bug: 129530368
Test: atest DnsResolverTest DnsUtilsTest

Merged-In: Ibb5080acd3c296650d56532fc7da525e9fa95e8f
(cherry picked from commit 3854966dc9)

Change-Id: I37353642088bcc17da0cf17f78a5ed9efc9aefc3
2019-05-30 11:58:25 +00:00
Luke Huang
dff744ca85 Merge "Fix issue for DnsResolver#query" am: 3fd64333d2 am: da47327520
am: 9bc31a14c1

Change-Id: I1e9fac6c64a80019c4dee1969cd316202f74ac51
2019-05-30 04:41:18 -07:00
Luke Huang
9bc31a14c1 Merge "Fix issue for DnsResolver#query" am: 3fd64333d2
am: da47327520

Change-Id: I819fa9eb0abab64951fdb8adb7b1fc660544a1ad
2019-05-30 04:36:42 -07:00
Luke Huang
c211b27621 Fix issue for DnsResolver#query
1. Previously, getDnsNetId doesn't handle all the cases.
Fix it with cosidering bypass private DNS flag.
2. Make getDnsNetId return Network instead of netId,
and change name from getDnsNetId to getDnsNetwork

Bug: 129530368
Test: atest DnsResolverTest DnsUtilsTest
Change-Id: Ic8d45b802d72a266f9ec97bfea620c1ede6967e5
2019-05-30 06:34:03 +00:00
Michael Groover
2623ff51bf Merge "Update Build#SERIAL docs to reflect device ID restrictions" into qt-dev am: daf8086aa0
am: b8dc8384d6

Change-Id: I5eb5363db1b56fbbda20325346f318de2b52fd1f
2019-05-29 21:31:30 -07:00
lumark
e0af39403e Skip IME initialization when received the token that already registered
When IME window switches from current display to another display and back quickly,
system will re-bind InputMethodService to re-attach window token for each moving,
the IME service lifecycle will be onBind -> onUnBind -> onDestroy -> onBind.

Ideally, system will deliver window token when onServiceConnected and system should
only receive one onServiceConnected when the last service bound.

But due to user switch display very quick, before unbind service callbacked from client,
the next bind service request comes, caused the connection exists in system side and
client will then callback 2 onServiceConnected to system.

Since CL [1] introduced InputMethodPrivilegedOperationsRegistry to deal with token
registraction singleton-ness, the exception will be thrown for above case due to
the duplicate window token passed to client.

Add InputMethodPrivilegedOperationsRegistry#isRegistered to check if the token
already registered, if so, skip this duplicate initialization request.

[1]: I4a61470f06ffac5f7a512536f8431489db0108f4

Fix: 133624278
Test: manual as below steps:
    1) Settings > Developer options, enable "Simulated display" & "force desktop mode"
    2) Reboot device.
    3) Launch app from simulated display.
    4) Launch app from primary display (i.e. contacts), focus EditText to show IME.
    5) Tapping primary & simulated display repeatly & quickly.
    6) See if any exception log from IME application. (i.e. Gboard)

Change-Id: Ie6bfbae735724fe744590e715124d2737d2b665d
2019-05-30 12:27:17 +08:00
Michael Groover
b8dc8384d6 Merge "Update Build#SERIAL docs to reflect device ID restrictions" into qt-dev
am: daf8086aa0

Change-Id: I8bd70254ac6b461062761665db9cef30f97636e1
2019-05-29 21:26:33 -07:00