Commit Graph

1227 Commits

Author SHA1 Message Date
Bonian Chen
a9fe205c51 Merge "[Settings] Permission to access ImsMmTelManager" 2019-11-12 00:41:23 +00:00
Vadim Caen
311fef7bee Call end callback for custom rotation anim.
The onAnimationEnd callback was not called when a cutstum animation was
set (e.g: JUMPCUT) causing WindowState.mOrientationChanging to never be
reset to false and drawing being held.

Bug: 142255739
Test: atest PixelCopyTest#testWindowProducerCropTopLeft
Change-Id: If35a0bb0ad94050fba086cb81f8265c0bf0535eb
2019-11-08 11:55:54 +01:00
Bonian Chen
ac5d9371aa [Settings] Permission to access ImsMmTelManager
Add READ_PRIVILEGED_PHONE_STATE permission

Bug: 140542283
Test: Manual
Change-Id: If88c6e3e1b5084a27c95b875bc74d28d0af908df
2019-11-08 17:13:41 +08:00
TreeHugger Robot
d41a725956 Merge "Generalized AppWindowThumbnail as WindowContainerThumbnail" 2019-11-06 22:16:20 +00:00
lumark
bc0032a39c Generalized AppWindowThumbnail as WindowContainerThumbnail
Also modified some miscellaneous code logics related animation.

Bug: 142617871
Bug: 131661052
Test: Refactoring, existing tests pass.
Change-Id: Ia06d500bc6b6bf247d840d14cc81d2358af2d400
2019-11-07 01:56:56 +08:00
Roshan Pius
41f3c6330c wifi: Allow wifi to get INTERACT_ACROSS_USERS_FULL
Bug: 142234604
Test: Can provision & connect to R2 passoint network
Change-Id: I2bbf8aea169c600ce6b75eaefc52ddc755be4004
2019-11-05 18:47:54 +00:00
Siarhei Vishniakou
a3492cae1e Fix layout for Razer Serval
Ensure all of the keys are mapped.

Test: atest RazerServalTest
Bug: 136263708
Change-Id: I550d5e4e46cbc8549f0bcf075ad5ac39870c3487
2019-11-04 23:29:15 -06:00
Issei Suzuki
860fbc04ed Removed unused flag ActivityRecord.inPendingTransaction
Test: no-op change, still all tests pass
Change-Id: Ib350f75fbdabcb21930e95cc316563168b6f117d
2019-11-01 14:46:35 +01:00
TreeHugger Robot
6aba85af50 Merge changes If1c39d09,I3f8719c7
* changes:
  Promote AppWindowToken.applyAnimationLocked() to the base class.
  Unify animation methods into new WindowContainer#isAnimating()
2019-10-31 12:31:36 +00:00
TreeHugger Robot
25b0bbb71d Merge "Add new permission that lets incidentd call dropbox" 2019-10-30 20:11:35 +00:00
lumark
19a5d2e993 Promote AppWindowToken.applyAnimationLocked() to the base class.
- Add WindowContainer#getAnimationAdapter for all window hierarchy.

- Extract logics related Remote animation / Local animation adapter
  creation from applyAnimationLocked into WC#getAnimationAdapter.

- Make RemoteAnimationRecord can accept in each window hierarchy.

Bug: 142617871
Bug: 131661052
Test: Refactoring, existing tests pass.
Change-Id: If1c39d09966d82653faf7ebd975592eaeacd7c24
2019-10-31 00:52:58 +08:00
Wale Ogunwale
c17418e0ae Clean-up ActivityRecord reparenting/adding to Task (57/n)
- Updated Configuration#onParentChanged to take params newParent and
oldParent to make logic of reparenting less complex to deal with in
classes that extend.
- Introduced WindowContainer#reparent to consolidate reparenting logic
and also allow us to only set onParentChanged once for the operation.
- Simplfied logic flow around adding/remove/reparenting activity to
task by using methods like addChild(), onChildAdded(), and such.
- Removed Task.mDeferRemoval which no longer makes sense and was leading
to task and stack leaks.

