GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Why Go
  • Case Studies
  • Use Cases
  • Security
  • Learn
  • Effective Go
  • Go User Manual
  • Standard library
  • Release Notes
  • API
  • Packages
  • Recorded Talks
  • Meetups
  • Conferences

This view

  • Original page
  • New address

GeezerVison is showing pkg.go.dev — net package - github.com/AndroidGoLab/binder/android/net - Go Packages

Details

  • checked Valid go.mod file

    The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.

  • checked Redistributable license

    Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.

  • checked Tagged version

    Modules with tagged versions give importers more predictable builds.

  • unchecked Stable version

    When a project reaches major version v1 it is considered stable.

  • Learn more about best practices

Repository

github.com/AndroidGoLab/binder

Links

  • Open Source Insights Logo Open Source Insights

Documentation ¶

Index ¶

  • Constants
  • type ConnectivityMetricsEvent
    • func (s *ConnectivityMetricsEvent) MarshalParcel(p *parcel.Parcel) error
    • func (s *ConnectivityMetricsEvent) UnmarshalParcel(p *parcel.Parcel) error
  • type IIpConnectivityMetrics
    • func NewIpConnectivityMetricsStub(impl IIpConnectivityMetricsServer) IIpConnectivityMetrics
  • type IIpConnectivityMetricsServer
  • type INetdEventCallback
    • func NewNetdEventCallbackStub(impl INetdEventCallbackServer) INetdEventCallback
  • type INetdEventCallbackServer
  • type INetworkManagementEventObserver
    • func NewNetworkManagementEventObserverStub(impl INetworkManagementEventObserverServer) INetworkManagementEventObserver
  • type INetworkManagementEventObserverServer
  • type INetworkPolicyListener
    • func NewNetworkPolicyListenerStub(impl INetworkPolicyListenerServer) INetworkPolicyListener
  • type INetworkPolicyListenerServer
  • type INetworkPolicyManager
    • func NewNetworkPolicyManagerStub(impl INetworkPolicyManagerServer) INetworkPolicyManager
  • type INetworkPolicyManagerServer
  • type INetworkRecommendationProvider
    • func NewNetworkRecommendationProviderStub(impl INetworkRecommendationProviderServer) INetworkRecommendationProvider
  • type INetworkRecommendationProviderServer
  • type INetworkScoreCache
    • func NewNetworkScoreCacheStub(impl INetworkScoreCacheServer) INetworkScoreCache
  • type INetworkScoreCacheServer
  • type INetworkScoreService
    • func NewNetworkScoreServiceStub(impl INetworkScoreServiceServer) INetworkScoreService
  • type INetworkScoreServiceServer
  • type IPacProxyInstalledListener
    • func NewPacProxyInstalledListenerStub(impl IPacProxyInstalledListenerServer) IPacProxyInstalledListener
  • type IPacProxyInstalledListenerServer
  • type IPacProxyManager
    • func NewPacProxyManagerStub(impl IPacProxyManagerServer) IPacProxyManager
  • type IPacProxyManagerServer
  • type IVpnManager
    • func NewVpnManagerStub(impl IVpnManagerServer) IVpnManager
  • type IVpnManagerServer
  • type InterfaceConfiguration
    • func (s *InterfaceConfiguration) MarshalParcel(p *parcel.Parcel) error
    • func (s *InterfaceConfiguration) UnmarshalParcel(p *parcel.Parcel) error
  • type IpConnectivityMetricsProxy
    • func NewIpConnectivityMetricsProxy(remote binder.IBinder) *IpConnectivityMetricsProxy
    • func (p *IpConnectivityMetricsProxy) AddNetdEventCallback(ctx context.Context, callerType int32, callback INetdEventCallback) (bool, error)
    • func (p *IpConnectivityMetricsProxy) AsBinder() binder.IBinder
    • func (p *IpConnectivityMetricsProxy) LogDefaultNetworkEvent(ctx context.Context, defaultNetwork any, score int32, validated bool, lp any, ...) error
    • func (p *IpConnectivityMetricsProxy) LogDefaultNetworkValidity(ctx context.Context, valid bool) error
    • func (p *IpConnectivityMetricsProxy) LogEvent(ctx context.Context, event ConnectivityMetricsEvent) (int32, error)
    • func (p *IpConnectivityMetricsProxy) RemoveNetdEventCallback(ctx context.Context, callerType int32) (bool, error)
  • type IpConnectivityMetricsStub
    • func (s *IpConnectivityMetricsStub) Descriptor() string
    • func (s *IpConnectivityMetricsStub) OnTransaction(ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel) (*parcel.Parcel, error)
  • type LinkQualityInfo
    • func (s *LinkQualityInfo) MarshalParcel(p *parcel.Parcel) error
    • func (s *LinkQualityInfo) UnmarshalParcel(p *parcel.Parcel) error
  • type NattKeepalivePacketData
    • func (s *NattKeepalivePacketData) MarshalParcel(p *parcel.Parcel) error
    • func (s *NattKeepalivePacketData) UnmarshalParcel(p *parcel.Parcel) error
  • type NetdEventCallbackProxy
    • func NewNetdEventCallbackProxy(remote binder.IBinder) *NetdEventCallbackProxy
    • func (p *NetdEventCallbackProxy) AsBinder() binder.IBinder
    • func (p *NetdEventCallbackProxy) OnConnectEvent(ctx context.Context, ipAddr string, port int32, timestamp int64, uid int32) error
    • func (p *NetdEventCallbackProxy) OnDnsEvent(ctx context.Context, netId int32, eventType int32, returnCode int32, ...) error
    • func (p *NetdEventCallbackProxy) OnNat64PrefixEvent(ctx context.Context, netId int32, added bool, prefixString string, ...) error
    • func (p *NetdEventCallbackProxy) OnPrivateDnsValidationEvent(ctx context.Context, netId int32, ipAddress string, hostname string, ...) error
  • type NetdEventCallbackStub
    • func (s *NetdEventCallbackStub) Descriptor() string
    • func (s *NetdEventCallbackStub) OnTransaction(ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel) (*parcel.Parcel, error)
  • type NetworkKey
    • func (s *NetworkKey) MarshalParcel(p *parcel.Parcel) error
    • func (s *NetworkKey) UnmarshalParcel(p *parcel.Parcel) error
  • type NetworkManagementEventObserverProxy
    • func NewNetworkManagementEventObserverProxy(remote binder.IBinder) *NetworkManagementEventObserverProxy
    • func (p *NetworkManagementEventObserverProxy) AddressRemoved(ctx context.Context, iface string, address data.LinkAddress) error
    • func (p *NetworkManagementEventObserverProxy) AddressUpdated(ctx context.Context, iface string, address data.LinkAddress) error
    • func (p *NetworkManagementEventObserverProxy) AsBinder() binder.IBinder
    • func (p *NetworkManagementEventObserverProxy) InterfaceAdded(ctx context.Context, iface string) error
    • func (p *NetworkManagementEventObserverProxy) InterfaceClassDataActivityChanged(ctx context.Context, label int32, active bool, tsNanos int64, uid int32) error
    • func (p *NetworkManagementEventObserverProxy) InterfaceDnsServerInfo(ctx context.Context, iface string, lifetime int64, servers []string) error
    • func (p *NetworkManagementEventObserverProxy) InterfaceLinkStateChanged(ctx context.Context, iface string, up bool) error
    • func (p *NetworkManagementEventObserverProxy) InterfaceRemoved(ctx context.Context, iface string) error
    • func (p *NetworkManagementEventObserverProxy) InterfaceStatusChanged(ctx context.Context, iface string, up bool) error
    • func (p *NetworkManagementEventObserverProxy) LimitReached(ctx context.Context, limitName string, iface string) error
    • func (p *NetworkManagementEventObserverProxy) RouteRemoved(ctx context.Context, route any) error
    • func (p *NetworkManagementEventObserverProxy) RouteUpdated(ctx context.Context, route any) error
  • type NetworkManagementEventObserverStub
    • func (s *NetworkManagementEventObserverStub) Descriptor() string
    • func (s *NetworkManagementEventObserverStub) OnTransaction(ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel) (*parcel.Parcel, error)
  • type NetworkPolicy
    • func (s *NetworkPolicy) MarshalParcel(p *parcel.Parcel) error
    • func (s *NetworkPolicy) UnmarshalParcel(p *parcel.Parcel) error
  • type NetworkPolicyListenerProxy
    • func NewNetworkPolicyListenerProxy(remote binder.IBinder) *NetworkPolicyListenerProxy
    • func (p *NetworkPolicyListenerProxy) AsBinder() binder.IBinder
    • func (p *NetworkPolicyListenerProxy) OnBlockedReasonChanged(ctx context.Context, uid int32, oldBlockedReason int32, newBlockedReason int32) error
    • func (p *NetworkPolicyListenerProxy) OnMeteredIfacesChanged(ctx context.Context, meteredIfaces []string) error
    • func (p *NetworkPolicyListenerProxy) OnRestrictBackgroundChanged(ctx context.Context, restrictBackground bool) error
    • func (p *NetworkPolicyListenerProxy) OnSubscriptionOverride(ctx context.Context, subId int32, overrideMask int32, overrideValue int32, ...) error
    • func (p *NetworkPolicyListenerProxy) OnSubscriptionPlansChanged(ctx context.Context, subId int32, plans []telephony.SubscriptionPlan) error
    • func (p *NetworkPolicyListenerProxy) OnUidPoliciesChanged(ctx context.Context, uid int32, uidPolicies int32) error
    • func (p *NetworkPolicyListenerProxy) OnUidRulesChanged(ctx context.Context, uid int32, uidRules int32) error
  • type NetworkPolicyListenerStub
    • func (s *NetworkPolicyListenerStub) Descriptor() string
    • func (s *NetworkPolicyListenerStub) OnTransaction(ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel) (*parcel.Parcel, error)
  • type NetworkPolicyManagerProxy
    • func GetNetworkPolicyManager(ctx context.Context, sm *servicemanager.ServiceManager) (*NetworkPolicyManagerProxy, error)
    • func NewNetworkPolicyManagerProxy(remote binder.IBinder) *NetworkPolicyManagerProxy
    • func (p *NetworkPolicyManagerProxy) AddUidPolicy(ctx context.Context, uid int32, policy int32) error
    • func (p *NetworkPolicyManagerProxy) AsBinder() binder.IBinder
    • func (p *NetworkPolicyManagerProxy) FactoryReset(ctx context.Context, subscriber string) error
    • func (p *NetworkPolicyManagerProxy) GetMultipathPreference(ctx context.Context, network any) (int32, error)
    • func (p *NetworkPolicyManagerProxy) GetNetworkPolicies(ctx context.Context) ([]NetworkPolicy, error)
    • func (p *NetworkPolicyManagerProxy) GetRestrictBackground(ctx context.Context) (bool, error)
    • func (p *NetworkPolicyManagerProxy) GetRestrictBackgroundByCaller(ctx context.Context) (int32, error)
    • func (p *NetworkPolicyManagerProxy) GetRestrictBackgroundStatus(ctx context.Context, uid int32) (int32, error)
    • func (p *NetworkPolicyManagerProxy) GetSubscriptionPlan(ctx context.Context, template any) (telephony.SubscriptionPlan, error)
    • func (p *NetworkPolicyManagerProxy) GetSubscriptionPlans(ctx context.Context, subId int32) ([]telephony.SubscriptionPlan, error)
    • func (p *NetworkPolicyManagerProxy) GetSubscriptionPlansOwner(ctx context.Context, subId int32) (string, error)
    • func (p *NetworkPolicyManagerProxy) GetUidPolicy(ctx context.Context, uid int32) (int32, error)
    • func (p *NetworkPolicyManagerProxy) GetUidsWithPolicy(ctx context.Context, policy int32) ([]int32, error)
    • func (p *NetworkPolicyManagerProxy) IsUidNetworkingBlocked(ctx context.Context, uid int32, meteredNetwork bool) (bool, error)
    • func (p *NetworkPolicyManagerProxy) IsUidRestrictedOnMeteredNetworks(ctx context.Context, uid int32) (bool, error)
    • func (p *NetworkPolicyManagerProxy) NotifyStatsProviderWarningOrLimitReached(ctx context.Context) error
    • func (p *NetworkPolicyManagerProxy) RegisterListener(ctx context.Context, listener INetworkPolicyListener) error
    • func (p *NetworkPolicyManagerProxy) RemoveUidPolicy(ctx context.Context, uid int32, policy int32) error
    • func (p *NetworkPolicyManagerProxy) SetDeviceIdleMode(ctx context.Context, enabled bool) error
    • func (p *NetworkPolicyManagerProxy) SetNetworkPolicies(ctx context.Context, policies []NetworkPolicy) error
    • func (p *NetworkPolicyManagerProxy) SetRestrictBackground(ctx context.Context, restrictBackground bool) error
    • func (p *NetworkPolicyManagerProxy) SetSubscriptionOverride(ctx context.Context, subId int32, overrideMask int32, overrideValue int32, ...) error
    • func (p *NetworkPolicyManagerProxy) SetSubscriptionPlans(ctx context.Context, subId int32, plans []telephony.SubscriptionPlan, ...) error
    • func (p *NetworkPolicyManagerProxy) SetUidPolicy(ctx context.Context, uid int32, policy int32) error
    • func (p *NetworkPolicyManagerProxy) SetWifiMeteredOverride(ctx context.Context, networkId string, meteredOverride int32) error
    • func (p *NetworkPolicyManagerProxy) SnoozeLimit(ctx context.Context, template any) error
    • func (p *NetworkPolicyManagerProxy) UnregisterListener(ctx context.Context, listener INetworkPolicyListener) error
  • type NetworkPolicyManagerStub
    • func (s *NetworkPolicyManagerStub) Descriptor() string
    • func (s *NetworkPolicyManagerStub) OnTransaction(ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel) (*parcel.Parcel, error)
  • type NetworkQuotaInfo
    • func (s *NetworkQuotaInfo) MarshalParcel(p *parcel.Parcel) error
    • func (s *NetworkQuotaInfo) UnmarshalParcel(p *parcel.Parcel) error
  • type NetworkRecommendationProviderProxy
    • func NewNetworkRecommendationProviderProxy(remote binder.IBinder) *NetworkRecommendationProviderProxy
    • func (p *NetworkRecommendationProviderProxy) AsBinder() binder.IBinder
    • func (p *NetworkRecommendationProviderProxy) RequestScores(ctx context.Context, networks []NetworkKey) error
  • type NetworkRecommendationProviderStub
    • func (s *NetworkRecommendationProviderStub) Descriptor() string
    • func (s *NetworkRecommendationProviderStub) OnTransaction(ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel) (*parcel.Parcel, error)
  • type NetworkScoreCacheProxy
    • func NewNetworkScoreCacheProxy(remote binder.IBinder) *NetworkScoreCacheProxy
    • func (p *NetworkScoreCacheProxy) AsBinder() binder.IBinder
    • func (p *NetworkScoreCacheProxy) ClearScores(ctx context.Context) error
    • func (p *NetworkScoreCacheProxy) UpdateScores(ctx context.Context, networks []ScoredNetwork) error
  • type NetworkScoreCacheStub
    • func (s *NetworkScoreCacheStub) Descriptor() string
    • func (s *NetworkScoreCacheStub) OnTransaction(ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel) (*parcel.Parcel, error)
  • type NetworkScoreServiceProxy
    • func NewNetworkScoreServiceProxy(remote binder.IBinder) *NetworkScoreServiceProxy
    • func (p *NetworkScoreServiceProxy) AsBinder() binder.IBinder
    • func (p *NetworkScoreServiceProxy) ClearScores(ctx context.Context) (bool, error)
    • func (p *NetworkScoreServiceProxy) DisableScoring(ctx context.Context) error
    • func (p *NetworkScoreServiceProxy) GetActiveScorer(ctx context.Context) (NetworkScorerAppData, error)
    • func (p *NetworkScoreServiceProxy) GetActiveScorerPackage(ctx context.Context) (string, error)
    • func (p *NetworkScoreServiceProxy) GetAllValidScorers(ctx context.Context) ([]NetworkScorerAppData, error)
    • func (p *NetworkScoreServiceProxy) IsCallerActiveScorer(ctx context.Context) (bool, error)
    • func (p *NetworkScoreServiceProxy) RegisterNetworkScoreCache(ctx context.Context, networkType int32, scoreCache INetworkScoreCache, ...) error
    • func (p *NetworkScoreServiceProxy) RequestScores(ctx context.Context, networks []NetworkKey) (bool, error)
    • func (p *NetworkScoreServiceProxy) SetActiveScorer(ctx context.Context, packageName string) (bool, error)
    • func (p *NetworkScoreServiceProxy) UnregisterNetworkScoreCache(ctx context.Context, networkType int32, scoreCache INetworkScoreCache) error
    • func (p *NetworkScoreServiceProxy) UpdateScores(ctx context.Context, networks []ScoredNetwork) (bool, error)
  • type NetworkScoreServiceStub
    • func (s *NetworkScoreServiceStub) Descriptor() string
    • func (s *NetworkScoreServiceStub) OnTransaction(ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel) (*parcel.Parcel, error)
  • type NetworkScorerAppData
    • func (s *NetworkScorerAppData) MarshalParcel(p *parcel.Parcel) error
    • func (s *NetworkScorerAppData) UnmarshalParcel(p *parcel.Parcel) error
  • type NetworkState
    • func (s *NetworkState) MarshalParcel(p *parcel.Parcel) error
    • func (s *NetworkState) UnmarshalParcel(p *parcel.Parcel) error
  • type PacProxyInstalledListenerProxy
    • func NewPacProxyInstalledListenerProxy(remote binder.IBinder) *PacProxyInstalledListenerProxy
    • func (p *PacProxyInstalledListenerProxy) AsBinder() binder.IBinder
    • func (p *PacProxyInstalledListenerProxy) OnPacProxyInstalled(ctx context.Context, network any, proxy any) error
  • type PacProxyInstalledListenerStub
    • func (s *PacProxyInstalledListenerStub) Descriptor() string
    • func (s *PacProxyInstalledListenerStub) OnTransaction(ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel) (*parcel.Parcel, error)
  • type PacProxyManagerProxy
    • func GetPacProxyManager(ctx context.Context, sm *servicemanager.ServiceManager) (*PacProxyManagerProxy, error)
    • func NewPacProxyManagerProxy(remote binder.IBinder) *PacProxyManagerProxy
    • func (p *PacProxyManagerProxy) AddListener(ctx context.Context, listener IPacProxyInstalledListener) error
    • func (p *PacProxyManagerProxy) AsBinder() binder.IBinder
    • func (p *PacProxyManagerProxy) RemoveListener(ctx context.Context, listener IPacProxyInstalledListener) error
    • func (p *PacProxyManagerProxy) SetCurrentProxyScriptUrl(ctx context.Context, proxyInfo any) error
  • type PacProxyManagerStub
    • func (s *PacProxyManagerStub) Descriptor() string
    • func (s *PacProxyManagerStub) OnTransaction(ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel) (*parcel.Parcel, error)
  • type ScoredNetwork
    • func (s *ScoredNetwork) MarshalParcel(p *parcel.Parcel) error
    • func (s *ScoredNetwork) UnmarshalParcel(p *parcel.Parcel) error
  • type TcpKeepalivePacketData
    • func (s *TcpKeepalivePacketData) MarshalParcel(p *parcel.Parcel) error
    • func (s *TcpKeepalivePacketData) UnmarshalParcel(p *parcel.Parcel) error
  • type Uri
    • func (s *Uri) MarshalParcel(p *parcel.Parcel) error
    • func (s *Uri) UnmarshalParcel(p *parcel.Parcel) error
  • type VpnManagerProxy
    • func GetVpnManager(ctx context.Context, sm *servicemanager.ServiceManager) (*VpnManagerProxy, error)
    • func NewVpnManagerProxy(remote binder.IBinder) *VpnManagerProxy
    • func (p *VpnManagerProxy) AddVpnAddress(ctx context.Context, address string, prefixLength int32) (bool, error)
    • func (p *VpnManagerProxy) AsBinder() binder.IBinder
    • func (p *VpnManagerProxy) DeleteVpnProfile(ctx context.Context, packageName string) error
    • func (p *VpnManagerProxy) EstablishVpn(ctx context.Context, config internalNet.VpnConfig) (int32, error)
    • func (p *VpnManagerProxy) FactoryReset(ctx context.Context) error
    • func (p *VpnManagerProxy) GetAlwaysOnVpnPackage(ctx context.Context) (string, error)
    • func (p *VpnManagerProxy) GetAppExclusionList(ctx context.Context, vpnPackage string) ([]string, error)
    • func (p *VpnManagerProxy) GetLegacyVpnInfo(ctx context.Context) (internalNet.LegacyVpnInfo, error)
    • func (p *VpnManagerProxy) GetProvisionedVpnProfileState(ctx context.Context, packageName string) (VpnProfileState, error)
    • func (p *VpnManagerProxy) GetVpnConfig(ctx context.Context) (internalNet.VpnConfig, error)
    • func (p *VpnManagerProxy) GetVpnLockdownAllowlist(ctx context.Context) ([]string, error)
    • func (p *VpnManagerProxy) IsAlwaysOnVpnPackageSupported(ctx context.Context, packageName string) (bool, error)
    • func (p *VpnManagerProxy) IsCallerCurrentAlwaysOnVpnApp(ctx context.Context) (bool, error)
    • func (p *VpnManagerProxy) IsCallerCurrentAlwaysOnVpnLockdownApp(ctx context.Context) (bool, error)
    • func (p *VpnManagerProxy) IsVpnLockdownEnabled(ctx context.Context) (bool, error)
    • func (p *VpnManagerProxy) PrepareVpn(ctx context.Context, oldPackage string, newPackage string) (bool, error)
    • func (p *VpnManagerProxy) ProvisionVpnProfile(ctx context.Context, profile internalNet.VpnProfile, packageName string) (bool, error)
    • func (p *VpnManagerProxy) RemoveVpnAddress(ctx context.Context, address string, prefixLength int32) (bool, error)
    • func (p *VpnManagerProxy) SetAlwaysOnVpnPackage(ctx context.Context, packageName string, lockdown bool, ...) (bool, error)
    • func (p *VpnManagerProxy) SetAppExclusionList(ctx context.Context, vpnPackage string, excludedApps []string) (bool, error)
    • func (p *VpnManagerProxy) SetUnderlyingNetworksForVpn(ctx context.Context, networks []any) (bool, error)
    • func (p *VpnManagerProxy) SetVpnPackageAuthorization(ctx context.Context, packageName string, vpnType int32) error
    • func (p *VpnManagerProxy) StartLegacyVpn(ctx context.Context, profile internalNet.VpnProfile) error
    • func (p *VpnManagerProxy) StartVpnProfile(ctx context.Context, packageName string) (string, error)
    • func (p *VpnManagerProxy) StopVpnProfile(ctx context.Context, packageName string) error
    • func (p *VpnManagerProxy) UpdateLockdownVpn(ctx context.Context) (bool, error)
  • type VpnManagerStub
    • func (s *VpnManagerStub) Descriptor() string
    • func (s *VpnManagerStub) OnTransaction(ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel) (*parcel.Parcel, error)
  • type VpnProfileState
    • func (s *VpnProfileState) MarshalParcel(p *parcel.Parcel) error
    • func (s *VpnProfileState) UnmarshalParcel(p *parcel.Parcel) error

