Commit Graph

566851 Commits

Author SHA1 Message Date
Matt Reynolds
552dfe5c29 Add keylayout mapping for Luna controller (Bluetooth)
Add a keylayout mapping to support gamepad buttons and axes on the
Amazon Luna controller.

Buttons and axes are mapped according to
https://www.kernel.org/doc/Documentation/input/gamepad.txt except for
the Alexa Push-To-Talk button which is mapped to MEDIA_RECORD.

Bug: 183990549
Test: used the "Gamepad Tester" app and https://gamepad-tester.com in
Chrome to verify all mappings work.

Change-Id: I1921e501eea0ce398b79a32809efa63456074ed5
2021-05-20 15:01:11 -07:00
Lucas Lin
9639cd6242 Merge "Replace MAX_NETWORK_TYPE with TYPE_VPN" 2021-05-07 08:48:28 +00:00
Treehugger Robot
c8fd9b844b Merge "Move myself to emeritus section" 2021-05-06 22:24:55 +00:00
Wessam Hassanein
45087d31f8 Merge "Enable PerfettoJavaHeapStackProf in the zygote." 2021-05-06 21:08:01 +00:00
Rambo Wang
a863b0297b Merge "Make LocationAccessQuery's builder safer to use" 2021-05-06 18:45:03 +00:00
Seth Moore
27bc799e7e Merge "Don't re-wrap DeviceIdAttestationExceptions" 2021-05-06 17:09:56 +00:00
Treehugger Robot
44da0f67b4 Merge "Allow ART profile saver period to be parsed from sys props" 2021-05-06 16:01:15 +00:00
Treehugger Robot
9e7ac57a6c Merge "Cancel NotificationTimeout alarms when canceling notification" 2021-05-06 14:25:45 +00:00
Eran Messeri
d5296e3ec4 Move myself to emeritus section
Will no longer be actively developing Device Policy Manager code.

Bug: 187395769
Test: N/A
Change-Id: Ifed25031a8b57e22dec0c8c5e07e27a92431b13f
2021-05-06 15:13:18 +01:00
vichang
ffe7986d71 Merge "Copy StringPool to framework" 2021-05-06 11:16:09 +00:00
Nikita Iashchenko
0a632252af Merge "Rename getters and setters android.compat.Compatibility.ChangeConfig" 2021-05-06 09:14:14 +00:00
Les Lee
f437848713 Merge "wifi: Use new API for wifi data usage function" 2021-05-06 04:42:07 +00:00
lesl
fda6acc990 wifi: Use new API for wifi data usage function
For wifi, a old API: buildTemplateWifiWildcard will includes the merged
wifi which is included to mobile usage. It should not double count
again. Call new API: buildTemplateWifi with
NetworkId: NetworkTemplate.WIFI_NETWORKID_ALL
and null subscriberId to get non-merged wifi usage.

Test: atest -c DataUsageControllerTest
Test: Manual Test, wifi data usage count correctly.
Bug: 176396812
Merged-In: I047bc7dfe6a217c1a88faf3ed5c6783f33227c32
Change-Id: I047bc7dfe6a217c1a88faf3ed5c6783f33227c32
2021-05-06 09:19:41 +08:00
Seth Moore
c73fe01f16 Don't re-wrap DeviceIdAttestationExceptions
Instead of always wrapping errors in a DeviceIdAttestationException,
check to see if the underlying cause was originally a
DeviceIdAttestationException. If so, unwrap the cause and just re-throw
that, preserving the original error.

Bug: 183827468
Test: GtsGmsCoreSecurityTestApp
Change-Id: Iab78ccaff91dd1de615e1d2b18f709027aecd59e
2021-05-05 17:41:38 -07:00
Calin Juravle
f93ecde2fe Allow ART profile saver period to be parsed from sys props
Test: manual