Bug: 80414790
Test: Existing tests pass
Change-Id: I4ffa79a1c731dc137213bdd3d7f04b8f013decc4
2019-10-26 21:07:44 -07:00
Joe Onorato
8e566f33ee Add new permission that lets incidentd call dropbox
Bug: 139375147
Test: treehugger
Change-Id: I4eaf167ff9157d9168358ed050e7f8b8ce136097
2019-10-23 17:58:00 -07:00
Roshan Pius
e8bd430c86 WifiStack: Grant READ_DEVICE_CONFIG permission to wifi
Bug: 142471784
Test: Flashed with out of process wifi APK.
Device boots up & connects to wifi networks.

Change-Id: Iddee7b8597858884b47558fb0f291090100034bb
2019-10-22 12:32:23 -07:00
Adrian Roos
1148054e7c ProtoLog: Fix bug in ProtoLogImpl.isEnabled and re-enable
Test: make droid && atest RelayoutPerfTest
Change-Id: I060063354a217682c7b4ff3b5f7db1c330a8a160
2019-10-18 18:38:13 +02:00
TreeHugger Robot
7780ab30db Merge "Merge AppWindowToken into ActivityRecord" 2019-10-17 22:54:07 +00:00
Jordan Liu
7e7af89246 Merge "Move cell broadcast service module directory" 2019-10-17 18:38:55 +00:00
Garfield Tan
e8d84ab020 Merge AppWindowToken into ActivityRecord
This change kept AppWindowTokenTests as it's originally based on top of
WindowTestBase, and merging that into ActivityRecordTests needs to
change the base class to ActivityTestBase, which requires additional
work and may change test behaviors. Therefore delay that to
follow-up CL.

Bug: 80414790
Test: Existing tests pass.
Change-Id: I6d73975ee77be9817c41b297f067de2d92a68499
2019-10-17 11:10:02 -07:00
Ruslan Tkhakokhov
004e85f798 Route EncryptedLocalTransport KV backup/restore through encryption code
Bug: 142227548
Test: Verify the device boots successfully
      Verify EncryptedLocalTransport APK is present
      Verify manual backup/restore using bmgr for LocalTransport and EncryptedLocalTransport
      For LocalTransport (unencrypted) and EncryptedLocalTransport:
        atest CtsBackupTestCases
        atest CtsBackupHostTestCases
        atest GtsBackupTestCases
        atest GtsBackupHostTestCases


Change-Id: Iac3a8a50d7f761442a4b784cfba3a980e900dd7f
2019-10-16 08:58:01 +00:00
Evan Severson
cc6e1f6ea8 Merge "Give PermissionController UsageStats for one-time permission" 2019-10-15 15:55:07 +00:00
Jordan Liu
69573b9bec Move cell broadcast service module directory
Update the permissions and resource to reflect this move.

Bug: 135956699
Test: manual
Change-Id: I8c798f48e3a342cc2ce29d1f7f199ae1337ff2d0
2019-10-14 22:00:28 +00:00
Roshan Pius
73266f2f64 Add a new wifi protection level
Wifi mainline module needs some permissions which are currently only
granted to signature components. Since mainline modules are not going to
be signed with OEM's signature, we need a new protection level to grant
some of these permissions to the wifi mainline APK.

Bug: 142234604
Test: Verified that wifi can get INTERACT_ACROSS_USERS_FULL permission
Change-Id: I26b0edff62497b5e08c2f2f504b0cd5f950682ad
2019-10-12 20:23:10 +00:00
Rashed Abdel-Tawab
243c9bd0ce Merge "Reword outdated fonts comment" am: ea2bea3bed am: f0871b9488 am: 9aeb110410
am: 043eb740c4

Change-Id: I0f967af6788f4ec7d06da8866d37d9cd121caff5
2019-10-12 00:35:02 -07:00
Rashed Abdel-Tawab
043eb740c4 Merge "Reword outdated fonts comment" am: ea2bea3bed am: f0871b9488
am: 9aeb110410