Constants ¶

View Source
const (
	TransactionIIpConnectivityMetricsLogEvent                  = binder.FirstCallTransaction + 0
	TransactionIIpConnectivityMetricsLogDefaultNetworkValidity = binder.FirstCallTransaction + 1
	TransactionIIpConnectivityMetricsLogDefaultNetworkEvent    = binder.FirstCallTransaction + 2
	TransactionIIpConnectivityMetricsAddNetdEventCallback      = binder.FirstCallTransaction + 3
	TransactionIIpConnectivityMetricsRemoveNetdEventCallback   = binder.FirstCallTransaction + 4
)
View Source
const (
	MethodIIpConnectivityMetricsLogEvent                  = "logEvent"
	MethodIIpConnectivityMetricsLogDefaultNetworkValidity = "logDefaultNetworkValidity"
	MethodIIpConnectivityMetricsLogDefaultNetworkEvent    = "logDefaultNetworkEvent"
	MethodIIpConnectivityMetricsAddNetdEventCallback      = "addNetdEventCallback"
	MethodIIpConnectivityMetricsRemoveNetdEventCallback   = "removeNetdEventCallback"
)
View Source
const (
	TransactionINetdEventCallbackOnDnsEvent                  = binder.FirstCallTransaction + 0
	TransactionINetdEventCallbackOnNat64PrefixEvent          = binder.FirstCallTransaction + 1
	TransactionINetdEventCallbackOnPrivateDnsValidationEvent = binder.FirstCallTransaction + 2
	TransactionINetdEventCallbackOnConnectEvent              = binder.FirstCallTransaction + 3
)
View Source
const (
	MethodINetdEventCallbackOnDnsEvent                  = "onDnsEvent"
	MethodINetdEventCallbackOnNat64PrefixEvent          = "onNat64PrefixEvent"
	MethodINetdEventCallbackOnPrivateDnsValidationEvent = "onPrivateDnsValidationEvent"
	MethodINetdEventCallbackOnConnectEvent              = "onConnectEvent"
)
View Source
const (
	INetdEventCallbackCallbackCallerConnectivityService int32 = 0
	INetdEventCallbackCallbackCallerDevicePolicy        int32 = 1
	INetdEventCallbackCallbackCallerNetworkWatchlist    int32 = 2
)
View Source
const (
	TransactionINetworkManagementEventObserverInterfaceStatusChanged            = binder.FirstCallTransaction + 0
	TransactionINetworkManagementEventObserverInterfaceLinkStateChanged         = binder.FirstCallTransaction + 1
	TransactionINetworkManagementEventObserverInterfaceAdded                    = binder.FirstCallTransaction + 2
	TransactionINetworkManagementEventObserverInterfaceRemoved                  = binder.FirstCallTransaction + 3
	TransactionINetworkManagementEventObserverAddressUpdated                    = binder.FirstCallTransaction + 4
	TransactionINetworkManagementEventObserverAddressRemoved                    = binder.FirstCallTransaction + 5
	TransactionINetworkManagementEventObserverLimitReached                      = binder.FirstCallTransaction + 6
	TransactionINetworkManagementEventObserverInterfaceClassDataActivityChanged = binder.FirstCallTransaction + 7
	TransactionINetworkManagementEventObserverInterfaceDnsServerInfo            = binder.FirstCallTransaction + 8
	TransactionINetworkManagementEventObserverRouteUpdated                      = binder.FirstCallTransaction + 9
	TransactionINetworkManagementEventObserverRouteRemoved                      = binder.FirstCallTransaction + 10
)
View Source
const (
	MethodINetworkManagementEventObserverInterfaceStatusChanged            = "interfaceStatusChanged"
	MethodINetworkManagementEventObserverInterfaceLinkStateChanged         = "interfaceLinkStateChanged"
	MethodINetworkManagementEventObserverInterfaceAdded                    = "interfaceAdded"
	MethodINetworkManagementEventObserverInterfaceRemoved                  = "interfaceRemoved"
	MethodINetworkManagementEventObserverAddressUpdated                    = "addressUpdated"
	MethodINetworkManagementEventObserverAddressRemoved                    = "addressRemoved"
	MethodINetworkManagementEventObserverLimitReached                      = "limitReached"
	MethodINetworkManagementEventObserverInterfaceClassDataActivityChanged = "interfaceClassDataActivityChanged"
	MethodINetworkManagementEventObserverInterfaceDnsServerInfo            = "interfaceDnsServerInfo"
	MethodINetworkManagementEventObserverRouteUpdated                      = "routeUpdated"
	MethodINetworkManagementEventObserverRouteRemoved                      = "routeRemoved"
)
View Source
const (
	TransactionINetworkPolicyListenerOnUidRulesChanged           = binder.FirstCallTransaction + 0
	TransactionINetworkPolicyListenerOnMeteredIfacesChanged      = binder.FirstCallTransaction + 1
	TransactionINetworkPolicyListenerOnRestrictBackgroundChanged = binder.FirstCallTransaction + 2
	TransactionINetworkPolicyListenerOnUidPoliciesChanged        = binder.FirstCallTransaction + 3
	TransactionINetworkPolicyListenerOnSubscriptionOverride      = binder.FirstCallTransaction + 4
	TransactionINetworkPolicyListenerOnSubscriptionPlansChanged  = binder.FirstCallTransaction + 5
	TransactionINetworkPolicyListenerOnBlockedReasonChanged      = binder.FirstCallTransaction + 6
)
View Source
const (
	MethodINetworkPolicyListenerOnUidRulesChanged           = "onUidRulesChanged"
	MethodINetworkPolicyListenerOnMeteredIfacesChanged      = "onMeteredIfacesChanged"
	MethodINetworkPolicyListenerOnRestrictBackgroundChanged = "onRestrictBackgroundChanged"
	MethodINetworkPolicyListenerOnUidPoliciesChanged        = "onUidPoliciesChanged"
	MethodINetworkPolicyListenerOnSubscriptionOverride      = "onSubscriptionOverride"
	MethodINetworkPolicyListenerOnSubscriptionPlansChanged  = "onSubscriptionPlansChanged"
	MethodINetworkPolicyListenerOnBlockedReasonChanged      = "onBlockedReasonChanged"
)
View Source
const (
	TransactionINetworkPolicyManagerSetUidPolicy                             = binder.FirstCallTransaction + 0
	TransactionINetworkPolicyManagerAddUidPolicy                             = binder.FirstCallTransaction + 1
	TransactionINetworkPolicyManagerRemoveUidPolicy                          = binder.FirstCallTransaction + 2
	TransactionINetworkPolicyManagerGetUidPolicy                             = binder.FirstCallTransaction + 3
	TransactionINetworkPolicyManagerGetUidsWithPolicy                        = binder.FirstCallTransaction + 4
	TransactionINetworkPolicyManagerRegisterListener                         = binder.FirstCallTransaction + 5
	TransactionINetworkPolicyManagerUnregisterListener                       = binder.FirstCallTransaction + 6
	TransactionINetworkPolicyManagerSetNetworkPolicies                       = binder.FirstCallTransaction + 7
	TransactionINetworkPolicyManagerGetNetworkPolicies                       = binder.FirstCallTransaction + 8
	TransactionINetworkPolicyManagerSnoozeLimit                              = binder.FirstCallTransaction + 9
	TransactionINetworkPolicyManagerSetRestrictBackground                    = binder.FirstCallTransaction + 10
	TransactionINetworkPolicyManagerGetRestrictBackground                    = binder.FirstCallTransaction + 11
	TransactionINetworkPolicyManagerGetRestrictBackgroundByCaller            = binder.FirstCallTransaction + 12
	TransactionINetworkPolicyManagerGetRestrictBackgroundStatus              = binder.FirstCallTransaction + 13
	TransactionINetworkPolicyManagerSetDeviceIdleMode                        = binder.FirstCallTransaction + 14
	TransactionINetworkPolicyManagerSetWifiMeteredOverride                   = binder.FirstCallTransaction + 15
	TransactionINetworkPolicyManagerGetMultipathPreference                   = binder.FirstCallTransaction + 16
	TransactionINetworkPolicyManagerGetSubscriptionPlan                      = binder.FirstCallTransaction + 17
	TransactionINetworkPolicyManagerNotifyStatsProviderWarningOrLimitReached = binder.FirstCallTransaction + 18
	TransactionINetworkPolicyManagerGetSubscriptionPlans                     = binder.FirstCallTransaction + 19
	TransactionINetworkPolicyManagerSetSubscriptionPlans                     = binder.FirstCallTransaction + 20
	TransactionINetworkPolicyManagerGetSubscriptionPlansOwner                = binder.FirstCallTransaction + 21
	TransactionINetworkPolicyManagerSetSubscriptionOverride                  = binder.FirstCallTransaction + 22
	TransactionINetworkPolicyManagerFactoryReset                             = binder.FirstCallTransaction + 23
	TransactionINetworkPolicyManagerIsUidNetworkingBlocked                   = binder.FirstCallTransaction + 24
	TransactionINetworkPolicyManagerIsUidRestrictedOnMeteredNetworks         = binder.FirstCallTransaction + 25
)
View Source
const (
	MethodINetworkPolicyManagerSetUidPolicy                             = "setUidPolicy"
	MethodINetworkPolicyManagerAddUidPolicy                             = "addUidPolicy"
	MethodINetworkPolicyManagerRemoveUidPolicy                          = "removeUidPolicy"
	MethodINetworkPolicyManagerGetUidPolicy                             = "getUidPolicy"
	MethodINetworkPolicyManagerGetUidsWithPolicy                        = "getUidsWithPolicy"
	MethodINetworkPolicyManagerRegisterListener                         = "registerListener"
	MethodINetworkPolicyManagerUnregisterListener                       = "unregisterListener"
	MethodINetworkPolicyManagerSetNetworkPolicies                       = "setNetworkPolicies"
	MethodINetworkPolicyManagerGetNetworkPolicies                       = "getNetworkPolicies"
	MethodINetworkPolicyManagerSnoozeLimit                              = "snoozeLimit"
	MethodINetworkPolicyManagerSetRestrictBackground                    = "setRestrictBackground"
	MethodINetworkPolicyManagerGetRestrictBackground                    = "getRestrictBackground"
	MethodINetworkPolicyManagerGetRestrictBackgroundByCaller            = "getRestrictBackgroundByCaller"
	MethodINetworkPolicyManagerGetRestrictBackgroundStatus              = "getRestrictBackgroundStatus"
	MethodINetworkPolicyManagerSetDeviceIdleMode                        = "setDeviceIdleMode"
	MethodINetworkPolicyManagerSetWifiMeteredOverride                   = "setWifiMeteredOverride"
	MethodINetworkPolicyManagerGetMultipathPreference                   = "getMultipathPreference"
	MethodINetworkPolicyManagerGetSubscriptionPlan                      = "getSubscriptionPlan"
	MethodINetworkPolicyManagerNotifyStatsProviderWarningOrLimitReached = "notifyStatsProviderWarningOrLimitReached"
	MethodINetworkPolicyManagerGetSubscriptionPlans                     = "getSubscriptionPlans"
	MethodINetworkPolicyManagerSetSubscriptionPlans                     = "setSubscriptionPlans"
	MethodINetworkPolicyManagerGetSubscriptionPlansOwner                = "getSubscriptionPlansOwner"
	MethodINetworkPolicyManagerSetSubscriptionOverride                  = "setSubscriptionOverride"
	MethodINetworkPolicyManagerFactoryReset                             = "factoryReset"
	MethodINetworkPolicyManagerIsUidNetworkingBlocked                   = "isUidNetworkingBlocked"
	MethodINetworkPolicyManagerIsUidRestrictedOnMeteredNetworks         = "isUidRestrictedOnMeteredNetworks"
)
View Source
const (
	TransactionINetworkScoreCacheUpdateScores = binder.FirstCallTransaction + 0
	TransactionINetworkScoreCacheClearScores  = binder.FirstCallTransaction + 1
)
View Source
const (
	MethodINetworkScoreCacheUpdateScores = "updateScores"
	MethodINetworkScoreCacheClearScores  = "clearScores"
)
View Source
const (
	TransactionINetworkScoreServiceUpdateScores                = binder.FirstCallTransaction + 0
	TransactionINetworkScoreServiceClearScores                 = binder.FirstCallTransaction + 1
	TransactionINetworkScoreServiceSetActiveScorer             = binder.FirstCallTransaction + 2
	TransactionINetworkScoreServiceDisableScoring              = binder.FirstCallTransaction + 3
	TransactionINetworkScoreServiceRegisterNetworkScoreCache   = binder.FirstCallTransaction + 4
	TransactionINetworkScoreServiceUnregisterNetworkScoreCache = binder.FirstCallTransaction + 5
	TransactionINetworkScoreServiceRequestScores               = binder.FirstCallTransaction + 6
	TransactionINetworkScoreServiceIsCallerActiveScorer        = binder.FirstCallTransaction + 7
	TransactionINetworkScoreServiceGetActiveScorerPackage      = binder.FirstCallTransaction + 8
	TransactionINetworkScoreServiceGetActiveScorer             = binder.FirstCallTransaction + 9
	TransactionINetworkScoreServiceGetAllValidScorers          = binder.FirstCallTransaction + 10
)
View Source
const (
	MethodINetworkScoreServiceUpdateScores                = "updateScores"
	MethodINetworkScoreServiceClearScores                 = "clearScores"
	MethodINetworkScoreServiceSetActiveScorer             = "setActiveScorer"
	MethodINetworkScoreServiceDisableScoring              = "disableScoring"
	MethodINetworkScoreServiceRegisterNetworkScoreCache   = "registerNetworkScoreCache"
	MethodINetworkScoreServiceUnregisterNetworkScoreCache = "unregisterNetworkScoreCache"
	MethodINetworkScoreServiceRequestScores               = "requestScores"
	MethodINetworkScoreServiceIsCallerActiveScorer        = "isCallerActiveScorer"
	MethodINetworkScoreServiceGetActiveScorerPackage      = "getActiveScorerPackage"
	MethodINetworkScoreServiceGetActiveScorer             = "getActiveScorer"
	MethodINetworkScoreServiceGetAllValidScorers          = "getAllValidScorers"
)
View Source
const (
	TransactionIPacProxyManagerAddListener              = binder.FirstCallTransaction + 0
	TransactionIPacProxyManagerRemoveListener           = binder.FirstCallTransaction + 1
	TransactionIPacProxyManagerSetCurrentProxyScriptUrl = binder.FirstCallTransaction + 2
)
View Source
const (
	MethodIPacProxyManagerAddListener              = "addListener"
	MethodIPacProxyManagerRemoveListener           = "removeListener"
	MethodIPacProxyManagerSetCurrentProxyScriptUrl = "setCurrentProxyScriptUrl"
)
View Source
const (
	TransactionIVpnManagerPrepareVpn                            = binder.FirstCallTransaction + 0
	TransactionIVpnManagerSetVpnPackageAuthorization            = binder.FirstCallTransaction + 1
	TransactionIVpnManagerEstablishVpn                          = binder.FirstCallTransaction + 2
	TransactionIVpnManagerAddVpnAddress                         = binder.FirstCallTransaction + 3
	TransactionIVpnManagerRemoveVpnAddress                      = binder.FirstCallTransaction + 4
	TransactionIVpnManagerSetUnderlyingNetworksForVpn           = binder.FirstCallTransaction + 5
	TransactionIVpnManagerProvisionVpnProfile                   = binder.FirstCallTransaction + 6
	TransactionIVpnManagerDeleteVpnProfile                      = binder.FirstCallTransaction + 7
	TransactionIVpnManagerStartVpnProfile                       = binder.FirstCallTransaction + 8
	TransactionIVpnManagerStopVpnProfile                        = binder.FirstCallTransaction + 9
	TransactionIVpnManagerGetProvisionedVpnProfileState         = binder.FirstCallTransaction + 10
	TransactionIVpnManagerSetAppExclusionList                   = binder.FirstCallTransaction + 11
	TransactionIVpnManagerGetAppExclusionList                   = binder.FirstCallTransaction + 12
	TransactionIVpnManagerIsAlwaysOnVpnPackageSupported         = binder.FirstCallTransaction + 13
	TransactionIVpnManagerSetAlwaysOnVpnPackage                 = binder.FirstCallTransaction + 14
	TransactionIVpnManagerGetAlwaysOnVpnPackage                 = binder.FirstCallTransaction + 15
	TransactionIVpnManagerIsVpnLockdownEnabled                  = binder.FirstCallTransaction + 16
	TransactionIVpnManagerGetVpnLockdownAllowlist               = binder.FirstCallTransaction + 17
	TransactionIVpnManagerIsCallerCurrentAlwaysOnVpnApp         = binder.FirstCallTransaction + 18
	TransactionIVpnManagerIsCallerCurrentAlwaysOnVpnLockdownApp = binder.FirstCallTransaction + 19
	TransactionIVpnManagerStartLegacyVpn                        = binder.FirstCallTransaction + 20
	TransactionIVpnManagerGetLegacyVpnInfo                      = binder.FirstCallTransaction + 21
	TransactionIVpnManagerUpdateLockdownVpn                     = binder.FirstCallTransaction + 22
	TransactionIVpnManagerGetVpnConfig                          = binder.FirstCallTransaction + 23
	TransactionIVpnManagerFactoryReset                          = binder.FirstCallTransaction + 24
)
View Source
const (
	MethodIVpnManagerPrepareVpn                            = "prepareVpn"
	MethodIVpnManagerSetVpnPackageAuthorization            = "setVpnPackageAuthorization"
	MethodIVpnManagerEstablishVpn                          = "establishVpn"
	MethodIVpnManagerAddVpnAddress                         = "addVpnAddress"
	MethodIVpnManagerRemoveVpnAddress                      = "removeVpnAddress"
	MethodIVpnManagerSetUnderlyingNetworksForVpn           = "setUnderlyingNetworksForVpn"
	MethodIVpnManagerProvisionVpnProfile                   = "provisionVpnProfile"
	MethodIVpnManagerDeleteVpnProfile                      = "deleteVpnProfile"
	MethodIVpnManagerStartVpnProfile                       = "startVpnProfile"
	MethodIVpnManagerStopVpnProfile                        = "stopVpnProfile"
	MethodIVpnManagerGetProvisionedVpnProfileState         = "getProvisionedVpnProfileState"
	MethodIVpnManagerSetAppExclusionList                   = "setAppExclusionList"
	MethodIVpnManagerGetAppExclusionList                   = "getAppExclusionList"
	MethodIVpnManagerIsAlwaysOnVpnPackageSupported         = "isAlwaysOnVpnPackageSupported"
	MethodIVpnManagerSetAlwaysOnVpnPackage                 = "setAlwaysOnVpnPackage"
	MethodIVpnManagerGetAlwaysOnVpnPackage                 = "getAlwaysOnVpnPackage"
	MethodIVpnManagerIsVpnLockdownEnabled                  = "isVpnLockdownEnabled"
	MethodIVpnManagerGetVpnLockdownAllowlist               = "getVpnLockdownAllowlist"
	MethodIVpnManagerIsCallerCurrentAlwaysOnVpnApp         = "isCallerCurrentAlwaysOnVpnApp"
	MethodIVpnManagerIsCallerCurrentAlwaysOnVpnLockdownApp = "isCallerCurrentAlwaysOnVpnLockdownApp"
	MethodIVpnManagerStartLegacyVpn                        = "startLegacyVpn"
	MethodIVpnManagerGetLegacyVpnInfo                      = "getLegacyVpnInfo"
	MethodIVpnManagerUpdateLockdownVpn                     = "updateLockdownVpn"
	MethodIVpnManagerGetVpnConfig                          = "getVpnConfig"
	MethodIVpnManagerFactoryReset                          = "factoryReset"
)
View Source
const DescriptorIIpConnectivityMetrics = "android.net.IIpConnectivityMetrics"
View Source
const DescriptorINetdEventCallback = "android.net.INetdEventCallback"
View Source
const DescriptorINetworkManagementEventObserver = "android.net.INetworkManagementEventObserver"
View Source
const DescriptorINetworkPolicyListener = "android.net.INetworkPolicyListener"
View Source
const DescriptorINetworkPolicyManager = "android.net.INetworkPolicyManager"
View Source
const DescriptorINetworkRecommendationProvider = "android.net.INetworkRecommendationProvider"
View Source
const DescriptorINetworkScoreCache = "android.net.INetworkScoreCache"
View Source
const DescriptorINetworkScoreService = "android.net.INetworkScoreService"
View Source
const DescriptorIPacProxyInstalledListener = "android.net.IPacProxyInstalledListener"
View Source
const DescriptorIPacProxyManager = "android.net.IPacProxyManager"
View Source
const DescriptorIVpnManager = "android.net.IVpnManager"
View Source
const (
	MethodINetworkRecommendationProviderRequestScores = "requestScores"
)
View Source
const (
	MethodIPacProxyInstalledListenerOnPacProxyInstalled = "onPacProxyInstalled"
)
View Source
const (
	TransactionINetworkRecommendationProviderRequestScores = binder.FirstCallTransaction + 0
)
View Source
const (
	TransactionIPacProxyInstalledListenerOnPacProxyInstalled = binder.FirstCallTransaction + 0
)

