Commit Graph

1287 Commits

Author SHA1 Message Date
TreeHugger Robot
431af2d3f6 Merge "Alarms and Media visibly muted in PriorityOnly dnd" 2018-01-29 15:45:39 +00:00
Beverly
925cde8f74 Alarms and Media visibly muted in PriorityOnly dnd
- if alarms and/or media cannot pass dnd and the phone is currently
in priority only dnd, then the alarm and/or media volume stream
will appear muted in the volume dialog and sound settings
(Settings > Sound)
- if all behavior for priority only dnd is not allowed to bypass dnd
(discluding alarms and media), then ringer is muted when priority-only
dnd mode is on. If a user clicks this ringer in the volume dialog, then
dnd ends
- Updated default zen config to version 3 (added alarms and media)
Test: manually toggle alarms + media in Settings > Sound > DND >
Behavior, toggle on/off dnd and then look at volume dialog and
volume bars in Settings > Sound
Test: runtest --path cts/tests/tests/media/src/android/media/cts/AudioManagerTest.java
Fixes: 72052742

Change-Id: Ia9e809ec2be93cb5a9ba6518dce04bf3ce45110b
2018-01-26 18:39:06 +00:00
Kweku Adams
9954633827 incidentd: Adding privacy tag and expanding field.
Also updating priority category enum to note new values.
Bug: 65750824
Bug: 72393215
Test: flash device and check incident.proto output

Change-Id: I0c764cd4bb258160aa7140e60e81f76f84cc28ce
2018-01-25 14:59:02 -08:00
TreeHugger Robot
fa0bfce3ef Merge "Add requireViewById" 2018-01-24 17:48:52 +00:00
Felipe Leme
fe05a52988 Don't crash the app when the assist structure cannot be retrieve.
When an app trigger autofill, system_server will eventually call back into the
app to lazy load the contents of the AssistStructure used for autofill. If that
binder transaction fails, we should simple ignore it, rather than crash the app.

Test: atest CtsAutoFillServiceTestCases
Test: locally changed code to force WTFs and called 'adb shell dumpsys autofill'

Bug: 72398988

Change-Id: I490ad877b067fb37997b734718b90b00f9d318c8
2018-01-23 17:49:26 -08:00
Chris Craik
6faa9e50e5 Add requireViewById
Bug:69461327
Test: atest android.view.cts.ViewTest android.view.cts.WindowTest android.app.cts.DialogTest
Test: make offline-sdk-docs

Didn't add require versions of #onFindViewById in
FragmentContainer/FragmentHostCallback since they're deprecated

Change-Id: I4231e318c92a39cfb82ab1ef8769ade2775d5e3e
2018-01-23 09:44:00 -08:00
TreeHugger Robot
2c78c181e7 Merge "Track the most recent notifying packages" 2018-01-23 13:56:24 +00:00
Felipe Leme
029f10100c Changed onGetScores() to return null instead of throwing exception.
Callers (Session and AFMShellCommand) already handle null (in fact, the
signature declares it as @Nullable), so there's no point on throwing a
runtime exception...

Bug: 70939974
Test: 'adb shell cmd autofill get fc_score half kale' when service APK was not
      implementing it.

Change-Id: I37da6cd13c40545626332c272759e797b5a25924
2018-01-22 12:16:55 -08:00
Julia Reynolds
7bcb57b79d Track the most recent notifying packages
Test: runtest systemui-notification
Bug: 63927402
Change-Id: I0d4cfb5399c81a31d1192d7ac5149f33d9804c67
2018-01-22 13:49:11 -05:00
Felipe Leme
d11a66220c Minor API changes on Autofill Field Classification:
- Removed Scores class and use float[][] directly.
- Created constant for metadata keys.
- Removed getAlgorithName() from FieldClassification.

Bug: 70291841

Test: m -j update-api
Test: atest CtsAutoFillServiceTestCases

Change-Id: I62abf93c4f6f0804d838c7fb183c0b8bcb88a136
2018-01-19 12:16:21 -08:00
Felipe Leme
e4ac740e39 Implemented getAlgorithm() and getDefaultAlgorithm() using manifest metadata.
Bug: 70939974
Test: atest CtsAutoFillServiceTestCases:FieldsClassificationTest

Change-Id: I8b7028c0acfef164b84821a9e4c99817acc838f8
2018-01-19 09:39:38 -08:00
Felipe Leme
db6b0fecb4 Merge "Moved Field Classification score logic to ExtServices." 2018-01-18 23:33:44 +00:00
Felipe Leme
bc055b0ef1 Moved Field Classification score logic to ExtServices.
Bug: 70939974
Test: atest CtsAutoFillServiceTestCases:FieldsClassificationTest \
            CtsAutoFillServiceTestCases:UserDataTest
