Commit Graph

1722 Commits

Author SHA1 Message Date
Felipe Leme
e8eae9d420 Initial implementation of ContentCaptureService.setContentCaptureWhitelist()
For now it only whitelists packages, not activities.

Test: atest CtsContentCaptureServiceTestCases

Bug: 122595322

Change-Id: I5beb9b027eb704510e68f3af15e84e14bda07eb2
2019-02-15 20:00:49 -08:00
Julia Reynolds
fd2ec469ed Merge "Fix API errors" 2019-02-15 18:47:06 +00:00
Julia Reynolds
79f0277f29 Fix API errors
APIs that were @SystemApi in the last release cannot be changed.

Test: atest CtsSystemApiSignatureTestCases
Bug: 124209375
Change-Id: I631b7dea09e723f509581f82a85da99344b42a09
2019-02-15 11:38:48 -05:00
TreeHugger Robot
3a5211e744 Merge "Changed ContentCaptureService.setContentCaptureWhitelist() to use Set instead of List." 2019-02-15 04:20:23 +00:00
Felipe Leme
7a3c9f5324 Changed ContentCaptureService.setContentCaptureWhitelist() to use Set instead of List.
(Same for Augmented Autofill)

Bug: 122595322
Test: m update-api

Change-Id: I6753ce2567801da148682c0ccbad7f6abc4d1ecc
2019-02-14 14:13:56 -08:00
James O'Leary
08211297cf Merge "Encapsulate state & transcription in hints bundle" 2019-02-14 21:25:24 +00:00
TreeHugger Robot
1df6e435b0 Merge "Removed unused APIs." 2019-02-14 16:51:29 +00:00
Felipe Leme
0552f41c4e Merge "Add new ContentCapture APIs to let apps change the ContentCaptureContext." 2019-02-14 15:26:27 +00:00
James O'Leary
9c9dd98ee0 Encapsulate state & transcription in hints bundle
Continuation of ag/6226654; edits made per Svetoslav's last comments.

Bug: 122740752
Bug: 123080754
Test: blueline-userdebug build completes successfully.

Change-Id: I3e43137eb6e0d8cae77e14d331150d5a05ede07c
2019-02-14 15:24:08 +00:00
Felipe Leme
3f1e2318e6 Removed unused APIs.
Plus fixed a few minor TODOs.

Test: atest AugmentedLoginActivityTest
Test: m update-api

Bug: 122654591
Fixes: 123233342

Change-Id: Ie5040077255ffab8fee019ca6a0a122fe9f2e03d
2019-02-13 13:21:27 -08:00
Amin Shaikh
c3f0b06ccc Update notification layouts when overlays change.
- Use the overlay directories specified in the ApplicationInfo retrieved
from PackageManager. The resources directories cached in LoadedApk in
ActvityThread may contain stale values for remote applications.
- Clear StatusBarNotification#mContext when overlays change to ensure
that the Resources for remote Contexts are not stale. These Contexts
will be recreated in the subsequent AsyncInflationTask.

Bug: 120987987
Test: mp core sysuig; change theme using theme picker
Change-Id: I100d164facdd4208610ee6409dd3868d6f304712
2019-02-13 15:34:27 -05:00
Jordan Liu
c30d7ced2f Merge "Add UNINITIALIZED and rename INVALID" 2019-02-13 17:49:50 +00:00
Felipe Leme
4eecbe6e3c Add new ContentCapture APIs to let apps change the ContentCaptureContext.
Test: atest CtsContentCaptureServiceTestCases:android.contentcaptureservice.cts.LoginActivityTest#testSimpleLifecycle_changeContextOnCreate \
   CtsContentCaptureServiceTestCases:android.contentcaptureservice.cts.LoginActivityTest#testSimpleLifecycle_changeContextAfterCreate
Test: atest FrameworksCoreTests:android.view.contentcapture.ContentCaptureEventTest

Bug: 124266664

Change-Id: I0348e81e1b2bac01363cf615d2ab32e5bab8aee1
2019-02-12 11:31:06 -08:00
Felipe Leme
6ca8ee7bff Fixed @deprecated message:
Test: not really
Bug: 121051220

Change-Id: I151b44a3e113707e6b156d53736d891350b47d9c
2019-02-12 10:23:02 -08:00
Tony Mak
84c8c2a2aa Merge "Add TEST_MAPPING to textclassifier" 2019-02-11 20:47:46 +00:00
Tony Mak
128a61df90 Add TEST_MAPPING to textclassifier
Setup presubmit for textclassifier by using TEST_MAPPING.
We will get a dashboard for the test result as well.

