Commit Graph

566307 Commits

Author SHA1 Message Date
Anton Hansson
84918d5674 Move build modules from top-level to core/java/
The top-level Android.bp is large and difficult to navigate. Move rules
that don't have any "top level" things in them down in the core/java
directory.

Bug: 185128417
Test: m
Merged-In: I3fd90c2d5140e5716474ff1f8c58cbc1b3319e5b
Change-Id: I3fd90c2d5140e5716474ff1f8c58cbc1b3319e5b
2021-04-12 17:57:38 +01:00
Anton Hansson
e93771bfca Merge "Dist android-non-updatable.jar for sdk" 2021-04-12 09:31:09 +00:00
Anton Hansson
e4d95a9e15 Merge "Compile android-non-updatable separately" 2021-04-12 08:30:18 +00:00
Chiachang Wang
ad274e531a Merge "Remove throws RuntimeException from APIs" 2021-04-12 02:57:51 +00:00
SongFerng Wang
7d07fce12b Merge "Call waiting support USSD function" 2021-04-12 02:45:10 +00:00
Tianjie Xu
d5547af728 Merge "Expose error code for RoR reboot system API" 2021-04-09 22:07:29 +00:00
Brad Ebinger
0a99b6c48b Merge "Rename closeDialog to cleanupSession" 2021-04-09 21:54:45 +00:00
Treehugger Robot
25807e2f86 Merge "Retire ro.kernel.android.checkjni from AndroidRuntime.cpp" 2021-04-09 21:52:02 +00:00
Treehugger Robot
ab750baa0c Merge "Separate the emulator specific part of ClipboardService.java" 2021-04-09 20:23:27 +00:00
Roman Kiryanov
d395df7024 Retire ro.kernel.android.checkjni from AndroidRuntime.cpp
this property is deprecated and emulator now
populates `dalvik.vm.checkjni` to use instead.

Bug: 182291166
Test: getprop dalvik.vm.checkjni
Signed-off-by: Roman Kiryanov <rkir@google.com>
Change-Id: Ie94b0d6c2e48b731d9cfe0ead380e0f52f662f37
2021-04-09 12:46:34 -07:00
Brad Ebinger
913b325c8b Rename closeDialog to cleanupSession
The current name of SipDelegate[Connection]#closeDialog assumes
there will only be one SIP dialog per SIP session and does not
adequately cover the case where a SIP INVITE has forked and
generated multiple dialogs for the same call-id.

Instead, rename closeDialog to cleanupSession, which is more
accurate and should be called after all SIP dialogs associated
with the SIP session represented by the call-id have closed.

Bug: 184858064
Test: atest CtsTelephonyTestCases
Change-Id: I438dbc45dffbaf33e0cf36ddc61008fd8c18209c
2021-04-09 19:28:10 +00:00
Cody Kesting
7910a79651 Merge "Remove location-permission check from VcnStatusCallbacks." 2021-04-09 16:35:43 +00:00
James Mattis
7fe91d40f1 Merge "Adding log history for setOemNetworkPreference()" 2021-04-09 15:59:10 +00:00
Anton Hansson
6b35a8ac47 Merge "Separate out lists of modules from build rules" 2021-04-09 15:34:36 +00:00
Anton Hansson
a410891802 Dist android-non-updatable.jar for sdk
So that it is recorded when we finalize the SDK.

Bug: 184839599
Test: (cd out/dist; diff -r apistubs /tmp/apistubs-before)
    Only in apistubs/android/module-lib: android-non-updatable.jar
    Only in apistubs/android/public: android-non-updatable.jar
    Only in apistubs/android/system: android-non-updatable.jar
    Only in apistubs/android/test: android-non-updatable.jar
Change-Id: I8fe2d46b4574e602f258ab6f941e07443dfdd2a7
2021-04-09 13:41:11 +01:00
Anton Hansson
a4748cd10d Compile android-non-updatable separately
The java stubs for android-non-updatable were previously only compiled
into the "main android stubs" target. This change refactors the build so
that we compile android-non-updatable stubs as a separate jar file. That
jar is then statically included into the main android stubs, making it
effectively a noop for the existing stub.

This has the benefit of making it possible to finalize the
android-non-updatable when the rest of the SDK artifacts are frozen,
so that we can later re-create android.jar with a mix of different
android-non-updatable and module stubs.

