Commit Graph

468617 Commits

Author SHA1 Message Date
TreeHugger Robot
e06e29bb09 Merge "reduce the visibility of framework-minus-apex" into rvc-dev 2020-02-25 11:33:44 +00:00
Galia Peycheva
a72d7e53e6 Merge changes Id71b4cbc,I8dff0a12,Ife3d1390 into rvc-dev
* changes:
  Add startDreamActivity request verification
  Make DreamService use an Activity
  Clean up dreamland
2020-02-25 10:11:21 +00:00
George Chang
61b8ac42c3 Merge "Add API docs for permission SECURE_ELEMENT_PRIVILEGED" into rvc-dev 2020-02-25 09:42:23 +00:00
Galia Peycheva
52e8922e8a Add startDreamActivity request verification
The ActivityTaskManagerTestService has a special method to start a
DreamActivity. This CL adds a verification check before the activity is
started to check that the caller is the currently active dream
component.

Bug: 133216167

Test: atest DreamManagerServiceTest

Merged-In: Id71b4cbc57c6569f58b6d906cc8361c104a507dc
Change-Id: Id71b4cbc57c6569f58b6d906cc8361c104a507dc
(cherry picked from commit 20dc51820a)
2020-02-25 07:57:09 +00:00
Galia Peycheva
6861e91b84 Make DreamService use an Activity
Currently, the DreamService uses a floating Window to display the
content of the dream on the screen. This introduces difficulties in the
interactions with the Assistant application, which is an activity.
By design, if the Assistant is invoked while the device is dreaming, the
Assistant should be shown on top. However, since floating windows are
always drawn on top of all activities, the Assistant can't be shown on
top of the Dream.

Here, we migrate the implementation of the DreamService to use an
Activity (DreamActivity). Since the screensaver application is not part
of the framework, we can't declare the activity in their AndroidManifest.xml.
Therefore, we start the dream activity with a dedicated method in
ActivityTaskManagerService.

Bug: 133216167
Test: 1. m && ./vendor/google/tools/flashall
      2. Go to Settings > Device Preferences > Screensaver > Start now
      3. Verify dream appears
      4. Click any key to wake up the dream
      5. Verify that dream disappears

Merged-In: I8dff0a124cd1b41fb925a73528305431b49ee06d
Change-Id: I8dff0a124cd1b41fb925a73528305431b49ee06d
(cherry picked from commit 148478a85e)
2020-02-25 07:56:28 +00:00
Gavin Corkery
fb7bda9734 Merge "Change checkpointing retry count to 2" into rvc-dev 2020-02-25 07:56:01 +00:00
Winson Chiu
d012f7bee6 Merge "Use correct PackageSetting for dexopt calculation" into rvc-dev 2020-02-25 07:55:52 +00:00
Martijn Coenen
c8a208f571 Merge "Don't crash system_server if fixupAppDir() fails." into rvc-dev 2020-02-25 07:53:57 +00:00
Shawn Lin
faff9bd887 Merge "Fixed not updating waterfall insets in DisplayCutout.inset()" into rvc-dev 2020-02-25 06:15:37 +00:00
Joshua Duong
b76d7aa6bc Merge "Remove key from adb_keys if user forgets the key." into rvc-dev 2020-02-25 06:10:49 +00:00
TreeHugger Robot
20ea7f5258 Merge "Introduce SoftInputShowHideHistory" into rvc-dev 2020-02-25 05:35:25 +00:00
Amy Zhang
7ff127e897 Merge changes from topic "trm-impl-rvc" into rvc-dev
* changes:
  Fix issues in register/unregister client API implementation
  Add a TRM use case priority hints info object
  Add requestFrontend implementation in TunerResourceManager
  Implement TRM setFrontendInfoList logic with unit tests
