Commit Graph

2213 Commits

Author SHA1 Message Date
TreeHugger Robot
11d5b29d7c Merge "Introduce VibrationEffectSegment" into sc-dev 2021-03-23 08:52:21 +00:00
TreeHugger Robot
baf818032a Merge "Rename "Network slicing" to "Enterprise network preference" in the 5G Slicing API" into sc-dev 2021-03-23 07:49:10 +00:00
Adam He
476e44e1f9 Merge "Add API for TranslationContext" into sc-dev 2021-03-23 05:12:29 +00:00
Ruslan Tkhakokhov
5db986d793 Merge "Add a field for transport properties to RestoreSet object" into sc-dev 2021-03-22 23:43:24 +00:00
Ruslan Tkhakokhov
3762670bb7 Add a field for transport properties to RestoreSet object
Android Framework needs to know for each RestoreSet provided by
BackupTransport the properties of the transport (e.g. device-to-device
transport, encryption) that was used to obtain the data in the restore
set in question.

Bug: 182986784
CTS-Coverage-Bug: 183441953
Test: atest FullBackupRulesHostSideTest
Change-Id: I07bc2d4eb3837390ea3b0aee769d143ab153335d
2021-03-22 23:42:47 +00:00
Sally Yuen
9ac5677b49 Merge "Update Notification content description API" into sc-dev 2021-03-22 22:05:18 +00:00
Shuo Qian
48be69a79d Rename "Network slicing" to "Enterprise network preference" in the 5G Slicing API
Test: Treehugger
Bug: 178655595
Change-Id: Ifbe6e5045f85fcf4b5ca2f941605796a788a8a60
2021-03-22 21:43:53 +00:00
Kweku Adams
db348d4435 Merge "Expose job stop reasons." into sc-dev 2021-03-22 21:36:31 +00:00
TreeHugger Robot
7d560e6619 Merge "Improvements of D2D API according to the review" into sc-dev 2021-03-22 21:27:20 +00:00
James Lin
7f65df99a5 Merge "UCE OPTIONS APIs updated" into sc-dev 2021-03-22 18:46:48 +00:00
Adam He
7c3a6e37a2 Add API for TranslationContext
* TranslationContext holds source/dest specs, replacing spec pairs in
methods.
* TranslationCapability holds information on the translation models, as well
as a helper method to generate a TranslationContext for creating
translators.
* TCapability is meant to hold information about the translation models, and
provide information/flag on what the translator can support, versus the
TContext which will indicate exactly which supported flags should be
used and activated by the models.
* Added TM.getTranslationCapabilities, and add/remove TCapabilityUpdateListener

Bug: 176208267
Test: atest CtsTranslationTestCases
Change-Id: I2ab7a3eadcbbc9e13f8f33bf9c51cda69f30fdb7
2021-03-22 11:38:50 -07:00
Kweku Adams
0aa5738423 Expose job stop reasons.
Provide the various reasons a job could be stopped (via onStopJob) so
developers can react accordingly.

Bug: 171305774
Test: atest frameworks/base/services/tests/mockingservicestests/src/com/android/server/job
Test: atest frameworks/base/services/tests/servicestests/src/com/android/server/job
Test: atest CtsJobSchedulerTestCases
Change-Id: I5a19e74d3924de449cc5e4de27445e25cf8e25f5
2021-03-22 11:18:36 -07:00
Sally
68820ca613 Update Notification content description API
Test: atest NotificationManagerTest, atest NotificationTest
Bug: 182216039
Change-Id: Idd1a20eea8ef97108a70a4063be5c757cafd5b57
2021-03-22 11:04:20 -07:00
Alireza Forouzan
fefc85a46b Merge "Add an API to getPhoneAccountHandle for a TelephonyManager" into sc-dev 2021-03-22 17:57:57 +00:00
Tyler Gunn
4fcf638eb9 Merge "Move Call state into Call.Details" into sc-dev 2021-03-22 17:19:22 +00:00
Lucas Dupin
c1615dffe1 Merge "Update system palette APIs" into sc-dev 2021-03-22 16:57:17 +00:00
TreeHugger Robot
a694f6c119 Merge "Update PowerExemptionManager APIs." into sc-dev 2021-03-22 16:56:39 +00:00
Jeff DeCew
d4fcc94923 Merge "Add BigPictureStyle.bigPicture(Icon)" into sc-dev 2021-03-22 14:56:53 +00:00
Treehugger Robot
69cd06014d Merge "Make isDataCapable a public API" am: 965d021bf5 am: abed1c46be am: 1d40d06532
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1629275