Bug: 184839599
Test: `m sdk dist` && diff -r out/apistubs{before,after}
Change-Id: I624e2e7ab5723eb5e27cf26dbe247aac2a799b72
2021-04-09 13:35:10 +01:00
Abhinav Aggarwal
779b5f6308 Merge "aabhinav@ leaves BR OWNERS." 2021-04-09 11:28:29 +00:00
Anton Hansson
6603593474 Separate out lists of modules from build rules
This simplifies management of the build rules across different branches
that may have different lists of modules.

Additionally, we dedupe the list of module system stubs.

Bug: 184839225
Test: m
Merged-In: Ibef1fb686305b5b1b50811b7d1c6d677d07d7177
Change-Id: Ibef1fb686305b5b1b50811b7d1c6d677d07d7177
2021-04-09 10:38:35 +01:00
Treehugger Robot
b3cbeb79a2 Merge "UWB: Add Reason to onRangingStop()" 2021-04-09 01:33:40 +00:00
Treehugger Robot
682a98d823 Merge "Add documentation on EthernetNetworkSpecifier API" 2021-04-09 01:26:54 +00:00
Roman Kiryanov
3f7d23eff0 Separate the emulator specific part of ClipboardService.java
This way the Android Studio Emulator will be the owner
of the emulator specific code and the framework will not
see the implemetattion details.

Bug: 182436079
Test: check if emulator exchanges the clipboard with the host
Change-Id: Icdb25d51437ba0f8e98a2750b0b705c15755f106
Merged-In: Icdb25d51437ba0f8e98a2750b0b705c15755f106
2021-04-08 18:09:18 -07:00
Tianjie
559ed7f0f0 Expose error code for RoR reboot system API
The clients of resume on reboot want additional information for
reboot failures, so they can handle these failures better.
Therefore expose the reboot failure error code via SystemApi.

Bug: 183646725
Test: atest FrameworksServicesTests:RecoverySystemServiceTest;
      Do an RoR with gmscore
Change-Id: Ia02655218194a070ce02e9dae6fd62e19259c9f9
2021-04-08 17:54:29 -07:00
James Mattis
57363f541f Adding log history for setOemNetworkPreference()
Adding historical logging for the setOemNetworkPreference() calls. This
will last across reboots.

Bug: 177257940
Bug: 176494815
Test: atest FrameworksNetTests
Change-Id: I4fc35fd58ff741830aa292adc1c559b4279ad8f9
2021-04-08 17:40:06 -07:00
Remi NGUYEN VAN
3dd880eca5 Merge "Improve documentation on simulateDataStall" 2021-04-09 00:21:34 +00:00
Remi NGUYEN VAN
e067d9618c Merge "Set ParseException constructors as public" 2021-04-09 00:20:33 +00:00
Remi NGUYEN VAN
8c5ae7e37f Merge "Replace fields with getters in keepalive API" 2021-04-09 00:20:13 +00:00
Remi NGUYEN VAN
9641e3404c Merge "Add RequiresPermission to TestNetworkManager" 2021-04-09 00:19:51 +00:00
Remi NGUYEN VAN
ba77876dbd Merge "Replace IS_DEBUGGABLE with isDebuggable module API" 2021-04-09 00:19:19 +00:00
Remi NGUYEN VAN
13d7d5cde6 Merge "Use String in CaptivePortalData underlying types" 2021-04-09 00:17:59 +00:00
Benedict Wong
e19a117397 Merge changes I77e34a92,I8f13159b,Ic8ab66ff,Id9494f69
* changes:
  Dynamically set MTU based on proposed algorithms
  Create proxy NetworkAgent for testing
  Ensure teardown() only triggered on the right NetworkAgent.
  Add dump to VcnManagementService
2021-04-08 21:55:28 +00:00
Paul Duffin
a2baa71441 Merge "Remove unnecessary entries in frameworks/base/config/OWNERS" 2021-04-08 21:37:53 +00:00
Nathan Harold
271d82e966 Merge "s/enforece/enforce/" 2021-04-08 21:35:39 +00:00
Steven Moreland
da164b6f83 Merge "reflect libbinder/am split" 2021-04-08 21:03:27 +00:00
Paul Duffin
ca0501d1b8 Merge "Update hiddenapi preupload checks to handle new location" 2021-04-08 20:58:45 +00:00
James Mattis
240eb9907b Merge "Adding OEM Network Preferences for testing" 2021-04-08 20:51:05 +00:00
Benedict Wong
8fac2ea3f3 Dynamically set MTU based on proposed algorithms
This change adds the relevant utilities and plumbing to ensure that MTUs
are set dynamically based on the underlying network's MTU.

