Commit graph android_packages_modules_Co.../Tethering/common
Message SHA1
Merge "Cleanup packages/Tethering/common/TetheringLib" am: 85bdee7daa am: 9488e5f521
Change-Id: I0c19abcb8c8a909585b14e4213c59c1cef34be13

Paul Duffin   authored and   Automerger Merge Worker   commited 2020-05-13 11:13:26 +00:00
e42763eb6f
Cleanup packages/Tethering/common/TetheringLib
Merge the otherwise unused tethering-aidl-interfaces into
framework-tethering.

This is in preparation for converting to use java_sdk_library.

Bug: 155164730
Test: m droid
Change-Id: I4583539d11ba69320aa5a0dfcfee072c81affac2

Paul Duffin   commited 2020-05-13 09:56:18 +01:00
82e7165284
Set min_sdk_version for updatable mainline modules
Modules contributing mainline modules (APK/APEX) should set
min_sdk_version as well as apex_available.

For now setting min_sdk_version doesn't change build outputs.
But build-time checks will be added soon.

Bug: 145796956
Bug: 150999716
Test: m
Merged-In: Ifaecb49a47a1f43edea3ea06e1cf704a177d1044
Change-Id: Ifaecb49a47a1f43edea3ea06e1cf704a177d1044
(cherry picked from commit 33aa294e96f13906f596e427b96652fe80cf199b)

Jooyung Han   commited 2020-05-13 16:18:51 +09:00
5f9f31c18b
Merge "Set min_sdk_version for updatable mainline modules" am: 50f4887299 am: e25536866e am: 669772eb76 am: 5f2f34a042 am: a0428f67ae
Change-Id: I1c8bde4023857acd1b9ab95bfa6fe4e445e9b884

Jooyung Han   authored and   Automerger Merge Worker   commited 2020-05-08 10:44:56 +00:00
aea37a492d
Merge "Set min_sdk_version for updatable mainline modules" am: 50f4887299 am: e25536866e
Change-Id: I3152d9e94e0a1fce02ecb16b3ec0cea92c856ebe

Jooyung Han   authored and   Automerger Merge Worker   commited 2020-05-08 09:40:48 +00:00
669772eb76
Set min_sdk_version for updatable mainline modules
Modules contributing mainline modules (APK/APEX) should set
min_sdk_version as well as apex_available.

For now setting min_sdk_version doesn't change build outputs.
But build-time checks will be added soon.

Bug: 145796956
Bug: 150999716
Test: m
Change-Id: Ifaecb49a47a1f43edea3ea06e1cf704a177d1044

Jooyung Han   commited 2020-05-07 17:30:00 +09:00
8182d8bd56
Merge "Enable api lint and check_last_api for modules" into rvc-dev am: 3f34b58cee am: b79d07bb0e am: 05b28e03c5 am: 6e56ed82f8
Change-Id: I2fed16e195880a4ecb03dacf1aa3787d2f7794d3

Anton Hansson   authored and   Automerger Merge Worker   commited 2020-05-06 10:24:21 +00:00
acc558a279
Merge "Enable api lint and check_last_api for modules" into rvc-dev am: 3f34b58cee am: b79d07bb0e
Change-Id: I919965aceb625ccdcfea6d50d408462452801dbf

Anton Hansson   authored and   Automerger Merge Worker   commited 2020-05-06 09:44:26 +00:00
05b28e03c5
Merge "Enable api lint and check_last_api for modules" into rvc-dev am: 3f34b58cee
Change-Id: Iceaddc7ad960239c33f97d17616b0ba984e0a5ea

Anton Hansson   authored and   Automerger Merge Worker   commited 2020-05-06 09:30:20 +00:00
834ffa7f52
Enable api lint and check_last_api for modules
This adds checking of module api compatibility to the individual module
api rules. Until now, this checking has been done via the monolithic
metalava runs which we are aiming to get rid of.

Now is a good time to do this because we can compare them to the just
finalized version 30 API, which we have no diffs with. Baseline the
existing wifi failures that metalava fails to find in the previous API.

Bug: 144149403
Test: m checkapi
Change-Id: Id222895daa3a769c265965b052a17d5a1ca18462

