Commit Graph

1827 Commits

Author SHA1 Message Date
Alex Salo
8871b31ac4 Merge "Add disableSelf() and more failure codes" 2019-03-22 03:18:12 +00:00
Brad Stenning
75eaf771f8 Merge "Provide a hook for forcing all system bars to be displayed at all times" 2019-03-22 02:18:58 +00:00
Alex Salo
b4a617767b Add disableSelf() and more failure codes
disableSelf() allows the implementer of the service to notify the system
about the intent to disable self, e.g. in case it does not have sufficient
permissions to perform the task.

New failure codes are introduced to communicate the absense of the
camera permission and a cancellation event.

Bug: 128921381, 111939367
Test: manually
Change-Id: Id9a2a8e8d51d422e966a5858c85f8a73ca37ded7
2019-03-21 14:43:51 -07:00
Andrei-Valentin Onea
bb5089fbd9 Merge "Add @UnsupportedAppUsage annotations" 2019-03-21 19:11:51 +00:00
Andrei Onea
e30e3928f9 Add @UnsupportedAppUsage annotations
For packages:
  android.companion
  android.filterfw
  android.hardware.camera2.utils
  android.inputmethodservice
  android.net.nsd
  android.os
  android.preference
  android.security.keymaster
  android.service.dreams
  android.telecom
  android.telephony.ims.compat.feature
  android.telephony
  android.util
  android.view.accessibility
  android.media.effect

This is an automatically generated CL. See go/UnsupportedAppUsage
for more details.

Exempted-From-Owner-Approval: Mechanical changes to the codebase
which have been approved by Android API council and announced on
android-eng@

Bug: 110868826
Test: m
Change-Id: I9c2f8347952f3cc65759472b0e1a2717b285e44e
2019-03-21 14:04:57 +00:00
Julia Reynolds
a5516ba016 Merge "Add the ability to turn off NAS capabilities individually" 2019-03-21 13:09:00 +00:00
Jiuyu Sun
a596e74485 Merge "Fix the assumption in GetEuiccProfileInfoListResult." 2019-03-21 03:06:15 +00:00
Brad Stenning
e057369877 Provide a hook for forcing all system bars to be displayed at all times
Bug: 121257946

Test: manual
Change-Id: Ibbf41a03b0229b62366a42543e542af954a0ea8b
2019-03-20 16:27:47 -07:00
Holly Jiuyu Sun
5265dc5fc3 Fix the assumption in GetEuiccProfileInfoListResult.
Under error cases, LPA can return a GetEuiccProfileInfoListResult
with either null profiles or empty profiles.

Bug: 127376266
Test: build
Change-Id: Id29c8f00183660d2195c58c96eb4154454623eb6
2019-03-20 15:41:22 -07:00
TreeHugger Robot
f48b706f27 Merge "Fixed logic on update()." 2019-03-20 19:08:31 +00:00
Felipe Leme
1047cba3e8 Merge "Added manifest metadata to define the content capture settings activity." 2019-03-20 18:04:06 +00:00
Felipe Leme
a5d5e2db8f Added manifest metadata to define the content capture settings activity.
Test: m update-api
Test: mmm frameworks/base/:doc-comment-check-docs
Test: adb shell dumpsys content_capture
Test: CtsContentCaptureServiceTestCases

Bug: 119264902

Change-Id: I656c50d9a45f68312898c8857572d5fe3f55c193
2019-03-20 08:36:24 -07:00
Felipe Leme
34b24bd409 Merge "New ContentCapture constant: ActivityEvent.TYPE_ACTIVITY_DESTROYED" 2019-03-20 14:33:21 +00:00
Julia Reynolds
ad6dd3575c Add the ability to turn off NAS capabilities individually
Test: atest
Bug: 127825514
Change-Id: Ic59e4be40ec71c70703eacf004ef32333e3356c9
2019-03-20 09:09:56 -04:00
Julia Reynolds
8180db886c Merge "Add notification opPkg to logs" 2019-03-20 12:36:37 +00:00
Felipe Leme
29eb0bc25b New ContentCapture constant: ActivityEvent.TYPE_ACTIVITY_DESTROYED
Test: m update-api
Test: atest ChildlessActivityTest#testLaunchAnotherActivity_onTopOfIt
Test: atest CtsContentCaptureServiceTestCases # sanity check
Fixes: 128904560