Also fixed a few broken tests found by this CL.

BUG: 124041915

Test: atest --test-mapping frameworks/base/core/java/android/service/textclassifier/TEST_MAPPING

Change-Id: I0c516ea8699d7e94cfabd2ea98ebad58505c7e90
2019-02-08 17:52:27 +00:00
Jordan Liu
cb47d1dcc7 Add UNINITIALIZED and rename INVALID
UNINITIALIZED_CARD_ID is for before the card ID is ready.
INVALID_CARD_ID is renamed to UNSUPPORTED_CARD_ID and it is used if the
card ID is known to be unsupported.

Bug: 122978614
Test: atest UiccControllerTest
Change-Id: Ia2315d9b38ef35b30d9b96b6436c08fa4404e4df
2019-02-07 16:42:11 -08:00
Michael Wright
ebc78db8e1 Merge "Instrument wake up reasons." 2019-02-06 23:37:05 +00:00
TreeHugger Robot
afe584a166 Merge "fix documentation for the non-final version of dump() in AugmentedAutofillService" 2019-02-06 20:05:41 +00:00
Makoto Onuki
db7d1c98a4 Merge "Rename SmsAppService to CarrierMessagingClientService" 2019-02-06 17:01:38 +00:00
Julia Reynolds
7f52f4a051 Merge "Add settings for notification bubbling" 2019-02-06 13:41:43 +00:00
Michael Wright
e3001042b6 Instrument wake up reasons.
This lets us run experiments that need to know the reason for the wake
up in addition to the time and latency.

Bug: 122949636
Test: manually turning the device on and off, looking at the logs
Change-Id: I38429c3387a289010e1a2696ad351ffbe568413b
2019-02-06 12:54:00 +00:00
Feng Cao
3b24ef0599 fix documentation for the non-final version of dump() in AugmentedAutofillService
Fixes: 123927351
Test: mmm frameworks/base/:doc-comment-check-docs
      m update-api

Change-Id: Ie4f4d527d6b7a6804de62d212085c0e7d2e651a7
2019-02-05 17:24:11 -08:00
Julia Reynolds
4509ce731c Add settings for notification bubbling
And a new api to consolidate that information for notification
listeners

Test: atest
Bug: 123543052
Change-Id: I61d1718ef5b5bb8ab824d4c3efff511669266313
2019-02-05 08:47:16 -05:00
Felipe Leme
19652c0c27 Made ContentCapture APIs available for testing.
Test: atest CtsContentCaptureServiceTestCases
Test: m update-api

Bug: 123584359
Bug: 119187075

Change-Id: I4ece03de6c7994451dbb9d0ce36d37f20656d3e0
2019-02-04 21:09:16 -08:00
TreeHugger Robot
1a9862c9da Merge "Removed the Content Capture blacklist APIs." 2019-02-04 23:04:48 +00:00
Makoto Onuki
05d64cbc41 Rename SmsAppService to CarrierMessagingClientService
Also rename the permission and the intent action.

Change-Id: I366a136556a42db1eb657dfb8e797ec22b67a5ba
Fix: 123661399
Test: atest CtsAppBindingHostTestCases
2019-02-01 16:10:05 -08:00
Beverly Tai
131ffc4b92 Merge "Use default zen policy's callers/messages" 2019-02-01 21:10:15 +00:00
Beverly
877d5193c4 Use default zen policy's callers/messages
Change-Id: I57674466af56cc45aa28b72bd6b346f3e0a1555c
Fixes: 123406095
Test: atest ZenModeConfigTest
2019-02-01 14:14:09 -05:00
James O'Leary
596708b973 Only selected VoiceInteractionService can call methods
- Extract current code for checking caller into a private method
- Replace occurrences of that code with a call to the private method
- Add method call to setTranscription/clearTranscription/setVoiceState

Test: Verified Milford can't call setTranscription/clearTranscription
when it is no longer the active service.
Bug: b/123412646

Change-Id: I2c428c6c65b62f6a83264286df4f44fb5d1c249e
2019-02-01 02:21:58 -05:00
Felipe Leme
3186bcdeda Removed the Content Capture blacklist APIs.
We'll initially implement just the whitelist ones...

Bug: 122595322

Test: m update-api
Test: atest CtsContentCaptureServiceTestCases

