Commit Graph

21999 Commits

Author SHA1 Message Date
Narayan Kamath
2c07da7945 Merge "Add ModuleInfo class" 2018-12-13 17:34:24 +00:00
Olivier Gaillard
f2aff2c42c Merge "Make work source APIs visible to system apps." 2018-12-13 09:04:25 +00:00
Hyundo Moon
339df28878 Merge "AML: Make config_mediaMetadataBitmapMaxSize as @SystemApi" 2018-12-13 06:52:31 +00:00
TreeHugger Robot
e64ba8b491 Merge "fragileUserData-apps might keep data on uninstall" 2018-12-13 06:24:34 +00:00
Jordan Liu
6f6fbb09db Merge "Add API to get card ID for default eUICC" am: 97c68169b8 am: b957efea96
am: f59b035894

Change-Id: I873ce26013e2c9f4fa84b4fef07f33a5be983247
2018-12-12 21:07:19 -08:00
Jordan Liu
f59b035894 Merge "Add API to get card ID for default eUICC" am: 97c68169b8
am: b957efea96

Change-Id: Ic2f23ca2bd7721468207de9e3342d7808bf87fd3
2018-12-12 20:28:30 -08:00
Lifu Tang
8bac1090ee Merge "Undeprecate injector API to allow change summary" 2018-12-13 03:59:40 +00:00
TreeHugger Robot
8c93e2b28b Merge "Introduce EXTRA_FROM_TEXT_CLASSIFIER" 2018-12-13 02:10:46 +00:00
Tony Mak
c5a4612ffa Introduce EXTRA_FROM_TEXT_CLASSIFIER
To indicate the intent is from text classifier, so apps can log
the traffic from text classifier.

Test: atest IntentFactoryTest
Test: atest TextClassifierTest
BUG: 120944241

Change-Id: I6584504a39c0db3c1de1eaab6915b26b30adadcd
2018-12-13 02:09:08 +00:00
TreeHugger Robot
d348897131 Merge "Add getAccessibilityWindowId system process API" 2018-12-12 23:57:09 +00:00
TreeHugger Robot
4510b4444f Merge "Add system APIs to query intent components and application info." 2018-12-12 23:53:49 +00:00
Hai Zhang
8c7e93b1d0 Add system APIs to query intent components and application info.
This change adds the system APIs to query intent components and
application info, which is required for the Default apps UI in
permission controller to work for work profile.

Bug: 110557011
Test: build
Change-Id: I7e2d92f9ccae2e764a1ce0040a7f84bc4f21dbb5
2018-12-12 23:49:35 +00:00
TreeHugger Robot
a44e66a504 Merge changes from topic "reference_time_tc"
* changes:
  Populate person and reference time, uses more than the last message in NAS
  Pass reference time / locales of messages to the model
2018-12-12 23:30:02 +00:00
Jordan Liu
97c68169b8 Merge "Add API to get card ID for default eUICC" 2018-12-12 22:20:03 +00:00
Philip P. Moltmann
ae4a4b987b fragileUserData-apps might keep data on uninstall
If an app declares that is has flagile user data, all the user to choose
to keep the app-data on uninstall.

Test: Unistalled apps that set the new flag and app that did not.
      Verified that the KEEP_DATA flag was set when checkbox was
      clicked.
Change-Id: I032fb21854352bbc175934ae5eb68a1430b1d403
Fixes: 117578306
2018-12-12 13:37:44 -08:00
Varun Shah
fcfb51fa4e Merge "Moved getWellbeingPackage() from SystemApi to TestApi." 2018-12-12 21:34:53 +00:00
Youming Ye
dcd62ad6c3 Merge "Enable Telecom to bind third party InCallServices." 2018-12-12 21:18:35 +00:00
TreeHugger Robot
559ff8acbc Merge "New API for getting the screen lock complexity" 2018-12-12 21:12:43 +00:00
Hui Yu
b8f2dff7c6 Merge "UsageStats tracking of screen usage." 2018-12-12 20:51:00 +00:00
Michele Berionne
fe07ee9128 Merge "Remove @hide annotation from KEY_CARRIER_CONFIG_VERSION_STRING" am: ac9e1f5580 am: e4176ca234
am: eda9958c6d

Change-Id: Ief7fe2af1bc4bbf6b6028d5a801c1929c5f7a3a6
2018-12-12 11:46:41 -08:00
Michele Berionne
eda9958c6d Merge "Remove @hide annotation from KEY_CARRIER_CONFIG_VERSION_STRING" am: ac9e1f5580
am: e4176ca234

