Commit Graph

2793 Commits

Author SHA1 Message Date
Zim
d18a2cebb1 Get ANR delay from the MediaProvider
StorageManagerService registers an AnrController with the
ActivityManager so that when an app is about to ANR, it receives a
callback to get an ANR delay. This request is forwarded to the
MediaProvider that checks if the uid is blocked on a transcoding job
and if so returns an appropriate delay

Bug: 170486601
Test: Manual
CTS-Coverage-Bug: 179658703
Change-Id: I9787d8127ed9757a23be7337bd4454a488d44141
2021-02-14 11:54:15 +00:00
Julia Reynolds
b6c718c9b8 Allow NLSes to supply a default notif type filter
Test: atest, cts verifier
Bug: 173052211
Change-Id: I06a110679c1c9c1de8d0e3f45a2b69c040e538f6
2021-02-12 12:55:02 -05:00
Julia Reynolds
8cc6496b0e Merge "Store uids in listener filters" into sc-dev 2021-02-12 02:16:52 +00:00
Danning Chen
8bdb6c350d Merge "Expose onNotificationChannelModified() callback to NotificationAssistantService" into sc-dev 2021-02-08 18:46:36 +00:00
Danning Chen
c25977ad0d Expose onNotificationChannelModified() callback to NotificationAssistantService
Change-Id: I71a72298ed1bbd905ed3b35b67964e1f113b7bc0
Test: manual - verify the new method is called in NAS
Bug: 179520528
Bug: 163614153
2021-02-08 07:43:46 -08:00
Julia Reynolds
a77f0597df Store uids in listener filters
Since listeners can see notifications in managed users, we
need to differentiate between pakgs in hte primary and managed profiles.

Test: atest
Bug: 173052211
Change-Id: I3dca45adab7f1330f7f1523547ddc556cb41184c
2021-02-08 10:25:02 -05:00
Yi Jiang
f8e50bea38 Merge "A few fixes for RotationResolver" into sc-dev 2021-02-08 04:44:05 +00:00
TreeHugger Robot
b2d60a685f Merge "Get the HotwordDetectionService from the xml metadata" into sc-dev 2021-02-05 23:24:32 +00:00
Tianjie Xu
f34eed4c93 Merge "Update Java doc for ResumeOnReboot" am: 90772648cd am: bb0da56b59 am: ce39bfb3c1
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1573468

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Id4094215da64288110a3be8919f0f19157418925
2021-02-05 20:24:03 +00:00
Tianjie Xu
90772648cd Merge "Update Java doc for ResumeOnReboot" 2021-02-05 18:36:48 +00:00
lpeter
fd652d522c Get the HotwordDetectionService from the xml metadata
Bug: 178171920
Test: atest CtsVoiceInteractionTestCases
Merged-In: Ic19ae8b0ad8b646836fca7417e68b9b36429d5f0
Change-Id: I2a97491c7bbfd3a04ec3d9488beb158287d22e10
2021-02-05 23:28:13 +08:00
Biswarup Pal
fc99e08899 Rename onFreeCacheRequested API
Rename onFreeCacheRequested to onFreeCache in ExternalStorageService

Test: m
Bug: 179163256
Change-Id: If79a3f131faac23e8e44ed90f7b0962de1694500
2021-02-05 07:40:19 +00:00
Jiachen Zhao
d5567fea8e Update Java doc for ResumeOnReboot
Update doc for onWrap/onUnwrap functions to further clarify how
exceptions should be thrown.

Bug: 172780686
Test: TH
Change-Id: I2bd8b80648074d0b6026487cb0b5791dca6cdc18
2021-02-05 07:18:32 +00:00
Yi Jiang
8a1f0bc86e A few fixes for RotationResolver
This is a follow-up change of ag/13056186 to resolve some of the
comments.

