Single-version search →
2 files in both · 1 only in 17 · 4 only in 13 · 1254 ms

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.

  1. 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

    java
    public NetworkPolicyManagerService(Context context, IActivityManager activityManager,
                INetworkManagementService networkManagement) {
            this(context, activityManager, networkManagemen
    java
    @VisibleForTesting
        public NetworkPolicyManagerService(Context context, IActivityManager activityManager,
                INetworkManagementService networkManagement, IPackageManager pm, Clock clock,
     
    java
    @EnforcePermission(MANAGE_NETWORK_POLICY)
        @Override
        public int getUidPolicy(int uid) {
            getUidPolicy_enforcePermission();
    
            synchronized (mUidRulesFirstLock) {
                return
    java
    @EnforcePermission(MANAGE_NETWORK_POLICY)
        @Override
        public NetworkPolicy[] getNetworkPolicies(String callingPackage) {
            getNetworkPolicies_enforcePermission();
            try {
               
    java
    void addNetworkPolicyAL(NetworkPolicy policy) {
            NetworkPolicy[] policies = getNetworkPolicies(mContext.getOpPackageName());
            policies = ArrayUtils.appendElement(NetworkPolicy.class, pol
    java
    @EnforcePermission(MANAGE_NETWORK_POLICY)
        @Override
        public void setNetworkPolicies(NetworkPolicy[] policies) {
            setNetworkPolicies_enforcePermission();
    
            final long token = Binde
    java
    @Override
            public void onLinkPropertiesChanged(@NonNull Network network, @NonNull LinkProperties lp) {
                synchronized (mNetworkPoliciesSecondLock) {
                    final ArraySet<Str

    AOSP 13 android-13.0.0_r84

    java
    public NetworkPolicyManagerService(Context context, IActivityManager activityManager,
                INetworkManagementService networkManagement) {
            this(context, activityManager, networkManagemen
    java
    @VisibleForTesting
        public NetworkPolicyManagerService(Context context, IActivityManager activityManager,
                INetworkManagementService networkManagement, IPackageManager pm, Clock clock,
     
    java
    @Override
        public int getUidPolicy(int uid) {
            mContext.enforceCallingOrSelfPermission(MANAGE_NETWORK_POLICY, TAG);
    
            synchronized (mUidRulesFirstLock) {
                return mUidPolicy
    java
    @Override
        public NetworkPolicy[] getNetworkPolicies(String callingPackage) {
            mContext.enforceCallingOrSelfPermission(MANAGE_NETWORK_POLICY, TAG);
            try {
                mContext.enforce
    java
    void addNetworkPolicyAL(NetworkPolicy policy) {
            NetworkPolicy[] policies = getNetworkPolicies(mContext.getOpPackageName());
            policies = ArrayUtils.appendElement(NetworkPolicy.class, pol
  2. frameworks/base/core/java/android/net/NetworkPolicyManager.java 2 matches in 17 · 1 match in 13

    AOSP 17 android-17.0.0_r1

    java
    @UnsupportedAppUsage
        public NetworkPolicy[] getNetworkPolicies() {
            try {
                return mService.getNetworkPolicies(mContext.getOpPackageName());
            } catch (RemoteException e) {
    
    java
    @UnsupportedAppUsage
        public void setUidPolicy(int uid, int policy) {
            try {
                mService.setUidPolicy(uid, policy);
            } catch (RemoteException e) {
                throw e.rethrow

    AOSP 13 android-13.0.0_r84

    java
    @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.

  1. Lines 1–20 · aidl · AOSP 17
    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.

  1. Lines 1–1400 · aidl · AOSP 13
        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
  2. Lines 1–1400 · aidl · AOSP 13
         * 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
  3. Lines 1–1400 · aidl · AOSP 13
    package android.net;
    
    import android.net.INetdUnsolicitedEventListener;
    import android.net.InterfaceConfigurationParcel;
    import android.net.MarkMaskParcel;
    import android.net.NativeNetworkConfig;
    impo
  4. Lines 1–1400 · aidl · AOSP 13
        * @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

Want this comparison inside Claude Code, Cursor, or Cline? MCP setup →