Change-Id: Idf096efcf9e5301e006cd144f3c31d7c5b5d670d
2018-12-12 11:36:25 -08:00
Lifu Tang
78e0756ece Undeprecate injector API to allow change summary
Bug: 120236748
Test: build, flash, and test manually
Change-Id: I96042f51ce3fe32d15596b026f802f89dabf8405
2018-12-12 11:30:31 -08:00
Yueming Wang
3dc2f1ef59 Merge "Add API to view calendar events cross profile." 2018-12-12 19:07:05 +00:00
Michele Berionne
ac9e1f5580 Merge "Remove @hide annotation from KEY_CARRIER_CONFIG_VERSION_STRING" 2018-12-12 18:58:28 +00:00
Hui Yu
03d1240ef3 UsageStats tracking of screen usage.
1. Add UsageStats Event types:
ACTIVITY_RESUMED is synonym to existing MOVE_TO_FOREGROUND.
ACTIVITY_PAUSED is synonym to existing MOVE_TO_BACKGROUND.
ACTIVITY_STOPPED when an activity becomes invisible on the UI.
2. In UsageStats.java, add API getLastTimeVisible() to report last time the
app is visible (ACTIVITY_RESUMED or ACTIVITY_PAUSED), add API getTotalTimeVisible()
to report total time the app is visible.
The existing API getLastTimeUsed() can report last time the app is in
foreground (AKA have focus).
The existing API getTotalTimeInForeground() can report total time the
app is in foreground (AKA have focus).
3. UsageStats.getTotalTimeVisible() can report screen usage for
split-screen mode and picture-in-picture mode.
4. Because in the same package, activity can be instantiated multiple times,
In UsageEvents.Event class, add a member mInstaceId for activity's
instance ID, add interface getInstanceId() to retrieve the instance ID.

Bug: 112002260
Test: frameworks/base/services/tests/servicestests/src/com/android/server/usage/UsageStatsDatabaseTest.java
atest frameworks/base/core/tests/coretests/src/android/app/usage/UsageStatsTest.java

Change-Id: Ibcef2488e9620804c9f9220b027f976e8fa0c98b
2018-12-12 10:07:14 -08:00
Chen Xu
b21a629f0b Merge "expose Carrier Id related APIs" 2018-12-12 18:02:52 +00:00
TreeHugger Robot
04c132139f Merge "Add AudioPresentation selection support for MediaCodec" 2018-12-12 17:54:40 +00:00
Rubin Xu
eb45862718 Merge "Add three new delegation capabilities for profile/device owner" 2018-12-12 17:47:12 +00:00
Bernard Chau
e958655829 New API for getting the screen lock complexity
Return parent profile screen lock complexity if unified challenge is used

Bug: 111173457
Test: atest FrameworksCoreTests:PasswordMetricsTest
      atest FrameworksServicesTests:DevicePolicyManagerTest
      atest CtsDevicePolicyManagerTestCases:com.android.cts.devicepolicy.PasswordComplexityTest
      manual test with sample app

Change-Id: I99f8bd644c5119590f49add98f216c4a527d6f2d
2018-12-12 17:43:49 +00:00
Ray Essick
447bedc7fa Merge "Opus Encoding plumbing" 2018-12-12 17:18:57 +00:00
Adrian Roos
d4f9f9f666 Merge "API: Clean up redundant and ineffective usages of SystemApi and TestApi" am: af0e1c2fa5
am: 963172ac83

Change-Id: I2251db66ef73d5b69c84b4e83f2788d2bc953eda
2018-12-12 08:44:43 -08:00
Milo Sredkov
fe2f96e01a Merge "Add setEditChoicesBeforeSending to RemoteInput" 2018-12-12 16:22:57 +00:00
Jeff Sharkey
8baa2c074f Merge "Mechanism for apps to gain write access to media." 2018-12-12 16:12:29 +00:00
Milo Sredkov
b2af7f978a Add setEditChoicesBeforeSending to RemoteInput
Allow apps to specify whether users should be able to edit smart replies
before sending them.

Bug: 111438374
Test: atest RemoteInputTest
Test: mp /vendor/google_experimental/users/cinek/Notify, post a notification with "Edit choices before send"
Change-Id: I9a37216916f05152d8ab7061ffa121948de0976a
2018-12-12 14:25:19 +00:00
Adrian Roos
6115769c16 API: Clean up redundant and ineffective usages of SystemApi and TestApi
Everything that is marked SystemApi or TestApi, but not @hide is still
part of the public SDK, it is therefore not sound to have that combination.

In the future, specifing such a combination will be considered an error
to prevent inadvertently exposing SystemApi and TestApi as public API.

Bug: 115333477
Change-Id: Ibd5d6a22862fdbc1e20a1cb3925280f5a682edea
Merged-In: Ibd5d6a22862fdbc1e20a1cb3925280f5a682edea
Test: METALAVA_PREPEND_ARGS="--error UnhiddenSystemApi" m checkapi
Exempt-From-Owner-Approval: API cleanup
2018-12-12 15:02:26 +01:00
Adrian Roos
e77ff79fdb Merge "API: Clean up redundant and ineffective usages of SystemApi and TestApi" 2018-12-12 13:43:34 +00:00
Tony Mak
82fa8d9451 Pass reference time / locales of messages to the model
1. It is required to set Person object when constructing a Message object
   now. As it is very important to know whether the message is from
   local user or remote user. Introduced PERSON_USER_REMOTE if
   the caller just want a simple way to specify a remote user.