2020-02-25 05:02:44 +00:00
TreeHugger Robot
67c02e6cb0 Merge "Retry TTS speaking for a11y shortcut warning dialog" into rvc-dev 2020-02-25 04:43:08 +00:00
TreeHugger Robot
d44e0e38e3 Merge "Fix exempt vs unexempt scheduled sync standby bucket logic" into rvc-dev 2020-02-25 04:29:32 +00:00
TreeHugger Robot
395262cbb4 Merge "Trim "android.permission." from permission name to reduce reporting footprint." into rvc-dev 2020-02-25 04:21:02 +00:00
TreeHugger Robot
426b08e2f4 Merge "wifi: Revise java doc to add more explanation" into rvc-dev 2020-02-25 03:48:14 +00:00
TreeHugger Robot
a493b5c516 Merge "Clarifying meaning of items param in javadoc per feedback" into rvc-dev 2020-02-25 03:24:39 +00:00
TreeHugger Robot
0cbb2687ed Merge "Move PiP animation to SysUI package" into rvc-dev 2020-02-25 03:10:24 +00:00
Jack Yu
1797db4a21 Add API docs for permission SECURE_ELEMENT_PRIVILEGED
Test: build pass
Bug: 149998089
Change-Id: I1740cf1e04a648a2fdb23a499f1d1fb39c8622a0
2020-02-25 10:45:20 +08:00
Joanne Chung
599d349712 Merge "Fix wrong parameter fieldIndex caused IndexOutOfBoundsException" into rvc-dev 2020-02-25 02:20:57 +00:00
TreeHugger Robot
ba58fd615f Merge "Add Option To Prevent Wake On Back Key Press" into rvc-dev 2020-02-25 02:10:32 +00:00
Winson
03f72240fe Use correct PackageSetting for dexopt calculation
The PackageSetting object is sometimes copied during
scan/install and will not match the reconciledPkg's pkgSetting.

This meant the usesLibrary parsing assigned the values to one
PackageSetting object, but dexopt read from the other, copied
object.

Unfortunately this copy logic leaves the two settings out of
sync and thus the isUpdatedSystemApp flag has to be copied
between them.

All of this would be great to resolve in a future refactor.

Bug: 150142306

Test: adb install -r {out_of_blueline_target}/product/app/CalculatorGooglePrebuilt/CalculatorGooglePrebuilt.apk
    installs correctly, with dexopt run with the correct paths

Change-Id: Ifca3bafcea1b8858baf4a22ddd264d5e07a0f1e5
2020-02-24 18:03:31 -08:00
Joshua Duong
1223bcaf0c Remove key from adb_keys if user forgets the key.
It was being removed from adb_temp_keys.xml but not adb_keys.

Bug: 150138676
Bug: 111434128

Test: atest AdbDebuggingManagerTest

Change-Id: I3c31394e4480e787c771e193b179a472d6ee4a62
2020-02-25 02:01:38 +00:00
TreeHugger Robot
bf2b4a3854 Merge "Fix PinnerService SecurityException at boot" into rvc-dev 2020-02-25 01:44:36 +00:00
Alex Mang
799b7deb72 Clarifying meaning of items param in javadoc per feedback
Bug: 148402958
Change-Id: Ic021f6fc37e7fce8e9b052d7434d0dc1569724ea
Merged-In: Ic021f6fc37e7fce8e9b052d7434d0dc1569724ea
(cherry picked from commit fa1062ac43)
2020-02-25 01:21:08 +00:00
Yi-yo Chiang
56d9d677e8 Merge "Add DSU default userdata partition size" into rvc-dev 2020-02-25 01:17:42 +00:00
Nate Jiang
bd463a2b2d Merge "Override hashcode, equals function for PnoNetwork" into rvc-dev 2020-02-25 00:22:59 +00:00
Jack Yu
46dd4eb94a Merge "Added missed incoming call SMS support" into rvc-dev 2020-02-25 00:19:31 +00:00
Automerger Merge Worker
3ea1f90fe9 [automerger skipped] DO NOT MERGE: Add SystemUI support for front-facing camera protection am: 6075dd7f58 -s ours
am skip reason: subject contains skip directive

Change-Id: I456bec7d077fb18a39f04536ee4f641766e02bc8
2020-02-25 00:06:20 +00:00
Amy
630fc01bf6 Fix issues in register/unregister client API implementation
Issues include:
1. clientId array size checking too hard
2. missed use case validation
3. missed in use resources update when unregistering client(same in on
binder dead, will be in separate CL)
4. Calling PID should have only be used when tvinputsession id is null
5. Adding resources list to client profile

Test: atest TunerResourceManagerServiceTest
Bug: 147380513
Change-Id: I09b4105659a491b3c07e3b737fe0617b83d24447
(cherry picked from commit 19b71275e0)
2020-02-24 14:27:36 -08:00
Amy
abdf7b6a57 Add a TRM use case priority hints info object
This object includes a parser that reads the vendor config xml

