Commit Graph

661375 Commits

Author SHA1 Message Date
Treehugger Robot
200dfd387f Merge "Correct volume control symbol for BLE" 2022-03-03 02:50:15 +00:00
Treehugger Robot
2b65ebc340 Merge "Add an optional extra field description for ACTION_CHANGE_DEFAULT" 2022-03-03 02:34:41 +00:00
Frank Li
411168d77b Merge "[MS68.3] Address comments at aosp/1958144" 2022-03-03 02:26:53 +00:00
Chiachang Wang
d734ce3202 Merge "Rename getRequiresInternetValidation to isInternetValidationRequired" 2022-03-03 00:10:54 +00:00
Treehugger Robot
0239107ed5 Merge "Fix LicenseHtmlGeneratorFromXml miss files header" 2022-03-02 21:44:33 +00:00
Chaohui Wang
c5dcbc29ad Fix LicenseHtmlGeneratorFromXml miss files header
Bug: 219375421
Test: Robolectric
Change-Id: I71d24e843e7c5c0c0c5ca6ce9b4e6da08b79f757
2022-03-02 11:18:09 -08:00
Sandro Montanari
31f779f949 Merge "Add /metadata info on dumpsys diskstats and StatsPullAtomService" 2022-03-02 18:22:28 +00:00
Nicolas Geoffray
9cd68de124 Merge "Bug fix compiling secondary dexes from cmd line" 2022-03-02 17:08:52 +00:00
Bernardo Rufino
15b7548d05 Merge "Adjust Class<T> parameter bounds in new Bundle APIs" 2022-03-02 17:00:31 +00:00
Kanyinsola Fapohunda
8c30992302 Merge "Add kanyinsola to OWNERS file" 2022-03-02 15:03:44 +00:00
Neil Fuller
8ac370e63f Merge "Command-line interface: NetworkTimeUpdateService" 2022-03-02 13:46:14 +00:00
Rubin Xu
2f178de076 Merge "Fix inaccuracy in biometric timeout" 2022-03-02 13:28:08 +00:00
Frank Li
8e7b0f1a00 Merge "[SUBID01-0]Grow NetworkIdentity to include a new mSubId field" 2022-03-02 12:26:11 +00:00
Tom Hsu
882c2864f3 Merge "[Tethering] Add action of carrier unsupported dialog." 2022-03-02 11:28:50 +00:00
Kanyinsola
44e00a594e Add kanyinsola to OWNERS file
Test: None
Change-Id: Ib6e86f179b03db2daa2ca6afe4a118786cfe0a43
2022-03-02 11:13:34 +00:00
sandrom
f76f5842a4 Add /metadata info on dumpsys diskstats and StatsPullAtomService
Bug: 208676063
Test: manual tests
Change-Id: Ice3b706222aa1f77beadb1b9f4ae93f0d796a0b0
2022-03-02 08:08:23 +00:00
Frank Li
2da74e0820 Merge "[DU03-4]Add NETWORK_STACK Permission check for NetworkStatsService API" 2022-03-02 07:48:45 +00:00
Paul Hu
1d30d5d92e Merge "Rename framework-connectivity-tiramisu to framework-connectivity-t" 2022-03-02 07:11:25 +00:00
Treehugger Robot
56985cebe1 Merge "Move BluetoothProfileConnectionInfoTest to cts" 2022-03-02 03:37:46 +00:00
lifr
c8d48831b9 [SUBID01-0]Grow NetworkIdentity to include a new mSubId field
In the previous design of NSS and NPMS, those only had IMSI to identify
the cell network. Now the telephony has created the "subId" handle,
which is the preferred mechanism for identifying subscribers.

This commit adds NetworkStats support for subscriberId as a part of
the network identity key

Bug: 80526261
Test: atest NetworkTemplateTest NetworkStatsCollectionTest
            NetworkStatsServiceTest NetworkIdentityTest
            NetworkStatsDataMigrationUtilsTest

 (cherry-picked from ag/16825721)