Change-Id: I403716905d429abb2e1cb4085c838706226e9969
2019-01-31 18:08:20 -08:00
Peiyong Lin
a0baea28b7 Merge "Replace createHardwareBitmap with wrapHardwareBuffer." 2019-01-31 15:37:56 +00:00
TreeHugger Robot
e2841c523b Merge "Fix comments in AttentionService result consts" 2019-01-31 01:52:36 +00:00
Matt Casey
f984e58cc8 Merge "Remove enumerated voice states." 2019-01-30 23:26:07 +00:00
Peiyong Lin
9d4274005e Replace createHardwareBitmap with wrapHardwareBuffer.
The bitmap.createHardwareBitmap doesn't take a ColorSpace as input, as a result
the returned bitmap is always in SRGB color space. Given that we want to remove
the assumption of SRGB color space, we replace the usage of
createHardwareBitmap with wrapHardwareBuffer which takes an extra argument
ColorSpace. As a result, we will be able to also fix SurfaceControl and various
other places that use screenshot in follow up patches.

BUG: 120904891
Test: CtsUiRenderingTestCases
Change-Id: I57fc0c85d68df43b0e69f9a1ebac00d2ba39554d
2019-01-30 15:22:54 -08:00
Alex Salo
7ce945bea5 Fix comments in AttentionService result consts
Test: not needed, javadoc comment change only
Bug: 111939367

Change-Id: I72a3b0d406a5bacc75651617c6505817e7e03693
2019-01-30 14:50:52 -08:00
Dan Sandler
cf318694e4 Merge "Some of us are weird." am: 559d6018b6 am: 99c3f55c89
am: 9007b5e977

Change-Id: Ie403557c8295b7d708ffcb0fbf800e8ac27f31a7
2019-01-30 13:34:35 -08:00
Dan Sandler
9007b5e977 Merge "Some of us are weird." am: 559d6018b6
am: 99c3f55c89

Change-Id: I9605a2e5f9efd41ca4c5eb0e6f0c636e6920774d
2019-01-30 13:24:06 -08:00
Dan Sandler
559d6018b6 Merge "Some of us are weird." 2019-01-30 20:58:46 +00:00
Mehdi Alizadeh
26447bc85c Merge "Ensure some calls are available for testing" 2019-01-30 18:37:17 +00:00
Winson Chung
5208cbee8d Ensure some calls are available for testing
Bug: 122694646
Test: atest CtsAppPredictionServiceTestCases:AppPredictionServiceTest

Change-Id: I4534eabf8ec6365cd49117f567e25eadf3f63407
2019-01-29 15:59:10 -08:00
Julia Reynolds
12ad7ca74a Add a setting for hiding silent status icons
Test: atest, cts
Bug: 123419917
Change-Id: Iedfc1fb07e0e2c6639cb0b711cf81553cff29262
2019-01-29 17:03:25 -05:00
Dan Sandler
8c6ff42abc Some of us are weird.
Test: dsandler can give OWNERS approval
Change-Id: I9b4f7903513e7171dfa51aa39a32b6bcfbfbb0eb
2019-01-29 14:44:39 -05:00
Matt Casey
9ff477a9c7 Remove enumerated voice states.
Bug: 122740752
Test: None
Change-Id: Id42c790f4d0772c4568be01807cb76f46102aee6
2019-01-29 14:27:42 -05:00
Will Brockman
828427ef5d Add notification category information to notification logging.
Capturing the app-declared notification category:
https://developer.android.com/training/notify-user/build-notification#system-category

Adding to StatusBarNotification.getLogMaker() means that it will be
put on many categories of notification logging automatically.  No
extra data usage for notifications where the category was not
declared.

Bug: 123071368
Test: atest SystemUITests and manual test
Change-Id: I8f59fea1a8e7c98366fe888cf5a28cf252859fdf
2019-01-28 10:32:18 -05:00
Tony Mak
a471699a97 Rename smart replies and actions adjustment keys
Test: Build

BUG: 123342833
Change-Id: Ib600fcc851ae693221ec6c605b9a8176fd65587d
2019-01-24 15:41:59 +00:00
Fabian Kozynski
e56b55182c Merge "Remove @SystemAPI from NotificationAssistantService" 2019-01-24 13:55:30 +00:00
TreeHugger Robot
6136239d9d Merge "Voice state + transcription in VoiceInteractionSvc" 2019-01-24 10:04:18 +00:00
TreeHugger Robot
f879268e09 Merge "Implement onUserDataRemovalRequest" 2019-01-24 04:07:02 +00:00
TreeHugger Robot
a68b803912 Merge "New APIs for Augmented Autofill whitelisting, plus some spring cleaning..." 2019-01-23 21:22:12 +00:00