Variables ¶

This section is empty.

Functions ¶

This section is empty.

Types ¶

type ConnectivityMetricsEvent ¶

type ConnectivityMetricsEvent struct {
	Timestamp  int64
	Transports int64
	NetId      int32
	Ifname     string
}

func (*ConnectivityMetricsEvent) MarshalParcel ¶

func (s *ConnectivityMetricsEvent) MarshalParcel(
	p *parcel.Parcel,
) error

func (*ConnectivityMetricsEvent) UnmarshalParcel ¶

func (s *ConnectivityMetricsEvent) UnmarshalParcel(
	p *parcel.Parcel,
) error

type IIpConnectivityMetrics ¶

type IIpConnectivityMetrics interface {
	AsBinder() binder.IBinder
	LogEvent(ctx context.Context, event ConnectivityMetricsEvent) (int32, error)
	LogDefaultNetworkValidity(ctx context.Context, valid bool) error
	LogDefaultNetworkEvent(ctx context.Context, defaultNetwork any, score int32, validated bool, lp any, nc any, previousDefaultNetwork any, previousScore int32, previousLp any, previousNc any) error
	AddNetdEventCallback(ctx context.Context, callerType int32, callback INetdEventCallback) (bool, error)
	RemoveNetdEventCallback(ctx context.Context, callerType int32) (bool, error)
}