Change-Id: Ie1fe81006555dbcca4b62457fa6c319f04b4576d
Merged-In: Ie1fe81006555dbcca4b62457fa6c319f04b4576d
2022-03-02 11:20:09 +08:00
Chiachang Wang
b1dc9fc8d8 Rename getRequiresInternetValidation to isInternetValidationRequired
Update naming from getRequiresInternetValidation to
isInternedValdiationRequired. This addresses API
review feedback.

Bug: 220129160
Test: atest FrameworksNetTests
CTS-Coverage-Bug: 220129160
Change-Id: I9e25890af6ed73538e9e44381bf05d587808c8de
2022-03-02 01:01:20 +00:00
Colin Cross
a789b92644 Merge "Add Build.Version.RELEASE_OR_PREVIEW_DISPLAY" 2022-03-02 00:01:05 +00:00
Treehugger Robot
88b3357538 Merge "Reverted the ApnSetting behavior" 2022-03-01 22:59:11 +00:00
Jack Yu
ba84372d08 Reverted the ApnSetting behavior
Returning null is already a behavior mentioned in the
public API document. Reverted the behavior back to be consistent
with Android 12.

Fix: 201089892
Test: atest CtsDevicePolicyManagerTestCases
Merged-In: Id4c8b41b23adfe931b9953113f7175a11703dc10
Change-Id: Id4c8b41b23adfe931b9953113f7175a11703dc10
2022-03-01 13:52:05 -08:00
tom hsu
ad950aa3a2 [Tethering] Add action of carrier unsupported dialog.
Bug: 161206517
Test: local manual testing
Test: added cts test for new activity
Change-Id: I0223d262817088b4eb8b62612fbb51dcfb98f653
2022-03-01 20:58:58 +00:00
Treehugger Robot
76cee808e2 Merge "Keystore: Support Curve 25519 in the SPI layer" 2022-03-01 19:23:21 +00:00
Frank
a1706b4ef8 [MS68.3] Address comments at aosp/1958144
Test: atest TrafficStatsTest NetworkUsageStatsTest FrameworksNetTests
Bug: 204830222

(cherry-picked from ag/16813003)

Change-Id: I5a54b44294021d64d8506eeb570db0db8544472a
Merged-In: I5a54b44294021d64d8506eeb570db0db8544472a
2022-03-02 03:05:53 +08:00
Frank
767c2e7907 [DU03-4]Add NETWORK_STACK Permission check for NetworkStatsService API
1. getUidStatsForTransport API

Bug: 210066922
Test: atest BatteryStatsImplTest WifiPowerCalculatorTest
            MobileRadioPowerCalculatorTest NetworkStatsServiceTest

(cherry-picked from ag/16816095)

Change-Id: I022c34b5af87fe3ff6857ea264bac2f7098eaed4
Merged-In: I022c34b5af87fe3ff6857ea264bac2f7098eaed4
2022-03-02 02:30:51 +08:00
Neil Fuller
c740b09828 Merge "Add explicit OWNERS for SystemClock and related classes" 2022-03-01 17:36:48 +00:00
Neil Fuller
56cec99389 Merge "Adjust OWNERS to reflect new ownership" 2022-03-01 17:36:04 +00:00
Treehugger Robot
1f14b0cc3d Merge "Adds an OWNERS file for TrustTests" 2022-03-01 17:02:10 +00:00
Daniel Jin
be53aa2b85 Bug fix compiling secondary dexes from cmd line
Summary:
Currently, any attempts to compile secondary dexes from the command line
will fail, saying the reason is invalid.

For example, this command:
adb shell cmd package compile -r cmdline --secondary-dex
com.facebook.wakizashi

