Commit Graph

19642 Commits

Author SHA1 Message Date
TreeHugger Robot
ff02566ed2 Merge "Move requestPictureInPictureMode to internal" 2020-12-16 12:14:23 +00:00
Ming-Shin Lu
460e9b6bce Merge "Move TaskSnapshot into android.window package" 2020-12-16 05:48:03 +00:00
Hyunyoung Song
a2f98d16a6 Merge "Add Initial SearchUIManager" 2020-12-15 23:17:45 +00:00
Yan Zhu
c4853ac3c0 Merge "Improve headless system user's DO setup flow" 2020-12-15 20:25:59 +00:00
TreeHugger Robot
af8420fb91 Merge "Added profile-owner and device-owner on cmd user and dump user." 2020-12-15 20:04:11 +00:00
Hyunyoung Song
21e60a9d43 Add Initial SearchUIManager
Bug:162234997

Test: builds, locally ran cts tests

CTS tests: ag/13129468

[Meeting notes with Svet/Sunny/Winson] go/aaplus-search-api
[Design diagrams] go/aaplus-search-supl

Change-Id: I4589cd411e124dc9d7ea132a71651f6b9f9656ae
2020-12-15 18:54:43 +00:00
Flavio Fiszman
277dc6bf39 Merge "Show notification content in single tile widget." 2020-12-15 17:02:45 +00:00
Yan Zhu
5cbbac84c3 Improve headless system user's DO setup flow
1. Change manageUser to be setup on current user
2. add pre condition check for headless system user mode: disallows setup when current user is system user 0 and only allows device owner to be set on user 0
3. Changes method name and adds param names

To verify:
1. Install TestDPC app: https://github.com/googlesamples/android-testdpc
2. make sure device is unprovisioned
adb shell dumpsys device_policy
2'. deprovion if needed
adb shell settings put global device_provisioned 0 && adb shell rm /data/system/device_owner_2.xml /data/system/device_policies.xml
3. make sure deivce_amdmin feature is available
 adb shell pm list features | grep "admin"
3'. install feature if needed
adb push frameworks/native/data/etc/android.software.device_admin.xml
/vendor/etc/permissions/
4. run
adb shell dpm set-device-owner --user 0 com.afwsamples.testdpc/com.afwsamples.testdpc.DeviceAdminReceiver
5. verify with
adb shell dumpsys device_policy
6. try to set on user 10 will fail
adb shell dpm set-device-owner --user 10 com.afwsamples.testdpc/com.afwsamples.testdpc.DeviceAdminReceiver
6. switch to user 0, repeat 4. It shall fail.

Bug: 170333009
Bug: 174610623
Test: manual with steps above
Change-Id: Iaa46032fa6487d792f7bde5de5ff6e55b9c36432
2020-12-15 08:20:55 -08:00
Riddle Hsu
c25364b521 Merge "Correct annotation of ActivityOptions.SourceInfo.SourceType" 2020-12-15 14:15:57 +00:00
TreeHugger Robot
bf8d1042e6 Merge "Introducing FactoryResetter, a single entry point for factory reset calls." 2020-12-15 12:19:20 +00:00
Flavio Fiszman
ebb1c97b1c Show notification content in single tile widget.
Test: manual, PeopleSpaceUtilsTest and PeopleSpaceWidgetManagerTest
Change-Id: I2538874672dfc0a0860682e06e3522c17d00b29d
2020-12-15 12:16:33 +00:00
Riddle Hsu
76d21d09d4 Move requestPictureInPictureMode to internal
There is no usage of ActivityTaskManager#requestPictureInPictureMode.
Only keep the server side method for the reference from the
implementation of other type device.

Bug: 174041144
Bug: 174040691
Test: ActivityTaskManagerServiceTests

Change-Id: Iac27a542f1ef693850336e31627bdb6629ee3d4e
2020-12-15 17:22:36 +08:00
Riddle Hsu
274239d938 Correct annotation of ActivityOptions.SourceInfo.SourceType
The field only presents one type, so it should not be a flag.