func NewIpConnectivityMetricsStub ¶

func NewIpConnectivityMetricsStub(
	impl IIpConnectivityMetricsServer,
) IIpConnectivityMetrics

NewIpConnectivityMetricsStub creates a server-side IIpConnectivityMetrics wrapping the given server implementation. The returned value satisfies IIpConnectivityMetrics and can be passed to proxy methods; its AsBinder() returns a *binder.StubBinder that is auto-registered with the binder driver on first use.

type IIpConnectivityMetricsServer ¶

type IIpConnectivityMetricsServer interface {
	LogEvent(ctx context.Context, event ConnectivityMetricsEvent) (int32, error)
	LogDefaultNetworkValidity(ctx context.Context, valid bool) error
	LogDefaultNetworkEvent(ctx context.Context, defaultNetwork any, score int32, validated bool, lp any, nc any, previousDefaultNetwork any, previousScore int32, previousLp any, previousNc any) error
	AddNetdEventCallback(ctx context.Context, callerType int32, callback INetdEventCallback) (bool, error)
	RemoveNetdEventCallback(ctx context.Context, callerType int32) (bool, error)
}

IIpConnectivityMetricsServer is the server-side interface that user implementations provide to NewIpConnectivityMetricsStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).

type INetdEventCallback ¶

type INetdEventCallback interface {
	AsBinder() binder.IBinder
	OnDnsEvent(ctx context.Context, netId int32, eventType int32, returnCode int32, hostname string, ipAddresses []string, ipAddressesCount int32, timestamp int64, uid int32) error
	OnNat64PrefixEvent(ctx context.Context, netId int32, added bool, prefixString string, prefixLength int32) error
	OnPrivateDnsValidationEvent(ctx context.Context, netId int32, ipAddress string, hostname string, validated bool) error
	OnConnectEvent(ctx context.Context, ipAddr string, port int32, timestamp int64, uid int32) error
}

func NewNetdEventCallbackStub ¶

func NewNetdEventCallbackStub(
	impl INetdEventCallbackServer,
) INetdEventCallback

NewNetdEventCallbackStub creates a server-side INetdEventCallback wrapping the given server implementation. The returned value satisfies INetdEventCallback and can be passed to proxy methods; its AsBinder() returns a *binder.StubBinder that is auto-registered with the binder driver on first use.

type INetdEventCallbackServer ¶

type INetdEventCallbackServer interface {
	OnDnsEvent(ctx context.Context, netId int32, eventType int32, returnCode int32, hostname string, ipAddresses []string, ipAddressesCount int32, timestamp int64, uid int32) error
	OnNat64PrefixEvent(ctx context.Context, netId int32, added bool, prefixString string, prefixLength int32) error
	OnPrivateDnsValidationEvent(ctx context.Context, netId int32, ipAddress string, hostname string, validated bool) error
	OnConnectEvent(ctx context.Context, ipAddr string, port int32, timestamp int64, uid int32) error
}

INetdEventCallbackServer is the server-side interface that user implementations provide to NewNetdEventCallbackStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).

type INetworkManagementEventObserver ¶

type INetworkManagementEventObserver interface {
	AsBinder() binder.IBinder
	InterfaceStatusChanged(ctx context.Context, iface string, up bool) error
	InterfaceLinkStateChanged(ctx context.Context, iface string, up bool) error
	InterfaceAdded(ctx context.Context, iface string) error
	InterfaceRemoved(ctx context.Context, iface string) error
	AddressUpdated(ctx context.Context, iface string, address data.LinkAddress) error
	AddressRemoved(ctx context.Context, iface string, address data.LinkAddress) error
	LimitReached(ctx context.Context, limitName string, iface string) error
	InterfaceClassDataActivityChanged(ctx context.Context, label int32, active bool, tsNanos int64, uid int32) error
	InterfaceDnsServerInfo(ctx context.Context, iface string, lifetime int64, servers []string) error
	RouteUpdated(ctx context.Context, route any) error
	RouteRemoved(ctx context.Context, route any) error
}

func NewNetworkManagementEventObserverStub ¶

func NewNetworkManagementEventObserverStub(
	impl INetworkManagementEventObserverServer,
) INetworkManagementEventObserver

NewNetworkManagementEventObserverStub creates a server-side INetworkManagementEventObserver wrapping the given server implementation. The returned value satisfies INetworkManagementEventObserver and can be passed to proxy methods; its AsBinder() returns a *binder.StubBinder that is auto-registered with the binder driver on first use.

type INetworkManagementEventObserverServer ¶

type INetworkManagementEventObserverServer interface {
	InterfaceStatusChanged(ctx context.Context, iface string, up bool) error
	InterfaceLinkStateChanged(ctx context.Context, iface string, up bool) error
	InterfaceAdded(ctx context.Context, iface string) error
	InterfaceRemoved(ctx context.Context, iface string) error
	AddressUpdated(ctx context.Context, iface string, address data.LinkAddress) error
	AddressRemoved(ctx context.Context, iface string, address data.LinkAddress) error
	LimitReached(ctx context.Context, limitName string, iface string) error
	InterfaceClassDataActivityChanged(ctx context.Context, label int32, active bool, tsNanos int64, uid int32) error
	InterfaceDnsServerInfo(ctx context.Context, iface string, lifetime int64, servers []string) error
	RouteUpdated(ctx context.Context, route any) error
	RouteRemoved(ctx context.Context, route any) error
}

INetworkManagementEventObserverServer is the server-side interface that user implementations provide to NewNetworkManagementEventObserverStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).

type INetworkPolicyListener ¶

type INetworkPolicyListener interface {
	AsBinder() binder.IBinder
	OnUidRulesChanged(ctx context.Context, uid int32, uidRules int32) error
	OnMeteredIfacesChanged(ctx context.Context, meteredIfaces []string) error
	OnRestrictBackgroundChanged(ctx context.Context, restrictBackground bool) error
	OnUidPoliciesChanged(ctx context.Context, uid int32, uidPolicies int32) error
	OnSubscriptionOverride(ctx context.Context, subId int32, overrideMask int32, overrideValue int32, networkTypes []int32) error
	OnSubscriptionPlansChanged(ctx context.Context, subId int32, plans []telephony.SubscriptionPlan) error
	OnBlockedReasonChanged(ctx context.Context, uid int32, oldBlockedReason int32, newBlockedReason int32) error
}

func NewNetworkPolicyListenerStub ¶

func NewNetworkPolicyListenerStub(
	impl INetworkPolicyListenerServer,
) INetworkPolicyListener

NewNetworkPolicyListenerStub creates a server-side INetworkPolicyListener wrapping the given server implementation. The returned value satisfies INetworkPolicyListener and can be passed to proxy methods; its AsBinder() returns a *binder.StubBinder that is auto-registered with the binder driver on first use.

type INetworkPolicyListenerServer ¶

type INetworkPolicyListenerServer interface {
	OnUidRulesChanged(ctx context.Context, uid int32, uidRules int32) error
	OnMeteredIfacesChanged(ctx context.Context, meteredIfaces []string) error
	OnRestrictBackgroundChanged(ctx context.Context, restrictBackground bool) error
	OnUidPoliciesChanged(ctx context.Context, uid int32, uidPolicies int32) error
	OnSubscriptionOverride(ctx context.Context, subId int32, overrideMask int32, overrideValue int32, networkTypes []int32) error
	OnSubscriptionPlansChanged(ctx context.Context, subId int32, plans []telephony.SubscriptionPlan) error
	OnBlockedReasonChanged(ctx context.Context, uid int32, oldBlockedReason int32, newBlockedReason int32) error
}

INetworkPolicyListenerServer is the server-side interface that user implementations provide to NewNetworkPolicyListenerStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).

type INetworkPolicyManager ¶

type INetworkPolicyManager interface {
	AsBinder() binder.IBinder
	SetUidPolicy(ctx context.Context, uid int32, policy int32) error
	AddUidPolicy(ctx context.Context, uid int32, policy int32) error
	RemoveUidPolicy(ctx context.Context, uid int32, policy int32) error
	GetUidPolicy(ctx context.Context, uid int32) (int32, error)
	GetUidsWithPolicy(ctx context.Context, policy int32) ([]int32, error)
	RegisterListener(ctx context.Context, listener INetworkPolicyListener) error
	UnregisterListener(ctx context.Context, listener INetworkPolicyListener) error
	SetNetworkPolicies(ctx context.Context, policies []NetworkPolicy) error
	GetNetworkPolicies(ctx context.Context) ([]NetworkPolicy, error)
	SnoozeLimit(ctx context.Context, template any) error
	SetRestrictBackground(ctx context.Context, restrictBackground bool) error
	GetRestrictBackground(ctx context.Context) (bool, error)
	GetRestrictBackgroundByCaller(ctx context.Context) (int32, error)
	GetRestrictBackgroundStatus(ctx context.Context, uid int32) (int32, error)
	SetDeviceIdleMode(ctx context.Context, enabled bool) error
	SetWifiMeteredOverride(ctx context.Context, networkId string, meteredOverride int32) error
	GetMultipathPreference(ctx context.Context, network any) (int32, error)
	GetSubscriptionPlan(ctx context.Context, template any) (telephony.SubscriptionPlan, error)
	NotifyStatsProviderWarningOrLimitReached(ctx context.Context) error
	GetSubscriptionPlans(ctx context.Context, subId int32) ([]telephony.SubscriptionPlan, error)
	SetSubscriptionPlans(ctx context.Context, subId int32, plans []telephony.SubscriptionPlan, expirationDurationMillis int64) error
	GetSubscriptionPlansOwner(ctx context.Context, subId int32) (string, error)
	SetSubscriptionOverride(ctx context.Context, subId int32, overrideMask int32, overrideValue int32, networkTypes []int32, expirationDurationMillis int64) error
	FactoryReset(ctx context.Context, subscriber string) error
	IsUidNetworkingBlocked(ctx context.Context, uid int32, meteredNetwork bool) (bool, error)
	IsUidRestrictedOnMeteredNetworks(ctx context.Context, uid int32) (bool, error)
}

