Commit Graph

640958 Commits

Author SHA1 Message Date
Kweku Adams
6decc507bf Expand internal stop reasons.
Add explicit reasons for when a job is stopped because the real-time
clock was updated and for when a job called jobFinished() on its own
(...why did we not have this to begin with???).

Bug: 141645789
Test: atest frameworks/base/services/tests/servicestests/src/com/android/server/job
Test: atest frameworks/base/services/tests/mockingservicestests/src/com/android/server/job
Test: atest ContentResolverTest (all)
Test: atest CtsJobSchedulerTestCases
Test: atest CtsSyncManagerTest
Test: atest SyncManagerTest
Test: atest SyncOperationTest
Test: atest SyncRequestTest
Change-Id: I61392c55355d2526a32ea9597a0010b04f3875ac
2021-04-22 07:59:29 -07:00
Kweku Adams
805535cc55 Rename "legacy" stop reasons.
There are some uses for the "legacy" stop reasons that the public API
stop reasons can't cover well. Since we'll be keeping the "legacy"
reasons around, renaming them to "internal" to help explain the
differentiation.

Bug: 141645789
Test: atest frameworks/base/services/tests/servicestests/src/com/android/server/job
Test: atest frameworks/base/services/tests/mockingservicestests/src/com/android/server/job
Test: atest ContentResolverTest (all)
Test: atest CtsJobSchedulerTestCases
Test: atest CtsSyncManagerTest
Test: atest SyncManagerTest
Test: atest SyncOperationTest
Test: atest SyncRequestTest
Change-Id: I97e40d35b79dbd012216bc22e90d649639614854
2021-04-22 07:56:48 -07:00
Janis Danisevskis
70cf430ede Keystore 2.0 SPI: Fix engineDoFinal with null input.
AndroidKeyStoreCipherSpiBase.engineDoFinal may get called with a null
input argument. In the case where we forward the operation to the
default provider doFinal() needs to be called instead of
doFinal(byte[], int, int).

Bug: 183913233
Test: atest android.keystore.cts.CipherTest#testEncryptsAndDecryptsUsingCipherStreams
Change-Id: Ia3afaf281be7c8e5493ac8e4155a7aa02d1d37f0
2021-04-22 14:55:45 +00:00
David Drysdale
5e4e97fc06 Align KeyMint AIDL with usage
- Drop unused Tag::BLOB_USAGE_REQUIREMENTS

Test: TreeHugger, VtsKeyMintAidlTargetTest (CF)
Change-Id: I2550e941afd06cf24896b77b644f8a56f20727c7
2021-04-22 15:55:30 +01:00
Kweku Adams
3fb4671026 Merge "Use JobScheduler's storage-not-low constraint." into sc-dev 2021-04-22 14:52:54 +00:00
Mathew Inwood
1f71b142e5 Revert^2 "API changes as requested by API council."
0b13609925

Change-Id: I88039e798e26e2f3f33d5e3b85865b2958a963a1
2021-04-22 14:47:34 +00:00
Florian Mayer
c60be93eef Merge "Revert "API changes as requested by API council."" am: 6b4ecd94c1 am: 5e3ed6416a
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1683628

Change-Id: If9f9aae036070f0f49ff0f016fc164ad07a4ee00
2021-04-22 14:41:34 +00:00
Remi NGUYEN VAN
89cd3d59c0 Merge "Add QUERY_ALL_PACKAGES to net integration tests" 2021-04-22 14:38:40 +00:00
Neil Fuller
c57c69a785 Move tests to CTS
This moves tests that cover SDK methods to CTS. Some methods on
TimeZoneConfiguration are not SDK APIs, so those tests remain in
coretests.

Bug: 184947690
Bug: 183239145
Test: atest CtsTimeTestCases
Change-Id: Ic0840cddb907171294f439f19fa09021b3c8807f
2021-04-22 15:30:55 +01:00
Aaron Huang
7511be401e Add getters to UnderlyingNetworkInfo
Address API review feedback, add getters to UnderlyingNetworkInfo
instead of exposing fields.

Instead of wasting memory by converting this into an array, have
migrateTun take a List<String>. In turn, tunAdjustmentInit should
also take a List<String>.