Test: atest UseCasePriorityHintsTest
Bug: 147380513
Change-Id: I4bff0bc196a0c2a78ce4305acec7ce7cc9a4fa70
(cherry picked from commit 2f62bf64ca)
2020-02-24 14:27:36 -08:00
Amy
38ff0181c3 Add requestFrontend implementation in TunerResourceManager
Test: atest TunerResourceManagerServiceTest
Bug: 147380513
Change-Id: Icec048913e2cbe141448c0c322d37c233588dfcd
(cherry picked from commit 9d150f58bd)
2020-02-24 14:27:36 -08:00
Amy
9796ba2f6d Implement TRM setFrontendInfoList logic with unit tests
Note that this CL includes some format changes and redundant
implementation removing in ClientProfile.java and
TunerResourceManagerService.java.

The key change of the CL is the FrontendResource.java object and
the impl of the setFrontendResourceList method in
TunerResourceManagerService.java.

Test: atest TunerResourceManagerServiceTest
Bug: 147380513
Change-Id: I3df8e386ad37bc67694594b07de04cc9f3b88e02
(cherry picked from commit caf201a8e7)
2020-02-24 14:27:36 -08:00
Feng Cao
85cbe43d48 Merge "Use context for correct display in the renderer service" into rvc-dev 2020-02-24 22:10:06 +00:00
Hongwei Wang
85cf41fcc3 Move PiP animation to SysUI package
The bounds animation is cleaned up within window manager and it's now
the SysUI component listening on callbacks from TaskOrganizer for
entering to and exiting from PiP mode.

Additionally, the expand and move of the PiP window is now part of SysUI
as well.

Known issues:
- Black background when in transition from PiP to fullscreen. The
wallpaper gets into hidden state too early
- App gets into PiP mode too early when entering PiP, need to defer the
configuration change sent to app in this case

Bug: 146594635
Bug: 148198539
Bug: 138144750
Bug: 149569903
Test: atest PinnedStackTests
Test: atest PipAnimationControllerTest
Test: atest RecentsAnimationTest
Test: atest RecentTasksTest
Test: atest com.android.server.wm.ActivityStarterTests
Merged-In: Id0c8ce03fa26952daf5e3687b18b2eb2375b7d20
Change-Id: Id0c8ce03fa26952daf5e3687b18b2eb2375b7d20
2020-02-24 21:16:20 +00:00
Michael Wachenschwanz
1103ff27a8 Fix exempt vs unexempt scheduled sync standby bucket logic
Fix for bug in AppStandbyController that would treat all scheduled
syncs for user 0 as unexempted syncs and syncs for not user 0 as
exempted syncs, regardless of the actual exemption status.

Fixes: 150016258
Test: atest AppStandbyControllerTests

Change-Id: Ie9e63c2954d0abe2a28469ea95ba6995a5c8696d
(cherry picked from commit 3ffa92f62c)
2020-02-24 20:42:57 +00:00
Jack Yu
1e1ff94bdb Added missed incoming call SMS support
Provided a way for carrier to notify their users
about missed incoming call via special SMS.

Bug: 144068181
Test: MissedIncomingCallSmsFilterTest
Merged-In: Iacf1ce5b2a79761536e2b31a0ea5644622b4913c
Change-Id: Iacf1ce5b2a79761536e2b31a0ea5644622b4913c
(cherry picked from commit 0630b6c358)
2020-02-24 11:58:30 -08:00
Galia Peycheva
a8e4641296 Clean up dreamland
Sort imports and exchange inline Runnables for lambdas

Bug: 133216167
Test: m && ./vendor/google/tools/flashall
Merged-In: Ife3d13904a698efbe0933676b176ac1fbb53d0bd
Change-Id: Ife3d13904a698efbe0933676b176ac1fbb53d0bd
(cherry picked from commit 21cab31b82)
2020-02-24 19:04:25 +00:00
Valerie Hau
27f83cdbce Merge "RESTRICT AUTOMERGE - Explicitly disable BLAST for SurfaceControlViewHost surfaces" into rvc-dev 2020-02-24 18:52:13 +00:00
Evan Laird
6075dd7f58 DO NOT MERGE: Add SystemUI support for front-facing camera protection
Devices with a DisplayCutout configured may want to add some extra area
of turned-off pixels around the cutout in order to keep light from
leaking into camera hardware. This CL adds two new config values to
sysui to enable the configuration of this cutout protection, and listens
for CameraManager events telling us that a relevant camera has turned
on.