Anton Hansson   commited 2020-05-05 19:17:08 +01:00
5b0be161ad
Merge "Rename module dist files"
Anton Hansson   authored and   Gerrit Code Review   commited 2020-05-05 13:45:03 +00:00
b098442b7b
Merge "Rename module dist files" into rvc-dev am: 7e0949732f am: 5dadd627be am: 52ba1b7f85 am: 5413c99cc5
Change-Id: Icfe69c6ac573de1f78ac97eb50ea1ce61a83d0a5

Anton Hansson   authored and   Automerger Merge Worker   commited 2020-05-01 09:13:25 +00:00
0ada065772
Merge "Fix tethering module lib stub default"
Anton Hansson   authored and   Gerrit Code Review   commited 2020-05-01 08:58:26 +00:00
d2ec5841fb
Merge "Rename module dist files" into rvc-dev am: 7e0949732f am: 5dadd627be
Change-Id: I26692b3902bd9dfe97196acd11bd6ddb73b8f16e

Anton Hansson   authored and   Automerger Merge Worker   commited 2020-05-01 08:48:42 +00:00
52ba1b7f85
Merge "Rename module dist files" into rvc-dev am: 7e0949732f
Change-Id: If24bfcc6dbe243d61863a5561b01f44bdadb439e

Anton Hansson   authored and   Automerger Merge Worker   commited 2020-05-01 08:38:54 +00:00
b84b93b629
Merge "Fix tethering module lib stub default" into rvc-dev am: f4fe711313 am: 03a93bff6d am: 605b8564b7 am: 7439d68b74
Change-Id: Id47b937bb7ae864a150720c5c5757b72c300baaf

Anton Hansson   authored and   Automerger Merge Worker   commited 2020-04-30 20:26:01 +00:00
c8e9da6d4a
Merge "Fix tethering module lib stub default" into rvc-dev am: f4fe711313 am: 03a93bff6d
Change-Id: I0c9a7df0d9c5fd060f27316a12f74c228d797c93

Anton Hansson   authored and   Automerger Merge Worker   commited 2020-04-30 20:07:58 +00:00
605b8564b7
Rename module dist files
This makes the filenames of the disted artifacts (api txts and stubs)
match the module name of the modules they're from. This matches the
naming scheme used by java_sdk_library, which should make the future
transition to this build rule easier.

Bug: 149293194
Test: lunch sdk_phone_armv7 && m sdk dist && find out/dist/apistubs
Change-Id: I076f30931bf2524d57703873cd7de25b3f23b457
Merged-In: I076f30931bf2524d57703873cd7de25b3f23b457
(cherry picked from commit d7f1fabc94)

Anton Hansson   commited 2020-04-30 20:56:11 +01:00
bb5231decc
Merge "Fix tethering module lib stub default" into rvc-dev am: f4fe711313
Change-Id: I9366346c2e9735b3dcbe0e54fa886e65d86106c0

Anton Hansson   authored and   Automerger Merge Worker   commited 2020-04-30 19:53:17 +00:00
261d6735ce
Rename module dist files
This makes the filenames of the disted artifacts (api txts and stubs)
match the module name of the modules they're from. This matches the
naming scheme used by java_sdk_library, which should make the future
transition to this build rule easier.

Bug: 149293194
Test: lunch sdk_phone_armv7 && m sdk dist && find out/dist/apistubs
Change-Id: I076f30931bf2524d57703873cd7de25b3f23b457

Anton Hansson   commited 2020-04-30 17:42:20 +01:00
d7f1fabc94
Fix tethering module lib stub default
It was using the systemapi stub defaults, but should be using the
module_lib default.

Bug: 144149403
Test: m
Change-Id: Iaab154d9d71900284d92d518a086fc1227c00d5c
Merged-In: Iaab154d9d71900284d92d518a086fc1227c00d5c
(cherry picked from commit dc8e0fc1a1)

Anton Hansson   commited 2020-04-30 17:05:01 +01:00
a8f2e3ead5
Fix tethering module lib stub default
It was using the systemapi stub defaults, but should be using the
module_lib default.

