No description. Add one?
  • Java 78%
  • Kotlin 11.8%
  • AIDL 4.4%
  • C++ 3.7%
  • C 1.5%
  • Other 0.5%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Patrick Rohr 74a8f475b2 Implement matching semantics for L2capNetworkSpecifier
A server network is created by using ConnectivityManger#reserveNetwork,
in which the app passes a specifier that sets:

reservationRequest = {
    role = server
    headerCompression = 6lowpan
    remoteAddr = any (null)
    psm = any
}

This specifier must subsequently match the blanket reservation offer,
and the reserved offer that is generated as a response:

blanketOffer = {
    role = server
    headerCompression = any
    remoteAddr = any (null)
    psm = any
}

reservedOffer = {
    role = server
    headerCompression = 6lowpan
    remoteAddr = any (null)
    psm = 0x81
}

And not the client network offer or a client network:

clientOffer = {
    role = client
    headerCompression = any
    remoteAddr = any (null)
    psm = any
}

clientNetwork = {
    role = client
    headerCompression = 6lowpan
    remoteAddr = 01:02:03:04:05:06
    psm = 0x81
}

Similarly the client request must match both the clientOffer and
clientNetweork, but not the reservedOffer (and technically
blanketOffer):

clientRequest = {
    role = client
    headerCompression = 6lowpan
    remoteAddr = 01:02:03:04:05:06
    psm = 0x81
}

Note, a request for TRANSPORT_BLUETOOTH with no specifier matches *any*
specifier per specifier matching semantics in NetworkCapabilities.

Test: L2capNetworkSpecifierTest
Change-Id: Ia16926b463a54530ae6e88278466e92ed82bf852
2025-01-10 14:46:54 -08:00
bpf bpf: Test bitmap open (duplicates GTS) 2024-12-18 13:49:45 -08:00
clatd Fix a function pointer type mismatch for C23. 2024-12-18 11:22:10 -08:00
common Merge "Export com.android.net.flags for wifi apex" into main 2024-12-18 18:56:14 -08:00
framework Implement matching semantics for L2capNetworkSpecifier 2025-01-10 14:46:54 -08:00
framework-t Merge "in NetworkStatsAccess.checkAccessLevel, check SYSTEM_UID ahead" into main 2025-01-06 15:22:01 -08:00
nearby Use @SdkSuppress in BluetoothFinder tests, now that Build.VERSION_CODES.VANILLA_ICE_CREAM is avilable. am: 79f907d195 2024-12-12 11:00:14 -08:00
networksecurity Reduce the visibility of logging to statsd to package-private 2025-01-07 11:31:16 +00:00
remoteauth Merge "Use LazyLock rather than lazy_static macro." into main 2024-09-11 17:46:22 +00:00
service Merge "Add missing permission check to offerNetwork" into main 2025-01-06 15:07:04 -08:00
service-b Conditionally include VCN in Tethering module 2024-12-09 12:04:12 -08:00
service-t Merge "Remove the transactionId field" into main 2024-12-24 21:22:07 -08:00
staticlibs Merge "Log and report terrible errors for improved debugging and tracking" into main 2025-01-07 01:06:29 -08:00
tests Implement matching semantics for L2capNetworkSpecifier 2025-01-10 14:46:54 -08:00
Tethering Merge "Revert "Send TetheringRequest to restart Tethering from IpServer"" into main 2025-01-06 18:49:59 -08:00
thread Add logs in IntegrationTestUtils.kt for service discovery 2025-01-02 16:53:35 +08:00
tools Remove dependencies on the 1-variant fallback 2024-10-22 16:31:00 -07:00
.gitignore Ignores vim temporary files from git 2023-12-23 17:45:32 +08:00
OWNERS Move the owner of xfrm netlink source code to its own directory. 2023-11-22 18:50:00 +09:00
OWNERS_core_networking Mark Martin as LAST_RESORT_SUGGESTION 2024-09-26 22:29:48 +00:00
OWNERS_core_networking_xts Add "no-op refactors" reviews for delegated reviewers 2024-06-20 06:29:09 +00:00
PREUPLOAD.cfg Disable ktfmt and rely solely on ktlint for Kotlin linting 2024-12-13 12:29:19 +09:00
TEST_MAPPING Add CtsNetTestCasesUpdateStatsPermission to automotive-mumd-presubmit 2024-11-26 23:29:10 +00:00