Bug: 184697651
Test: atest FrameworksVcnTests
Change-Id: I77e34a92eb4e81e83d20fe6019b38ea5f1af4765
2021-04-08 11:58:58 -07:00
Abhinav Aggarwal
c06e6ddd57 aabhinav@ leaves BR OWNERS.
Test: Treehugger
Change-Id: Id39c2c4359b182aff1e94d9ccdd179818cebf9e4
2021-04-08 16:50:07 +00:00
Treehugger Robot
1f82f476c0 Merge "Keystore 2.0 SPI: Make getAttestationIds return an empty array." 2021-04-08 16:26:44 +00:00
Benjamin Franz
9a24f337aa Merge "Grant OVERRIDE_COMPAT_CHANGE_CONFIG_ON_RELEASE_BUILD to Shell" 2021-04-08 11:06:09 +00:00
Treehugger Robot
27cdbf8a25 Merge "Disable ARC when physical address is incorrect" 2021-04-08 10:01:59 +00:00
Anton Hansson
457ccf2d32 Merge "Add a tool to dump git SHAs of API changes" 2021-04-08 09:20:40 +00:00
Remi NGUYEN VAN
97dbad03dc Use String in CaptivePortalData underlying types
The venue friendly name comes from the network, and only plain strings
should be used in practice. writeCharSequence is also not usable in
CaptivePortalData, as it must build using module_api.

Use a String as the underlying type in CaptivePortalData, keeping
CharSequence in the API for consistency with UI-related elements.

This brings CaptivePortalData in line with downstream branches.

Bug: 183174863
Test: atest FrameworksNetTests
Merged-In: Ifa3ea9aae0cabf5757791c4ae13e6f551759ed97
Change-Id: Ic662d3b546d52f825f9c3a24c5e0d4ba03818ab0
2021-04-08 08:23:20 +00:00
Remi NGUYEN VAN
ba2fe6fb9d Improve documentation on simulateDataStall
Explain that:
 - The method does not cause an actual data stall.
 - The detectionMethod parameter refers to
   ConnectivityDiagnosticsManager.DataStallReport constants (which
   already use an IntDef).
 - timestampMillis is relative to SystemClock.elapsedRealtime.

Fixes: 183972768
Test: m
Change-Id: I2eeb79e0e8ec6e8fd3b8fe1dcb1abbf2e6338983
2021-04-08 16:30:25 +09:00
Remi NGUYEN VAN
0e4ba3836e Add RequiresPermission to TestNetworkManager
All API methods in TestNetworkManager require the MANAGE_TEST_NETWORKS
permission.

Fixes: 183972672
Test: m
Change-Id: Ic5929c24ea88d7259d367a81fec8f223a2e3ecb0
2021-04-08 16:12:23 +09:00
Remi NGUYEN VAN
8d3be82626 Set ParseException constructors as public
As there is no strong reason to keep the constructors module-lib, set
them as public API.
This is in response to API feedback.

Fixes: 183446251
Test: m
Change-Id: I01daa6f6f8095f7a4db94d1ca05f913166939df3
2021-04-08 15:57:31 +09:00
Remi NGUYEN VAN
f9dae9fec6 Add documentation on EthernetNetworkSpecifier API
Add javadoc on the constructor and getInterfaceName method.

Fixes: 182979732
Test: m
Change-Id: Iced805149a8344b953331501b48184661be0053a
2021-04-08 15:32:08 +09:00
Harpreet "Eli" Sangha
159a635593 Merge "UWB: Annotate DistanceMeasurement Parameters" 2021-04-08 06:04:54 +00:00
Remi NGUYEN VAN
ab43b19bac Replace fields with getters in keepalive API
General guidance is to have getters in the API instead of fields.

Fixes: 181014882
Test: m
Change-Id: Id4bfc447701e8d0380163047779fbba043f17b6f
2021-04-08 14:06:53 +09:00
Remi NGUYEN VAN
b5f095ebf0 Replace IS_DEBUGGABLE with isDebuggable module API
Introduce a Build.isDebuggable() getter instead of the IS_DEBUGGABLE
static member.

Also make it module API as APK modules now have access to module APIs in
S, but also TestApi so it can be tested.

Test: m
Fixes: 182345786
Change-Id: I25d0848aee758792bbaba8ab73b5dd997a7250b3
2021-04-08 13:50:31 +09:00
Aaron Huang
2a4adcb598 Merge "Remove Network, NetworkRequest metrics from jobscheduler" 2021-04-08 02:27:05 +00:00