Bug: 144149403
Test: m
Change-Id: Iaab154d9d71900284d92d518a086fc1227c00d5c

Anton Hansson   commited 2020-04-30 17:02:07 +01:00
dc8e0fc1a1
Merge "Set attributionTag for noteOp(WRITE_SETTINGS) calls" am: 83ba9531d7 am: 319db1af8b
Change-Id: I099944752fc3006c1e98750dd46dbebf5e50789f

Philip P. Moltmann   authored and   Automerger Merge Worker   commited 2020-04-22 15:19:14 +00:00
8d5c1d7efb
Merge "Set attributionTag for noteOp(WRITE_SETTINGS) calls"
Philip P. Moltmann   authored and   Android (Google) Code Review   commited 2020-04-22 14:57:49 +00:00
f4c703461d
Set attributionTag for noteOp(WRITE_SETTINGS) calls
Test: atest FrameworksNetTests
Bug: 136595429
Change-Id: I33f787644c44d7b0e5ce17a433820cfcd985cdfb
Exempt-From-Owner-Approval: Merge from AOSP

Philip P. Moltmann   commited 2020-04-21 21:46:34 +00:00
b94bb42096
Set attributionTag for noteOp(WRITE_SETTINGS) calls
Test: atest FrameworksNetTests TetheringTests:TetheringServiceTest
Bug: 136595429
Merged-In: I33f787644c44d7b0e5ce17a433820cfcd985cdfb
Change-Id: Ic3d937e7bb5141798234ed5b2852c1f768e97495

Philip P. Moltmann   commited 2020-04-20 18:00:03 -07:00
64343b0b8d
Mark some aidl_interface modules as unstable
With b/152655547, all aidl_interface modules are considered as stable
unless it is explicitly with "unstable: true". This change marks the
aidl_interface that are not used across updatable module bounraries
as unstable, so that the build system does not run the API
dumping/checking on them.

Exempt-From-Owner-Approval: cherry-pick from internal

Bug: 152655547
Test: m
Merged-In: I1257c66de6dd42b2d32d47ed74cb2878f79d14fb
(cherry picked from commit 6c9c10c91e)
Change-Id: I1257c66de6dd42b2d32d47ed74cb2878f79d14fb

Jiyong Park   commited 2020-04-20 07:44:52 +00:00
de93db8570
Mark some aidl_interface modules as unstable
With b/152655547, all aidl_interface modules are considered as stable
unless it is explicitly with "unstable: true". This change marks the
aidl_interface that are not used across updatable module bounraries
as unstable, so that the build system does not run the API
dumping/checking on them.

Bug: 152655547
Test: m
Change-Id: I1257c66de6dd42b2d32d47ed74cb2878f79d14fb

Jiyong Park   commited 2020-04-13 13:00:47 +09:00
6c9c10c91e
Assign specific client address to dhcp server
Bug: 141256482
Test: manual
      atest TetheringTests

Merged-In: Ief76c98c843ba5420224cbf0f34464f366c891b7
Change-Id: Ief76c98c843ba5420224cbf0f34464f366c891b7

Treehugger Robot   authored and   Mark Chien   commited 2020-04-10 10:03:20 +00:00
5da1070d8f
Feed framework-tethering-stubs the src filegroup
This filegroups strips the "src" prefix away from the src path
for the filter_packages check in droiddoc.

Bug: 149293194
Test: m update-api (no change)
Change-Id: I5b9ffa211be9c1a7dd8f63d5e7ba2a825d0d3190
Merged-In: I5b9ffa211be9c1a7dd8f63d5e7ba2a825d0d3190

Anton Hansson   commited 2020-03-31 09:56:55 +01:00
cdc8658403
Merge "Make framework-tethering stubs use the new defaults"
Anton Hansson   authored and   Gerrit Code Review   commited 2020-03-30 14:16:02 +00:00
fb38e85a50
Merge "Assign specific client address to dhcp server" am: 037becbf64 am: 815ab636c3
Change-Id: Ia0e4a913faa5eac5d5ccba837eb7774d59670d27