Bug: 178405054
Test: unit tests
Change-Id: I04015b432b9bac96561e779cc4aa76155e6168e9
2021-02-04 11:56:51 -08:00
Wei Sheng Shih
219eeebcf6 Merge "Workaround for wallpapers render thread been paused while visible." into sc-dev 2021-02-04 06:50:49 +00:00
Tiger Huang
cf1138d479 Merge "Remove outFrame from the parameters of addWindow" into sc-dev 2021-02-04 05:46:17 +00:00
wilsonshih
ed0a167067 Workaround for wallpapers render thread been paused while visible.
Workaround for some wallpapers cannot trigger the rendering threads of
the remaining engines even if they are visible, so we need to toggle
the state to get their attention.

Bug: 168759123
Test: atest WallpaperManagerTest WallpaperServiceTest
WallpaperServiceTests

Change-Id: I4c047f6e932b280e6408f44e590e39b1a9b62128
2021-02-04 03:25:46 +00:00
Winson
be547d0768 Re-codegen ScreenshotHash.java
This was merged without re-generating after a package move, causing
codegen to fail on local builds.

Bug: 179283345

Test: builds

Change-Id: I8a570105719b8ecf1fdc2ec0324ba5e7cf8dd445
2021-02-03 12:40:02 -08:00
Tiger Huang
46252a4134 Remove outFrame from the parameters of addWindow
This CL moves computeWindowBounds to the client side. The client can use
it to compute the frame hint on its own.

This can be a step to make client compute its window frame locally.

Bug: 161810301
BUg: 175858823
Test: atest WindowAddRemovePerfTest ActivityRecordTests
            DisplayPolicyLayoutTests TaskSnapshotSurfaceTest
Change-Id: Ia5af1919b8e0e973646a63d1a4c3bf7ea7e2d1f6
2021-02-03 22:50:41 +08:00
chaviw
060b66f867 Rename ImpressionAttestation to ScreenshotHash
Rename to reflect what the code is actually doing

Test: Builds
Bug: 155825630
Change-Id: I7cef8f10d9cc6e6a6a69c5ae6d79e5794b288d96
2021-02-02 14:30:40 -08:00
Shashwat Razdan
ae26632fa2 Merge "Adding owners in smartspace packages" am: 10603d5102 am: 6bef558283 am: 5a53f7c676
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1570760

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ideffda52245794487ac6289f4046b88aab941e93
2021-02-02 21:52:24 +00:00
Shashwat Razdan
057896ae34 Adding owners in smartspace packages
Test: not needed as this is a meta file change

Change-Id: I32f5205c4c1b771aae963a20e9a52fa7691ce271
2021-02-02 17:50:18 +00:00
Alex Buynytskyy
4f3e949354 Merge "Close leaking FD." into sc-dev 2021-02-02 17:24:42 +00:00
Shashwat Razdan
fc890f1fba Merge "SmartspaceManager initial implementation" into sc-dev 2021-02-02 12:31:26 +00:00
Adrian Roos
84199909eb Merge changes from topic "nullablecollection" into sc-dev
* changes:
  API: Suppress existing NullableCollections lints (TaskOrganizer)
  API: Suppress existing NullableCollections lints (S edition)