Change-Id: I20dd9d98e4169ce65c01ca5d639100787d4c9f1c
2019-10-12 00:28:02 -07:00
Rashed Abdel-Tawab
9aeb110410 Merge "Reword outdated fonts comment" am: ea2bea3bed
am: f0871b9488

Change-Id: I242eb7e60f7f244d6c2bde610e7c35183de9adbe
2019-10-12 00:21:13 -07:00
Rashed Abdel-Tawab
3046630c6a Reword outdated fonts comment
ADDITIONAL_FONTS_FILE is dead as of 3328d1ce55.
Explain how to install new fonts on /product instead.

Change-Id: I8a519d2a7a50847e7682473c43e58c4bfe1add5b
2019-10-11 14:18:30 -07:00
Yan Zhu
0a8b2fff58 Merge "Add permissions for EmbeddedKitchenSinkApp and car tests" 2019-10-11 20:26:46 +00:00
Yan Zhu
b90747079e Add permissions for EmbeddedKitchenSinkApp and car tests
- add more permissions for EmbeddedKitchenSinkApp to run as non system
app
- add addional permissions for car tests

Bug: 140900347, Bug: 140900347
Test: build, sync and test each fragments manually in the app

(at root of the project)
make EmbeddedKitchenSinkApp

Change-Id: If84ecc62e351d171cd8b568488fd4ae60bc0743f
2019-10-11 10:44:02 -07:00
Roshan Pius
8e10895db0 WifiStack: Rename wifi stack package name
Bug: 142478358
Test: Connects to wifi networ
Change-Id: I3d0d83fbba80d7b736200ba7997badbb898fbc0e
2019-10-10 11:27:14 -07:00
Jordan Liu
96c51f58db Merge "[DO NOT MERGE] Revert "Add CellBroadcastService and related permissions"" am: 8172f45111 am: 21fedfab99
am: 87d2acb711

Change-Id: I0b26a92e8c15a710a54576f8ce499ae441748dde
2019-10-09 15:01:32 -07:00
Jordan Liu
87d2acb711 Merge "[DO NOT MERGE] Revert "Add CellBroadcastService and related permissions"" am: 8172f45111
am: 21fedfab99

Change-Id: I1f62d488adf1bfa111efb7273a3ffa2046be7186
2019-10-09 14:50:29 -07:00
Jordan Liu
656502be63 [DO NOT MERGE] Revert "Add CellBroadcastService and related permissions"
This reverts commit b59c74f302.

Reason for revert: depends on ag/9477322 being CP'd, or else causes breakages downstream (b/142399383)

Change-Id: I25b1695757d5fec8c00f05d033c33501f4fc5389
2019-10-09 13:34:26 -07:00
Jordan Liu
cb0c6c90a9 Merge "Add CellBroadcastService and related permissions" am: 32382561a6 am: a2ca902d2f
am: d208c955e5

Change-Id: If6bcb53773c511d4c6a52da186401eea27b0446b
2019-10-09 09:43:10 -07:00
Jordan Liu
d208c955e5 Merge "Add CellBroadcastService and related permissions" am: 32382561a6
am: a2ca902d2f

Change-Id: I31ba9b8fdd540f07ccd88543c144a85c4eacc67b
2019-10-09 09:33:42 -07:00
Jordan Liu
b59c74f302 Add CellBroadcastService and related permissions
CellBroadcastService is bound to by the platform to handle cell
broadcasts.

Bug: 135956699
Test: manual
Change-Id: Ib1b20da03d271fc0b2736774b2ca6c6514944093
Merged-In: Ib1b20da03d271fc0b2736774b2ca6c6514944093
2019-10-08 11:20:46 -07:00
Evan Severson
66de1f0edd Give PermissionController UsageStats for one-time permission
Bug: 136219229
Test: Manual