Change-Id: I8b83100d8d3945538b8fee0860bcf1d7cbbcaa91
2021-03-22 13:25:10 +00:00
Jack Nudelman
60a2143239 Merge "Add capability for thermal mitigation." am: 1cc1558ea6 am: 75c0c02fd4 am: f727323567
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1621704

Change-Id: I703c16f9d1ecaa5041072114b112600fcad92eff
2021-03-22 13:24:05 +00:00
Kholoud Mohamed
1ee4a4ecba Merge "Remove no longer needed QUERY_USERS permission" into sc-dev 2021-03-22 13:00:37 +00:00
Treehugger Robot
db77ba6c0e Merge "Add new @SystemApi for specifying AddressType and IRK" am: bf516b9e11 am: 6ec4bd694b am: 48107ad1a3
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1641559

Change-Id: Id8342097bc9fa720151a621342eab4d4813e0644
2021-03-22 12:30:16 +00:00
Anton Hansson
5672191039 Merge "Merge "Add VoPS support info for NR" am: 98763306a2 am: e6cbb031cd am: fd65c23661" into sc-dev 2021-03-22 12:12:25 +00:00
Treehugger Robot
965d021bf5 Merge "Make isDataCapable a public API" 2021-03-22 12:00:20 +00:00
Bernardo Rufino
04addcb189 Merge "Adjust ACSD APIs" into sc-dev 2021-03-22 11:39:08 +00:00
Jack Nudelman
1cc1558ea6 Merge "Add capability for thermal mitigation." 2021-03-22 11:38:10 +00:00
Hui Wang
d2dc4ae865 Merge "Add VoPS support info for NR" am: 98763306a2 am: e6cbb031cd am: fd65c23661
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1585530

Change-Id: Ide029f3f8603474b3f30c7fc250c50e25cea2323
2021-03-22 11:01:14 +00:00
Kevin Han
4939908629 Merge changes from topic "app_hibernation_permission" am: 4dfa5f8db4 am: c4d1d01adf am: 02c6b7ccd6
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1624868

Change-Id: Id8b6c9bd78b76c0ebb0b6249a41b9cec5c5b34bd
2021-03-22 10:59:19 +00:00
Chienyuan Huang
50421a5c83 Merge "Le Scan: Add ambient discovery mode (1/2)" am: 4a47532570 am: c1b4ca0ef5 am: fedc9228f3
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1629277

Change-Id: I14fe563d36d9f63e2a39cb33599a8587a3dba73c
2021-03-22 10:55:14 +00:00
Julia Reynolds
b7eee43f50 Merge "Provide more specific notification cancelation reasons" into sc-dev 2021-03-22 02:08:10 +00:00
Shubang Lu
f505c5d215 Merge "Unhide media metrics APIs" into sc-dev 2021-03-22 01:27:07 +00:00
Treehugger Robot
bf516b9e11 Merge "Add new @SystemApi for specifying AddressType and IRK" 2021-03-21 20:15:38 +00:00
Alireza Forouzan
32d484c8e0 Add an API to getPhoneAccountHandle for a TelephonyManager
This change allows the carrier privilege app to get the PhoneAccountHandle associated with its TelephonyManager without requiring the READ_PRIVILEGED_PHONE_STATE permission.

Bug: 182966851
Test: manual,CTS
Change-Id: I83392c58d241ff02d099170294278b1273f11571
2021-03-21 17:49:33 +00:00
SongFerng Wang
cfa02cd687 Merge "The phone didn't reload the allowed Network Type" 2021-03-21 16:45:59 +00:00
Lorenzo Colitti
744e27a39e Merge changes from topic "backport-connectivityresources"
* changes:
  Use module resources in NetworkNotificationManager.
  Cherry-pick some test changes from ag/13210542.
  Add connectivity protos to framework-connectivity
  Remove unused NetworkPolicyManagerInternal in CS
  Move connectivity AIDLs to android.net
  Migrate framework-connectivity internal resources
  Expose isUidNetworkingBlocked and isUidRestrictedOnMeteredNetworks
  Add multipath preference, background status API