Treehugger Robot   authored and   Automerger Merge Worker   commited 2020-03-30 04:23:55 +00:00
a3fbca5f60
Merge "Assign specific client address to dhcp server"
Treehugger Robot   authored and   Gerrit Code Review   commited 2020-03-30 03:38:46 +00:00
037becbf64
Feed framework-tethering-stubs the src filegroup
This filegroups strips the "src" prefix away from the src path
for the filter_packages check in droiddoc.

Bug: 149293194
Test: m update-api (no change)
Change-Id: I5b9ffa211be9c1a7dd8f63d5e7ba2a825d0d3190

Anton Hansson   commited 2020-03-27 13:46:11 +00:00
90ae90b6e0
Make framework-tethering stubs use the new defaults
Makes it convenient to change all stubs from a central place.

Bug: 149293194
Test: m framework-tethering-stubs{public,system,module_libs_}api
Exempt-From-Owner-Approval: Approved internally
Change-Id: I330133824e78b3a8927e3d3ffbbd729bcdcb8822
Merged-In: I330133824e78b3a8927e3d3ffbbd729bcdcb8822
(cherry picked from commit 7939cb0a4a)

Anton Hansson   commited 2020-03-26 12:15:01 +00:00
5fa1704f04
Merge "Make framework-tethering stubs use the new defaults" into rvc-dev
Anton Hansson   authored and   Android (Google) Code Review   commited 2020-03-26 08:39:02 +00:00
49c50fb36b
Merge "Add permitted_packages to framework-tethering."
Vladimir Marko   authored and   Gerrit Code Review   commited 2020-03-25 17:09:24 +00:00
3ef31a3ccd
Add permitted_packages to framework-tethering.
(cherry picked from commit 577707e09b)

Test: m out/soong/.intermediates/frameworks/base/packages/Tethering/common/TetheringLib/framework-tethering/android_common/package-check.stamp
Bug: 151314205
Merged-In: I248c36b2cf2f5776978c4fd2322d3b73ade309ff
Change-Id: Iddeeb6648f1ed2a31eebf04eb465ea675fb610ae

Vladimir Marko   commited 2020-03-25 14:04:00 +00:00
eae43d4fcc
Add permitted_packages to framework-tethering.
Test: m out/soong/.intermediates/frameworks/base/packages/Tethering/common/TetheringLib/framework-tethering/android_common/package-check.stamp
Bug: 151314205
Change-Id: I248c36b2cf2f5776978c4fd2322d3b73ade309ff

Vladimir Marko   commited 2020-03-25 11:19:36 +00:00
577707e09b
Hide startTethering with type function to module-lib only
Bug: 151918384
Test: m
Change-Id: Icef8b363aae97dd020d618bcb397f661aa6c4750
Merged-In: Icef8b363aae97dd020d618bcb397f661aa6c4750

markchien   authored and   Mark Chien   commited 2020-03-25 08:07:01 +00:00
1d0aebc713
Make framework-tethering stubs use the new defaults
Makes it convenient to change all stubs from a central place.

Bug: 149293194
Test: m framework-tethering-stubs{public,system,module_libs_}api
Change-Id: I330133824e78b3a8927e3d3ffbbd729bcdcb8822

Anton Hansson   commited 2020-03-24 19:52:44 +00:00
7939cb0a4a
Address API council review comment about TetheringRequest
Test: atest TetheringTests FrameworksNetTests NetworkStackTests
Bug: 152055812
Change-Id: I0158d88e364772f9ac258bd18955edcdad266ad8
Merged-In: I0158d88e364772f9ac258bd18955edcdad266ad8
(this is a clean cherry-pick from ag/10796412)

Change-Id: I64f1527d79085cc5dfd78c01a6c49c4df87c82e7

junyulai   commited 2020-03-23 14:14:22 +08:00
a8b377747b
Address API council review comment about TetheringRequest
Test: atest TetheringTests FrameworksNetTests NetworkStackTests
Bug: 152055812
Change-Id: I0158d88e364772f9ac258bd18955edcdad266ad8

junyulai   commited 2020-03-23 12:13:57 +08:00
e3b9708c3a
Update tethering module api files
Bug: 147768409
Test: m checkapi
Merged-In: Idd041f0fbeca411ea23e49786a50dd7feb77ef45
Change-Id: I3da71661048b1f66522696e9333c2c14a224fe9f