Also correct a typo comma.

Bug: 174237260
Test: build
Change-Id: I7bd1cf0778fc8c11f3ff9dfcbc32129a6b74821b
2020-12-15 14:31:43 +08:00
Remi NGUYEN VAN
0efc8e6105 Merge "Run LowpanManager on BackgroundThread" am: e9c000eee2 am: f4e6668082 am: eb32604c2b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1513142

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ica052872b3fa68321d93be37969387c9f3f71497
2020-12-15 04:48:59 +00:00
Remi NGUYEN VAN
eb32604c2b Merge "Run LowpanManager on BackgroundThread" am: e9c000eee2 am: f4e6668082
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1513142

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I3c501da3c8a7b5217d1574d5e7e4e41e0535e227
2020-12-15 03:55:01 +00:00
Felipe Leme
f8dcca3c3e Introducing FactoryResetter, a single entry point for factory reset calls.
The new class has options to wipe external storage and factory reset
proctection, so it can be a single entry point from both
DPM.wipeData() and the ManagedProvisioning app, which in turn will make
it easier to postpone these operations on automotive when the
vehicle is moving.

Test: atest FrameworksServicesTests:DevicePolicyManagerTest \
            FrameworksMockingServicesTests:FactoryResetterTest

Test: adb shell dumpsys activity service --user 0 com.afwsamples.testdpc wipe-data 7

Bug: 171603586
Bug: 175392542
Fixes: 172697975

Change-Id: I37d5f8c59645459e48620047261ffd06d90ac2be
2020-12-14 19:26:50 -08:00
Chloris Kuo
f480dbb6ed Merge changes from topic "Feedback UI"
* changes:
  Feedback Inline Setting change
  Feedback UI Improvement 1. Show different icon for different NAS adjustments 2. Fix style issues in dark theme and new S notification UI change
2020-12-15 03:23:43 +00:00
Remi NGUYEN VAN
e9c000eee2 Merge "Run LowpanManager on BackgroundThread" 2020-12-15 03:10:36 +00:00
Eugene Susla
4b0feafeac Merge "Add API to query role privileges" 2020-12-15 00:21:52 +00:00
Mady Mellor
ff06288dd2 Merge "Expose NotificationManager#getBubblePreference" 2020-12-15 00:05:39 +00:00
TreeHugger Robot
ef691ab2ff Merge "Add attachinfo information to ViewRootImpl dump" 2020-12-14 21:42:09 +00:00
Nate Myren
65052dd37b Merge "Add RECORD_AUDIO_OUTPUT app op" 2020-12-14 19:20:30 +00:00
Treehugger Robot
c656403bed Merge "Add a path for GNSS time suggestions" am: 85ebf98dcf am: 4ef13ea0c9
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1528193

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Idcef60976ab86fb527000594cc6698ae2cd7feb3
2020-12-14 19:18:04 +00:00
Treehugger Robot
85ebf98dcf Merge "Add a path for GNSS time suggestions" 2020-12-14 18:02:50 +00:00
TreeHugger Robot
78c4844b69 Merge "Revert "DO NOT MERGE Add RECORD_AUDIO_OUTPUT app op"" into rvc-qpr-dev-plus-aosp 2020-12-14 17:52:27 +00:00
Wale Ogunwale
f7ecdf6988 Merge "Add more OWNERS coverages(2/n)" am: a2c85ce0ba am: 700b3d812f am: dfbbd0e5d7
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1527819

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I0b99215f99e165cbfc0ee925878d291746d94163
2020-12-14 17:49:34 +00:00
Wale Ogunwale
dfbbd0e5d7 Merge "Add more OWNERS coverages(2/n)" am: a2c85ce0ba am: 700b3d812f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1527819

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I1d1525ba52d4365241785b4789f7363aac0d32c4
2020-12-14 17:30:00 +00:00
Neil Fuller
3f5237157e Add a path for GNSS time suggestions
Add a path for GNSS time suggestions to get to the time detector.