(cherry picked from ag/14211075)
Bug: 183972554
Test: atest android.net.UnderlyingNetworkInfoTest
Merged-In: Id59744097208d91298a25ef110ade91a9cf291a1
Change-Id: Id59744097208d91298a25ef110ade91a9cf291a1
2021-04-22 22:30:42 +08:00
James Mattis
8d64dfc836 Changing per-app default request to TRACK_DEFAULT
Changing the per-app default request flows to fallback to a request of
type TRACK_DEFAULT as opposed to type REQUEST. The main benefit of this
change is that these requests will no longer be sent to the factories
which is desired.

Bug: 180452284
Bug: 176494815
Test: atest FrameworksNetTests
atest FrameworksNetIntegrationTests
atest CtsNetTestCasesLatestSdk

Change-Id: I312e55a54f70aa82953a32ab9369d5afc02b75e5
2021-04-22 07:26:10 -07:00
Francois Gaffie
2364bed6e6 HwAudioSource: wrong native handle check
Playing status of audio source is checked using the native handler
not 0.
However, if AudioSystem#startAudioSource fails, the native handler
returned is not 0, but an error code.
In fact AudioPolicyManager sets the PORT to NONE (0) and sets an error
status.
JNI layer transforms the failure status into a native handler returned
to the caller.

Signed-off-by: Francois Gaffie <francois.gaffie@renault.com>
Change-Id: Iaa920c073885c2556a93a1b5ae23467fa6ffad4f
Merged-In: Iaa920c073885c2556a93a1b5ae23467fa6ffad4f
2021-04-22 14:20:20 +00:00
Florian Mayer
5e3ed6416a Merge "Revert "API changes as requested by API council."" am: 6b4ecd94c1
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1683628

Change-Id: I69e1d7a9f3d5733248262187298dd22d2242a1ad
2021-04-22 14:19:41 +00:00
Francois Gaffie
523571c3e8 AudioSystem: startAudioSource: ensure port handle initialized
In case of failure, port handle reported is not initialized
by JNI layer. Any failing call to native AudioSystem::startAudioSource
will not set the port handle, but returning an error status.
JNI checks for port handle validity rather than error status.

This CL ensures JNI checks first status to report an error, otherwise
asserts on handle validity.

Signed-off-by: Francois Gaffie <francois.gaffie@renault.com>
Change-Id: I4eb8046a1263aeb7d464d35a360a8adb77c4b1a5
Merged-In: I4eb8046a1263aeb7d464d35a360a8adb77c4b1a5
2021-04-22 14:15:41 +00:00
Eric Laurent
d703642add Merge changes Iaa920c07,I4eb8046a into sc-dev
* changes:
  HwAudioSource: wrong native handle check
  AudioSystem: startAudioSource: ensure port handle initialized
2021-04-22 14:14:49 +00:00
Alex Buynytskyy
ab7d0d4d5f Merge "Fix protection level for USE_INSTALLER_V2 permission." into sc-dev 2021-04-22 14:00:03 +00:00
Florian Mayer
6b4ecd94c1 Merge "Revert "API changes as requested by API council."" 2021-04-22 14:00:02 +00:00
Florian Mayer
0b13609925 Revert "API changes as requested by API council."
Revert "API changes as requested by API council."

Revert submission 1662226-compatibility-rename

Reason for revert: Broke aosp-stage-master.
Reverted Changes:
Ie465c49ff:API changes as requested by API council.
I3c5a5734b:API changes as requested by API council.
I16bf86a9c:API changes as requested by API council.

Change-Id: I3af51d240cec9dac013d81dc448b44ef2ca60f9c
2021-04-22 13:58:55 +00:00
Jean-Michel Trivi
ec16222b30 Merge "AudioManager: add API for mode listener" into sc-dev 2021-04-22 13:53:02 +00:00
TreeHugger Robot
4ea2241322 Merge "Enable settings transition" into sc-dev 2021-04-22 13:51:56 +00:00
Bernardo Rufino
f2601b5853 Merge "Handle PendingIntents for ACSD" into sc-dev 2021-04-22 13:43:49 +00:00
Treehugger Robot
6a9ddd66e3 [automerger skipped] Merge "API changes as requested by API council." am: 359a8859aa am: 521cb5949f am: a1d8ab1ac9 -s ours
am skip reason: skip tag Change-Id Ie465c49ff02065e78a2e8e211a13350a0ff7f0a4 with SHA-1 c89513ac27 is already in history

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1662459

