AI comparison
Grounded in the excerpts below · verify against the source
in both Files changed across versions
These files exist in both AOSP 17 and 13 and matched the query. Compare the excerpts side‑by‑side to see how they evolved.
-
frameworks/base/services/core/java/com/android/server/net/NetworkPolicyManagerService.java 7 matches in 17 · 5 matches in 13 AOSP 17 android-17.0.0_r1
lines 846–850 0.77public NetworkPolicyManagerService(Context context, IActivityManager activityManager, INetworkManagementService networkManagement) { this(context, activityManager, networkManagemenlines 949–983 0.76@VisibleForTesting public NetworkPolicyManagerService(Context context, IActivityManager activityManager, INetworkManagementService networkManagement, IPackageManager pm, Clock clock,lines 3392–3400 0.74@EnforcePermission(MANAGE_NETWORK_POLICY) @Override public int getUidPolicy(int uid) { getUidPolicy_enforcePermission(); synchronized (mUidRulesFirstLock) { returnlines 3525–3550 0.74@EnforcePermission(MANAGE_NETWORK_POLICY) @Override public NetworkPolicy[] getNetworkPolicies(String callingPackage) { getNetworkPolicies_enforcePermission(); try {lines 3519–3523 0.74void addNetworkPolicyAL(NetworkPolicy policy) { NetworkPolicy[] policies = getNetworkPolicies(mContext.getOpPackageName()); policies = ArrayUtils.appendElement(NetworkPolicy.class, pollines 3501–3517 0.73@EnforcePermission(MANAGE_NETWORK_POLICY) @Override public void setNetworkPolicies(NetworkPolicy[] policies) { setNetworkPolicies_enforcePermission(); final long token = Bindelines 1639–1650 0.72@Override public void onLinkPropertiesChanged(@NonNull Network network, @NonNull LinkProperties lp) { synchronized (mNetworkPoliciesSecondLock) { final ArraySet<StrAOSP 13 android-13.0.0_r84
lines 742–746 0.77public NetworkPolicyManagerService(Context context, IActivityManager activityManager, INetworkManagementService networkManagement) { this(context, activityManager, networkManagemenlines 806–840 0.76@VisibleForTesting public NetworkPolicyManagerService(Context context, IActivityManager activityManager, INetworkManagementService networkManagement, IPackageManager pm, Clock clock,lines 2958–2965 0.75@Override public int getUidPolicy(int uid) { mContext.enforceCallingOrSelfPermission(MANAGE_NETWORK_POLICY, TAG); synchronized (mUidRulesFirstLock) { return mUidPolicylines 3088–3112 0.74@Override public NetworkPolicy[] getNetworkPolicies(String callingPackage) { mContext.enforceCallingOrSelfPermission(MANAGE_NETWORK_POLICY, TAG); try { mContext.enforcelines 3082–3086 0.74void addNetworkPolicyAL(NetworkPolicy policy) { NetworkPolicy[] policies = getNetworkPolicies(mContext.getOpPackageName()); policies = ArrayUtils.appendElement(NetworkPolicy.class, pol -
frameworks/base/core/java/android/net/NetworkPolicyManager.java 2 matches in 17 · 1 match in 13 AOSP 17 android-17.0.0_r1
lines 471–478 0.76@UnsupportedAppUsage public NetworkPolicy[] getNetworkPolicies() { try { return mService.getNetworkPolicies(mContext.getOpPackageName()); } catch (RemoteException e) {lines 351–358 0.72@UnsupportedAppUsage public void setUidPolicy(int uid, int policy) { try { mService.setUidPolicy(uid, policy); } catch (RemoteException e) { throw e.rethrowAOSP 13 android-13.0.0_r84
lines 442–449 0.76@UnsupportedAppUsage public NetworkPolicy[] getNetworkPolicies() { try { return mService.getNetworkPolicies(mContext.getOpPackageName()); } catch (RemoteException e) {
only in 17 Files matched only in AOSP 17
These files matched the query in AOSP 17 but didn't appear in the top results for AOSP 13. They may have been removed, renamed, or refactored beyond the query's reach.
-
package android.net; parcelable NetworkPolicy;
only in 13 Files matched only in AOSP 13
These files matched the query in AOSP 13 but didn't appear in the top results for AOSP 17. They may be new in this version, or refactored from older files that no longer match the query.
-
const int LOCAL_NET_ID = 99; /** * Constant net ID for the "dummy" network. * * The dummy network is used to blackhole or reject traffic. Any attempt to use it will * eith -
* Calling this method on one or more UIDs with an existing filtering rule but a different * interface name will result in the filtering rule being updated to allow the new interface * i -
package android.net; import android.net.INetdUnsolicitedEventListener; import android.net.InterfaceConfigurationParcel; import android.net.MarkMaskParcel; import android.net.NativeNetworkConfig; impo -
* @param spi a 32-bit unique ID allocated to the user * @param markValue a 32-bit unique ID chosen by the user * @param markMask a 32-bit mask chosen by the user * @param interfaceId t