Bug: 157265008
Test: atest services/tests/servicestests/src/com/android/server/timedetector/TimeDetectorStrategyImplTest.java
Test: atest android.app.timedetector
Change-Id: I5cb12b5545652ed885b72a3170940050ce0628a6
Merged-In: I5cb12b5545652ed885b72a3170940050ce0628a6
2020-12-14 16:59:39 +00:00
Nate Myren
06a8530e94 Revert "DO NOT MERGE Add RECORD_AUDIO_OUTPUT app op"
This reverts commit 471f8cec33.

Reason for revert: breaking tests

Fixes: 175508982
Change-Id: Ic66ac892d857e53cd613e769f837782be125db67
2020-12-14 16:27:01 +00:00
Wale Ogunwale
a2c85ce0ba Merge "Add more OWNERS coverages(2/n)" 2020-12-14 16:25:16 +00:00
Neil Fuller
e9faa339f1 Merge "Add a path for GNSS time suggestions" 2020-12-14 15:32:44 +00:00
Neil Fuller
7af0bcaccd Add a path for GNSS time suggestions
Add a path for GNSS time suggestions to get to the time detector.

Bug: 157265008
Test: atest services/tests/servicestests/src/com/android/server/timedetector/TimeDetectorStrategyImplTest.java
Test: atest android.app.timedetector
Change-Id: I5cb12b5545652ed885b72a3170940050ce0628a6
2020-12-14 15:04:37 +00:00
Eran Messeri
33ae816681 Merge "Device Policy Manager OWNERS: Add Enterprise team" am: f4555b5fe2 am: feb6b04243 am: 2768a0acf3
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1519669

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I3cb086aa897d1990ebaba1acd2bf362699056f05
2020-12-14 14:58:41 +00:00
Neil Fuller
f7cc14c110 Merge "Modify / add OWNERS files related to time / tz" am: 5ffc4b11f5 am: 762b9e9d79 am: 7c7b231319
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1526742

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ifbe039abca0113ffb589c1b4e1db28d42f255e95
2020-12-14 14:56:59 +00:00
Eran Messeri
2768a0acf3 Merge "Device Policy Manager OWNERS: Add Enterprise team" am: f4555b5fe2 am: feb6b04243
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1519669

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: If1ec5ca4642e6665a18b1246300d41697313ba3f
2020-12-14 14:40:46 +00:00
Neil Fuller
7c7b231319 Merge "Modify / add OWNERS files related to time / tz" am: 5ffc4b11f5 am: 762b9e9d79
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1526742

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I3502729562057e50c847200237383f7821b8c328
2020-12-14 14:39:46 +00:00
Eran Messeri
f4555b5fe2 Merge "Device Policy Manager OWNERS: Add Enterprise team" 2020-12-14 13:51:23 +00:00
Neil Fuller
2b5f56c8c8 Modify / add OWNERS files related to time / tz
Test: None
Change-Id: Ib6fe305a1091201bbb80c14a57e04c93912e2342
2020-12-14 11:32:44 +00:00
Remi NGUYEN VAN
cad9420134 Run LowpanManager on BackgroundThread
The ConnectivityThread class is being separated into a specific
connectivity JAR; transport-specific managers like LowpanManager should
not be sharing the ConnectivityThread.

As callbacks from ILowpanManager / ILowpanManagerListener already do not
have any ordering guarantee with ConnectivityManager callbacks, the
impact of this change should be minimal.

LowpanManager is unused in AOSP, and not part of the API.

