Commit Graph

5565 Commits

Author SHA1 Message Date
Marcus Hagerott
368db11f6e Merge "Improve comments for contacts local account" 2019-12-13 02:59:42 +00:00
Matt Pape
78f4347c6d Add a DeviceConfig.Properties.Builder class.
Test: atest FrameworksCoreTests:DeviceConfigTest
      atest SettingsProviderTest:DeviceConfigServiceTest
Bug: 136135417

Change-Id: I2e1b2d467ba0b0590ef216eb10d42f73ba1ccda0
2019-12-12 12:35:00 -08:00
TreeHugger Robot
4a0dbe942c Merge "Add an exception to setProperties method signature" 2019-12-12 19:57:43 +00:00
Hall Liu
1c013ae319 Merge "Add change ID for platform compat" 2019-12-12 19:28:33 +00:00
Linus Tufvesson
2947145c0c Add an exception to setProperties method signature
Bug: 136135417
Test: atest FrameworksCoreTests:DeviceConfigTest
Change-Id: I4c917033925040863aa2d3884ecb4f6e4fae6cbe
2019-12-12 17:58:25 +00:00
Shu Chen
68de61497c Merge "Adds widget namespace." 2019-12-12 00:52:50 +00:00
Marcus Hagerott
960c6cfc35 Improve comments for contacts local account
Document the path to the resources that are used.

Bug: 145690939
Test: mm -j frameworks/base

Change-Id: I724d41d0ab6c2b2aa0508a91b2f29a542ec533dd
2019-12-11 15:40:41 -08:00
Jay Aliomer
8da3a4ef59 Merge "Apply Dark theme changes when screen off only" 2019-12-11 20:29:49 +00:00
Shu Chen
36b19af9a5 Adds widget namespace.
Test: m -j.
Bug: 145528298
Change-Id: I6703f20dd1c13fb2eae5a930aae5835247c7a297
2019-12-11 11:44:51 +08:00
Hall Liu
45a351e262 Add change ID for platform compat
Add definition of the change ID for the APN permissions change for
platform compat.

Bug: 144631034
Test: compiles
Change-Id: I449c08c2b696030130a29b082e7e5a04bf69ec4a
2019-12-10 18:56:26 -08:00
Jeff Sharkey
5f116e1db1 Apply Dark theme changes when screen off only
this change waits to apply ui changes after screen off
battery manager sends updates and continuously updates the ui mode

this change also applies external changes to ui configurations when
the mode is actually changed. this resolves some perfromance regression
issues

Fixes: 145694649
Fixes: 145161355
Fixes: 145776479

Test: atest UiModeManagerService
Change-Id: Ib769df4302d1c09166e2dc456b8ced35daa4d0b7
2019-12-10 22:35:18 +00:00
Marcus Hagerott
66dc2a0ae8 Add methods for the contacts provider local account
Test: added CTS tests and built frameworks/base

Bug: 145690939

Change-Id: I09cdad87543053e58888e58de4d9ca88efb1792d
2019-12-10 09:50:45 -08:00
Betty Chang
a52bbd3624 Merge "[Telephony Mainline] Add SimInfo.CONTENT_URI instead SubscriptionManager.CONTENT_URI for mainline" 2019-12-09 02:25:57 +00:00
Jeff Sharkey
993b3ed571 Merge "Structure MediaProvider as an APEX." 2019-12-08 21:20:34 +00:00
Jeff Sharkey
679025e6a9 Merge "Initial support for subtitles and lyrics." 2019-12-07 16:15:29 +00:00
Jeff Sharkey
257b6bff6c Initial support for subtitles and lyrics.
Ideally audio and video files would embed information like subtitles
and lyrics directly into the container format, but alas the world
hasn't completely moved to Matroska yet.

Thus we're willing to recognize these side-car files and let them be
visible to apps that have gained the "Audio" or "Video" permissions.