Test: manual
Bug: 145095085
Change-Id: Ifce67a593247e3a2151d41800ae46a50478e0b7d
2020-02-24 18:44:48 +00:00
Stanislav Zholnin
dbcf85e576 Trim "android.permission." from permission name to reduce reporting footprint.
Bug: 136134050
Test: ./out/host/linux-x86/bin/statsd_testdrive 10050
Change-Id: I32f4c83f3362ca06cf0893b60f523af86cbcda5c
2020-02-24 18:32:09 +00:00
Winson Chiu
1fd15d2073 Merge "Fix PackageSetting isUpdatedSystemApp and SYSTEM_EXT rescan" into rvc-dev 2020-02-24 18:29:21 +00:00
Stanislav Zholnin
fd2f367df6 Merge "Add atom and puller for AppOps with FeatureIds" into rvc-dev 2020-02-24 17:37:45 +00:00
Felipe Leme
9fa3a870c6 Merge "Improved user callbacks on SystemService:" into rvc-dev 2020-02-24 16:59:32 +00:00
Nikita Ioffe
2773260387 Merge "UserspaceRebootLogger: query sys.boot.reason.last" into rvc-dev 2020-02-24 16:58:21 +00:00
Automerger Merge Worker
30d7e1c32e [automerger skipped] Merge "Add DEBUG flag for rounded corner and display cutout path" into qt-qpr1-dev am: 353d26c897 -s ours
am skip reason: Change-Id I87f04b50945e1500babdf9fa7ba9cdb37010fde8 with SHA-1 3bf9ca2727 is in history

Change-Id: I60d0be497a66025937b6d2ab8513d35b72b3bcfb
2020-02-24 16:47:04 +00:00
TreeHugger Robot
353d26c897 Merge "Add DEBUG flag for rounded corner and display cutout path" into qt-qpr1-dev 2020-02-24 16:45:30 +00:00
Felipe Leme
339b7149af Improved user callbacks on SystemService:
* Renamed:

  onStartUser() -> onUserStarting()
  onStopUser() -> onUserStopping()
  onSwitchUser() -> onUserSwitching()
  onUnlockUser() -> onUserUnlocking()
  onCleanupUser() -> onUserStopped()
  isSupportedUser() -> isUserSupported()

* Added:

  onUserUnlocked()

Tested on automotive, which uses the callbacks to dump user metrics:

$ adb shell dumpsys car_service --user-metrics
adb shell dumpsys car_service --user-metrics
* User Metrics *
  no users starting
  no users stopping
Last 10 started users
  2020-02-21T19:44:47.101 - user=0 start=2020-02-21 19:44:45.357 unlocking=+885ms unlocked=+1s122ms
  2020-02-21T19:44:56.376 - user=10 start=2020-02-21 19:44:47.380 switch=+209ms unlocking=+8s262ms unlocked=+8s994ms
  2020-02-21T20:00:08.792 - user=11 start=2020-02-21 20:00:04.634 switch(from 10)=+351ms unlocking=+4s44ms unlocked=+4s156ms
Last 10 stopped users
  2020-02-21T20:00:48.323 - user=10 stop=2020-02-21 20:00:16.741 shutdown=+31s581ms

Test: m update-api
Test: atest BackupManagerServiceTest
Test: manual verification (see above)
Fixes: 150001654

Exempt-From-Owner-Approval: approved on master right before rvc split

Merged-In: I8774c57620030b9aa8e7ec039a6a758ad56db368
Change-Id: I8774c57620030b9aa8e7ec039a6a758ad56db368
(cherry picked from commit 58e7458ac7)
2020-02-24 16:44:52 +00:00
Julia Reynolds
7d5dfe8f44 Merge "Address api feedback" into rvc-dev 2020-02-24 16:39:40 +00:00
Automerger Merge Worker
547ddb0e60 [automerger skipped] Merge "DO NOT MERGE Respect rounded.xml size in ScreenDecorations" into qt-qpr1-dev am: 688ebd6876 -s ours
am skip reason: subject contains skip directive

Change-Id: I0e6c482e042e14f1b1eddd284fbd7a98dca574ce
2020-02-24 16:39:16 +00:00