Bug: 184714236
Bug: 185979271
Change-Id: I4ab069e8c4de9f73b7951845e7cb80bc00642e22
2021-05-05 17:15:38 -07:00
Cody Kesting
a5786a15e1 Merge changes I01ffdde2,Iecab1226
* changes:
  Set NOT_VCN_MANAGED capability for Networks in VcnMgmtSvc.
  Notify policy listeners when VCN subIds change.
2021-05-05 21:27:09 +00:00
Treehugger Robot
2a46c6491f Merge "update L photo size name with JPN_ prefix" 2021-05-05 20:36:53 +00:00
Hall Liu
6d3455e488 Make LocationAccessQuery's builder safer to use
Add new methods on LocationAccessQuery.Builder to make it harder to
screw up when using. Changes include:
* Mandatory specification of min sdk levels for enforcing both fine and
coarse permission
* Mandatory "are-you-sure" check when both fine and coarse are above the
base level (i.e. when there are api levels that are left unprotected)

Also adapt TelephonyRegistry's permission checks to follow these new
requirements on the builder.

Fixes: 157170257
Test: CTS, unit tests, manual
Merged-In: Ica8779dff4c671352b917a3ccc02cdd0e1c5856d
Change-Id: Ica8779dff4c671352b917a3ccc02cdd0e1c5856d
(cherry picked from commit d7c2351676)
2021-05-05 19:33:40 +00:00
Wessam Hassanein
f1d719b0a2 Enable PerfettoJavaHeapStackProf in the zygote.
This allows us to collect Java Heap Profiler data directly without
needing to set the flag similar to PerfettoHprof.

Test: Passing Tests
Local Testing

Bug: 160214819

Change-Id: Id4888107c7b12f076de8237fd42bab49319566b5
2021-05-05 11:55:34 -07:00
Kurtis Schlepp
11749564b1 update L photo size name with JPN_ prefix
Updates the Japanese Photo L media size name with JPN_ prefix

Test: L is present in API with updated name
Signed-off-by: Kurtis Schlepp <mopriadevteam@gmail.com>
Change-Id: Ib4e52b23571b166f6c000676fb81b4ac7c1f9a7a
2021-05-05 10:06:03 -07:00
Tom Natan
b9680bac79 Merge "Add an API method for clearing compat overrides on release builds" 2021-05-05 14:58:41 +00:00
Anton Hansson
c02168f5d1 Merge "Remove --ignore-classes-on-classpath argument" 2021-05-05 13:17:56 +00:00
Anton Hansson
26c843fd12 Remove --ignore-classes-on-classpath argument
This argument doesn't appear to alter the output.

Bug: 186197911
Test: diff metadata.zip, stubs.srcjar, annotations.zip before and after
Change-Id: I5147cf1f0658c78e5ab24952285c8fc1c036a55d
2021-05-05 11:11:57 +01:00
Treehugger Robot
44ab24bb22 Merge "CEC: Drop TODOs marked as fixed/obsolete" 2021-05-05 09:43:43 +00:00
Treehugger Robot
a1f337fe73 Merge "CEC: Drop obsolete method" 2021-05-05 09:43:12 +00:00
tomnatan
2697018f70 Add an API method for clearing compat overrides on release builds
This will be useful when we want to clear overrides for apps that are no longer needed regardless of the version that is installed on device, e.g., when an app is being uninstalled, when we want to rollback an override, or when we deprecate a change-id.

In addition, rename CompatChanges#setPackageOverride to
addPackageOverrides.

Bug: 183183372
Test: atest FrameworksServicesTests:CompatConfigTest
Test: atest FrameworksServicesTests:PlatformCompatTest
Change-Id: Iff416c8b4c88b5eddc9e21c73219198d23266fa1
2021-05-05 07:10:41 +00:00
lucaslin
2e5cfe4ebf Replace MAX_NETWORK_TYPE with TYPE_VPN
ConnectivityManager#MAX_NETWORK_TYPE is a hidden API which cannot
be accessed after ConnectivityManager becomes a part of mainline
module.
Use the max public network type - TYPE_VPN should be enough since
TYPE_* is deprecated and no longer extended.