Change-Id: I0391b2b6d4e60a5b7642d4a20f79651da98560e4
2021-04-22 13:42:48 +00:00
Anton Hansson
6312b4e6d9 Merge "Remove dependencies on art-notices jar" am: 69063e8646 am: a3d2533234 am: d52af43960
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1684187

Change-Id: I11ca60b9723ed6089c090e108e75b07e61e261b2
2021-04-22 13:39:57 +00:00
SongFerngWang
7a3faec477 Add CAPABILITY_PHYSICAL_CHANNEL_CONFIG_1_6_SUPPORTED
Bug: 185925786
Test: atest NetworkTypeControllerTest

Change-Id: Idf8f8b41994fcdda262bb84429824ba769fd5ce6
2021-04-22 21:39:08 +08:00
Nikita Iashchenko
97aa18c230 Merge "Remove usage of Math.randomLongInternal" am: 17d5075af4 am: 076022aa98 am: 48bd315b0e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1682026

Change-Id: I29891ff4ff37e65fae5a8cc559325d9777aaf754
2021-04-22 13:38:47 +00:00
Arc Wang
7274cd6104 Fix UsageProgressBarPreference number pattern problem
Original design uses the pattern digits + . + digits
to recognize a number. However, some locales (e.g., Dutch)
uses comma (,) as floating point.

This change uses the pattern digits + . or , + digits
to recognize a number.

Bug: 185666660
Test: atest UsageProgressBarPreferenceTest
Change-Id: Ie72b3e8a5ddc4eb3621bdd72976836b9285e96d0
2021-04-22 21:26:21 +08:00
Chalard Jean
7db2c51ca5 Merge "Enable policy ranking" into sc-dev 2021-04-22 13:24:32 +00:00
Treehugger Robot
a1d8ab1ac9 Merge "API changes as requested by API council." am: 359a8859aa am: 521cb5949f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1662459

Change-Id: I60b899f2e3f57bfce4856df131d7d9f07dad041c
2021-04-22 13:12:17 +00:00
Anton Hansson
d52af43960 Merge "Remove dependencies on art-notices jar" am: 69063e8646 am: a3d2533234
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1684187

Change-Id: Iec8c336beca2fb4a58ecb5aab0578eda35c82b75
2021-04-22 13:11:33 +00:00
Nikita Iashchenko
48bd315b0e Merge "Remove usage of Math.randomLongInternal" am: 17d5075af4 am: 076022aa98
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1682026

Change-Id: I52e45500d6ceaead1cd068fb639e8c2d74d55d3e
2021-04-22 13:10:32 +00:00
Alex Johnston
f2766e9043 Merge "setKeyGrantForApp DELEGATION_CERT_SELECTION" into sc-dev 2021-04-22 13:03:48 +00:00
Remi NGUYEN VAN
c78125940a Add QUERY_ALL_PACKAGES to net integration tests
The permission is necessary for ConnectivityService to obtain its
resource package. As the integration tests run ConnectivityService
in-process, they need the permission.

Bug: 186091860
Test: atest FrameworksNetIntegrationTests
Change-Id: I60cf9b54faddf0ea4cb02146c83c9bba58370749
2021-04-22 22:02:01 +09:00
Treehugger Robot
521cb5949f Merge "API changes as requested by API council." am: 359a8859aa
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1662459

Change-Id: I51a94ff5b1a67036e2db7f3a38213b72c1981829
2021-04-22 12:59:57 +00:00
Anton Hansson
a3d2533234 Merge "Remove dependencies on art-notices jar" am: 69063e8646
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1684187

Change-Id: Ia7c5fa107b26baf85f264bbd9d39a9c7f2a0af4f
2021-04-22 12:54:17 +00:00
Treehugger Robot
359a8859aa Merge "API changes as requested by API council." 2021-04-22 12:53:10 +00:00
Nikita Iashchenko
076022aa98 Merge "Remove usage of Math.randomLongInternal" am: 17d5075af4
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1682026

Change-Id: Icdc72635d0c035e7694d2d4d32b6f92b87fe1796
2021-04-22 12:49:27 +00:00
Alex Johnston
818deac8e4 Use precondition isSystemUid DPMS
* Replace enforceSystemCaller and
  isCallerWithSystemUid with
  precondition check.