func NewNetworkPolicyManagerStub ¶

func NewNetworkPolicyManagerStub(
	impl INetworkPolicyManagerServer,
) INetworkPolicyManager

NewNetworkPolicyManagerStub creates a server-side INetworkPolicyManager wrapping the given server implementation. The returned value satisfies INetworkPolicyManager and can be passed to proxy methods; its AsBinder() returns a *binder.StubBinder that is auto-registered with the binder driver on first use.

type INetworkPolicyManagerServer ¶

type INetworkPolicyManagerServer interface {
	SetUidPolicy(ctx context.Context, uid int32, policy int32) error
	AddUidPolicy(ctx context.Context, uid int32, policy int32) error
	RemoveUidPolicy(ctx context.Context, uid int32, policy int32) error
	GetUidPolicy(ctx context.Context, uid int32) (int32, error)
	GetUidsWithPolicy(ctx context.Context, policy int32) ([]int32, error)
	RegisterListener(ctx context.Context, listener INetworkPolicyListener) error
	UnregisterListener(ctx context.Context, listener INetworkPolicyListener) error
	SetNetworkPolicies(ctx context.Context, policies []NetworkPolicy) error
	GetNetworkPolicies(ctx context.Context) ([]NetworkPolicy, error)
	SnoozeLimit(ctx context.Context, template any) error
	SetRestrictBackground(ctx context.Context, restrictBackground bool) error
	GetRestrictBackground(ctx context.Context) (bool, error)
	GetRestrictBackgroundByCaller(ctx context.Context) (int32, error)
	GetRestrictBackgroundStatus(ctx context.Context, uid int32) (int32, error)
	SetDeviceIdleMode(ctx context.Context, enabled bool) error
	SetWifiMeteredOverride(ctx context.Context, networkId string, meteredOverride int32) error
	GetMultipathPreference(ctx context.Context, network any) (int32, error)
	GetSubscriptionPlan(ctx context.Context, template any) (telephony.SubscriptionPlan, error)
	NotifyStatsProviderWarningOrLimitReached(ctx context.Context) error
	GetSubscriptionPlans(ctx context.Context, subId int32) ([]telephony.SubscriptionPlan, error)
	SetSubscriptionPlans(ctx context.Context, subId int32, plans []telephony.SubscriptionPlan, expirationDurationMillis int64) error
	GetSubscriptionPlansOwner(ctx context.Context, subId int32) (string, error)
	SetSubscriptionOverride(ctx context.Context, subId int32, overrideMask int32, overrideValue int32, networkTypes []int32, expirationDurationMillis int64) error
	FactoryReset(ctx context.Context, subscriber string) error
	IsUidNetworkingBlocked(ctx context.Context, uid int32, meteredNetwork bool) (bool, error)
	IsUidRestrictedOnMeteredNetworks(ctx context.Context, uid int32) (bool, error)
}

INetworkPolicyManagerServer is the server-side interface that user implementations provide to NewNetworkPolicyManagerStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).

type INetworkRecommendationProvider ¶

type INetworkRecommendationProvider interface {
	AsBinder() binder.IBinder
	RequestScores(ctx context.Context, networks []NetworkKey) error
}

func NewNetworkRecommendationProviderStub ¶

func NewNetworkRecommendationProviderStub(
	impl INetworkRecommendationProviderServer,
) INetworkRecommendationProvider

NewNetworkRecommendationProviderStub creates a server-side INetworkRecommendationProvider wrapping the given server implementation. The returned value satisfies INetworkRecommendationProvider and can be passed to proxy methods; its AsBinder() returns a *binder.StubBinder that is auto-registered with the binder driver on first use.

type INetworkRecommendationProviderServer ¶

type INetworkRecommendationProviderServer interface {
	RequestScores(ctx context.Context, networks []NetworkKey) error
}

INetworkRecommendationProviderServer is the server-side interface that user implementations provide to NewNetworkRecommendationProviderStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).

type INetworkScoreCache ¶

type INetworkScoreCache interface {
	AsBinder() binder.IBinder
	UpdateScores(ctx context.Context, networks []ScoredNetwork) error
	ClearScores(ctx context.Context) error
}

func NewNetworkScoreCacheStub ¶

func NewNetworkScoreCacheStub(
	impl INetworkScoreCacheServer,
) INetworkScoreCache

NewNetworkScoreCacheStub creates a server-side INetworkScoreCache wrapping the given server implementation. The returned value satisfies INetworkScoreCache and can be passed to proxy methods; its AsBinder() returns a *binder.StubBinder that is auto-registered with the binder driver on first use.

type INetworkScoreCacheServer ¶

type INetworkScoreCacheServer interface {
	UpdateScores(ctx context.Context, networks []ScoredNetwork) error
	ClearScores(ctx context.Context) error
}

INetworkScoreCacheServer is the server-side interface that user implementations provide to NewNetworkScoreCacheStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).

type INetworkScoreService ¶

type INetworkScoreService interface {
	AsBinder() binder.IBinder
	UpdateScores(ctx context.Context, networks []ScoredNetwork) (bool, error)
	ClearScores(ctx context.Context) (bool, error)
	SetActiveScorer(ctx context.Context, packageName string) (bool, error)
	DisableScoring(ctx context.Context) error
	RegisterNetworkScoreCache(ctx context.Context, networkType int32, scoreCache INetworkScoreCache, filterType int32) error
	UnregisterNetworkScoreCache(ctx context.Context, networkType int32, scoreCache INetworkScoreCache) error
	RequestScores(ctx context.Context, networks []NetworkKey) (bool, error)
	IsCallerActiveScorer(ctx context.Context) (bool, error)
	GetActiveScorerPackage(ctx context.Context) (string, error)
	GetActiveScorer(ctx context.Context) (NetworkScorerAppData, error)
	GetAllValidScorers(ctx context.Context) ([]NetworkScorerAppData, error)
}

func NewNetworkScoreServiceStub ¶

func NewNetworkScoreServiceStub(
	impl INetworkScoreServiceServer,
) INetworkScoreService

NewNetworkScoreServiceStub creates a server-side INetworkScoreService wrapping the given server implementation. The returned value satisfies INetworkScoreService and can be passed to proxy methods; its AsBinder() returns a *binder.StubBinder that is auto-registered with the binder driver on first use.

type INetworkScoreServiceServer ¶

type INetworkScoreServiceServer interface {
	UpdateScores(ctx context.Context, networks []ScoredNetwork) (bool, error)
	ClearScores(ctx context.Context) (bool, error)
	SetActiveScorer(ctx context.Context, packageName string) (bool, error)
	DisableScoring(ctx context.Context) error
	RegisterNetworkScoreCache(ctx context.Context, networkType int32, scoreCache INetworkScoreCache, filterType int32) error
	UnregisterNetworkScoreCache(ctx context.Context, networkType int32, scoreCache INetworkScoreCache) error
	RequestScores(ctx context.Context, networks []NetworkKey) (bool, error)
	IsCallerActiveScorer(ctx context.Context) (bool, error)
	GetActiveScorerPackage(ctx context.Context) (string, error)
	GetActiveScorer(ctx context.Context) (NetworkScorerAppData, error)
	GetAllValidScorers(ctx context.Context) ([]NetworkScorerAppData, error)
}

INetworkScoreServiceServer is the server-side interface that user implementations provide to NewNetworkScoreServiceStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).

type IPacProxyInstalledListener ¶

type IPacProxyInstalledListener interface {
	AsBinder() binder.IBinder
	OnPacProxyInstalled(ctx context.Context, network any, proxy any) error
}

func NewPacProxyInstalledListenerStub ¶

func NewPacProxyInstalledListenerStub(
	impl IPacProxyInstalledListenerServer,
) IPacProxyInstalledListener

NewPacProxyInstalledListenerStub creates a server-side IPacProxyInstalledListener wrapping the given server implementation. The returned value satisfies IPacProxyInstalledListener and can be passed to proxy methods; its AsBinder() returns a *binder.StubBinder that is auto-registered with the binder driver on first use.

type IPacProxyInstalledListenerServer ¶

type IPacProxyInstalledListenerServer interface {
	OnPacProxyInstalled(ctx context.Context, network any, proxy any) error
}

IPacProxyInstalledListenerServer is the server-side interface that user implementations provide to NewPacProxyInstalledListenerStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).

type IPacProxyManager ¶

type IPacProxyManager interface {
	AsBinder() binder.IBinder
	AddListener(ctx context.Context, listener IPacProxyInstalledListener) error
	RemoveListener(ctx context.Context, listener IPacProxyInstalledListener) error
	SetCurrentProxyScriptUrl(ctx context.Context, proxyInfo any) error
}

func NewPacProxyManagerStub ¶

func NewPacProxyManagerStub(
	impl IPacProxyManagerServer,
) IPacProxyManager

NewPacProxyManagerStub creates a server-side IPacProxyManager wrapping the given server implementation. The returned value satisfies IPacProxyManager and can be passed to proxy methods; its AsBinder() returns a *binder.StubBinder that is auto-registered with the binder driver on first use.

type IPacProxyManagerServer ¶

type IPacProxyManagerServer interface {
	AddListener(ctx context.Context, listener IPacProxyInstalledListener) error
	RemoveListener(ctx context.Context, listener IPacProxyInstalledListener) error
	SetCurrentProxyScriptUrl(ctx context.Context, proxyInfo any) error
}

IPacProxyManagerServer is the server-side interface that user implementations provide to NewPacProxyManagerStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).

type IVpnManager ¶

type IVpnManager interface {
	AsBinder() binder.IBinder
	PrepareVpn(ctx context.Context, oldPackage string, newPackage string) (bool, error)
	SetVpnPackageAuthorization(ctx context.Context, packageName string, vpnType int32) error
	EstablishVpn(ctx context.Context, config internalNet.VpnConfig) (int32, error)
	AddVpnAddress(ctx context.Context, address string, prefixLength int32) (bool, error)
	RemoveVpnAddress(ctx context.Context, address string, prefixLength int32) (bool, error)
	SetUnderlyingNetworksForVpn(ctx context.Context, networks []any) (bool, error)
	ProvisionVpnProfile(ctx context.Context, profile internalNet.VpnProfile, packageName string) (bool, error)
	DeleteVpnProfile(ctx context.Context, packageName string) error
	StartVpnProfile(ctx context.Context, packageName string) (string, error)
	StopVpnProfile(ctx context.Context, packageName string) error
	GetProvisionedVpnProfileState(ctx context.Context, packageName string) (VpnProfileState, error)
	SetAppExclusionList(ctx context.Context, vpnPackage string, excludedApps []string) (bool, error)
	GetAppExclusionList(ctx context.Context, vpnPackage string) ([]string, error)
	IsAlwaysOnVpnPackageSupported(ctx context.Context, packageName string) (bool, error)
	SetAlwaysOnVpnPackage(ctx context.Context, packageName string, lockdown bool, lockdownAllowlist []string) (bool, error)
	GetAlwaysOnVpnPackage(ctx context.Context) (string, error)
	IsVpnLockdownEnabled(ctx context.Context) (bool, error)
	GetVpnLockdownAllowlist(ctx context.Context) ([]string, error)
	IsCallerCurrentAlwaysOnVpnApp(ctx context.Context) (bool, error)
	IsCallerCurrentAlwaysOnVpnLockdownApp(ctx context.Context) (bool, error)
	StartLegacyVpn(ctx context.Context, profile internalNet.VpnProfile) error
	GetLegacyVpnInfo(ctx context.Context) (internalNet.LegacyVpnInfo, error)
	UpdateLockdownVpn(ctx context.Context) (bool, error)
	GetVpnConfig(ctx context.Context) (internalNet.VpnConfig, error)
	FactoryReset(ctx context.Context) error
}

func NewVpnManagerStub ¶

func NewVpnManagerStub(
	impl IVpnManagerServer,
) IVpnManager

NewVpnManagerStub creates a server-side IVpnManager wrapping the given server implementation. The returned value satisfies IVpnManager and can be passed to proxy methods; its AsBinder() returns a *binder.StubBinder that is auto-registered with the binder driver on first use.

type IVpnManagerServer ¶

type IVpnManagerServer interface {
	PrepareVpn(ctx context.Context, oldPackage string, newPackage string) (bool, error)
	SetVpnPackageAuthorization(ctx context.Context, packageName string, vpnType int32) error
	EstablishVpn(ctx context.Context, config internalNet.VpnConfig) (int32, error)
	AddVpnAddress(ctx context.Context, address string, prefixLength int32) (bool, error)
	RemoveVpnAddress(ctx context.Context, address string, prefixLength int32) (bool, error)
	SetUnderlyingNetworksForVpn(ctx context.Context, networks []any) (bool, error)
	ProvisionVpnProfile(ctx context.Context, profile internalNet.VpnProfile, packageName string) (bool, error)
	DeleteVpnProfile(ctx context.Context, packageName string) error
	StartVpnProfile(ctx context.Context, packageName string) (string, error)
	StopVpnProfile(ctx context.Context, packageName string) error
	GetProvisionedVpnProfileState(ctx context.Context, packageName string) (VpnProfileState, error)
	SetAppExclusionList(ctx context.Context, vpnPackage string, excludedApps []string) (bool, error)
	GetAppExclusionList(ctx context.Context, vpnPackage string) ([]string, error)
	IsAlwaysOnVpnPackageSupported(ctx context.Context, packageName string) (bool, error)
	SetAlwaysOnVpnPackage(ctx context.Context, packageName string, lockdown bool, lockdownAllowlist []string) (bool, error)
	GetAlwaysOnVpnPackage(ctx context.Context) (string, error)
	IsVpnLockdownEnabled(ctx context.Context) (bool, error)
	GetVpnLockdownAllowlist(ctx context.Context) ([]string, error)
	IsCallerCurrentAlwaysOnVpnApp(ctx context.Context) (bool, error)
	IsCallerCurrentAlwaysOnVpnLockdownApp(ctx context.Context) (bool, error)
	StartLegacyVpn(ctx context.Context, profile internalNet.VpnProfile) error
	GetLegacyVpnInfo(ctx context.Context) (internalNet.LegacyVpnInfo, error)
	UpdateLockdownVpn(ctx context.Context) (bool, error)
	GetVpnConfig(ctx context.Context) (internalNet.VpnConfig, error)
	FactoryReset(ctx context.Context) error
}

