This commit replaces utility classes that will no longer be
accessible after VCN moves out of the platform
Bug: 369703242
Test: atest CtsVcnTestCases && atest FrameworksVcnTests
Flag: EXEMPT code refactoring; no functional change
Change-Id: Ia5c987c25728a1ef6ac4aeda02e1c9339c2a3af9
When VCN is moved out of framework.jar, SystemServiceRegistry
will not be able to register VCN service via IVcnManagementService
anymore because the aidl interface will not be accessible. To
solve this issue, this CL follows
go/android-api-guidelines#the-moduleframeworkinitializer-pattern
to create an FrameworkInitializer for service registration.
Followup CLs will expose this class as @SystemApi.
Bug: 369703242
Test: atest CtsVcnTestCases
Flag: EXEMPT code refactoring; no functional change
Change-Id: Ic9668a60f195f0a21de5114c1bb0bc38b72ee4d5
Merged-In: Ic9668a60f195f0a21de5114c1bb0bc38b72ee4d5
This is a preparation CL to decouple VCN from the platform code.
It follow the steps suggested by go/mainline-onboarding-in-trunk-stable.
Eventually VCN will be moved to Tethering module. Followup CLs will
migrate all VCN source code to this folder and thus VCN will not
automatically be built into the framework.jar and services.jar anymore.
Bug: 369703242
Test: build and boot
Flag: EXEMPT no functional change
Change-Id: I41484406ab88a8910a87f8df9e53199731c0ce08
This is a preparation CL for mainlining VCN. This patch adds utility
methods for callers to easily get WifiInfo and subId. It also adds
a Builder class that will be exposed as a @SystemApi in a followup
CL.
Bug: 369710077
Test: atest FrameworksVcnTests(new tests) && atest CtsVcnTestCases
Flag: Exempt low risk utilities for pure refactoring
Change-Id: I257b031dabfc48286e8bae2a0854c81aca2f189c
This is a preparation CL for moving VCN to mainline
Bug: 366598445
Bug: 367831385
Test: atest CtsTelephonyTestCases:TelephonyManagerTest
Flag: android.os.mainline_vcn_platform_api
Change-Id: Ic6098978f034678e6f42f1777ae93d3973bc099e
This is a preparation CL for moving VCN to a mainline module
Bug: 288465472
Test: atest FrameworksVcnTest && atest CtsVcnTestCases
Flag: EXEMPT pure refactoring
Change-Id: Ifb834448f1aafb2aa7eacd11981473405b39eddf
This patch removes two hidden API usages for moving
VCN to a mainline module. They are:
- ArrayUtils#convertToIntArray(List<Integer>)
- ArrayUtils#contains(int[], int)
Bug: 288465472
Test: atest FrameworksVcnTest && atest CtsVcnTestCases
Flag: EXEMPT pure refactoring
Change-Id: Iac10befda01c5ed52db85dfcd8ddc66b99782cac
This is a preparation CL for moving VCN to a mainline module
Bug: 288465472
Test: atest FrameworksVcnTest && atest CtsVcnTestCases
Flag: EXEMPT pure refactoring
Change-Id: I44470a231cdcf4c0a35c54aba5b1967a0bdb2dd7
This patch removes three hidden API usages for moving
VCN to a mainline module. They are:
- TelephonyManager#getNetworkTypeName(int)
- TelephonyNetworkSpecifier(int)
- SubscriptionManager#isValidSlotIndex
Bug: 288465472
Test: atest FrameworksVcnTest && atest CtsVcnTestCases
Flag: EXEMPT pure refactoring
Change-Id: I09e68006461ac9c5a69eddd27f801f9ed40d15fa
Flag fix_crash_on_getting_config_when_phone_is_gone has been advanced to
next for a while and no regression is observed. Clean it up for now to
keep code healthy.
Bug: 319791612
Test: atest TelephonySubscriptionTrackerTest
Flag: EXEMPT flag clean up only
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:4078c0f51a1d7d3f27534bc9026778859b7442bd)
Merged-In: I8d02430b70c1ed432826e02bc5938c6772ff1f95
Change-Id: I8d02430b70c1ed432826e02bc5938c6772ff1f95
rambowangauthored and Android Build Cherrypicker Workercommited 2024-09-12 02:17:44 +00:00
modules should specify the submodule of java_sdk_library that the module
actually depends on
Test: CI
Flag: EXEMPT build dependency cleanup
Bug: 358613520
Merged-In: I80af0b9efa88c668306f0ff1d51491a8180dc57f
Change-Id: I80af0b9efa88c668306f0ff1d51491a8180dc57f
am skip reason: Merged-In I20b3d485a00109060a6ed206503aa3c12c812969 with SHA-1 fa74cd7671 is already in history
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/27551804
Change-Id: I3ec7df2b2a98d72fd0a9992d0130b4978ece822a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
Xin Liauthored and Automerger Merge Workercommited 2024-06-06 21:36:31 +00:00
Require VCN to be used by a "main user" instead of a "system user"
since "system user" will no longer be a full user on HSUM devices
Bug: 310310661
Test: FrameworksVcnTests, CtsVcnTestCases on non-hsum and hsum devices
Flag: android.net.vcn.enforce_main_user
Change-Id: I5abfa7ba82055cd953083b1ab3f83e61bafd8a55
Set the container field of aconfig flags
Test: printflags --format='{package}:{container}:' | grep "::"
Bug: 312769710
Flag: NONE
Change-Id: I84fda0d5e9813940609436d825738ff786908ff0
Oriol Prieto Gascoauthored and Oriol Prieto Gascócommited 2024-05-03 11:42:54 +00:00