Change-Id: I32169c6a74d834858d8e22ec6adeb478b676bece
2019-03-19 13:14:20 -07:00
Adam He
36c8a0d088 Fixed logic on update().
Bug: 127062800
Test: atest android.autofillservice.cts.augmented.AugmentedLoginActivityTest
Change-Id: I99c7d1884b774cb1f5c77692b8c6fd2df083849d
2019-03-19 10:56:45 -07:00
Julia Reynolds
9846076a9b Add notification opPkg to logs
Test: bugreport
Fixes: 128636744
Change-Id: Ib977e65f690e49d523abeb53161b4455a5502381
2019-03-19 09:25:08 -04:00
Adam He
234030a0c5 Don't show fill ui if fillrequest times out.
Fixes: 127062800
Test: atest
android.autofillservice.cts.augmented.AugmentedLoginActivityTest

Change-Id: Iad067c79746a829334f64b2b340021876e341dd4
2019-03-18 11:51:34 -07:00
Adam He
52577fcc24 Implemented CancellationSignal for augmented autofill requests.
Fixes: 122728762
Bug: 127062800
Test: atest android.autofillservice.cts.augmented.AugmentedLoginActivityTest#testCancellationSignalCalledAfterTimeout
Change-Id: Id6f0d6f5ac4e47b07e32c255fdbb02af878b6921
2019-03-18 11:42:33 -07:00
TreeHugger Robot
932d7b509a Merge "Added android.service.contentcapture.ActivityEvent.TYPE_ACTIVITY_STOPPED" 2019-03-16 03:00:35 +00:00
TreeHugger Robot
40db21ea1c Merge "Fixed Augmented Autofill workflow so the UI is closed when another field is focused." 2019-03-16 02:13:54 +00:00
Patrick Huang
8002fe449f Document permissions for euicc privileged actions.
Bug: 128317064
Test: Test on phone
Change-Id: I285597e48e97f1b4ffe4b4eb4ac68010905f4e1f
2019-03-15 22:58:09 +00:00
Felipe Leme
481db7ccf4 Fixed Augmented Autofill workflow so the UI is closed when another field is focused.
Test: atest AugmentedLoginActivityTest#testAugmentedAutoFill_multipleRequests \
            AugmentedLoginActivityTest#testAugmentedAutoFill_rotateDevice
Test: atest CtsAutoFillServiceTestCases  # sanity check

Fixes: 128638902

Change-Id: I09d2a87f3dff72afbc339f2c295343419905f45b
2019-03-15 11:14:41 -07:00
TreeHugger Robot
92512d5f18 Merge "Adds nullability annotation and java docs to App Prediction APIs" 2019-03-15 01:49:11 +00:00
Felipe Leme
7767059672 Added android.service.contentcapture.ActivityEvent.TYPE_ACTIVITY_STOPPED
Test: atest ChildlessActivityTest#testLaunchAnotherActivity_onTopOfIt
Test: atest CtsContentCaptureServiceTestCases # sanity check

Fixes: 128546985

Change-Id: I98baf8332bec3e75e43a08a6785e5ec77cfb6f7d
2019-03-14 15:14:13 -07:00
TreeHugger Robot
4de2432245 Merge "Changed ContentCapture session lifecycle so session is kept alive when service died." 2019-03-14 02:32:10 +00:00
TreeHugger Robot
2f734f66e5 Merge "Mark return value of onBind() as @Nullable" 2019-03-14 00:55:09 +00:00
Felipe Leme
518fb624c0 Changed ContentCapture session lifecycle so session is kept alive when service died.
This is useful for long-lived activities (like a browser), so child session can still be reported
after the service is restarted after dying.

Test: manual verification (cannot be tested using CTS because it would kill the test process)
Test: atest FrameworksCoreTests:android.view.contentcapture.ContentCaptureEventTest
Test: m update-api

Bug: 128466656

Change-Id: I9310263e897e929189d323d31853592a374dc6e0
2019-03-13 16:10:05 -07:00
Mehdi Alizadeh
387c7cb14a Adds nullability annotation and java docs to App Prediction APIs
Also rethrows RemoteExceptions in AppPredictor class.

Test: Builds successfully
Bug: 126701214
Bug: 126699210
Bug: 126701563
Bug: 126180215
Bug: 126701789
Bug: 126701213
Bug: 126178969
Bug: 126179771
Bug: 126700116
Bug: 126180255

Change-Id: I3c76a71abbb8fdc9cadfaa4c6289ded4de379bd8
2019-03-13 14:28:29 -07:00
TreeHugger Robot
d80c1716ee Merge "Add some logs to help debug a NotificationAssistant issue" 2019-03-11 22:21:30 +00:00
TreeHugger Robot
fc444873f9 Merge "To avoid stale data in logs, and avoid risk of race conditions, have StatusBarNotification create a new LogMaker each time it is requested, instead of trying to keep and reuse one." 2019-03-11 20:43:33 +00:00
Tony Mak
180a9c4474 Add some logs to help debug a NotificationAssistant issue
Found a droidfood device has smart suggestions missing.
The issue seems like NMS is not calling into NAS's
onNotificationEnqueued for some reasons. Adding more log around it,
the logs can be enabled by running
setprop log.tag.notification_assistant VERBOSE.