IVpnManagerServer is the server-side interface that user implementations provide to NewVpnManagerStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).

type InterfaceConfiguration ¶

type InterfaceConfiguration struct {
	HwAddr string
}

func (*InterfaceConfiguration) MarshalParcel ¶

func (s *InterfaceConfiguration) MarshalParcel(
	p *parcel.Parcel,
) error

func (*InterfaceConfiguration) UnmarshalParcel ¶

func (s *InterfaceConfiguration) UnmarshalParcel(
	p *parcel.Parcel,
) error

type IpConnectivityMetricsProxy ¶

type IpConnectivityMetricsProxy struct {
	Remote binder.IBinder
}

func NewIpConnectivityMetricsProxy ¶

func NewIpConnectivityMetricsProxy(
	remote binder.IBinder,
) *IpConnectivityMetricsProxy

func (*IpConnectivityMetricsProxy) AddNetdEventCallback ¶

func (p *IpConnectivityMetricsProxy) AddNetdEventCallback(
	ctx context.Context,
	callerType int32,
	callback INetdEventCallback,
) (bool, error)

func (*IpConnectivityMetricsProxy) AsBinder ¶

func (p *IpConnectivityMetricsProxy) AsBinder() binder.IBinder

func (*IpConnectivityMetricsProxy) LogDefaultNetworkEvent ¶

func (p *IpConnectivityMetricsProxy) LogDefaultNetworkEvent(
	ctx context.Context,
	defaultNetwork any,
	score int32,
	validated bool,
	lp any,
	nc any,
	previousDefaultNetwork any,
	previousScore int32,
	previousLp any,
	previousNc any,
) error

func (*IpConnectivityMetricsProxy) LogDefaultNetworkValidity ¶

func (p *IpConnectivityMetricsProxy) LogDefaultNetworkValidity(
	ctx context.Context,
	valid bool,
) error

func (*IpConnectivityMetricsProxy) LogEvent ¶

func (p *IpConnectivityMetricsProxy) LogEvent(
	ctx context.Context,
	event ConnectivityMetricsEvent,
) (int32, error)

func (*IpConnectivityMetricsProxy) RemoveNetdEventCallback ¶

func (p *IpConnectivityMetricsProxy) RemoveNetdEventCallback(
	ctx context.Context,
	callerType int32,
) (bool, error)

type IpConnectivityMetricsStub ¶

type IpConnectivityMetricsStub struct {
	Impl      IIpConnectivityMetrics
	Transport binder.VersionAwareTransport
}

IpConnectivityMetricsStub dispatches incoming binder transactions to a typed IIpConnectivityMetrics implementation.

func (*IpConnectivityMetricsStub) Descriptor ¶

func (s *IpConnectivityMetricsStub) Descriptor() string

func (*IpConnectivityMetricsStub) OnTransaction ¶

func (s *IpConnectivityMetricsStub) OnTransaction(
	ctx context.Context,
	code binder.TransactionCode,
	_data *parcel.Parcel,
) (*parcel.Parcel, error)

type LinkQualityInfo ¶

type LinkQualityInfo struct {
	ObjectType               int32
	NetworkType              int32
	NormalizedSignalStrength int32
	PacketCount              int64
	PacketErrorCount         int64
	TheoreticalTxBandwidth   int32
	TheoreticalRxBandwidth   int32
	TheoreticalLatency       int32
	LastDataSampleTime       int64
	DataSampleDuration       int32
}

func (*LinkQualityInfo) MarshalParcel ¶

func (s *LinkQualityInfo) MarshalParcel(
	p *parcel.Parcel,
) error

func (*LinkQualityInfo) UnmarshalParcel ¶

func (s *LinkQualityInfo) UnmarshalParcel(
	p *parcel.Parcel,
) error

type NattKeepalivePacketData ¶

type NattKeepalivePacketData struct {
}

func (*NattKeepalivePacketData) MarshalParcel ¶

func (s *NattKeepalivePacketData) MarshalParcel(
	p *parcel.Parcel,
) error

func (*NattKeepalivePacketData) UnmarshalParcel ¶

func (s *NattKeepalivePacketData) UnmarshalParcel(
	p *parcel.Parcel,
) error

type NetdEventCallbackProxy ¶

type NetdEventCallbackProxy struct {
	Remote binder.IBinder
}

func NewNetdEventCallbackProxy ¶

func NewNetdEventCallbackProxy(
	remote binder.IBinder,
) *NetdEventCallbackProxy

func (*NetdEventCallbackProxy) AsBinder ¶

func (p *NetdEventCallbackProxy) AsBinder() binder.IBinder

func (*NetdEventCallbackProxy) OnConnectEvent ¶

func (p *NetdEventCallbackProxy) OnConnectEvent(
	ctx context.Context,
	ipAddr string,
	port int32,
	timestamp int64,
	uid int32,
) error

func (*NetdEventCallbackProxy) OnDnsEvent ¶

func (p *NetdEventCallbackProxy) OnDnsEvent(
	ctx context.Context,
	netId int32,
	eventType int32,
	returnCode int32,
	hostname string,
	ipAddresses []string,
	ipAddressesCount int32,
	timestamp int64,
	uid int32,
) error

func (*NetdEventCallbackProxy) OnNat64PrefixEvent ¶

func (p *NetdEventCallbackProxy) OnNat64PrefixEvent(
	ctx context.Context,
	netId int32,
	added bool,
	prefixString string,
	prefixLength int32,
) error

func (*NetdEventCallbackProxy) OnPrivateDnsValidationEvent ¶

func (p *NetdEventCallbackProxy) OnPrivateDnsValidationEvent(
	ctx context.Context,
	netId int32,
	ipAddress string,
	hostname string,
	validated bool,
) error

type NetdEventCallbackStub ¶

type NetdEventCallbackStub struct {
	Impl      INetdEventCallback
	Transport binder.VersionAwareTransport
}

NetdEventCallbackStub dispatches incoming binder transactions to a typed INetdEventCallback implementation.

func (*NetdEventCallbackStub) Descriptor ¶

func (s *NetdEventCallbackStub) Descriptor() string

func (*NetdEventCallbackStub) OnTransaction ¶

func (s *NetdEventCallbackStub) OnTransaction(
	ctx context.Context,
	code binder.TransactionCode,
	_data *parcel.Parcel,
) (*parcel.Parcel, error)

type NetworkKey ¶

type NetworkKey struct {
	Type int32
}

func (*NetworkKey) MarshalParcel ¶

func (s *NetworkKey) MarshalParcel(
	p *parcel.Parcel,
) error

func (*NetworkKey) UnmarshalParcel ¶

func (s *NetworkKey) UnmarshalParcel(
	p *parcel.Parcel,
) error

type NetworkManagementEventObserverProxy ¶

type NetworkManagementEventObserverProxy struct {
	Remote binder.IBinder
}

func NewNetworkManagementEventObserverProxy ¶

func NewNetworkManagementEventObserverProxy(
	remote binder.IBinder,
) *NetworkManagementEventObserverProxy

func (*NetworkManagementEventObserverProxy) AddressRemoved ¶

func (p *NetworkManagementEventObserverProxy) AddressRemoved(
	ctx context.Context,
	iface string,
	address data.LinkAddress,
) error

func (*NetworkManagementEventObserverProxy) AddressUpdated ¶

func (p *NetworkManagementEventObserverProxy) AddressUpdated(
	ctx context.Context,
	iface string,
	address data.LinkAddress,
) error

func (*NetworkManagementEventObserverProxy) AsBinder ¶

func (p *NetworkManagementEventObserverProxy) AsBinder() binder.IBinder

func (*NetworkManagementEventObserverProxy) InterfaceAdded ¶

func (p *NetworkManagementEventObserverProxy) InterfaceAdded(
	ctx context.Context,
	iface string,
) error

func (*NetworkManagementEventObserverProxy) InterfaceClassDataActivityChanged ¶

func (p *NetworkManagementEventObserverProxy) InterfaceClassDataActivityChanged(
	ctx context.Context,
	label int32,
	active bool,
	tsNanos int64,
	uid int32,
) error

func (*NetworkManagementEventObserverProxy) InterfaceDnsServerInfo ¶

func (p *NetworkManagementEventObserverProxy) InterfaceDnsServerInfo(
	ctx context.Context,
	iface string,
	lifetime int64,
	servers []string,
) error

func (*NetworkManagementEventObserverProxy) InterfaceLinkStateChanged ¶

func (p *NetworkManagementEventObserverProxy) InterfaceLinkStateChanged(
	ctx context.Context,
	iface string,
	up bool,
) error

func (*NetworkManagementEventObserverProxy) InterfaceRemoved ¶

func (p *NetworkManagementEventObserverProxy) InterfaceRemoved(
	ctx context.Context,
	iface string,
) error

func (*NetworkManagementEventObserverProxy) InterfaceStatusChanged ¶

func (p *NetworkManagementEventObserverProxy) InterfaceStatusChanged(
	ctx context.Context,
	iface string,
	up bool,
) error

func (*NetworkManagementEventObserverProxy) LimitReached ¶

func (p *NetworkManagementEventObserverProxy) LimitReached(
	ctx context.Context,
	limitName string,
	iface string,
) error

func (*NetworkManagementEventObserverProxy) RouteRemoved ¶

func (p *NetworkManagementEventObserverProxy) RouteRemoved(
	ctx context.Context,
	route any,
) error

func (*NetworkManagementEventObserverProxy) RouteUpdated ¶

func (p *NetworkManagementEventObserverProxy) RouteUpdated(
	ctx context.Context,
	route any,
) error

type NetworkManagementEventObserverStub ¶

type NetworkManagementEventObserverStub struct {
	Impl      INetworkManagementEventObserver
	Transport binder.VersionAwareTransport
}

NetworkManagementEventObserverStub dispatches incoming binder transactions to a typed INetworkManagementEventObserver implementation.

func (*NetworkManagementEventObserverStub) Descriptor ¶

func (s *NetworkManagementEventObserverStub) Descriptor() string

func (*NetworkManagementEventObserverStub) OnTransaction ¶

func (s *NetworkManagementEventObserverStub) OnTransaction(
	ctx context.Context,
	code binder.TransactionCode,
	_data *parcel.Parcel,
) (*parcel.Parcel, error)

type NetworkPolicy ¶

type NetworkPolicy struct {
	WarningBytes      int64
	LimitBytes        int64
	LastWarningSnooze int64
	LastLimitSnooze   int64
	LastRapidSnooze   int64
	Metered           bool
	Inferred          bool
}

func (*NetworkPolicy) MarshalParcel ¶

func (s *NetworkPolicy) MarshalParcel(
	p *parcel.Parcel,
) error

func (*NetworkPolicy) UnmarshalParcel ¶

func (s *NetworkPolicy) UnmarshalParcel(
	p *parcel.Parcel,
) error

type NetworkPolicyListenerProxy ¶

type NetworkPolicyListenerProxy struct {
	Remote binder.IBinder
}

func NewNetworkPolicyListenerProxy ¶

func NewNetworkPolicyListenerProxy(
	remote binder.IBinder,
) *NetworkPolicyListenerProxy

func (*NetworkPolicyListenerProxy) AsBinder ¶

func (p *NetworkPolicyListenerProxy) AsBinder() binder.IBinder

func (*NetworkPolicyListenerProxy) OnBlockedReasonChanged ¶

func (p *NetworkPolicyListenerProxy) OnBlockedReasonChanged(
	ctx context.Context,
	uid int32,
	oldBlockedReason int32,
	newBlockedReason int32,
) error

func (*NetworkPolicyListenerProxy) OnMeteredIfacesChanged ¶

func (p *NetworkPolicyListenerProxy) OnMeteredIfacesChanged(
	ctx context.Context,
	meteredIfaces []string,
) error

func (*NetworkPolicyListenerProxy) OnRestrictBackgroundChanged ¶

func (p *NetworkPolicyListenerProxy) OnRestrictBackgroundChanged(
	ctx context.Context,
	restrictBackground bool,
) error

func (*NetworkPolicyListenerProxy) OnSubscriptionOverride ¶

func (p *NetworkPolicyListenerProxy) OnSubscriptionOverride(
	ctx context.Context,
	subId int32,
	overrideMask int32,
	overrideValue int32,
	networkTypes []int32,
) error

func (*NetworkPolicyListenerProxy) OnSubscriptionPlansChanged ¶

func (p *NetworkPolicyListenerProxy) OnSubscriptionPlansChanged(
	ctx context.Context,
	subId int32,
	plans []telephony.SubscriptionPlan,
) error

func (*NetworkPolicyListenerProxy) OnUidPoliciesChanged ¶

func (p *NetworkPolicyListenerProxy) OnUidPoliciesChanged(
	ctx context.Context,
	uid int32,
	uidPolicies int32,
) error

func (*NetworkPolicyListenerProxy) OnUidRulesChanged ¶

func (p *NetworkPolicyListenerProxy) OnUidRulesChanged(
	ctx context.Context,
	uid int32,
	uidRules int32,
) error