will fail with this error message/stack trace:
Exception occurred while executing 'compile':
java.lang.IllegalArgumentException: reason -1 invalid
	at com.android.server.pm.PackageManagerServiceCompilerMapping.getReasonName(PackageManagerServiceCompilerMapping.java:146)
	at com.android.server.pm.PackageDexOptimizer.dexOptSecondaryDexPathLI(PackageDexOptimizer.java:515)
	at com.android.server.pm.PackageDexOptimizer.dexOptSecondaryDexPath(PackageDexOptimizer.java:437)
	at com.android.server.pm.dex.DexManager.dexoptSecondaryDex(DexManager.java:548)
	at com.android.server.pm.PackageManagerService.performDexOpt(PackageManagerService.java:12817)
	at com.android.server.pm.PackageManagerService.performDexOptSecondary(PackageManagerService.java:12806)
	at com.android.server.pm.PackageManagerShellCommand.runCompile(PackageManagerShellCommand.java:1812)
	at com.android.server.pm.PackageManagerShellCommand.onCommand(PackageManagerShellCommand.java:222)
	at com.android.modules.utils.BasicShellCommandHandler.exec(BasicShellCommandHandler.java:97)
	at android.os.ShellCommand.exec(ShellCommand.java:38)
	at com.android.server.pm.PackageManagerService.onShellCommand(PackageManagerService.java:24612)
	at android.os.Binder.shellCommand(Binder.java:950)
	at android.os.Binder.onTransact(Binder.java:834)
	at android.content.pm.IPackageManager$Stub.onTransact(IPackageManager.java:4818)
	at com.android.server.pm.PackageManagerService.onTransact(PackageManagerService.java:8506)
	at android.os.Binder.execTransactInternal(Binder.java:1184)
	at android.os.Binder.execTransact(Binder.java:1143)

This is because a bug was introduced in this change:
7e477ab0f8

that removed the PackageManagerService.REASON_UNKNOWN (which was
previously equal to -1).
This change forgot to include the new replacement reason,
PackageManagerService.REASON_INSTALL,
for the secondary dexes dexopt path.

This DexoptOptions constructor, when not given a compilation reason,
will still default to -1, causing this bug when we later attempt to get the
reason name.

Test: m

Reviewers: calin@google.com

Subscribers:

Tasks:

Tags:
Signed-off-by: Daniel Jin <danjin@fb.com>
Change-Id: I246a44d35ae78f19feee58c93774da46b67a5e6d
Merged-In: Ic3cef72627985bb906e87b875c180a7dc32a295f
2022-03-01 16:59:57 +00:00
Andrei-Valentin Onea
a22612eb94 Merge changes from topic "ignore-vendor-apex-allowlists"
* changes:
  Ignore vendor apex priv-app permission allowlists
  Add test for parsing apex allowlists
  Ignore prebuilt shared library if it doesn't exist on device
  Rename updatable-library to apex-library
  Parse new xml attributes used for updatable shared libraries
  Create XML parser only once.
2022-03-01 15:15:56 +00:00
Bernardo Rufino
a9cb2102da Adjust Class<T> parameter bounds in new Bundle APIs
So they are consistent with Parcel and allow for patterns where the
client specifies a more narrow type to perform the check while returning
or populating a list of a broader type.

Test: atest -d android.os.cts.BundleTest
Bug: b/220872166#comment3
Change-Id: Ie0d430bb0ecd7fe4ee4bbbd245e38ff2813cc4eb
2022-03-01 15:10:47 +00:00
Eran Messeri
5deebdd570 Keystore: Support Curve 25519 in the SPI layer
Add support for Curve 25519 in the public API.
This requires upgrading the keymint dependency to V2.

Note that this CL only passes tha tags to Keystore,
but does not yet let the caller use the generated keys
because of missing Conscrypt classes.

Bug: 194359292
Test: atest android.keystore.cts.Curve25519Test
Change-Id: I15223abec34b72c857e26fcc47d8ecf08c1f8c8d
2022-03-01 15:00:19 +00:00
Neil Fuller
014549b0a0 Add explicit OWNERS for SystemClock and related classes
Bug: 213393821
Bug: 189810551
Change-Id: Ie0736e54f56bb749eff669ea42c25ce70ef4deb4
2022-03-01 11:12:08 +00:00
Neil Fuller
da84218f33 Adjust OWNERS to reflect new ownership
This changes OWNERS of time-related code based on latest org changes.

