android_packages_modules_Co.../common/flags.aconfig
Junyu Lai d0e049455c Support NetworkStats#addEntries API
Currently, NetworkStats#addEntry creates a new instance
containing the requested result instead of mutating the
original object. This creates a heavy memory footprint
when the caller invokes it in a loop because a new NetworkStats
instance is created whenever an addEntry is called.

This change introduces a new API that allows callers to
add a set of entries to a NetworkStats instance. This new
API will clone the instance only once, return the newly
created (and modified) instance, and ensure that the original
instance remains immutable.

Additionally, the change adopts config libraries for flagging
the API and corresponding CTS tests, since Android U-based
branches are no longer downstream of current development branches.

Test: atest FrameworksNetTests:android.net.connectivity.android.net.netstats.NetworkStatsApiTest
Test: atest CtsNetTestCases:NetworkStatsApiTest
Bug: 335680025
Fix: 357772271
API-Coverage-Bug: 357772271
Change-Id: I58513844e681c0621a6107ec4b198cd3957f289d
2024-08-09 14:19:38 +08:00

133 lines
3.3 KiB
Text

package: "com.android.net.flags"
container: "com.android.tethering"
# This file contains aconfig flags for FlaggedAPI annotations
# Flags used from platform code must be in under frameworks
flag {
name: "set_data_saver_via_cm"
is_exported: true
namespace: "android_core_networking"
description: "Set data saver through ConnectivityManager API"
bug: "297836825"
}
flag {
name: "support_is_uid_networking_blocked"
is_exported: true
namespace: "android_core_networking"
description: "This flag controls whether isUidNetworkingBlocked is supported"
bug: "297836825"
}
flag {
name: "basic_background_restrictions_enabled"
is_exported: true
namespace: "android_core_networking"
description: "Block network access for apps in a low importance background state"
bug: "304347838"
}
flag {
name: "ipsec_transform_state"
is_exported: true
namespace: "android_core_networking_ipsec"
description: "The flag controls the access for getIpSecTransformState and IpSecTransformState"
bug: "308011229"
}
flag {
name: "tethering_request_with_soft_ap_config"
is_exported: true
namespace: "android_core_networking"
description: "The flag controls the access for the parcelable TetheringRequest with getSoftApConfiguration/setSoftApConfiguration API"
bug: "216524590"
}
flag {
name: "request_restricted_wifi"
is_exported: true
namespace: "android_core_networking"
description: "Flag for API to support requesting restricted wifi"
bug: "315835605"
}
flag {
name: "net_capability_local_network"
is_exported: true
namespace: "android_core_networking"
description: "Flag for local network capability API"
bug: "313000440"
}
flag {
name: "support_transport_satellite"
is_exported: true
namespace: "android_core_networking"
description: "Flag for satellite transport API"
bug: "320514105"
}
flag {
name: "nsd_subtypes_support_enabled"
is_exported: true
namespace: "android_core_networking"
description: "Flag for API to support nsd subtypes"
bug: "265095929"
}
flag {
name: "register_nsd_offload_engine_api"
is_exported: true
namespace: "android_core_networking"
description: "Flag for API to register nsd offload engine"
bug: "301713539"
}
flag {
name: "metered_network_firewall_chains"
is_exported: true
namespace: "android_core_networking"
description: "Flag for metered network firewall chain API"
bug: "332628891"
}
flag {
name: "blocked_reason_oem_deny_chains"
is_exported: true
namespace: "android_core_networking"
description: "Flag for oem deny chains blocked reasons API"
bug: "328732146"
}
flag {
name: "blocked_reason_network_restricted"
is_exported: true
namespace: "android_core_networking"
description: "Flag for BLOCKED_REASON_NETWORK_RESTRICTED API"
bug: "339559837"
}
flag {
name: "net_capability_not_bandwidth_constrained"
is_exported: true
namespace: "android_core_networking"
description: "Flag for NET_CAPABILITY_NOT_BANDWIDTH_CONSTRAINED API"
bug: "343823469"
}
flag {
name: "tethering_request_virtual"
is_exported: true
namespace: "android_core_networking"
description: "Flag for introducing TETHERING_VIRTUAL type"
bug: "340376953"
}
flag {
name: "netstats_add_entries"
is_exported: true
namespace: "android_core_networking"
description: "Flag for NetworkStats#addEntries API"
bug: "335680025"
}