Commit Graph

21645 Commits

Author SHA1 Message Date
TreeHugger Robot
9ba4a5ceea Merge "Remove unneeded API." 2018-11-27 15:55:11 +00:00
Jeff Sharkey
a789183401 Merge "Iterate on storage permissions model." 2018-11-27 15:51:14 +00:00
TreeHugger Robot
18ff896138 Merge "Introduce Message.USER_LOCAL and added logic to map person to user id" 2018-11-27 13:44:39 +00:00
TreeHugger Robot
88dbb1b2d4 Merge "Make View#transformMatrixToLocal/Global public" 2018-11-27 12:53:16 +00:00
TreeHugger Robot
83026e5488 Merge "Introduce onNotificationExpansionChanged and onNotificationDirectReplied .. in NAS" 2018-11-27 12:21:43 +00:00
Abodunrinwa Toki
8df4152469 Merge "Introduce Translate intent." 2018-11-27 12:09:26 +00:00
Clara Bayarri
c127cbe76c Make View#transformMatrixToLocal/Global public
These methods are being reflected into and seem generally useful
to developers.

Bug: 117521349
Bug: 117521191
Test: new CTS in topic
Change-Id: I86e8a379e458aefe7fb2fe936b57eeeffa5ad42d
2018-11-27 09:37:23 +00:00
Felipe Leme
fc8b2460c3 Merge "Initial implementation of Augmented Autofill." 2018-11-27 06:46:20 +00:00
Felipe Leme
284ad1c3e2 Initial implementation of Augmented Autofill.
Augmented Autofill is a mechanism that will let a system-provided service
provide autofill suggestions when the stardand autofill can't.

Because the Augmented Autofill service is a system app, it has less restrictions
than the standard service; in particular, this service will be responsible for
drawing the autofill UI, although the framework will provide a mechanism to host
the window. Right now, it's creating a TYPE_APPLICATION_OVERLAY window in the
service process roughly below the focused view, but in the long-term it will
use the IME suggestion window to display it.

This CL provides the initial APIs and end-to-end workflow for the simplest
scenario, but it's still full of TODO's.

Test: atest CtsAutoFillServiceTestCases # to make sure it doesn't break it
Test: atest FrameworksCoreTests:SettingsBackupTest
Test: mmm -j150 packages/experimental/FillService &&\
  adb install -r ${OUT}/data/app/FillService/FillService.apk &&\
  adb shell settings put secure intel_service foo.bar.fill/.AiaiService &&\
  adb shell settings put global autofill_smart_suggestion_emulation_flags 2 &&\
  adb shell pm grant foo.bar.fill android.permission.SYSTEM_ALERT_WINDOW

Bug: 119638877

Change-Id: I8d59b4eab3e530cd89b81456681a72fdab532756
2018-11-27 05:09:06 +00:00
wilsonshih
968b30ee74 Support wallpaper on secondary displays.(4/N)
Provides a flag to let the system server and wallpaper picker know
if this wallpaper service supports multiple displays.

Bug: 115486823
Test: Manually test with modified wallpaper sample app.
Change-Id: I0c8b2c5d00bfd97d069511dda9965c557b5733c6
2018-11-27 04:47:46 +00:00
Hall Liu
497fe21a71 Merge "Make MBMS group call API changes" am: 50cc796c28 am: 000e80e747
am: b8ac0d31a9

Change-Id: I3635e7ced8397d225096016d00046755117a1337
2018-11-26 18:49:16 -08:00
Hall Liu
b8ac0d31a9 Merge "Make MBMS group call API changes" am: 50cc796c28
am: 000e80e747

Change-Id: Ia9f198cb0b66cc7690ba9ff11f677b27714dd31d
2018-11-26 18:12:59 -08:00
Xiangyu/Malcolm Chen
f1a39cde78 Merge "Remove parentSubId and define API to set groupSubId" am: d413b5c713
am: e1015e70c4

Change-Id: I4ed0c97ac3961da37397ba1bd0ea24535a6764b8
2018-11-26 17:27:21 -08:00
Hall Liu
50cc796c28 Merge "Make MBMS group call API changes" 2018-11-27 01:06:55 +00:00
Xiangyu/Malcolm Chen
d413b5c713 Merge "Remove parentSubId and define API to set groupSubId" 2018-11-27 00:24:00 +00:00
Roshan Pius
d5f319235b Merge "WifiNetworkConfigBuilder: Add support for SAE, OWE & SuiteB" 2018-11-27 00:13:42 +00:00
Soonil Nagarkar
176d5a2244 Merge "Deprecate location provider status callbacks" 2018-11-26 23:48:12 +00:00
Jordan Liu
5333436303 Merge "Expose ApnService as a SystemApi and use subId arg" am: 0e706db965
am: 6a0161a184