Bug: 132359020, 143549606
Test: atest --test-mapping packages/providers/MediaProvider
Change-Id: I07513c48e245a00c0288a4b0fbee322cb02f49a9
2019-12-06 19:13:39 -07:00
Jeff Sharkey
5e374476c4 Adjust policy for "stale" volumes outside module.
We're not ready to commit to VolumeRecord in an API surface, so the
next best choice we have is to place the logic in MediaStore, which
is outside the Mainline module boundary.

This also has the benefit of giving partners control over exactly
what policy they want to use for expiring stale volumes.

Bug: 137890034
Test: atest --test-mapping packages/providers/MediaProvider
Change-Id: I677e4bfa6d08e32775e02c323debbaa90acf632b
2019-12-06 17:52:16 -07:00
Meng Wang
0bcd19acdb Merge "Remove telephony API usage: PhoneConstants.SUBSCRIPTION_KEY" am: ddf215dd58 am: cb0d068f28
am: 4f47555359

Change-Id: Iafa9facfbb0759916cd414b23da19f9a3c367a55
2019-12-06 00:25:55 -08:00
TreeHugger Robot
cf87cafa19 Merge "Bug report handler app via Bug Report Shortcut" 2019-12-06 01:45:31 +00:00
Meng Wang
4f47555359 Merge "Remove telephony API usage: PhoneConstants.SUBSCRIPTION_KEY" am: ddf215dd58
am: cb0d068f28

Change-Id: If502b6af63c532f5c87b384096680f7435018874
2019-12-05 15:37:24 -08:00
Alex Lin
a1248d313c Merge "Add country blacklist support" 2019-12-05 23:37:04 +00:00
Meng Wang
ddf215dd58 Merge "Remove telephony API usage: PhoneConstants.SUBSCRIPTION_KEY" 2019-12-05 23:23:51 +00:00
Jeff Sharkey
6697c2fe1c Merge changes from topic "matchz"
* changes:
  Add QUERY_ARG_RELATED_URI to aid media placement.
  Introduce QUERY_ARG_MATCH_* values for filtering.
2019-12-05 22:07:57 +00:00
Paul Chang
c40f578d02 Bug report handler app via Bug Report Shortcut
- Send intent (android.internal.intent.action.BUGREPORT_REQUESTED) to bug report handler app after pressing Bug Report Shortcut
- Add config "config_bugReportHandlerEnabled" to enable this feature
- Add config "config_defaultBugReportHandlerApp" to get the package of default bugreport handler app
- Add settings CUSTOM_BUGREPORT_HANDLER_APP to get the package of custom bugreport handler app
- Add settings CUSTOM_BUGREPORT_HANDLER_USER to get the user id of custom bugreport handler app

BUG:142921485
Test: After pressing Bug Report Shortcut in manual local test:
- the intent can be sent to bugreport handler app.
- the intent can be sent to Shell if the chosen and the default bugreport handler app can't handle it.
- the intent can be sent to system user profile's default bugreport handler app if the custom profile(like work profile) is removed.
Change-Id: Idc33b47f0cc65b90cbf648bda54a1d900fef007a
2019-12-06 05:52:09 +08:00
Meng Wang
646dcbd0ed Remove telephony API usage: PhoneConstants.SUBSCRIPTION_KEY
Replaced with SubscriptionManager.EXTRA_SUBSCRIPTION_INDEX. Both are set
in Intent extras by SubscriptionManager#putPhoneIdAndSubIdExtra.

Bug: 140908357
Test: make
Change-Id: I54a65ef81acc68c34af6263e929634f15f05e494
2019-12-05 12:12:20 -08:00
Zoey Chen
aeab4bda93 Merge "[Telephony mainline] Add SystemApi and NonNull annotation" am: 8e708ff380
am: ae95a26703