Anton Hansson   commited 2020-03-20 13:49:34 +00:00
4168cea5e1
Merge "Add individual API tracking files for modules"
Anton Hansson   authored and   Gerrit Code Review   commited 2020-03-20 12:47:52 +00:00
4dd8a42cff
Hide startTethering with type function to module-lib only
Bug: 151918384
Test: m
Change-Id: Icef8b363aae97dd020d618bcb397f661aa6c4750

markchien   commited 2020-03-19 21:04:04 +08:00
b1bfea5367
TetheringManager API clean up
Per API review:
- @IntDef defined on the type integer parameter
- have getters on each parameter that is set in the
  TetheringRequest.Builder
- new added API should not be deprecated
Below APIs is moved from system-current to module-lib-current that only
plafrom code(e.g. ConnectivityManager and Settings) can use them.
TetheringRequest.
onTetherableInterfaceRegexpsChanged, TetheringInterfaceRegexps:
Only platform code can use them because interfaces by regular
expressions are a mechanism which is planning to be deprecated.

Also rename some constants for easier to understand.

Bug: 149858697
Bug: 151243337
Test: m doc-comment-check-docs
      atest TetheringTests
Change-Id: I45cb21d5bc919f6d32c42650326597d5173ea028
Merged-In: Idd041f0fbeca411ea23e49786a50dd7feb77ef45

markchien   commited 2020-03-19 19:32:50 +08:00
8146b56d01
Add individual API tracking files for modules
This adds metalava api tracking generation to the module
stub rules, to make sure we know exactly what API a
particular module stub exports.

Bug: 147768409
Test: m update-api check-api
Exempt-From-Owner-Approval: approved internally
Change-Id: Iaf2ef5b5751eb208d119ddbc74481239366fe581
Merged-In: Iaf2ef5b5751eb208d119ddbc74481239366fe581
(cherry picked from commit e7c52c7e3f)

Anton Hansson   commited 2020-03-19 08:51:11 +00:00
65d1e30c0f
TetheringManager API clean up
Per API review:
- @IntDef defined on the type integer parameter
- have getters on each parameter that is set in the
  TetheringRequest.Builder
- new added API should not be deprecated
Below APIs is moved from system-current to module-lib-current that only
plafrom code(e.g. ConnectivityManager and Settings) can use them.
TetheringRequest.
onTetherableInterfaceRegexpsChanged, TetheringInterfaceRegexps:
Only platform code can use them because interfaces by regular
expressions are a mechanism which is planning to be deprecated.

Also rename some constants for easier to understand.

Bug: 149858697
Bug: 151243337
Test: m doc-comment-check-docs
      atest TetheringTests
Change-Id: Idd041f0fbeca411ea23e49786a50dd7feb77ef45

markchien   commited 2020-03-19 16:32:37 +08:00
f1332573bb
Support static address configuration
Application can specify static ipv4 server and client address to setup
tethering and this is one shot configuration. Tethering service would
not save the configuration and the configuration would be reset when
tethering stop or start failure.

When startTethering callback fired, it just mean tethering is requested
successful. Therefore, callers may call startTethering again if
startTethering successful but do not receive following tethering active
notification for a while. Tethering service never actually does anything
synchronously when startTethering is called:
  -startProvisioningIfNeeded just posts a message to the handler thread.
  -enableTetheringInternal doesn't do anything synchronously, it just
  asks the downstreams to get their interfaces ready and waits for
  callbacks.
If tethering is already enabled with a different request,
tethering would be disabled and re-enabled.

Bug: 141256482
Test: -build, flash, boot
      -atest TetheringTests
      -atest CtsTetheringTest

Change-Id: I2b2dd965a673e6f1626738d41b5d443f0f9fbd0e
Merged-In: I0399917e7cefa1547d617e688225544c4fc1a231
(cherry picked from commit 5d6723e24e21154bef3967585a8adc069e007f49)

Automerger Merge Worker   authored and   markchien   commited 2020-03-19 12:39:46 +08:00
9462a3c9f0