Change-Id: Ia1abe2d229a034ba0a77ac3dd7034ff3c13dde55
2018-11-26 15:40:03 -08:00
Dichen Zhang
898dd65029 Merge "Revert "Make AudioManager.generateAudioSessionId() static"" 2018-11-26 23:34:18 +00:00
Soonil Nagarkar
94749f7ad1 Deprecate location provider status callbacks
Deprecate and remove logic around location provider status.

Bug: 118885128
Test: Tested manually on device
Change-Id: I68289cb5ed22e66532847758c36155a4ce607bbc
2018-11-26 23:19:00 +00:00
Jordan Liu
0e706db965 Merge "Expose ApnService as a SystemApi and use subId arg" 2018-11-26 22:47:52 +00:00
Hall Liu
c81cba4e2b Make MBMS group call API changes
Change the API to respond to API council comments
See bug for details

Bug: 117145859
Test: CTS
Change-Id: I4342e6e95da57fbcd550c571357ff7bc1923b70a
2018-11-26 14:37:56 -08:00
Malcolm Chen
aea9b02a22 Remove parentSubId and define API to set groupSubId
Bug: 118349116
Test: unittest
Change-Id: I539a67df8f30c2f58d87a3417f78fef8b43ff56d
Merged-In: I539a67df8f30c2f58d87a3417f78fef8b43ff56d
2018-11-26 14:13:10 -08:00
TreeHugger Robot
9d7964b973 Merge "Add MIMETYPE_AUDIO_AC4 support in MediaFormat" 2018-11-26 22:11:24 +00:00
Youming Ye
8b84998fff Merge "Add CarrierConfig to hide Preset APN setting details" am: 4d73d87d83 am: e7e0dcdabe
am: 038ee2644b

Change-Id: I7c848ce780f65e5f354db0221456b2d01199ab6b
2018-11-26 14:08:29 -08:00
TreeHugger Robot
b0851aef24 Merge "Add Notification.Builder.setAllowSystemGeneratedContextualActions()." 2018-11-26 21:59:33 +00:00
Youming Ye
038ee2644b Merge "Add CarrierConfig to hide Preset APN setting details" am: 4d73d87d83
am: e7e0dcdabe

Change-Id: I8952ee0f6287f7a64075a2d633b8adf29d857f01
2018-11-26 13:51:16 -08:00
Joel Galenson
df0a90befd Remove unneeded API.
jsharkey pointed out that this functionality can be replicated through
Context.createPackageContextAsUser().getPackageManager().getPackageInfo(),
so this isn't needed anymore.

Bug: 119811056
Test: Replace callers of this API.
Change-Id: I72b54b9dbe6b66f360bd5105a8628c28d92f9ed2
2018-11-26 13:36:06 -08:00
Dichen Zhang
f50b236b95 Revert "Make AudioManager.generateAudioSessionId() static"
This reverts commit 2d767d2f8b.

Bug: 119775358
Test: MediaPlayer2Test, androidx media2 integration
Change-Id: I1ea474a6fd02f54e8fa983edf7e188cc732fa7cc
2018-11-26 13:30:46 -08:00
Youming Ye
4d73d87d83 Merge "Add CarrierConfig to hide Preset APN setting details" 2018-11-26 21:14:14 +00:00
TreeHugger Robot
6d45ba0491 Merge "Simplified View.onProvideContentCaptureStructure()" 2018-11-26 19:17:02 +00:00
Jeff Sharkey
9787a9459d Iterate on storage permissions model.
This change updates the permissions design to use app-ops for
controlling write access, which is only extended to the default app
for a particular collection type.

Bug: 119713234
Test: atest android.appsecurity.cts.PermissionsHostTest
Test: atest android.appsecurity.cts.ExternalStorageHostTest
Test: atest cts/tests/tests/provider/src/android/provider/cts/MediaStore*
Change-Id: I40811ff175b3b8410b58ed901948a23a56f8a8c2
2018-11-26 12:00:35 -07:00
Tony Mak
f99ee17fc0 Introduce Message.USER_LOCAL and added logic to map person to user id
1. Introduce Message.USER_LOCAL to allow caller to specify which
   message is from the local user.

2. TextClassifierImpl will now encode the Person object to a user
   id.

3. Fixed a bug in Person.equals check

BUG: 111437455
BUG: 111406942

Test: atest frameworks/base/core/tests/coretests/src/android/view/textclassifier/ActionsSuggestionsHelperTest.java

Change-Id: I6629f42244a402fa210f87afa88a629c2ca4a510
2018-11-26 18:33:16 +00:00
ybai
14d2d59f1c Add MIMETYPE_AUDIO_AC4 support in MediaFormat
Add support for MIMETYPE_AUDIO_AC4 in MediaCodecInfo

Bug: 119312182
Test: make offline-sdk-docs

Change-Id: Ia6fc708886e2198bead31ac04c04a679456a3527
2018-11-26 10:00:20 -08:00
Tony Mak
eda84a7b5b Introduce onNotificationExpansionChanged and onNotificationDirectReplied ..
in NAS