This change removes a bluetooth line because it is invalid
and therefore prevents edits to other lines. There's no obvious
replacement.

Test: None
Bug: 189810551
Change-Id: I0eae5a0ddeb6650f34e2d0cfd5ab27d802067055
2022-03-01 11:04:33 +00:00
Kanyinsola Fapohunda
aca3aa1748 Merge "Fix bug in NetworkTimeUpdateService" 2022-03-01 10:58:23 +00:00
Neil Fuller
b368bac149 Command-line interface: NetworkTimeUpdateService
Initial command-line interface for NetworkTimeUpdateService for use in
tests.

To be joined by more commands as they are identified.

Bug: 213393821
Test: adb shell cmd network_time_update_service help
Test: adb shell cmd network_time_update_service clear_time
      && adb shell dumpsys network_time_update_service
Test: adb shell cmd network_time_update_service force_refresh
      && adb shell dumpsys network_time_update_service
Change-Id: I033764a7df9759e9fd4da0b0776f6535a574ff59
2022-03-01 10:34:36 +00:00
Treehugger Robot
c67b2ca345 Merge "Update documentation to specify units and accepted ranges." 2022-03-01 05:05:07 +00:00
Jack Yu
a053fa8d46 Add an optional extra field description for ACTION_CHANGE_DEFAULT
Add the description using Intent.EXTRA_USER to pass the UserHandle of
the user that owns the app.

Bug: 215300017
Test: build pass
Change-Id: Ieeaf0876b19cae60743cbf279e5c937a457165c9
2022-03-01 03:05:40 +00:00
Colin Cross
ef48689e32 Add Build.Version.RELEASE_OR_PREVIEW_DISPLAY
Build.Version.RELEASE_OR_PREVIEW_DISPLAY propagates a string that
contains a user-friendly version name for preview releases, or the
Build.Version.RELEASE version for final releases.

Test: manual
Bug: 221950960
Change-Id: I31f8f67996e3e5e7edc00704b16b8df0db17d3a3
2022-02-28 18:02:59 -08:00
paulhu
2a8c2c3601 Rename framework-connectivity-tiramisu to framework-connectivity-t
Bug: 215434166
Test: build, flash, device boot to home.
Merged-In: I44653ab7be117cf08cb3b8d3086ad76b43bf15e1
Change-Id: I44653ab7be117cf08cb3b8d3086ad76b43bf15e1
2022-03-01 09:41:12 +08:00
Jack Nudelman
35d623833b Update documentation to specify units and accepted ranges.
Bug: b/212721664
Test: make
Change-Id: Ie3cbbc01f20ac93f30788ce721b1f599e10914ca
2022-02-28 23:18:49 +00:00
Dave McCloskey
17c69c72d6 Adds an OWNERS file for TrustTests
Change-Id: I5e5a358d39f6fed79b428f4fbe64b330b0bc4d1b
2022-02-28 22:53:57 +00:00
Shashwat Razdan
7a25b6f379 Merge "Adding OWNERS in android.server.infra package" 2022-02-28 21:10:22 +00:00
William Escande
94239409ea Move BluetoothProfileConnectionInfoTest to cts
Fix: 220029571
Test: cts test
Change-Id: I5ffc4febe7a3fba220c864e74a24203dc35dfb86
2022-02-28 21:52:37 +01:00
Treehugger Robot
5e83ac9627 Merge "Added data retry manager and retry rules" 2022-02-28 17:51:20 +00:00
James Mattis
69785b16ec Merge "Updating Eth Update Request to use Builder" 2022-02-28 16:55:49 +00:00
Jean Chalard
9709f513c1 Merge "Rename EXTRA_TIMESTAMP into EXTRA_TIMESTAMP_MILLIS" 2022-02-28 15:24:00 +00:00