Bug: 182859030
Test: 1. Remove "framework-connectivity.impl"
      2. cd frameworks/base/core/tests/bandwidthtests; mm
Change-Id: I27579a942a0424db647ad1f3383db78d5a0c69a9
Merged-In: I27579a942a0424db647ad1f3383db78d5a0c69a9
    (Cherry-picked from ag/14111130)
2021-05-05 05:41:50 +00:00
Cody Kesting
5b021003ac Set NOT_VCN_MANAGED capability for Networks in VcnMgmtSvc.
This CL updates VcnManagementService to set the NOT_VCN_MANAGED bit for
Networks that are not VCN-managed. This ensures that Networks correctly
regain the NOT_VCN_MANAGED bit after leaving a VCN.

Bug:
Test: atest FrameworksVcnTests CtsVcnTestCases
Change-Id: I01ffdde246e602296673675add58c47c92b15994
2021-05-04 17:01:25 -07:00
James Lin
d8ea14e052 Merge "Remove the unnecessary RCS API RcsFeature#removeCapabilityExchangeImpl" 2021-05-04 23:17:45 +00:00
Cody Kesting
2225648d47 Notify policy listeners when VCN subIds change.
This CL updates VcnManagementService to notify policy listeners
when the subIds for any VCN instances change. This is necessary to
ensure that NetworkFactories properly update their Networks in the
event that a Network comes up under an existing VCN are properly
marked as VCN-managed.

Bug: 187112989
Test: atest FrameworksVcnTests CtsVcnTestCases
Change-Id: Iecab1226119c8fd876131c381647267f18339db2
2021-05-04 15:57:32 -07:00
Baligh Uddin
7a622ea7eb Merge "Remove annotations that have been relocated" 2021-05-04 22:11:41 +00:00
Henrik Baard
ebe03fcb4b Cancel NotificationTimeout alarms when canceling notification
If alarms with long timeouts are created, there is a risk of a
crash in system_server because of alarm creation limit is reached:

java.lang.IllegalStateException: Maximum limit of concurrent alarms 500
reached for uid: 1000, callingPackage: android

To avoid this cancel alarms if Notifications are canceled.

Suggested-by: Snild Dolkow <snild@sony.com>

Bug: 186456631
Change-Id: I63343b9450fc817ec6a2f46329de346320463c46
2021-05-04 22:18:04 +02:00
James.cf Lin
1cad8f9faf Remove the unnecessary RCS API RcsFeature#removeCapabilityExchangeImpl
Bug: 184602965
Test: atest -c CtsTelephonyTestCases:android.telephony.ims.cts.ImsServiceTest
Change-Id: Iec5fffecb9a2b8e1fb9ec47608e8316ae844037a
2021-05-04 23:40:18 +08:00
Inseob Kim
3ea60e26f5 Merge "Add an api for platform sepolicy version to vintf" 2021-05-04 15:11:20 +00:00
Nikita Iashchenko
9ef9fab0a1 Merge "Rename MimeMap.Builder setter methods to match guidelines" 2021-05-04 13:20:15 +00:00
Inseob Kim
4055ce5313 Add an api for platform sepolicy version to vintf
PLATFORM_SEPOLICY_VERSION will be the latest version in system's
compatibility matrix. This change adds a function
getPlatformSepolicyVersion, which ultimately gets
PLATFORM_SEPOLICY_VERSION, just like getSepolicyVersion for vendor.

This will be used from the SELinux CTS.

Bug: 186596569
Test: atest CtsSecurityHostTestCases:android.security.cts.SELinuxNeverallowRulesTest
Change-Id: Ic7863ece9413b9a6a4a91ff42d3121935823fe8b
2021-05-04 12:53:52 +00:00
Grace Jia
9ef59ac901 Merge "Provide all active subscriptions when register default app providers." 2021-05-04 03:24:31 +00:00
Grace Jia
9eef1ea522 Provide all active subscriptions when register default app providers.
Telecom was using old form SimCallManager getting method which was not
MSIM aware. User may found they don't have necessary permissions to call
if they have both eSIM and pSIM activated. Provide all SimCallManager
for active subscriptions to PermissionManager so that all of them can
get proper permissions.