Change-Id: I8d902cc95e4c63b5cab8443d55bb18ad133a6d9d
2019-10-07 15:31:49 -07:00
Wale Ogunwale
9a777f342f Merge "Unify Activity level of window hierarchy (50/n)." 2019-10-06 03:33:34 +00:00
Wale Ogunwale
da8b827e21 Unify Activity level of window hierarchy (50/n).
Make ActivityRecord extend AppWindowToken so we have a single object
for acitvities in the hierarchy.

Bug: 80414790
Test: Existing tests pass.
Change-Id: Ia7f52ef444cba88223f4e8a9586f6c12b1b5e4ea
2019-10-05 15:08:45 -07:00
Jordan Liu
b6ac1d67bc Merge "Add CellBroadcastService and related permissions" 2019-10-04 18:03:04 +00:00
Jordan Liu
289dfd037f Add CellBroadcastService and related permissions
CellBroadcastService is bound to by the platform to handle cell
broadcasts.

Bug: 135956699
Test: manual
Change-Id: Ib1b20da03d271fc0b2736774b2ca6c6514944093
2019-10-03 14:56:52 -07:00
Roshan Pius
71fd312054 network_stack: Move network_stack @hide bypass to platform
Bug: 142071767
Bug: 141954427
Test: Device boots up and connects to wifi networks
Change-Id: I0577b8a1f55b7b8dfb2fc87209d9ff94ecf7efd9
2019-10-03 12:54:16 -07:00
Adrian Roos
b125e0be9f Revert "Revert "ProtoLog deployment for WM batch 1""
This reverts commit a91c41254d.

Change-Id: Id752bb714174b5f21ba265f0c306a0eb99748634
2019-10-02 15:29:46 +02:00
Wale Ogunwale
a91c41254d Revert "ProtoLog deployment for WM batch 1"
This reverts commit 6f22c2a9fd.

Reason for revert: Error messages are not friendly when something goes wrong.

Change-Id: I13a6a2908a44ebd4599138cd2a61ff4b3cf055eb
2019-09-28 17:53:01 -07:00
TreeHugger Robot
733181fd9d Merge "ProtoLog deployment for WM batch 1" 2019-09-28 08:24:39 +00:00
jungshik
716ebd4dd0 Merge "Use NotoSansMyanmar (pure Unicode) fonts" am: b44f88b3c9 am: 47d023fb40 am: b5ccb7e1b9
am: 62b7c9e758

Change-Id: Ie51dda8d500849044f9010a799e16c635c0ccf78
2019-09-27 20:33:20 -07:00
jungshik
62b7c9e758 Merge "Use NotoSansMyanmar (pure Unicode) fonts" am: b44f88b3c9 am: 47d023fb40
am: b5ccb7e1b9

Change-Id: Ibc72c60e7f1568a45c6cea80d406f5d29fa61079
2019-09-27 20:12:58 -07:00
jungshik
b5ccb7e1b9 Merge "Use NotoSansMyanmar (pure Unicode) fonts" am: b44f88b3c9
am: 47d023fb40

Change-Id: I920fd37942467469f332092e8f279fce870bd8be
2019-09-27 19:58:58 -07:00
Adam Pardyl
6f22c2a9fd ProtoLog deployment for WM batch 1
First batch of around 20% Slog calls changed to ProtoLog.
365 log statements converted to ProtoLog, including 295 that
were previously disabled with a compile time constant (excluded from
resultant binary).
Size impact: +33kB on services.jar, +99kB on services.odex
(around 100b per added log call). By using ProtoLog we save +21kb
compared to Slog on both files.

Bug:
Test: atest WmTests
Change-Id: Idd712135e81997df84f323ba9a7585d54ba20d23
2019-09-27 16:45:19 +02:00
Adam Pardyl
5e0e771f16 Remove line numbers from protolog config.
Having line numbers in log statement location info in protolog viewer
config makes the config file invalid after every code merge.

Bug:
Test: atest protologtool-tests
Change-Id: I7e9ae434517bc94ecfc7f421e71d21b07f3c233f
2019-09-26 16:15:16 +02:00
Chen Xu
8dcf873d9a Merge "Revert "remove symbols from greylist"" 2019-09-26 03:45:27 +00:00