2021-03-21 15:47:28 +00:00
Hongbo Zeng
80e8713490 Merge "Support getSlicingConfig() API for 5G Slicing Configuration" into sc-dev 2021-03-21 10:55:07 +00:00
Adam He
2e43f72bf1 Merge "Implement TranslationCallback with support for partial responses." into sc-dev 2021-03-21 09:45:33 +00:00
Hui Wang
98763306a2 Merge "Add VoPS support info for NR" 2021-03-21 04:12:52 +00:00
Jeff DeCew
03f22f7af8 Add BigPictureStyle.bigPicture(Icon)
Bug: 177336361
Test: cts + manual
Change-Id: Ie8eebcd749d4a4be46bd0b029e98a82635e5a096
2021-03-20 19:56:30 -04:00
Martin Brabham
045fe260e1 Add new @SystemApi for specifying AddressType and IRK
Bug: 178234318
Test: compiles and runs
Tag: #feature
Change-Id: Ib67e681af01260df98602003b2aca47963494c6f
2021-03-20 15:13:24 -07:00
Lucas Dupin
6110d25881 Update system palette APIs
UX landed on a format where we have 2 neutral palettes, and 3 accent
palettes. It's the ideal format to play with elevation and hue rotation,
in order to have a more vibrant and less muddy UI.

Fixes: 181986389
Bug: 173553055
Test: atest SystemPalette
Test: atest ThemeOverlayControllerTest
Test: atest ThemeOverlayApplierTest
Test: atest DeviceDefaultThemeTest
Change-Id: I80d3f7d1cc92e97efcb40fe6dc9f09918321d273
2021-03-20 14:50:26 -07:00
Lorenzo Colitti
f969377a96 Expose isUidNetworkingBlocked and isUidRestrictedOnMeteredNetworks
These methods are used by ConnectivityService for synchronous
calls such as getActiveNetworkInfo, isActiveNetworkMetered, etc.

These calls must call into NPMS and acquire the NPMS lock because
they are synchronous. They cannot use the stale copy of the
policy rules maintained by ConnectivityService, because if they
did, races like the following could occur:

1. App gets broadcast/callback/....
2. App calls isActiveNetworkMetered or other synchronous method.
3. ConnectivityService's copy of the rules is out of date, so the
   call returns stale information that the UID is still blocked.
4. The app thinks it has no networking, and does not call the
   synchronous method again until some other event occurs,
   potentially much later.

Bug: 176289731
Test: passes existing tests in ConnectivityServiceTest
Change-Id: I4ad0ca60431fe3702be85332530b6e93728d55e7
Merged-In: I4ad0ca60431fe3702be85332530b6e93728d55e7
2021-03-20 22:23:23 +09:00
Remi NGUYEN VAN
00b8d2cf37 Add multipath preference, background status API
Add APIs for getMultipathPreference and getRestrictBackgroundStatus.
Both are used by Connectivity to back the external
ConnectivityManager.getRestrictBackgroundStatus, and
ConnectivityManager.getMultipathPreference APIs.

Test: atest CtsNetTestCases
      atest ConnectivityServiceTests
      atest NetworkPolicyManagerServiceTest
Bug: 176289731
Change-Id: I8a03162b2f6691086bb64e75ffd354cdfca7f86a
Merged-In: I8a03162b2f6691086bb64e75ffd354cdfca7f86a
2021-03-20 22:23:16 +09:00
Jeff Sharkey
7be2cf8c4b Merge "Surface "neverForLocation" through public API." into sc-dev 2021-03-20 03:01:08 +00:00
Julia Reynolds
972df6e950 Provide more specific notification cancelation reasons
For S+ apps

Test: CTS
Fixes: 175319604
Change-Id: I836b6632007224381a181add54e3c36a39466d4b
Merged-In: I836b6632007224381a181add54e3c36a39466d4b
2021-03-20 02:05:06 +00:00
Varun Shah
97b8b34117 Update PowerExemptionManager APIs.
Expose #getAllowListedAppIds.

Rename #removeFromAllowList to #removeFromPremanentAllowList.

Make arguments for #addToTemporaryAllowList and its variant consistent.

Fixes: 183052977
Test: m
Change-Id: Ifa11c1a870fd0f426c6b8c953bc115a95eae0eba
2021-03-19 19:01:32 -07:00
Kevin Han
4dfa5f8db4 Merge changes from topic "app_hibernation_permission"
* changes:
  Add API to get hibernating packages
  Add MANAGE_APP_HIBERNATION permission
2021-03-20 01:37:29 +00:00
shubang
be0b58d62a Unhide media metrics APIs
1. playbackId class
2. metrics bundle for future backwards compatibility
3. new enums and fields

Bug: 167036690
Test: atest android.media.metrics.cts
Change-Id: I09889dfd247017ee43fb833d9df98420dccf54a6
2021-03-19 18:34:47 -07:00
Andy Hung
64e333a250 Merge "AudioTrack: get/setStartThresholdInFrames" 2021-03-20 01:04:28 +00:00
Chienyuan Huang
4a47532570 Merge "Le Scan: Add ambient discovery mode (1/2)" 2021-03-20 00:26:04 +00:00