Bug: 167960209
Test: atest com.android.server.devicepolicy.DevicePolicyManagerTest
Change-Id: Iadda47cdac89bf880b42d85c6645cc4d713797a7
2021-04-22 13:45:10 +01:00
Anton Hansson
69063e8646 Merge "Remove dependencies on art-notices jar" 2021-04-22 12:41:46 +00:00
Chun-Yi Lee
1b90144b39 Merge "Move CtsDevicePolicyManagerTestCases to group presubmit-large" into sc-dev 2021-04-22 12:30:10 +00:00
Ruslan Tkhakokhov
2a4f590001 Merge "Add @IntDef for backup transport flags" into sc-dev 2021-04-22 12:22:42 +00:00
Flavio Fiszman
bdfb071d08 Change message count overflow to 6
Change-Id: Idb12d332ec971db0879499251b272761c6328444
Bug: 183382000
Test: manual
2021-04-22 12:20:12 +00:00
Nikita Iashchenko
17d5075af4 Merge "Remove usage of Math.randomLongInternal" 2021-04-22 12:16:25 +00:00
Yi-Ling Chuang
ee0975a71b Enable settings transition
As the framework bug is fixed, re-enable the transition by correcting
the conditions.

Bug: 177480673
Test: rebuild and test on the NotificaitonHistory page
Change-Id: Icb62dad12ba5889f750d0ea2765ae76186fc79e7
2021-04-22 20:01:45 +08:00
ryanlwlin
987144aa22 Fix magnification bounds cut out with floating a11y button
The window type Floating Accessibility Button is
TYPE_NAVIGATION_BAR_PANEL which is unmagnifed, it leads to
the cut out while drawing the magnification bounds.

To fix it we did a compromise. We omit the window bounds of
TYPE_NAVIGATION_BAR_PANEL windows while computing the
magnification bounds. The cons is that magnification region
is really changed. That means the interaction with such
windows might have latency depending on if they are
inside the magnification bounds. However, it is acceptable because
users don't have complex interaction witch such windows and
see them rarely.

bug: 185401123
Test: manually test
Change-Id: Ia0088a0140fb8d5516e703ebfa5e203f857636d9
2021-04-22 19:32:19 +08:00
Chun-Yi Lee
6a213319a8 Merge "Move CtsAutoFillServiceTestCases to group presubmit-large" into sc-dev 2021-04-22 11:11:55 +00:00
James.cf Lin
088f6cda78 Remove unnecessary UCE APIs because some of UCE APIs change.
Bug: 184602965
Test: atest ImsServiceTest RcsUceAdapterTest
Change-Id: I269973e9eb1bf746c4ada558df0de99069f7f309
2021-04-22 18:38:17 +08:00
Louis Chang
a262436fe1 Try fixing the flakiness of TaplTestsQuickstep#testSwitchToOverview
The new configuration did not reported to the NexusLauncher activity
when the device rotated to landscape. It seems that the configuration
object of the ActivityClientRecord was unexpectedly updated somewhere,
so the configuration handling was skipped and not reporting to the
activity.

Copy the configuration from mPendingMergedConfiguration vs. directly
assigning the given configuration object reference.

Bug: 185820525
Test: atest NexusLauncherTests:TaplTestsQuickstep
Change-Id: I6768fe86e5c977c32a975562ec058c82d4f9c2fc
2021-04-22 18:22:10 +08:00
Aaron Huang
a3ae9b1c38 Add getters to NetworkStateSnapshot
Address API council feedback, add getters to NetworkStateSnapshot
instead of exposing the bare fields directly.

(cherry picked from ag/14233655)
Bug: 183972826
Test: FrameworksNetTests
Merged-In: Id1707753b42ae88d2b95e4bd00a792609434e4f5
Change-Id: Id1707753b42ae88d2b95e4bd00a792609434e4f5
2021-04-22 18:21:00 +08:00
Nikita Iashchenko
8798556669 Merge "Remove usage of Math.randomLongInternal" am: c931f43bcd am: 267fc8b764 am: 7716e67ea3
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1682025

Change-Id: I67913263f9bfb5380d915e716f19511db847a339
2021-04-22 10:10:54 +00:00
Nikita Iashchenko
9623adb4b8 Merge "Remove usage of optimized reflection getters" am: 9d0bfe1b0a am: f10f3736ea am: e5400b4085
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1682029

Change-Id: Id5e445360ec59029c82f9bc96c55dd1599a0029e
2021-04-22 10:09:50 +00:00