type NetworkPolicyListenerStub ¶

type NetworkPolicyListenerStub struct {
	Impl      INetworkPolicyListener
	Transport binder.VersionAwareTransport
}

NetworkPolicyListenerStub dispatches incoming binder transactions to a typed INetworkPolicyListener implementation.

func (*NetworkPolicyListenerStub) Descriptor ¶

func (s *NetworkPolicyListenerStub) Descriptor() string

func (*NetworkPolicyListenerStub) OnTransaction ¶

func (s *NetworkPolicyListenerStub) OnTransaction(
	ctx context.Context,
	code binder.TransactionCode,
	_data *parcel.Parcel,
) (*parcel.Parcel, error)

type NetworkPolicyManagerProxy ¶

type NetworkPolicyManagerProxy struct {
	Remote binder.IBinder
}

func GetNetworkPolicyManager ¶

func GetNetworkPolicyManager(
	ctx context.Context,
	sm *servicemanager.ServiceManager,
) (*NetworkPolicyManagerProxy, error)

GetNetworkPolicyManager retrieves the NetworkPolicyService service and returns a typed proxy.

func NewNetworkPolicyManagerProxy ¶

func NewNetworkPolicyManagerProxy(
	remote binder.IBinder,
) *NetworkPolicyManagerProxy

func (*NetworkPolicyManagerProxy) AddUidPolicy ¶

func (p *NetworkPolicyManagerProxy) AddUidPolicy(
	ctx context.Context,
	uid int32,
	policy int32,
) error

func (*NetworkPolicyManagerProxy) AsBinder ¶

func (p *NetworkPolicyManagerProxy) AsBinder() binder.IBinder

func (*NetworkPolicyManagerProxy) FactoryReset ¶

func (p *NetworkPolicyManagerProxy) FactoryReset(
	ctx context.Context,
	subscriber string,
) error

func (*NetworkPolicyManagerProxy) GetMultipathPreference ¶

func (p *NetworkPolicyManagerProxy) GetMultipathPreference(
	ctx context.Context,
	network any,
) (int32, error)

func (*NetworkPolicyManagerProxy) GetNetworkPolicies ¶

func (p *NetworkPolicyManagerProxy) GetNetworkPolicies(
	ctx context.Context,
) ([]NetworkPolicy, error)

func (*NetworkPolicyManagerProxy) GetRestrictBackground ¶

func (p *NetworkPolicyManagerProxy) GetRestrictBackground(
	ctx context.Context,
) (bool, error)

func (*NetworkPolicyManagerProxy) GetRestrictBackgroundByCaller ¶

func (p *NetworkPolicyManagerProxy) GetRestrictBackgroundByCaller(
	ctx context.Context,
) (int32, error)

func (*NetworkPolicyManagerProxy) GetRestrictBackgroundStatus ¶

func (p *NetworkPolicyManagerProxy) GetRestrictBackgroundStatus(
	ctx context.Context,
	uid int32,
) (int32, error)

func (*NetworkPolicyManagerProxy) GetSubscriptionPlan ¶

func (p *NetworkPolicyManagerProxy) GetSubscriptionPlan(
	ctx context.Context,
	template any,
) (telephony.SubscriptionPlan, error)

func (*NetworkPolicyManagerProxy) GetSubscriptionPlans ¶

func (p *NetworkPolicyManagerProxy) GetSubscriptionPlans(
	ctx context.Context,
	subId int32,
) ([]telephony.SubscriptionPlan, error)

func (*NetworkPolicyManagerProxy) GetSubscriptionPlansOwner ¶

func (p *NetworkPolicyManagerProxy) GetSubscriptionPlansOwner(
	ctx context.Context,
	subId int32,
) (string, error)

func (*NetworkPolicyManagerProxy) GetUidPolicy ¶

func (p *NetworkPolicyManagerProxy) GetUidPolicy(
	ctx context.Context,
	uid int32,
) (int32, error)

func (*NetworkPolicyManagerProxy) GetUidsWithPolicy ¶

func (p *NetworkPolicyManagerProxy) GetUidsWithPolicy(
	ctx context.Context,
	policy int32,
) ([]int32, error)

func (*NetworkPolicyManagerProxy) IsUidNetworkingBlocked ¶

func (p *NetworkPolicyManagerProxy) IsUidNetworkingBlocked(
	ctx context.Context,
	uid int32,
	meteredNetwork bool,
) (bool, error)

func (*NetworkPolicyManagerProxy) IsUidRestrictedOnMeteredNetworks ¶

func (p *NetworkPolicyManagerProxy) IsUidRestrictedOnMeteredNetworks(
	ctx context.Context,
	uid int32,
) (bool, error)

func (*NetworkPolicyManagerProxy) NotifyStatsProviderWarningOrLimitReached ¶

func (p *NetworkPolicyManagerProxy) NotifyStatsProviderWarningOrLimitReached(
	ctx context.Context,
) error

func (*NetworkPolicyManagerProxy) RegisterListener ¶

func (p *NetworkPolicyManagerProxy) RegisterListener(
	ctx context.Context,
	listener INetworkPolicyListener,
) error

func (*NetworkPolicyManagerProxy) RemoveUidPolicy ¶

func (p *NetworkPolicyManagerProxy) RemoveUidPolicy(
	ctx context.Context,
	uid int32,
	policy int32,
) error

func (*NetworkPolicyManagerProxy) SetDeviceIdleMode ¶

func (p *NetworkPolicyManagerProxy) SetDeviceIdleMode(
	ctx context.Context,
	enabled bool,
) error

func (*NetworkPolicyManagerProxy) SetNetworkPolicies ¶

func (p *NetworkPolicyManagerProxy) SetNetworkPolicies(
	ctx context.Context,
	policies []NetworkPolicy,
) error

func (*NetworkPolicyManagerProxy) SetRestrictBackground ¶

func (p *NetworkPolicyManagerProxy) SetRestrictBackground(
	ctx context.Context,
	restrictBackground bool,
) error

func (*NetworkPolicyManagerProxy) SetSubscriptionOverride ¶

func (p *NetworkPolicyManagerProxy) SetSubscriptionOverride(
	ctx context.Context,
	subId int32,
	overrideMask int32,
	overrideValue int32,
	networkTypes []int32,
	expirationDurationMillis int64,
) error

func (*NetworkPolicyManagerProxy) SetSubscriptionPlans ¶

func (p *NetworkPolicyManagerProxy) SetSubscriptionPlans(
	ctx context.Context,
	subId int32,
	plans []telephony.SubscriptionPlan,
	expirationDurationMillis int64,
) error

func (*NetworkPolicyManagerProxy) SetUidPolicy ¶

func (p *NetworkPolicyManagerProxy) SetUidPolicy(
	ctx context.Context,
	uid int32,
	policy int32,
) error

func (*NetworkPolicyManagerProxy) SetWifiMeteredOverride ¶

func (p *NetworkPolicyManagerProxy) SetWifiMeteredOverride(
	ctx context.Context,
	networkId string,
	meteredOverride int32,
) error

func (*NetworkPolicyManagerProxy) SnoozeLimit ¶

func (p *NetworkPolicyManagerProxy) SnoozeLimit(
	ctx context.Context,
	template any,
) error

func (*NetworkPolicyManagerProxy) UnregisterListener ¶

func (p *NetworkPolicyManagerProxy) UnregisterListener(
	ctx context.Context,
	listener INetworkPolicyListener,
) error

type NetworkPolicyManagerStub ¶

type NetworkPolicyManagerStub struct {
	Impl      INetworkPolicyManager
	Transport binder.VersionAwareTransport
}

NetworkPolicyManagerStub dispatches incoming binder transactions to a typed INetworkPolicyManager implementation.

func (*NetworkPolicyManagerStub) Descriptor ¶

func (s *NetworkPolicyManagerStub) Descriptor() string

func (*NetworkPolicyManagerStub) OnTransaction ¶

func (s *NetworkPolicyManagerStub) OnTransaction(
	ctx context.Context,
	code binder.TransactionCode,
	_data *parcel.Parcel,
) (*parcel.Parcel, error)

type NetworkQuotaInfo ¶

type NetworkQuotaInfo struct {
}

func (*NetworkQuotaInfo) MarshalParcel ¶

func (s *NetworkQuotaInfo) MarshalParcel(
	p *parcel.Parcel,
) error

func (*NetworkQuotaInfo) UnmarshalParcel ¶

func (s *NetworkQuotaInfo) UnmarshalParcel(
	p *parcel.Parcel,
) error

type NetworkRecommendationProviderProxy ¶

type NetworkRecommendationProviderProxy struct {
	Remote binder.IBinder
}

func NewNetworkRecommendationProviderProxy ¶

func NewNetworkRecommendationProviderProxy(
	remote binder.IBinder,
) *NetworkRecommendationProviderProxy

func (*NetworkRecommendationProviderProxy) AsBinder ¶

func (p *NetworkRecommendationProviderProxy) AsBinder() binder.IBinder

func (*NetworkRecommendationProviderProxy) RequestScores ¶

func (p *NetworkRecommendationProviderProxy) RequestScores(
	ctx context.Context,
	networks []NetworkKey,
) error

type NetworkRecommendationProviderStub ¶

type NetworkRecommendationProviderStub struct {
	Impl      INetworkRecommendationProvider
	Transport binder.VersionAwareTransport
}

NetworkRecommendationProviderStub dispatches incoming binder transactions to a typed INetworkRecommendationProvider implementation.

func (*NetworkRecommendationProviderStub) Descriptor ¶

func (s *NetworkRecommendationProviderStub) Descriptor() string

func (*NetworkRecommendationProviderStub) OnTransaction ¶

func (s *NetworkRecommendationProviderStub) OnTransaction(
	ctx context.Context,
	code binder.TransactionCode,
	_data *parcel.Parcel,
) (*parcel.Parcel, error)

type NetworkScoreCacheProxy ¶

type NetworkScoreCacheProxy struct {
	Remote binder.IBinder
}

func NewNetworkScoreCacheProxy ¶

func NewNetworkScoreCacheProxy(
	remote binder.IBinder,
) *NetworkScoreCacheProxy

func (*NetworkScoreCacheProxy) AsBinder ¶

func (p *NetworkScoreCacheProxy) AsBinder() binder.IBinder

func (*NetworkScoreCacheProxy) ClearScores ¶

func (p *NetworkScoreCacheProxy) ClearScores(
	ctx context.Context,
) error

func (*NetworkScoreCacheProxy) UpdateScores ¶

func (p *NetworkScoreCacheProxy) UpdateScores(
	ctx context.Context,
	networks []ScoredNetwork,
) error

type NetworkScoreCacheStub ¶

type NetworkScoreCacheStub struct {
	Impl      INetworkScoreCache
	Transport binder.VersionAwareTransport
}

NetworkScoreCacheStub dispatches incoming binder transactions to a typed INetworkScoreCache implementation.

func (*NetworkScoreCacheStub) Descriptor ¶

func (s *NetworkScoreCacheStub) Descriptor() string

func (*NetworkScoreCacheStub) OnTransaction ¶

func (s *NetworkScoreCacheStub) OnTransaction(
	ctx context.Context,
	code binder.TransactionCode,
	_data *parcel.Parcel,
) (*parcel.Parcel, error)

type NetworkScoreServiceProxy ¶

type NetworkScoreServiceProxy struct {
	Remote binder.IBinder
}

func NewNetworkScoreServiceProxy ¶

func NewNetworkScoreServiceProxy(
	remote binder.IBinder,
) *NetworkScoreServiceProxy

func (*NetworkScoreServiceProxy) AsBinder ¶

func (p *NetworkScoreServiceProxy) AsBinder() binder.IBinder

func (*NetworkScoreServiceProxy) ClearScores ¶

func (p *NetworkScoreServiceProxy) ClearScores(
	ctx context.Context,
) (bool, error)

func (*NetworkScoreServiceProxy) DisableScoring ¶

func (p *NetworkScoreServiceProxy) DisableScoring(
	ctx context.Context,
) error

func (*NetworkScoreServiceProxy) GetActiveScorer ¶

func (p *NetworkScoreServiceProxy) GetActiveScorer(
	ctx context.Context,
) (NetworkScorerAppData, error)

func (*NetworkScoreServiceProxy) GetActiveScorerPackage ¶

func (p *NetworkScoreServiceProxy) GetActiveScorerPackage(
	ctx context.Context,
) (string, error)

func (*NetworkScoreServiceProxy) GetAllValidScorers ¶

func (p *NetworkScoreServiceProxy) GetAllValidScorers(
	ctx context.Context,
) ([]NetworkScorerAppData, error)

func (*NetworkScoreServiceProxy) IsCallerActiveScorer ¶

func (p *NetworkScoreServiceProxy) IsCallerActiveScorer(
	ctx context.Context,
) (bool, error)

func (*NetworkScoreServiceProxy) RegisterNetworkScoreCache ¶

func (p *NetworkScoreServiceProxy) RegisterNetworkScoreCache(
	ctx context.Context,
	networkType int32,
	scoreCache INetworkScoreCache,
	filterType int32,
) error

func (*NetworkScoreServiceProxy) RequestScores ¶

func (p *NetworkScoreServiceProxy) RequestScores(
	ctx context.Context,
	networks []NetworkKey,
) (bool, error)

func (*NetworkScoreServiceProxy) SetActiveScorer ¶

func (p *NetworkScoreServiceProxy) SetActiveScorer(
	ctx context.Context,
	packageName string,
) (bool, error)

func (*NetworkScoreServiceProxy) UnregisterNetworkScoreCache ¶

func (p *NetworkScoreServiceProxy) UnregisterNetworkScoreCache(
	ctx context.Context,
	networkType int32,
	scoreCache INetworkScoreCache,
) error

func (*NetworkScoreServiceProxy) UpdateScores ¶