Test: atest CtsAutoFillServiceTestCases

Change-Id: I75fd59b5d7530fcd7095b26f6e592d7459c7d235
2018-01-18 10:40:30 -08:00
Felipe Leme
6fb52a5fca Use LinkedHashMap on CharSequenceTransformation to keep order of insertions.
Test: atest CtsAppSecurityHostTestCases:CharSequenceTransformationTest#testFieldsAreAppliedInOrder
Fixes: 72118060

Change-Id: Ic8f5120fb4b5d10503a3909528accd0ecf6076f4
2018-01-17 16:19:10 -08:00
Dan Sandler
1d958f8c35 Temporary affordance for blocking helper
When a notification is flagged by NoMan as USER_SENTIMENT_NEGATIVE (odd,
since this is actually the system's sentiment), a small  icon will
appear that directs you to the notification settings.

Eventually the icon will be removed, and the settings (reworded to
explain that you seem not to like this kind of notification) will be
left behind in the shade.

Bug: 63095540
Test: runtest systemui
Change-Id: I8b815cd035e9730bbbf1d4a1be17db9d494111ed
2018-01-13 15:34:57 +00:00
Jiuyu Sun
9e7bf9e304 Merge "Add EuiccCardManager and EuiccCardController." 2018-01-11 18:09:40 +00:00
Lucas Dupin
606c532dca Merge "Allow custom keyguard transient message" 2018-01-11 17:23:59 +00:00
TreeHugger Robot
e6050a4a0f Merge changes from topic "messaging_people"
* changes:
  Clipping to the top roundness when scrolling
  Made the notification side paddings consistent
  Changing messaging style and overall visual adoption
  Improved the MessagingStyle API with Person
  Added People to the Notification API
2018-01-11 03:07:09 +00:00
Holly Jiuyu Sun
5c11024d13 Add EuiccCardManager and EuiccCardController.
EuiccCardManager is in the same path with EuiccManager.
EuiccCardController is in the same path with EuiccController.
Use getAllProfiles() as an example interface.
The implementation of EuiccCard and its content will be added in a
follow up CL.
The new API is marked as @hide and TODO for @SystemApi.

Bug: 38206971
Test: test on phone
Change-Id: I153937c0f79bdd1a00b06b234a6e254a3f43072c
2018-01-10 18:59:50 -08:00
Lucas Dupin
ef88654459 Allow custom keyguard transient message
TrustAgentServices can now present a transient
message on the lock screen or AoD.

Bug: 63940122
Test: call TrustAgentService#showKeyguardErrorMessage via service,
      lock device, wait for message to show up.
Change-Id: I222118787a1afb526ce7c90d46c41d0f20d8d912
2018-01-10 14:07:56 -08:00
Holly Jiuyu Sun
6a85d75fbc Merge "Merge EuiccProfile into EuiccProfileInfo." am: b01bd54b11 am: 6a5dc32ac3
am: 20f35f962e

Change-Id: I8f7cc7e81fc163119ffa15666f054b298d47fff1
2018-01-10 05:58:24 +00:00
Holly Jiuyu Sun
20f35f962e Merge "Merge EuiccProfile into EuiccProfileInfo." am: b01bd54b11
am: 6a5dc32ac3

Change-Id: I3d6df6f2bce5b6e19ce0ef2c13adc39fa1b9a862
2018-01-10 05:49:06 +00:00
TreeHugger Robot
7819f611de Merge "Add API EuiccController#startOtaUpdatingIfNecessary" 2018-01-10 02:38:11 +00:00
Holly Jiuyu Sun
e6153b9bff Merge EuiccProfile into EuiccProfileInfo.
After EuiccCard is moved to the platform, it can depend on
EuiccProfileInfo directly.

Bug: 70292228
Test: unit test
Change-Id: Ibe2c61ce9c4d2c99bac1cd9df8bb62414c46feee
2018-01-09 15:08:26 -08:00
Qingxi Li
6019f9ca34 Add API EuiccController#startOtaUpdatingIfNecessary
This function requests calling app has WRITE_EMBEDDED_SUBSCRIPTIONS
permission. It will check whether the OTA update needed to be done
first. If current eUICC OS isn't latest one and OTA needed to be
performed, it will update eUICC OS. When the OS update is started or
finished, a broadcast will be sent.

Bug: 37279356
Test: E2E
Change-Id: Iea86add4bdc01c79a8714af4b3a89735ba78ee74
2018-01-09 13:33:15 -08:00
TreeHugger Robot
feeb12a962 Merge "Let wallpaper know when to animate AoD transition" 2018-01-05 00:32:25 +00:00
TreeHugger Robot
1e8a6d36bc Merge "Refactored Field Classification score logic so it can be moved to ExtServices." 2018-01-04 19:00:40 +00:00
Qingxi Li
dba6365966 Merge "Add API to get eUICC's OTA status" am: 15a410a75a
am: 412aecc2b0

Change-Id: I50ec4a84ddc30e5232bd0cabb8a721ebb7feca47
2018-01-04 02:09:32 +00:00
Qingxi Li
cc6ad8cab7 Add API to get eUICC's OTA status
The function will return current eUICC's OTA status and requests calling
app has WRITE_EMBEDDED_SUBSCRIPTIONS.

Test: E2E
Bug: 37279356
Change-Id: I823ed7aa9d86530c4bebd4c0b1a00f0c607105ed
2018-01-03 12:42:01 -08:00
Felipe Leme
27f4573d13 Refactored Field Classification score logic so it can be moved to ExtServices.
Bug: 70939974
Test: atest CtsAutoFillServiceTestCases:FieldsClassificationTest \
            CtsAutoFillServiceTestCases:UserDataTest
Test: atest CtsAutoFillServiceTestCases

Change-Id: If584ab3a55744a62f427065bfd44c8c219df83e9
2018-01-03 09:27:51 -08:00
Qingxi Li
5405836497 Add API to get eUICC's OTA status
The function will return current eUICC's OTA status and requests calling
app has WRITE_EMBEDDED_SUBSCRIPTIONS.

Test: E2E
Bug: 37279356
Change-Id: I823ed7aa9d86530c4bebd4c0b1a00f0c607105ed
2017-12-22 13:48:35 -08:00
Andrew Solovay
4adbc6b5b0 Merge "DO NOT MERGE docs: Removing spurious end </pre> tag" into oc-mr1-dev
am: acc55e61dd

Change-Id: I35d0f71a7da2dcae3ed3bab4aa111290ea4c4c60
2017-12-21 22:55:33 +00:00
Andrew Solovay
8acb2e1342 DO NOT MERGE docs: Removing spurious end </pre> tag
Owing to a merge mixup, ended up adding a spurious </pre> where it
had no effect. Removing it just for hygiene's sake.

This doc error is only in oc-mr1-dev, not in master, so the fix
doesn't need to be merged.

Test: make ds-docs
Bug: 70812346
Change-Id: I5b54ed8fb1f068698d4dd4536383b52165b4d81f
2017-12-21 19:25:49 +00:00
Andrew Solovay
7ad3eb8db0 Merge "doc: Fixing Javadoc formatting problems." into oc-mr1-dev
am: 7835c650b2

Change-Id: I662ac186b079d88fc503fa546b52b1297b98a036
2017-12-21 17:42:46 +00:00
Selim Cinek
e7238dd125 Added People to the Notification API
In order to support people without a URI and further
changes in MessagingStyle, a new person API is
introduced that allows for a richer presentation.
In addition are we now properly supporting people
without a URI, which is useful for non-handheld
clients

Test: runtest -x tests/app/src/android/app/cts/NotificationTest.java
Bug: 63708826
Change-Id: I496c893273803a2ec4fd3a5b731a6b4d483801ea
2017-12-21 09:40:27 -08:00
Lucas Dupin
660d573e43 Let wallpaper know when to animate AoD transition
Sometimes the screen will blank, and sometime the
wallpaper has the opportunity to animate the
transition.

Bug: 64155983
Test: atest tests/Internal/src/android/service/wallpaper/WallpaperServiceTest.java
Test: atest packages/SystemUI/tests/src/com/android/systemui/doze/DozeWallpaperStateTest.java
Change-Id: Ia92c00edb98eeeba42da33bdc7bec3feb961a658
2017-12-20 13:15:44 -08:00
Andrew Solovay
0472643736 doc: Fixing Javadoc formatting problems.
No code changes, just fixing typos in the doc comments.

Doc is staged to:

http://go/dac-stage/reference/android/service/autofill/AutofillService.html
http://go/dac-stage/reference/android/service/autofill/FillRequest.html

Test: make ds-docs
Bug: 70812346
Merged-In: Ia76121c60197275c6be1717c8003fe1c4baf5f97
Change-Id: I5ee04bb96234441c5740665540b5e803fcf9710f
2017-12-20 18:08:46 +00:00
Andrew Solovay
e790d4e2fc Cherrypick from from oc-mr1-dev doc: Fixing Javadoc formatting.
Original-Change-Id: I5ee04bb96234441c5740665540b5e803fcf9710f

No code changes, just fixing typos in the doc comments.

Doc is staged to:

http://go/dac-stage/reference/android/service/autofill/AutofillService.html
http://go/dac-stage/reference/android/service/autofill/FillRequest.html

Test: make ds-docs
Bug: 70812346
Change-Id: Ia76121c60197275c6be1717c8003fe1c4baf5f97
2017-12-19 13:37:40 -08:00
TreeHugger Robot
84a41d6684 Merge changes from topic "aod_wallpapers"
* changes:
  Hide AoD wallpaper after 1min
  Support wallpapers in AoD
2017-12-19 00:18:49 +00:00
Lucas Dupin
7517b5dcce Support wallpapers in AoD
Such wallpaper has to define supportsAmbientMode,
and set it to true on its android.service.wallpaper
meta data.

Also introduces WallpaperService.Engine#onAmbientModeChanged
to notify a live wallpaper that the display state has changed.

Change-Id: I49e846069a698b3cc3bb6e7cda98172920eaae4c
Bug: 64155983
Test: runtest -x frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/DozeWallpaperStateTest.java
Test: runtest -x frameworks/base/tests/Internal/src/android/app/WallpaperInfoTest.java
Test: runtest -x frameworks/base/tests/Internal/src/android/service/wallpaper/WallpaperServiceTest.java
Test: set AoD wallpaper, go to aod, lock screen, launcher
Test: set regular wallpaper, go to aod, lock screen, launcher
2017-12-18 11:28:16 -08:00
Felipe Leme
f1141c0041 Removed Parcelable from FieldClassification.
Test: atest CtsAutoFillServiceTestCases:FieldsClassificationTest

Bug: 70407264

Change-Id: I667bb15e2341a926cdf35e928261bd5fa474a22b
2017-12-18 09:38:51 -08:00
Felipe Leme
51f6cd7031 Implemented multiple matches on FieldClassification.getMatches()
Test: atest CtsAutoFillServiceTestCases:FieldsClassificationTest

Bug:70291841

Change-Id: Icc015d7c76f0f11e398c3093b4ea070c8f35f589
2017-12-18 09:31:11 -08:00
TreeHugger Robot
216da5dc44 Merge "Made Autofill Field Classification API public and documented it." 2017-12-16 00:57:50 +00:00
Ricardo Loo Foronda
ccd5d32295 docs: Added code tag to meta-data name and fixed some @see tags am: f2a8aea735
am: 0d69f1b342

Change-Id: Ib0e6d759d002cf5418755312c42e32e07ece0576
2017-12-15 20:38:54 +00:00
Ricardo Loo Foronda
0d69f1b342 docs: Added code tag to meta-data name and fixed some @see tags
am: f2a8aea735

Change-Id: If5601165a816e0dadc672008f8d5049563ee577f
2017-12-15 20:31:18 +00:00
Ricardo Loo Foronda
f2a8aea735 docs: Added code tag to meta-data name and fixed some @see tags
Status: Ready for review.

Changes:
* Surrounded android.service.carrier.LONG_LIVED_BINDING with code tags
  in CarrierService class.
* Prefixed @see tags with # in CarrierConfigManager#KEY_FORCE_HOME_NETWORK_BOOL.
* Prefixed @see tag with class name in
  CarrierConfigManager#notifyConfigChangedForSubId.

Test: make ds-docs

Staged content:
*
https://android-dot-devsite.googleplex.com/reference/android/service/carrier/CarrierService.html
*
https://android-dot-devsite.googleplex.com/reference/android/telephony/CarrierConfigManager.html#KEY_FORCE_HOME_NETWORK_BOOL
*
https://android-dot-devsite.googleplex.com/reference/android/telephony/CarrierConfigManager.html#notifyConfigChangedForSubId(int)

Bug: 23289716
Change-Id: I3b5be3ecc45bfb83e3fe0ae9bc76dc7761557e08
2017-12-15 15:49:01 +00:00
Felipe Leme
78172e70f4 Made Autofill Field Classification API public and documented it.
Test: mmm frameworks/base/:doc-comment-check-docs
Test: atest FrameworksCoreTests:SettingsBackupTest
Test: m -j 100 update-api

Fixes: 67867469

Change-Id: Iedf56a2bbcde3826eb22f5ed7a96d6ed70b968f4
2017-12-14 19:48:26 -08:00
Holly Jiuyu Sun
5ad2fbabf8 Merge "Confirmation code second try." am: df0f5e9791
am: cdc3c3ec77

Change-Id: I4c0de71e0c488551f6d0fa5e1f73ca2971e4a5f6
2017-12-14 22:46:29 +00:00
TreeHugger Robot
895d73105b Merge "Add more IntDef prefixes for auto-documenting." 2017-12-14 07:17:52 +00:00
Holly Jiuyu Sun
c5d607861b Confirmation code second try.
Bug: 69050703
Test: test on phone
Merged-In: I3e3671bf83715ce55a9d0662f518ef837ac8f22f
Change-Id: I3e3671bf83715ce55a9d0662f518ef837ac8f22f
2017-12-13 21:09:44 -08:00