2021-02-02 09:24:38 +00:00
Shashwat Razdan
d33e8c387a SmartspaceManager initial implementation
Bug: 176851064
Test: Deployed on Phone,CTS tests
Change-Id: I3e03628d4d0e0aec0b6442f0ee8949ac378a1572
2021-02-01 21:39:07 +00:00
Chloris Kuo
e689997b6f Merge "NAS API Change" into sc-dev 2021-02-01 21:03:08 +00:00
Alex Buynytskyy
6c43e96c08 Close leaking FD.
Bug: 160634487
Test: atest PackageManagerShellCommandTest PackageManagerShellCommandIncrementalTest IncrementalServiceTest PackageManagerServiceTest ChecksumsTest
Change-Id: I91b18c64b4436ae4d12beeb73735e865440bebf5
2021-02-01 09:46:28 -08:00
Adrian Roos
d7f33cd648 API: Suppress existing NullableCollections lints (S edition)
Bug: 152525509
Test: make checkapi
Change-Id: Idf96709bf93ef49ca5ad3cdd1f14d06e0d9e09d7
Exempt-From-Owner-Approval: API lint large scale change
2021-02-01 14:54:34 +00:00
Alex Buynytskyy
3558f0d686 Merge "create owners" am: 00c3346e2d am: feaccc5be9 am: 9f3cfe4c82
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1565113

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ic8273c33849e1b37f68ff1d63fde070092357ee4
2021-02-01 09:19:20 +00:00
Ahaan Ugale
4d8bb5d015 VoiceInteraction: Handle session delivery failure.
When the system connects to the VoiceInteractionSessionService, it
requests the service to create a new session. The service then delivers
this session to the system. Currently, a failure to deliver it is just
ignored, and the service continues to initialize the session. This
silently leaves the session in an invalid state where operations with it
always fail (since the system doesn't recognize the session).

There's currently a concurrency bug in the system server that causes the
session delivery to fail occasionally. Even with that fixed though, it's
good to handle unexpected errors here.

Fix: 178776751
Test: atest CtsVoiceInteractionTestCases --iterations
Change-Id: I3489db108158fa7c71179bee3d098ecd4ab6b2bd
2021-01-29 09:54:01 +00:00
Todd Kennedy
7a7726e420 create owners
Change-Id: I2791a9f9a80b6f68a948c706d6930d24ed59516d
2021-01-29 05:05:09 +00:00
Chloris Kuo
18b4ec8054 NAS API Change
Add onNotificationEnqueued(sbn, channel, rankingMap)

Bug: 177032312
Test: CtsLegacyNotification29TestCases
Change-Id: I116f74317028154ef451a0f1e02ac6a83e6b1012
(cherry picked from commit 7236b38847)
2021-01-29 02:03:16 +00:00
Yi Jiang
eee34dd19e Adds ONWERS files for rotation resolver service.
Bug: 172370409
Test: none
Change-Id: Ia932e6169d83eeee2f2ddcb6b028931858ca51f0
2021-01-27 08:34:18 +00:00
Ahaan Ugale
5c538f8163 Merge "VoiceInteraction: Add TEST_MAPPINGs." 2021-01-26 21:03:00 +00:00
lpeter
205ee1efed Create basic behavior of HotwordDetectionService
Create the HotwordDetectionService to help to verify the audio data.
The VoiceInteractor app will implement the HotwordDetectionService
and create the validation algorithm to increase the hotword accuracy.

The HotwordDetectionService will be triggered by VoiceInteractor app
from the VoiceInteractionService after the VoiceInteractionService
is ready.

The VoiceInteractionManagerService will check if we need to bind the
HotwordDetectionService.

After receiving the audio data from the DSP, the
VoiceInteractionManagerService will pass the audio data to the
HotwordDetectionService, then the HotwordDetectionService will verify
the audio data and send the result back.

If the hotword is valid, then the VoiceInteractionManagerService will
inform the VoiceInteractionService. The VoiceInteractor app will show
the UI.

Local test:
1.Make sure the original hotword function to work well manually.
2.Add the additional test code and check the log to make sure the
basic flow of hotword detection service runs well manually.

Bug: 175738546
Test: Manually
Test: atest CtsVoiceInteractionTestCases
Change-Id: Idb662bab37bb9691da24c9c2910a2c3dafedcadd
2021-01-26 00:58:37 +00:00
Yi Jiang
7a0969c65d Merge "Introduces RotationResolverService to the system" 2021-01-26 00:09:12 +00:00
Tianjie Xu
edc7961287 Merge "Create the ResumeOnRebootService." 2021-01-25 23:08:17 +00:00
Ahaan Ugale
4936643625 Merge changes I9a0d859f,I8ab1824a,I2093b163,Ie4370c2e,I62a9480f
* changes:
  VIMS: Simplify findAvailInteractor() by getting metadata in initial pm query.
  VIMS cleanup: set package on pm query instead of filtering results.
  VoiceInteraction: Remove MATCH_DEBUG_TRIAGED_MISSING from PM queries.
  VIMS: Remove useless field mCurUserUnlocked.
  VoiceInteractionServiceInfo cleanup: Nullability, javadoc, try-with, unused method.
2021-01-25 21:43:02 +00:00
Ahaan Ugale
54a505d46f VoiceInteraction: Remove MATCH_DEBUG_TRIAGED_MISSING from PM queries.
MATCH_DEBUG_TRIAGED_MISSING is the deprecated equivalent to MATCH_DIRECT_BOOT_AUTO.
Not needed since we use MATCH_DIRECT_BOOT_AWARE and MATCH_DIRECT_BOOT_UNAWARE (see
comments on ag/1101955).

Bug: 178410946
Test: atest CtsVoiceInteractionTestCases
Change-Id: I2093b163bb18e43c4f868715d60bc4b637fced6c
2021-01-25 13:39:02 -08:00
Ahaan Ugale
008f1d2914 VoiceInteractionServiceInfo cleanup: Nullability, javadoc, try-with, unused method.
Bug: 178410946
Test: atest CtsVoiceInteractionTestCases
Change-Id: I62a9480f9046e328f16c6f7ecff77570da8d0154
2021-01-25 13:34:44 -08:00
Yi Jiang
0127af73ed Introduces RotationResolverService to the system
Rotation Resolver Service provides the suggested screen rotation
to the system server.

Bug: 162359770
Bug: 172370409
Test: atest RotationResolverManagerPerUserServiceTest
Change-Id: Ia43dfdba8502e04768933ef46a4ac8a687d4936c
2021-01-25 20:58:14 +00:00
Fabian Kozynski
7535e43120 Merge "Revert ag/13072747" 2021-01-25 15:23:36 +00:00
Nicholas Ambur
28cc6364d6 add API for ST clients run in battery saver mode
New system API interface for both SoundTriggerManager and
AlwaysOnHotwordDetector to indicate if a recognition should run in
battery saver mode or not.

Clients supply this information through the existing startRecognition
calls, and the client must hold a new privledged permission,
SOUND_TRIGGER_RUN_IN_BATTERY_SAVER, to indicate this intention.

As a prerequisite, the device PowerManagerService must have the
SoundTrigger service enabled in the battery saver mode battery policy.
If not enabled, recognition will be paused as if the client did not
provide the indication to run in battery saver mode.

Bug: 172294448
Test: build with Google search apk using this feature and verify
recognition keeps running in battery saver mode

Change-Id: Ia43be99290e6fd7c50ff8e4908d6c60ea513b19a
2021-01-22 18:24:39 -08:00
Hall Liu
e6758b9e57 Merge "Address API review on CarrierMessagingServiceWrapper" 2021-01-22 23:34:25 +00:00
Hall Liu
d973ac087c Address API review on CarrierMessagingServiceWrapper
* Rename disposeConnection to disconnect
* Save the instance of Context used to bind the service

Fixes: 176822560
Test: atest CarrierMessagingServiceWrapperTest
Change-Id: I9d9f76033076f7a1261dddbe81429f81b0603bf4
2021-01-22 12:16:54 -08:00
Fabian Kozynski
6b7e9a3058 Revert ag/13072747
The change in ag/13072747 could bring some unexpected behavior, as it
would drop important messages (onTileAdded, onTileDestroyed).

Given that there is no way to prevent messsages delivered after
onDestroy without implementing some kind of callback mechanism, instead
add explicit documentation about this behavior.

Test: build
Fixes: 172511340
Change-Id: I3fa6e41389477cbafa31809cd5041d67a76ccb91
2021-01-22 15:11:27 -05:00
Mark Renouf
7b987440a9 Javadoc fix, correct typo
Bug: 178111968
Test: read it
Change-Id: I753c46eaeaa7ce41649849db648f472fba81bddd
2021-01-22 12:47:13 -05:00
Chavi Weingarten
c2225b451c Merge "[ImpressionAttestation] Updated Impression Attestation APIs" 2021-01-21 22:24:17 +00:00
Jiachen Zhao
174d83e335 Merge "Create the ResumeOnRebootService." 2021-01-21 22:21:16 +00:00