Bug: 174436414
Test: m
Change-Id: I23483ed7c4a6c5283b365430a3e503a0dd86c2cb
2020-12-14 17:46:23 +09:00
Charles Chen
2c86c2cf8a Add more OWNERS coverages(2/n)
Test: manual
Bug: 174932174
Change-Id: Id6a4c60734f24a3d8fdec27b11baead550296441
2020-12-14 15:00:22 +08:00
TreeHugger Robot
bde6cfbd10 Merge "Clean up LetterboxTaskListerner and all related logic." 2020-12-13 17:36:25 +00:00
Ming-Shin Lu
b6c4b82ebf Move TaskSnapshot into android.window package
Bug: 166736352
Test: build pass
Test: atest CtsWindowManagerDeviceTests
Change-Id: I7f03524f018ceb64c109fd9d78abeb0ea98b6ea5
2020-12-13 15:28:56 +00:00
Mariia Sandrikova
2f37c38f33 Clean up LetterboxTaskListerner and all related logic.
This is the first step towards moving letterbox gravity logic from WM Shell to WM Core. It's important to do this even before the new implementation in WM Core is ready because surface repositioning in WM Shell causes visible flickering on rotation for all apps on devices with cutout.

Fix: 174632285
Bug: 175212232
Fix: 173440321
Test: atest WMShellUnitTests
Change-Id: I2b3706a1a46bb2c7ee4bb3789fb09b216e32f290
2020-12-13 15:17:11 +00:00
Siarhei Vishniakou
ce0f9518a8 Add attachinfo information to ViewRootImpl dump
Currently, we are dumping information on ViewRootImpl, but it doesn't
include some of the critical pieces. Add attachinfo information. Also,
attach a dump of a variable that determines whether the input events
will be dropped.

Example of newly added piece of dumpsys:

      mPausedForTransition=false
      ...
      mAttachInfo=       AttachInfo:
        mHasWindowFocus=true
        mWindowVisibility=0
        mInTouchMode=true
        mUnbufferedDispatchRequested=false

Bug: 173675649
Test: adb shell dumpsys activity -v all
Change-Id: I7b8801436f74a123bf96735de30b238146413545
2020-12-12 00:05:50 -10:00
Felipe Leme
757491fd7b Added profile-owner and device-owner on cmd user and dump user.
Examples:

$ adb shell cmd user list --all -v
3 users:

0: id=0, name=Driver, flags=ADMIN|INITIALIZED|PRIMARY|SYSTEM (running) (device-owner)
1: id=10, name=Driver, flags=ADMIN|FULL|INITIALIZED
2: id=11, name=HomerSimpson, flags=FULL|INITIALIZED (running) (converted) (profile-owner) (current)

$ adb shell dumpsys user | grep '\-owner'
  UserInfo{0:null:813} serialNo=0 isPrimary=true <device-owner>
  UserInfo{11:HomerSimpson:410} serialNo=15 isPrimary=false <converted> <profile-owner>

Test: see above
Bug: 156263735

Change-Id: Ia98d3586fcaa852943e3a900ba13add5439eaf13
2020-12-11 16:36:34 -08:00
TreeHugger Robot
1923524096 Merge "Move permission methods in PackageManager to PermissionManager." 2020-12-11 23:24:05 +00:00
Nate Myren
471f8cec33 DO NOT MERGE Add RECORD_AUDIO_OUTPUT app op
To be used when recording app output via the REMOTE_SUBMIX source
Test: presubmit
Bug: 173797503

Change-Id: I5851197ae42fb431f3b89c961e46b9f9e77d3eab
2020-12-11 21:41:59 +00:00
TreeHugger Robot
f4bb783cbe Merge "Move a subset of PermissionManager APIs into LegacyPermissionManager." 2020-12-11 20:40:57 +00:00
Nate Myren
6dcf50edb6 Add RECORD_AUDIO_OUTPUT app op
To be used when recording app output via the REMOTE_SUBMIX source
Test: presubmit
Bug: 173797503

Change-Id: I5851197ae42fb431f3b89c961e46b9f9e77d3eab
2020-12-11 12:38:01 -08:00
Evan Severson
df179c3d04 Merge changes I32ab8848,If470bc9a
* changes:
  Notify if a sensor is used but privacy is enabled
  Add flags to onOpNoted/Started callbacks
2020-12-11 18:36:17 +00:00