Bug: 172880421
Test: Manually test call function on MSIM device
Change-Id: I87b26bdb9e99274a8adaa64c72cfac0a61f946bd
2021-05-03 23:30:46 +00:00
Grace Jia
83bc8699a1 Merge "Add support for selected contacts device to device sharing." 2021-05-03 21:49:45 +00:00
Grace Jia
e2099469d2 Add support for selected contacts device to device sharing.
Bug: 163085177
Test: CTS tests
Change-Id: I4f6da463a29ba9cf067d36941a9b4e584012c817
Merged-In: I4f6da463a29ba9cf067d36941a9b4e584012c817
2021-05-03 12:19:27 -07:00
Junyu Lai
c4520f1398 Merge "Add doc to getNetworkCapabilities" 2021-05-03 03:16:24 +00:00
Baligh Uddin
3b92756733 Remove annotations that have been relocated
These annotations have been relocated to frameworks/libs/modules-utils.
This CL removes the files and updates necessary build rules.

Bug: 183133670
Test: TH
Merged-In: I024252070bd806d50d54377190fdc5cd5b4445e1
Change-Id: I834b9f5320e0b6fe8cb9feb7194c82085b805e07
2021-05-01 18:56:12 +00:00
Jack Yu
e4df5d375d Merge changes from topics "unthrottle_apm", "unthrottle_on_tac_changes"
* changes:
  Unthrottle data retry in some conditions
  Unthrottle all APNs on APM
2021-05-01 08:53:11 +00:00
Jack Yu
e740257a4a Unthrottle data retry in some conditions
1. Moved the APM unthrottle logic to DataThrottler.
2. Added conditional unthrottle when TAC changes.

Fix: 169648447
Test: Manual
Merged-In: I1a7e413015ccdff3d9358cc85605325a4bff3b33
Change-Id: I1a7e413015ccdff3d9358cc85605325a4bff3b33
(cherry picked from commit c8cf1b02a3)
2021-04-30 22:51:50 -07:00
Daniel Bright
86c11c1e69 Unthrottle all APNs on APM
Test: Toggle APM and check for unthrottle with logs
Bug: 176440863
Merged-In: I8ecc7a61a181df46f7283196cfaf2d28bbddb50f
Change-Id: I8ecc7a61a181df46f7283196cfaf2d28bbddb50f
(cherry picked from commit 781d41ad21)
2021-04-30 22:49:41 -07:00
Treehugger Robot
5a2abf1341 Merge "Trigger reevaluation of all requests when mobile data state changes" 2021-05-01 01:14:33 +00:00
Benedict Wong
9d8fd5d82a Trigger reevaluation of all requests when mobile data state changes
This change ensures mobile data state changes result in the reevaluation
of all NetworkRequests; ensuring that any requests that can be fulfilled
as a result of the mobile data state change start the relevant
GatewayConnections

Test: atest FrameworksVcnTests
Change-Id: I442ca2ee0fc8b9ad962a2491ddc3818535d9e042
2021-04-30 23:29:20 +00:00
Tyler Gunn
3b35faf805 Merge "Clarify API docs for setShouldScreenCallViaAudioProcessing." 2021-04-30 23:27:59 +00:00
Brad Ebinger
95fe9715bc Merge "Clarify DelegateManagerCallback based on API review" 2021-04-30 22:52:15 +00:00
Andy Hung
6a1812c30f Merge changes from topics "dra", "dts_uhd"
* changes:
  Audio: Add ENCODING_DRA
  Audio: Add ENCODING_DTS_UHD
2021-04-30 20:29:48 +00:00