Also, use Slog rather than log, so that it is written to system log
ring buffer.

Test: check logcat

Change-Id: I157c94cdfbccbf6b274c246302999a5820781e28
2019-03-11 20:00:38 +00:00
Will Brockman
0ed07caf22 To avoid stale data in logs, and avoid risk of race conditions, have
StatusBarNotification create a new LogMaker each time it is requested,
instead of trying to keep and reuse one.

Bug: 124924850
Test: atest frameworks/base/services/tests/uiservicestests/src/com/android/server/notification frameworks/base/core/tests/coretests/src/android/service/notification SystemUITests

Change-Id: I0fe3c17b5c9534fd486575b6a3c20fdd43cc28f5
2019-03-11 09:12:47 -04:00
Zak Cohen
4b2e80c918 ContentSuggestionsService - fix deprecation messages.
Bug: build fix
Test: compile
Change-Id: I77e91ee2302310b645747019682781d8e3204bd0
2019-03-08 13:06:07 -08:00
Zak Cohen
c35546c0dd Merge "ContentSuggestionsSevice - rename methods with on* prefixes." 2019-03-08 19:33:57 +00:00
Chen Xu
556f2721d9 Merge "rename precise carrier id to specific carrier id" 2019-03-08 17:57:16 +00:00
Julia Reynolds
6570d94901 Merge "Address api council feedback" 2019-03-08 15:17:00 +00:00
TreeHugger Robot
06ff48f856 Merge "New API: ContentCaptureService.onActivityEvent()" 2019-03-07 23:35:34 +00:00
Julia Reynolds
cbc45e7164 Address api council feedback
Fixes: 127282522
Fixes: 126702741
Fixes: 126699773
Test: make, cts
Change-Id: I06e78d4c7067835017c5326f1d53923776d3fc42
2019-03-07 16:43:40 -05:00
Felipe Leme
141864d610 New API: ContentCaptureService.onActivityEvent()
This API is needed for high-level events that happened on activities that are
not whitelisted for Content Capture.

Test: atest CtsContentCaptureServiceTestCases:android.contentcaptureservice.cts.LoginActivityTest#testSimpleLifecycle_defaultSession
Test: atest CtsContentCaptureServiceTestCases # sanity check
Test: m update-api

Bug: 126262658

Change-Id: Id2d4ccfb04d56eba561200d6875374a932c526ae
2019-03-07 13:06:21 -08:00
TreeHugger Robot
a936b91ae9 Merge "Removed some deprecated APIs that use List instead of Set." 2019-03-07 18:41:42 +00:00
chen xu
45f6621391 rename precise carrier id to specific carrier id
Bug: 126727010
Test: atest CtsTelephonyTestCases

Change-Id: I4561ae8c15c429912695e0753b2ab3137a4e1e44
2019-03-06 17:54:01 -08:00
Julia Reynolds
a3e9952ee5 Merge "API changes for NAS" 2019-03-07 00:59:56 +00:00
Zak Cohen
a78076e710 ContentSuggestionsSevice - rename methods with on* prefixes.
Bug: 126702561
Test: CTS
Change-Id: I85b300a8fbd0989bfaaf7a4062b3ea58949a2350
2019-03-06 22:27:47 +00:00
Felipe Leme
528e092b1f Removed some deprecated APIs that use List instead of Set.
Test: m update-api
Fixes: 124402439

Change-Id: Iba1bd6236ab49d3917db22512c18a929dd7b0773
2019-03-06 10:45:13 -08:00
TreeHugger Robot
8e7a12edce Merge "Make ZenPolicy.Builder a final static inner class" 2019-03-06 17:59:50 +00:00
Beverly
4c9a4cdc04 Make ZenPolicy.Builder a final static inner class
Fixes: 126698794
Test: atest ZenPolicyTest
Change-Id: I847831136fa017419eba3a00ce31091cfdb08d45
2019-03-06 10:37:19 -05:00
Julia Reynolds
d0ceefa989 API changes for NAS
- make NAS @SystemApi and guard with permission
- Add missing Nullable/NonNull annotations

Fixes: 126699678
Fixes: 127146476
Test: make, gts
Change-Id: Ie024983f7c440d5b4d3065af031b27958395f2f1
2019-03-06 09:40:36 -05:00
chen xu
c3d7707d90 Merge "add missing annotation for CarrierIdentifier" am: fd46a0aaeb am: 26fa24bf4f
am: d5a7fd1ec2

Change-Id: Id5e9745d43184a8dce70775f1fe811e05688b6ef
2019-03-05 17:29:11 -08:00