func (p *NetworkScoreServiceProxy) UpdateScores(
	ctx context.Context,
	networks []ScoredNetwork,
) (bool, error)

type NetworkScoreServiceStub ¶

type NetworkScoreServiceStub struct {
	Impl      INetworkScoreService
	Transport binder.VersionAwareTransport
}

NetworkScoreServiceStub dispatches incoming binder transactions to a typed INetworkScoreService implementation.

func (*NetworkScoreServiceStub) Descriptor ¶

func (s *NetworkScoreServiceStub) Descriptor() string

func (*NetworkScoreServiceStub) OnTransaction ¶

func (s *NetworkScoreServiceStub) OnTransaction(
	ctx context.Context,
	code binder.TransactionCode,
	_data *parcel.Parcel,
) (*parcel.Parcel, error)

type NetworkScorerAppData ¶

type NetworkScorerAppData struct {
	PackageUid                            int32
	RecommendationServiceLabel            string
	NetworkAvailableNotificationChannelId string
	ComponentName                         types.ComponentName
	ComponentName2                        types.ComponentName
}

func (*NetworkScorerAppData) MarshalParcel ¶

func (s *NetworkScorerAppData) MarshalParcel(
	p *parcel.Parcel,
) error

func (*NetworkScorerAppData) UnmarshalParcel ¶

func (s *NetworkScorerAppData) UnmarshalParcel(
	p *parcel.Parcel,
) error

type NetworkState ¶

type NetworkState struct {
}

func (*NetworkState) MarshalParcel ¶

func (s *NetworkState) MarshalParcel(
	p *parcel.Parcel,
) error

func (*NetworkState) UnmarshalParcel ¶

func (s *NetworkState) UnmarshalParcel(
	p *parcel.Parcel,
) error

type PacProxyInstalledListenerProxy ¶

type PacProxyInstalledListenerProxy struct {
	Remote binder.IBinder
}

func NewPacProxyInstalledListenerProxy ¶

func NewPacProxyInstalledListenerProxy(
	remote binder.IBinder,
) *PacProxyInstalledListenerProxy

func (*PacProxyInstalledListenerProxy) AsBinder ¶

func (p *PacProxyInstalledListenerProxy) AsBinder() binder.IBinder

func (*PacProxyInstalledListenerProxy) OnPacProxyInstalled ¶

func (p *PacProxyInstalledListenerProxy) OnPacProxyInstalled(
	ctx context.Context,
	network any,
	proxy any,
) error

type PacProxyInstalledListenerStub ¶

type PacProxyInstalledListenerStub struct {
	Impl      IPacProxyInstalledListener
	Transport binder.VersionAwareTransport
}

PacProxyInstalledListenerStub dispatches incoming binder transactions to a typed IPacProxyInstalledListener implementation.

func (*PacProxyInstalledListenerStub) Descriptor ¶

func (s *PacProxyInstalledListenerStub) Descriptor() string

func (*PacProxyInstalledListenerStub) OnTransaction ¶

func (s *PacProxyInstalledListenerStub) OnTransaction(
	ctx context.Context,
	code binder.TransactionCode,
	_data *parcel.Parcel,
) (*parcel.Parcel, error)

type PacProxyManagerProxy ¶

type PacProxyManagerProxy struct {
	Remote binder.IBinder
}

func GetPacProxyManager ¶

func GetPacProxyManager(
	ctx context.Context,
	sm *servicemanager.ServiceManager,
) (*PacProxyManagerProxy, error)

GetPacProxyManager retrieves the PacProxyService service and returns a typed proxy.

func NewPacProxyManagerProxy ¶

func NewPacProxyManagerProxy(
	remote binder.IBinder,
) *PacProxyManagerProxy

func (*PacProxyManagerProxy) AddListener ¶

func (p *PacProxyManagerProxy) AddListener(
	ctx context.Context,
	listener IPacProxyInstalledListener,
) error

func (*PacProxyManagerProxy) AsBinder ¶

func (p *PacProxyManagerProxy) AsBinder() binder.IBinder

func (*PacProxyManagerProxy) RemoveListener ¶

func (p *PacProxyManagerProxy) RemoveListener(
	ctx context.Context,
	listener IPacProxyInstalledListener,
) error

func (*PacProxyManagerProxy) SetCurrentProxyScriptUrl ¶

func (p *PacProxyManagerProxy) SetCurrentProxyScriptUrl(
	ctx context.Context,
	proxyInfo any,
) error

type PacProxyManagerStub ¶

type PacProxyManagerStub struct {
	Impl      IPacProxyManager
	Transport binder.VersionAwareTransport
}

PacProxyManagerStub dispatches incoming binder transactions to a typed IPacProxyManager implementation.

func (*PacProxyManagerStub) Descriptor ¶

func (s *PacProxyManagerStub) Descriptor() string

func (*PacProxyManagerStub) OnTransaction ¶

func (s *PacProxyManagerStub) OnTransaction(
	ctx context.Context,
	code binder.TransactionCode,
	_data *parcel.Parcel,
) (*parcel.Parcel, error)

type ScoredNetwork ¶

type ScoredNetwork struct {
	NetworkKey NetworkKey
}

func (*ScoredNetwork) MarshalParcel ¶

func (s *ScoredNetwork) MarshalParcel(
	p *parcel.Parcel,
) error

func (*ScoredNetwork) UnmarshalParcel ¶

func (s *ScoredNetwork) UnmarshalParcel(
	p *parcel.Parcel,
) error

type TcpKeepalivePacketData ¶

type TcpKeepalivePacketData struct {
}

func (*TcpKeepalivePacketData) MarshalParcel ¶

func (s *TcpKeepalivePacketData) MarshalParcel(
	p *parcel.Parcel,
) error

func (*TcpKeepalivePacketData) UnmarshalParcel ¶

func (s *TcpKeepalivePacketData) UnmarshalParcel(
	p *parcel.Parcel,
) error

type Uri ¶

type Uri struct {
}

func (*Uri) MarshalParcel ¶

func (s *Uri) MarshalParcel(
	p *parcel.Parcel,
) error

func (*Uri) UnmarshalParcel ¶

func (s *Uri) UnmarshalParcel(
	p *parcel.Parcel,
) error

type VpnManagerProxy ¶

type VpnManagerProxy struct {
	Remote binder.IBinder
}

func GetVpnManager ¶

func GetVpnManager(
	ctx context.Context,
	sm *servicemanager.ServiceManager,
) (*VpnManagerProxy, error)

GetVpnManager retrieves the VpnManagementService service and returns a typed proxy.

func NewVpnManagerProxy ¶

func NewVpnManagerProxy(
	remote binder.IBinder,
) *VpnManagerProxy

func (*VpnManagerProxy) AddVpnAddress ¶

func (p *VpnManagerProxy) AddVpnAddress(
	ctx context.Context,
	address string,
	prefixLength int32,
) (bool, error)

func (*VpnManagerProxy) AsBinder ¶

func (p *VpnManagerProxy) AsBinder() binder.IBinder

func (*VpnManagerProxy) DeleteVpnProfile ¶

func (p *VpnManagerProxy) DeleteVpnProfile(
	ctx context.Context,
	packageName string,
) error

func (*VpnManagerProxy) EstablishVpn ¶

func (p *VpnManagerProxy) EstablishVpn(
	ctx context.Context,
	config internalNet.VpnConfig,
) (int32, error)

func (*VpnManagerProxy) FactoryReset ¶

func (p *VpnManagerProxy) FactoryReset(
	ctx context.Context,
) error

func (*VpnManagerProxy) GetAlwaysOnVpnPackage ¶

func (p *VpnManagerProxy) GetAlwaysOnVpnPackage(
	ctx context.Context,
) (string, error)

func (*VpnManagerProxy) GetAppExclusionList ¶

func (p *VpnManagerProxy) GetAppExclusionList(
	ctx context.Context,
	vpnPackage string,
) ([]string, error)

func (*VpnManagerProxy) GetLegacyVpnInfo ¶

func (p *VpnManagerProxy) GetLegacyVpnInfo(
	ctx context.Context,
) (internalNet.LegacyVpnInfo, error)

func (*VpnManagerProxy) GetProvisionedVpnProfileState ¶

func (p *VpnManagerProxy) GetProvisionedVpnProfileState(
	ctx context.Context,
	packageName string,
) (VpnProfileState, error)

func (*VpnManagerProxy) GetVpnConfig ¶

func (p *VpnManagerProxy) GetVpnConfig(
	ctx context.Context,
) (internalNet.VpnConfig, error)

func (*VpnManagerProxy) GetVpnLockdownAllowlist ¶

func (p *VpnManagerProxy) GetVpnLockdownAllowlist(
	ctx context.Context,
) ([]string, error)

func (*VpnManagerProxy) IsAlwaysOnVpnPackageSupported ¶

func (p *VpnManagerProxy) IsAlwaysOnVpnPackageSupported(
	ctx context.Context,
	packageName string,
) (bool, error)

func (*VpnManagerProxy) IsCallerCurrentAlwaysOnVpnApp ¶

func (p *VpnManagerProxy) IsCallerCurrentAlwaysOnVpnApp(
	ctx context.Context,
) (bool, error)

func (*VpnManagerProxy) IsCallerCurrentAlwaysOnVpnLockdownApp ¶

func (p *VpnManagerProxy) IsCallerCurrentAlwaysOnVpnLockdownApp(
	ctx context.Context,
) (bool, error)

func (*VpnManagerProxy) IsVpnLockdownEnabled ¶

func (p *VpnManagerProxy) IsVpnLockdownEnabled(
	ctx context.Context,
) (bool, error)

func (*VpnManagerProxy) PrepareVpn ¶

func (p *VpnManagerProxy) PrepareVpn(
	ctx context.Context,
	oldPackage string,
	newPackage string,
) (bool, error)

func (*VpnManagerProxy) ProvisionVpnProfile ¶

func (p *VpnManagerProxy) ProvisionVpnProfile(
	ctx context.Context,
	profile internalNet.VpnProfile,
	packageName string,
) (bool, error)

func (*VpnManagerProxy) RemoveVpnAddress ¶

func (p *VpnManagerProxy) RemoveVpnAddress(
	ctx context.Context,
	address string,
	prefixLength int32,
) (bool, error)

func (*VpnManagerProxy) SetAlwaysOnVpnPackage ¶

func (p *VpnManagerProxy) SetAlwaysOnVpnPackage(
	ctx context.Context,
	packageName string,
	lockdown bool,
	lockdownAllowlist []string,
) (bool, error)

func (*VpnManagerProxy) SetAppExclusionList ¶

func (p *VpnManagerProxy) SetAppExclusionList(
	ctx context.Context,
	vpnPackage string,
	excludedApps []string,
) (bool, error)

func (*VpnManagerProxy) SetUnderlyingNetworksForVpn ¶

func (p *VpnManagerProxy) SetUnderlyingNetworksForVpn(
	ctx context.Context,
	networks []any,
) (bool, error)

func (*VpnManagerProxy) SetVpnPackageAuthorization ¶

func (p *VpnManagerProxy) SetVpnPackageAuthorization(
	ctx context.Context,
	packageName string,
	vpnType int32,
) error

func (*VpnManagerProxy) StartLegacyVpn ¶

func (p *VpnManagerProxy) StartLegacyVpn(
	ctx context.Context,
	profile internalNet.VpnProfile,
) error

func (*VpnManagerProxy) StartVpnProfile ¶

func (p *VpnManagerProxy) StartVpnProfile(
	ctx context.Context,
	packageName string,
) (string, error)

func (*VpnManagerProxy) StopVpnProfile ¶

func (p *VpnManagerProxy) StopVpnProfile(
	ctx context.Context,
	packageName string,
) error

func (*VpnManagerProxy) UpdateLockdownVpn ¶

func (p *VpnManagerProxy) UpdateLockdownVpn(
	ctx context.Context,
) (bool, error)

type VpnManagerStub ¶

type VpnManagerStub struct {
	Impl      IVpnManager
	Transport binder.VersionAwareTransport
}

VpnManagerStub dispatches incoming binder transactions to a typed IVpnManager implementation.

func (*VpnManagerStub) Descriptor ¶

func (s *VpnManagerStub) Descriptor() string

func (*VpnManagerStub) OnTransaction ¶

func (s *VpnManagerStub) OnTransaction(
	ctx context.Context,
	code binder.TransactionCode,
	_data *parcel.Parcel,
) (*parcel.Parcel, error)

type VpnProfileState ¶

type VpnProfileState struct {
	State      int32
	SessionKey string
	AlwaysOn   bool
	Lockdown   bool
}

func (*VpnProfileState) MarshalParcel ¶

func (s *VpnProfileState) MarshalParcel(
	p *parcel.Parcel,
) error

func (*VpnProfileState) UnmarshalParcel ¶

func (s *VpnProfileState) UnmarshalParcel(
	p *parcel.Parcel,
) error

Source Files ¶

View all Source files
  • connectivitymetricsevent.go
  • get_netpolicy.go
  • get_pac_proxy.go
  • get_vpn_management.go
  • iipconnectivitymetrics.go
  • inetdeventcallback.go
  • inetworkmanagementeventobserver.go
  • inetworkpolicylistener.go
  • inetworkpolicymanager.go
  • inetworkrecommendationprovider.go
  • inetworkscorecache.go
  • inetworkscoreservice.go
  • interfaceconfiguration.go
  • ipacproxyinstalledlistener.go
  • ipacproxymanager.go
  • ivpnmanager.go
  • linkqualityinfo.go
  • nattkeepalivepacketdata.go
  • networkkey.go
  • networkpolicy.go
  • networkquotainfo.go
  • networkscorerappdata.go
  • networkstate.go
  • scorednetwork.go
  • tcpkeepalivepacketdata.go
  • uri.go
  • vpnprofilestate.go

Directories ¶

Path Synopsis
types
vcn
wifi
nl80211
sharedconnectivity/app
sharedconnectivity/service
Click to show internal directories.
Click to hide internal directories.
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.