Change-Id: Id649a4f73b750d957eaa11b7ddf350c62b0d354a
2019-12-05 00:16:29 -08:00
Zoey Chen
8e708ff380 Merge "[Telephony mainline] Add SystemApi and NonNull annotation" 2019-12-05 07:58:03 +00:00
SongFerng Wang
1e7dc81c59 Merge "ServiceState merges voice and data into a single value" 2019-12-05 06:36:18 +00:00
Zoey Chen
3fcd72ed0a Merge "[TelephonyMainline] Cannot remove AUTHORITY_URI from the public API." 2019-12-05 03:49:33 +00:00
Jeff Sharkey
5fceb1574f Structure MediaProvider as an APEX.
Based on guidance from the Mainline team, we're placing the
MediaProvider APK inside a new APEX, as this will allow us to
move MediaStore.java inside the module boundary in a future CL.

As part of this restructuring, we need the pre-Mainline APK to
remain intact to preserve the user's media database.  There is
already logic in place from previous CLs that will migrate data
from the pre-Mainline to the post-Mainline world, including tests
to verify that the migration works.

Bug: 144247087
Test: atest --test-mapping packages/providers/MediaProvider
Change-Id: I4c45dcf019442013da8fce0223ed0be896dedef4
2019-12-04 16:28:42 -07:00
Alex Lin
7dd53c9aef Add country blacklist support
Adding a country blacklist, except for pixel2(walleye, taimen) will still uses whitelist
Bug: 144702079
Test: manually tested

Change-Id: I21c146556e5406ecf5c72f74767ea8d5fc643aec
2019-12-04 13:53:25 -08:00
Jack Yu
b496fd8765 Merge "Added sub id to SmsCbMessage" am: 258e925cd6
am: 35132f9a21

Change-Id: Ia2e5933ffc493c69efbac8da2ab993281e31867b
2019-12-04 09:47:53 -08:00
Jack Yu
258e925cd6 Merge "Added sub id to SmsCbMessage" 2019-12-04 17:34:01 +00:00
SongFerngWang
2b1ea8dcaf ServiceState merges voice and data into a single value
The voice and data is the same for operator name at ServiceState.
So ServiceState merges voice and data into a single value.
- merge the voice and data OperatorAlphaLong,OperatorAlphaShort, and
OperatorNumeric.

Bug: 144663018
Test: Build pass.
      atest NetworkControllerDataTest (PASS)
      atest ServiceStateTest (PASS)
      atest TelephonyMetricsTest (PASS)
      atest ServiceStateProviderTest (PASS)

Change-Id: I67e4a822c792bf9a9e174146ef8d65d9927d7612
2019-12-04 21:06:20 +08:00
Bernardo Rufino
ee7d195f03 Merge "Add MANAGE_APP_OVERLAY_PERMISSION intent action" 2019-12-04 10:42:34 +00:00
changbetty
c14ee3388e [Telephony Mainline] Add SimInfo.CONTENT_URI instead SubscriptionManager.CONTENT_URI for mainline
Bug: 144972924
Test: make
Change-Id: I86c39f4a353412a66934b735957d5d06c478fe8e
2019-12-04 17:55:14 +08:00
zoey chen
1acbb9c031 [Telephony mainline] Add SystemApi and NonNull annotation
Bug: 143860012
Test: make
Change-Id: I619d6ba04cb28830e3995feb02ffcb592ff65818
Merged-In: I619d6ba04cb28830e3995feb02ffcb592ff65818
2019-12-04 11:40:07 +08:00
zoey chen
9ffc6559a7 [TelephonyMainline] Cannot remove AUTHORITY_URI from the public API.
Bug: 143860012
Test: make
Change-Id: I952a5f20a1c34b3f1cabeb8c2bde6e2b85f4993d
2019-12-04 11:39:51 +08:00
Jack Yu
29dfebb84c Added sub id to SmsCbMessage
Added a new field subscription id to SMS
cell broadcast message.

This is the preliminary step of deprecating
CellBroadcastMessage class.

