Snap for 6586393 from a840c1f3ea1e9c3cde2ee985212f80864ff1e8d7 to rvc-release
Change-Id: I2ee507de15484671c09c996a38d5a0a47564658e
This commit is contained in:
@@ -28,6 +28,7 @@ import android.telephony.TelephonyManager;
|
|||||||
import android.text.TextUtils;
|
import android.text.TextUtils;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
|
|
||||||
|
import com.android.internal.annotations.VisibleForTesting;
|
||||||
import com.android.internal.util.CollectionUtils;
|
import com.android.internal.util.CollectionUtils;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
@@ -38,8 +39,6 @@ import java.util.concurrent.Executor;
|
|||||||
/**
|
/**
|
||||||
* Helper class that watches for events that are triggered per subscription.
|
* Helper class that watches for events that are triggered per subscription.
|
||||||
*/
|
*/
|
||||||
// TODO (b/152176562): Write tests to verify subscription changes generate corresponding
|
|
||||||
// register/unregister calls.
|
|
||||||
public class NetworkStatsSubscriptionsMonitor extends
|
public class NetworkStatsSubscriptionsMonitor extends
|
||||||
SubscriptionManager.OnSubscriptionsChangedListener {
|
SubscriptionManager.OnSubscriptionsChangedListener {
|
||||||
|
|
||||||
@@ -207,5 +206,10 @@ public class NetworkStatsSubscriptionsMonitor extends
|
|||||||
mLastCollapsedRatType = collapsedRatType;
|
mLastCollapsedRatType = collapsedRatType;
|
||||||
mMonitor.mDelegate.onCollapsedRatTypeChanged(mSubscriberId, mLastCollapsedRatType);
|
mMonitor.mDelegate.onCollapsedRatTypeChanged(mSubscriberId, mLastCollapsedRatType);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@VisibleForTesting
|
||||||
|
public int getSubId() {
|
||||||
|
return mSubId;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user