Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 41fbcdff authored by Vova Sharaienko's avatar Vova Sharaienko Committed by Android (Google) Code Review
Browse files

Merge "[StatsAtomPullService] Dead code elimination after flag finalization" into main

parents 9b84c820 a143f443
Loading
Loading
Loading
Loading
+3 −10
Original line number Diff line number Diff line
@@ -836,9 +836,7 @@ public class StatsPullAtomService extends SystemService {
                registerEventListeners();
            });
        } else if (phase == PHASE_THIRD_PARTY_APPS_CAN_START) {
            if (true) {
            initNetworkStatsManager();
            }
            BackgroundThread.getHandler().post(() -> {
                // Network stats related pullers can only be initialized after service is ready.
                initAndRegisterNetworkStatsPullers();
@@ -859,9 +857,6 @@ public class StatsPullAtomService extends SystemService {
                mContext.getSystemService(Context.TELEPHONY_SUBSCRIPTION_SERVICE);
        mStatsSubscriptionsListener = new StatsSubscriptionsListener(mSubscriptionManager);
        mStorageManager = (StorageManager) mContext.getSystemService(StorageManager.class);
        if (false) {
            initNetworkStatsManager();
        }

        // Initialize DiskIO
        mStoragedUidIoStatsReader = new StoragedUidIoStatsReader();
@@ -1043,11 +1038,9 @@ public class StatsPullAtomService extends SystemService {
     */
    @NonNull
    private NetworkStatsManager getNetworkStatsManager() {
        if (true) {
        if (mNetworkStatsManager == null) {
            throw new IllegalStateException("NetworkStatsManager is not ready");
        }
        }
        return mNetworkStatsManager;
    }