Also, avoid the code duplication around all the notifyAssistant* methods
by pulling out the common piece of code to notifyAssistantLocked.

Bug: 111437455
Bug: 111406942

Test: Observe logs from ExtServices when a notification is expanded
      / direct replied.
Test: atest NotificationManagerServiceTest

Change-Id: I5e135d704763ecf847f82a4ff7ffe439fa56fb5c
2018-11-26 17:05:50 +00:00
TreeHugger Robot
750b234344 Merge "Managed System Updates API" 2018-11-23 18:07:18 +00:00
Neda Topoljanac
19f291660d Managed System Updates API
Adding API to install a system update from a file on the device.

Test: manual in TestDPC, CTS tests for negative cases: atest com.android.cts.devicepolicy.DeviceOwnerTest#testInstallUpdate

Fixes: 116511569

Change-Id: I34b5c6344301a9d2d64c98dedc4ed5e4a75c57d1
2018-11-23 16:28:07 +00:00
TreeHugger Robot
457333a54a Merge "Add a new getPackageInfoAsUser as a SystemApi." 2018-11-23 15:05:59 +00:00
Abodunrinwa Toki
d531f70d30 Merge "ConversationActions Config installer." 2018-11-22 16:02:54 +00:00
David Brazdil
7149b1e88c Merge "Create AppComponentFactory.instantiateClassLoader API" am: 67c6ab38ba
am: 060ec73ff2

Change-Id: I7c9f5fa3a9b1992b79cb26f77d03fddbf1ec6ff2
2018-11-22 03:50:07 -08:00
TreeHugger Robot
c61363e7a2 Merge "Add detectLanguage and suggestConversationActions to TCS" 2018-11-22 11:16:30 +00:00
David Brazdil
67c6ab38ba Merge "Create AppComponentFactory.instantiateClassLoader API" 2018-11-22 11:09:15 +00:00
David Brazdil
eaba86819f Merge "Update public API after libcore InMemoryDexClassLoader change" am: a21de6f376 am: e8fdc7a52a
am: e3ec08d1ae

Change-Id: Iea58dbf279d6623040f43a2d8dc27b8a253626d8
2018-11-22 02:55:42 -08:00
David Brazdil
e3ec08d1ae Merge "Update public API after libcore InMemoryDexClassLoader change" am: a21de6f376
am: e8fdc7a52a

Change-Id: I68034e435ce47caf2dd5bbf1f57af0b889b4fd55
2018-11-22 02:42:23 -08:00
Gustav Sennton
761884ce27 Add Notification.Builder.setAllowSystemGeneratedContextualActions().
If an app doesn't add any smart replies or smart (contextual) actions to
their (message) notifications the Android platform fills in smart
replies and actions for the app.
With this CL we add a way to opt out of system generated contextual
actions.

Bug: 119765729
Test: atest NotificationContentViewTest
Change-Id: I6190fd197f74b8353f7113f2d8ba86068c2b78ab
2018-11-22 10:27:27 +00:00
David Brazdil
a21de6f376 Merge "Update public API after libcore InMemoryDexClassLoader change" 2018-11-22 10:09:19 +00:00
taiki tsutsumi
2ee968289e Add CarrierConfig to hide Preset APN setting details
Add new key to hide Preset APN setting details. When the key is set to
true, Preset APN is still shown and selectable in APN list, however,
user cannot enter APN editor view. It means details of Preset APN will
be hidden from user.

Test: manual - check Preset APN setting details are hidden
Bug: 115453290
Change-Id: I8a5c6f92f876d349b304acf89b4ffab86ff3f24b
2018-11-21 15:41:49 -08:00
Joel Galenson
ad219787cc Add a new getPackageInfoAsUser as a SystemApi.
This is needed so the PermissionController can differentiate between
multiple versions of the same app.

Bug: 119811056
Test: Call API.
Change-Id: I19150e1c8e5f204a846500cfe0021da742235213
2018-11-21 15:25:17 -08:00
Abodunrinwa Toki
4bad09cd1d Introduce Translate intent.
Action: ACTION_TRANSLATE
Text: EXTRA_TEXT

TODO: Consider introducing a "translate" schema to pass the text to
translate instead of using a string extra to define this.

Bug: 116020587
Test: manually tested by selecting foreign language text and watching
      for a "Translate" action.
Change-Id: I046157f4b3e1aa60afaf3f123fdeecf406f712dc
2018-11-21 21:01:17 +00:00
Brad Ebinger
a5019f8d8a Merge "Expose ImsMmTelManager APIs as SystemApi" am: 8a3518cc90 am: 674804fcff
am: c61177a53e

Change-Id: I5c3a1d8ece83eb9dd7eae4151b77f0d70b6b7b6a
2018-11-21 11:46:25 -08:00