Bug: 144891074
Test: Manual

Merged-In: I23f61e77f6a9a16ce77f7892ba96fd7485c555a4
Change-Id: I23f61e77f6a9a16ce77f7892ba96fd7485c555a4
(cherry picked from commit 750b8b1972)
2019-12-03 11:43:59 -08:00
Jack Yu
fe903fb842 Merge "Code clean up" 2019-12-03 19:10:34 +00:00
Alan Stokes
a5ca0cc2c1 Merge "Delete PACKAGE_VERIFIER_ENABLE setting." 2019-12-03 12:22:19 +00:00
Jack Yu
21effc8643 Code clean up
Remove database version 1~11 support since the format hasn't changed
in the past 7 years.

Bug: 135956699
Test: Manual
Change-Id: I367124471f16073bb47a31c094d161d36969acc1
2019-12-02 23:38:26 -08:00
Zongheng Wang
4d701d0101 Merge "Move Bluetooth specfic APIs called in Settings to BT DatabaseManager" am: 3908351777
am: 6b30bf8a7f

Change-Id: I237a8c05c9e09cc09a4a096734c6af556b9bc283
2019-12-02 14:19:52 -08:00
Zongheng Wang
6b30bf8a7f Merge "Move Bluetooth specfic APIs called in Settings to BT DatabaseManager"
am: 3908351777

Change-Id: I75c245ec452cc8b3918143500ea7f1dad7b0baa7
2019-12-02 14:15:58 -08:00
Treehugger Robot
3908351777 Merge "Move Bluetooth specfic APIs called in Settings to BT DatabaseManager" 2019-12-02 22:07:21 +00:00
Zongheng Wang
02f82e233d Move Bluetooth specfic APIs called in Settings to BT DatabaseManager
Bug: 142004000
Test: Manual
Change-Id: I45f93ce35813fff9677c2d41e6f31622bc04ca09
Merged-In: I89b0ab44920b1deefe7523e5f19ed1c799c4c658
2019-12-02 19:53:08 +00:00
Bernardo Rufino
8fefb94621 Add MANAGE_APP_OVERLAY_PERMISSION intent action
In order to support system use-cases, such as when the user wants do
revoke SYSTEM_ALERT_WINDOW (SAW) permission via notification, we are
introducing a new intent, MANAGE_APP_OVERLAY_PERMISSION (notice the
"APP_"), that directs the user to the app-specific screen to toggle SAW
permission.

The intent can only be started if the caller has INTERNAL_SYSTEM_WINDOW
permission, which sysui and the system have. This is verified in CTS.

In this change we also update usage in NotificationGutsManager and
AlertWindowNotification.

Test: Builds
Test: atest TestManageOverlayPermissionIntents
      (cts in one of the topic CLs)
Test: Let an app draw on top of other apps, via its notification go to
      settings, verify that the screen for controlling such capability
      for the app is dispayed.
Bug: 145198756
Bug: 135920175

Change-Id: Iba29e1eaee729268a4dec9561946f6ed74b36619
2019-12-02 15:36:40 +00:00
TreeHugger Robot
0e4a72c35f Merge "Move Bluetooth specfic APIs called in Settings to BT DatabaseManager" 2019-11-28 03:46:40 +00:00
Zongheng Wang
eadcbd8f8a Move Bluetooth specfic APIs called in Settings to BT DatabaseManager
To resolve merge conflict for aosp/1175775

Bug: 142004000
Test: Manual
Change-Id: I89b0ab44920b1deefe7523e5f19ed1c799c4c658
2019-11-27 14:21:11 -08:00
Meng Wang
472a065d93 Merge "Move android.provider.Telephony to frameworks/base/core" am: 4d0df870cd am: 9b84a44f04
am: fba2c8041a

Change-Id: I9aab1a8bfe10a2fd661e0bd19452b4a66f6e1a2f
2019-11-27 13:44:06 -08:00