2. Use detectLanguages to detect the locale of the messages
   If the model finds the detected language is not something
   it supports, model may suppress smart reply.

3. Pass the reference time to the model. So model can resolve
   the absolute time from a relative date string like "tomorrow 6pm".

BUG: 120809869

Test: atest ActionsSuggestionsHelperTest.java
Test: atest ConversationActionsTest.java

Change-Id: Ie079848e9b3d9bb8800f7f95d73e289e831968f8
2018-12-12 21:32:35 +08:00
TreeHugger Robot
d714138d89 Merge "Add new screen lock complexity permission" 2018-12-12 13:29:46 +00:00
Dario Freni
ec06c25360 Merge "Add Mock APIs for staged installs." 2018-12-12 11:55:01 +00:00
Seigo Nonaka
ab11e00449 Merge "Recompute PcT with existing PcT for different direction" 2018-12-12 11:34:13 +00:00
Olivier Gaillard
6dfdcf4334 Make work source APIs visible to system apps.
- Adds @SystemApi to the work source apis. Work source will help us to
better understand who is responsible for resources usage (starting with
cpu usage)
- Adds @SystemApi to the transact listener to allow system apps to
intercept outgoing transactions in order to the set work source.

Bug: 111534779
Test: n/a - just adding annotations
Change-Id: Ie86696228bb9df57f640b978a1d78439c99626d3
2018-12-12 10:29:05 +00:00
Todd Kennedy
3dbf83a23d Add ModuleInfo class
The ModuleInfo class contains details about mainline modules. We're
not sure about what kind of information we'll need, so, creating
a placeholder structure and accessor methods that can be adjusted
later.

While the package manager does not know anything about what a "module"
is, we use the package manager as convenience to not creating a new
MainlineManager class.

Bug: 119220828
Test: Workspace still builds
Change-Id: I42cbc5e119652edd3eda155ddef861e3e0889479
2018-12-12 10:19:03 +00:00
Xiangyu/Malcolm Chen
7475d9fc09 Merge "Add APIs to remove sub from a group and get subs in the same gorup." 2018-12-12 03:50:16 +00:00
TreeHugger Robot
f7e01a4ac4 Merge "Add API for querying haptic playback support." 2018-12-12 02:32:28 +00:00
Dario Freni
aac4ba4b24 Add Mock APIs for staged installs.
This CL just adds the isStaged setting on SessionParams, and if it is
set the session info are cached in a local variable. This allows
getStagedSession() (new APIs) to return the session information.

This should unblock upstream development while we implement the feature.

Test: adb install --staged, adb install-multi-package --staged. Wrote
small app to verify getStagedSessions returns correct info.
Bug: 118865310
Bug: 112669193
Bug: 120487127
Change-Id: I822be9e1737fe5cde6a6dd63621631cdef4f6fff
2018-12-12 01:20:04 +00:00
Brad Ebinger
ea93adecf8 Merge "Changes to IMS SS API to better fit API standards/" am: 91bd02534a am: 6825dce3fb
am: 15a54c386f

Change-Id: I19d878aee8e8e212015465aa31f3a35991b303fd
2018-12-11 16:47:09 -08:00
Jeff Sharkey
e99566eda8 Mechanism for apps to gain write access to media.
For apps that aren't the default gallery or music app, the new storage
model in Q only allows them to read media they don't own.  We
recognize there's a valid use-case for editing or deleting media
that an app doesn't own, but we want to get the user involved to
confirm the access grant.

This is implemented using a RecoverableSecurityException, so
existing apps can continue gracefully handling a SecurityException
that they recognize.  Apps that have become aware of the new
permissions model can extract the RemoteAction and invoke it to
get the user involved and gain access.

Bug: 111892459
Test: atest android.appsecurity.cts.ExternalStorageHostTest#testMediaEscalation
Change-Id: Ib34374197c8c1f5236ba8a1062065914e0a9e9f9
2018-12-11 17:34:11 -07:00
Brad Ebinger
15a54c386f Merge "Changes to IMS SS API to better fit API standards/" am: 91bd02534a
am: 6825dce3fb

Change-Id: Ib4341edece2bc0b1730ccd4e6c8312bca701aefa
2018-12-11 16:26:31 -08:00
jiabin
66f9e72e27 Add API for querying haptic playback support.
Bug: 111454766
Test: Manually test
Change-Id: Ic6a0aba877a417faf8ff0c9f2e7b0ea99e3d7fbf
2018-12-12 00:07:47 +00:00
Jeff Sharkey
5d952bf4b1 Merge "People still need the old method signatures." 2018-12-12 00:01:09 +00:00