导航菜单

页面标题

页面副标题

Kaspi.kz v5.85.1 - getModelUri.java 源代码

正在查看: Kaspi.kz v5.85.1 应用的 getModelUri.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package o;

import android.content.Context;
import android.content.ContextWrapper;
import android.content.Intent;
import android.content.IntentSender;
import android.content.res.Configuration;
import android.os.Bundle;
import android.os.Looper;
import android.os.Parcel;
import android.os.Parcelable;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
import androidx.activity.OnBackPressedDispatcher;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentContainerView;
import androidx.lifecycle.Lifecycle;
import androidx.lifecycle.LifecycleOwner;
import java.io.FileDescriptor;
import java.io.PrintWriter;
import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.CopyOnWriteArrayList;
import java.util.concurrent.atomic.AtomicInteger;
import o.deleteOldModels;
import o.getDownloadingModelId;
import o.getModelUri;
import o.getSupportedHdr;
import o.getUniqueModelNameForPersist;
import o.setCustomView;
import o.setMenu;

public abstract class getModelUri implements clearDownloadingModelInfo {
    private static final String AudioAttributesCompatParcelizer = "result_";
    private static final String AudioAttributesImplApi21Parcelizer = "android:support:fragments";
    private static final String IconCompatParcelizer = "androidx.fragment.extra.ACTIVITY_OPTIONS_BUNDLE";
    private static final String read = "state";
    public static final int setBackground = 1;
    private static boolean setElement = false;
    public static final String setOptions = "FragmentManager";
    private static final String write = "fragment_";
    private boolean ActivityResultRegistry1;
    private OptionalModuleUtils ComponentActivity3;
    private OnBackPressedDispatcher ComponentActivity4;
    private deleteOldModels.setFieldValue ImmLeaksCleaner;
    private ArrayList<isBaseModel> Keep;
    private ArrayList<RemoteActionCompatParcelizer> MediaBrowserCompatCustomActionResultReceiver;
    private ArrayList<Fragment> MediaBrowserCompatItemReceiver;
    private scheduleCallable MediaBrowserCompatMediaItem;
    private boolean MediaBrowserCompatSearchResultReceiver;
    private scheduleTaskCallable<?> MediaSessionCompatQueueItem;
    private boolean MediaSessionCompatResultReceiverWrapper;
    private boolean MediaSessionCompatToken;
    private ArrayList<Boolean> NonNull;
    private boolean OnBackPressedDispatcherLifecycleOnBackPressedCancellable;
    private boolean ParcelableVolumeInfo;
    Fragment RemoteActionCompatParcelizer;
    private Fragment getOnBackPressedDispatcher;
    private setStackedBackground<Intent> getSavedStateRegistry;
    private setStackedBackground<String[]> initializeViewTreeOwners;
    private ArrayList<Fragment> onStart;
    private setStackedBackground<setCustomView> onStop;
    ArrayList<isBaseModel> setFieldValue;
    private final ArrayList<IconCompatParcelizer> addContentView = new ArrayList<>();
    private final SharedPrefManager RatingCompat = new SharedPrefManager();
    private final scheduleRunnableDelayed PlaybackStateCompatCustomAction = new scheduleRunnableDelayed(this);
    private final NonNull ComponentActivity6 = new NonNull(false) {
        @Override
        public void setLabel() {
            getModelUri.this.ComponentActivity4();
        }
    };
    private final AtomicInteger AudioAttributesImplApi26Parcelizer = new AtomicInteger();
    private final Map<String, ClientPriority> AudioAttributesImplBaseParcelizer = Collections.synchronizedMap(new HashMap());
    private final Map<String, Bundle> onSaveInstanceState = Collections.synchronizedMap(new HashMap());
    private final Map<String, setElement> onCreate = Collections.synchronizedMap(new HashMap());
    private final getModelNameForPersist PlaybackStateCompat = new getModelNameForPersist(this);
    private final CopyOnWriteArrayList<ModelType> getLifecycleRegistry = new CopyOnWriteArrayList<>();
    private final setUseMaterialThemeColors<Configuration> r8lambdaqrzmfDOyDuplJFtpJLozn3P9EZI = new setUseMaterialThemeColors() {
        @Override
        public final void setFieldValue(Object obj) {
            getModelUri.this.setError((Configuration) obj);
        }
    };
    private final setUseMaterialThemeColors<Integer> onBackPressedDispatcherlambda1 = new setUseMaterialThemeColors() {
        @Override
        public final void setFieldValue(Object obj) {
            getModelUri.this.setError((Integer) obj);
        }
    };
    private final setUseMaterialThemeColors<toProto> getOnBackPressedDispatcherannotations = new setUseMaterialThemeColors() {
        @Override
        public final void setFieldValue(Object obj) {
            getModelUri.this.setBackground((toProto) obj);
        }
    };
    private final setUseMaterialThemeColors<getEan8MinConsistentLines> getLifecycle = new setUseMaterialThemeColors() {
        @Override
        public final void setFieldValue(Object obj) {
            getModelUri.this.setOptions((getEan8MinConsistentLines) obj);
        }
    };
    private final setRevealInfo setContentView = new setRevealInfo() {
        @Override
        public void setOptions(@androidx.annotation.NonNull Menu menu) {
            getModelUri.this.setBackground(menu);
        }

        @Override
        public void setFieldValue(@androidx.annotation.NonNull Menu menu, @androidx.annotation.NonNull MenuInflater menuInflater) {
            getModelUri.this.setError(menu, menuInflater);
        }

        @Override
        public boolean setBackground(@androidx.annotation.NonNull MenuItem menuItem) {
            return getModelUri.this.setBackground(menuItem);
        }

        @Override
        public void setBackground(@androidx.annotation.NonNull Menu menu) {
            getModelUri.this.setFieldValue(menu);
        }
    };
    int setError = -1;
    private MLTaskInput MediaControllerCompatMediaControllerImplApi21ExtraBinderRequestResultReceiver = null;
    private MLTaskInput ComponentActivity2 = new MLTaskInput() {
        @Override
        public Fragment setError(@androidx.annotation.NonNull ClassLoader classLoader, @androidx.annotation.NonNull String str) {
            return getModelUri.this.RatingCompat().setOptions(getModelUri.this.RatingCompat().AudioAttributesCompatParcelizer(), str, null);
        }
    };
    private BaseModel onBackPressed = null;
    private BaseModel MediaDescriptionCompat = new BaseModel() {
        @Override
        public setModelFirstUseTimeMs setBackground(@androidx.annotation.NonNull ViewGroup viewGroup) {
            return new clean(viewGroup);
        }
    };
    ArrayDeque<setError> setLabel = new ArrayDeque<>();
    private Runnable MediaMetadataCompat = new Runnable() {
        @Override
        public void run() {
            getModelUri.this.setFieldValue(true);
        }
    };

    interface IconCompatParcelizer {
        boolean setLabel(@androidx.annotation.NonNull ArrayList<isBaseModel> arrayList, @androidx.annotation.NonNull ArrayList<Boolean> arrayList2);
    }

    public interface RemoteActionCompatParcelizer {
        default void setError(@androidx.annotation.NonNull Fragment fragment, boolean z) {
        }

        void setOptions();

        default void setOptions(@androidx.annotation.NonNull Fragment fragment, boolean z) {
        }
    }

    public interface setFieldValue {
        int AudioAttributesCompatParcelizer();

        String AudioAttributesImplApi26Parcelizer();

        @Deprecated
        int AudioAttributesImplBaseParcelizer();

        @Deprecated
        CharSequence RemoteActionCompatParcelizer();

        @Deprecated
        CharSequence setElement();

        @Deprecated
        int write();
    }

    public static abstract class setLabel {
        public void IconCompatParcelizer(@androidx.annotation.NonNull getModelUri getmodeluri, @androidx.annotation.NonNull Fragment fragment) {
        }

        public void read(@androidx.annotation.NonNull getModelUri getmodeluri, @androidx.annotation.NonNull Fragment fragment) {
        }

        public void setBackground(@androidx.annotation.NonNull getModelUri getmodeluri, @androidx.annotation.NonNull Fragment fragment) {
        }

        public void setBackground(@androidx.annotation.NonNull getModelUri getmodeluri, @androidx.annotation.NonNull Fragment fragment, @Nullable Bundle bundle) {
        }

        public void setError(@androidx.annotation.NonNull getModelUri getmodeluri, @androidx.annotation.NonNull Fragment fragment) {
        }

        public void setError(@androidx.annotation.NonNull getModelUri getmodeluri, @androidx.annotation.NonNull Fragment fragment, @androidx.annotation.NonNull Bundle bundle) {
        }

        public void setFieldValue(@androidx.annotation.NonNull getModelUri getmodeluri, @androidx.annotation.NonNull Fragment fragment) {
        }

        @Deprecated
        public void setFieldValue(@androidx.annotation.NonNull getModelUri getmodeluri, @androidx.annotation.NonNull Fragment fragment, @Nullable Bundle bundle) {
        }

        public void setFieldValue(@androidx.annotation.NonNull getModelUri getmodeluri, @androidx.annotation.NonNull Fragment fragment, @androidx.annotation.NonNull View view, @Nullable Bundle bundle) {
        }

        public void setLabel(@androidx.annotation.NonNull getModelUri getmodeluri, @androidx.annotation.NonNull Fragment fragment) {
        }

        public void setLabel(@androidx.annotation.NonNull getModelUri getmodeluri, @androidx.annotation.NonNull Fragment fragment, @androidx.annotation.NonNull Context context) {
        }

        public void setOptions(@androidx.annotation.NonNull getModelUri getmodeluri, @androidx.annotation.NonNull Fragment fragment) {
        }

        public void setOptions(@androidx.annotation.NonNull getModelUri getmodeluri, @androidx.annotation.NonNull Fragment fragment, @androidx.annotation.NonNull Context context) {
        }

        public void setOptions(@androidx.annotation.NonNull getModelUri getmodeluri, @androidx.annotation.NonNull Fragment fragment, @Nullable Bundle bundle) {
        }
    }

    static int setBackground(int i) {
        int i2 = getDownloadingModelId.RatingCompat;
        if (i == 4097) {
            return getDownloadingModelId.MediaBrowserCompatItemReceiver;
        }
        if (i != 8194) {
            i2 = getDownloadingModelId.MediaControllerCompatMediaControllerImplApi21ExtraBinderRequestResultReceiver;
            if (i != 8197) {
                if (i == 4099) {
                    return getDownloadingModelId.MediaMetadataCompat;
                }
                if (i != 4100) {
                    return 0;
                }
                return getDownloadingModelId.MediaDescriptionCompat;
            }
        }
        return i2;
    }

    @Deprecated
    public static void setBackground(boolean z) {
        setElement = z;
    }

    public static boolean setLabel(int i) {
        return setElement || Log.isLoggable(setOptions, i);
    }

    public static class setElement implements areAllRequiredModulesAvailable {
        private final androidx.lifecycle.LifecycleEventObserver setBackground;
        private final androidx.lifecycle.Lifecycle setError;
        private final areAllRequiredModulesAvailable setLabel;

        setElement(@androidx.annotation.NonNull androidx.lifecycle.Lifecycle lifecycle, @androidx.annotation.NonNull areAllRequiredModulesAvailable areallrequiredmodulesavailable, @androidx.annotation.NonNull androidx.lifecycle.LifecycleEventObserver lifecycleEventObserver) {
            this.setError = lifecycle;
            this.setLabel = areallrequiredmodulesavailable;
            this.setBackground = lifecycleEventObserver;
        }

        public boolean setLabel(Lifecycle.State state) {
            return this.setError.getCurrentState().isAtLeast(state);
        }

        @Override
        public void onFragmentResult(@androidx.annotation.NonNull String str, @androidx.annotation.NonNull Bundle bundle) {
            this.setLabel.onFragmentResult(str, bundle);
        }

        public void setError() {
            this.setError.removeObserver(this.setBackground);
        }
    }

    public void setError(Configuration configuration) {
        if (OnBackPressedDispatcherLifecycleOnBackPressedCancellable()) {
            setBackground(configuration, false);
        }
    }

    public void setError(Integer num) {
        if (OnBackPressedDispatcherLifecycleOnBackPressedCancellable() && num.intValue() == 80) {
            setLabel(false);
        }
    }

    public void setBackground(toProto toproto) {
        if (OnBackPressedDispatcherLifecycleOnBackPressedCancellable()) {
            setError(toproto.setLabel(), false);
        }
    }

    public void setOptions(getEan8MinConsistentLines getean8minconsistentlines) {
        if (OnBackPressedDispatcherLifecycleOnBackPressedCancellable()) {
            setOptions(getean8minconsistentlines.setLabel(), false);
        }
    }

    private void setBackground(RuntimeException runtimeException) {
        Log.e(setOptions, runtimeException.getMessage());
        Log.e(setOptions, "Activity state:");
        PrintWriter printWriter = new PrintWriter(new setLatestModelHash(setOptions));
        scheduleTaskCallable<?> scheduletaskcallable = this.MediaSessionCompatQueueItem;
        if (scheduletaskcallable != null) {
            try {
                scheduletaskcallable.setError("  ", null, printWriter, new String[0]);
                throw runtimeException;
            } catch (Exception e) {
                Log.e(setOptions, "Failed dumping state", e);
                throw runtimeException;
            }
        }
        try {
            setError("  ", (FileDescriptor) null, printWriter, new String[0]);
            throw runtimeException;
        } catch (Exception e2) {
            Log.e(setOptions, "Failed dumping state", e2);
            throw runtimeException;
        }
    }

    @Deprecated
    public getDownloadingModelId ComponentActivity3() {
        return setError();
    }

    public getDownloadingModelId setError() {
        return new isBaseModel(this);
    }

    public boolean MediaMetadataCompat() {
        boolean fieldValue = setFieldValue(true);
        ActivityResultRegistry1();
        return fieldValue;
    }

    private void valueOf() {
        synchronized (this.addContentView) {
            if (!this.addContentView.isEmpty()) {
                this.ComponentActivity6.setLabel(true);
            } else {
                this.ComponentActivity6.setLabel(MediaBrowserCompatItemReceiver() > 0 && AudioAttributesCompatParcelizer(this.getOnBackPressedDispatcher));
            }
        }
    }

    public boolean AudioAttributesCompatParcelizer(@Nullable Fragment fragment) {
        if (fragment == null) {
            return true;
        }
        getModelUri getmodeluri = fragment.mFragmentManager;
        return fragment.equals(getmodeluri.PlaybackStateCompat()) && AudioAttributesCompatParcelizer(getmodeluri.getOnBackPressedDispatcher);
    }

    public boolean AudioAttributesImplApi26Parcelizer(@Nullable Fragment fragment) {
        if (fragment == null) {
            return true;
        }
        return fragment.isMenuVisible();
    }

    public boolean RemoteActionCompatParcelizer(@Nullable Fragment fragment) {
        if (fragment == null) {
            return false;
        }
        return fragment.isHidden();
    }

    void ComponentActivity4() {
        setFieldValue(true);
        if (this.ComponentActivity6.setOptions()) {
            onBackPressedDispatcherlambda1();
        } else {
            this.ComponentActivity4.setBackground();
        }
    }

    public void write(@androidx.annotation.NonNull String str) {
        setOptions((IconCompatParcelizer) new read(str), false);
    }

    public void read(@androidx.annotation.NonNull String str) {
        setOptions((IconCompatParcelizer) new AudioAttributesCompatParcelizer(str), false);
    }

    public void setFieldValue(@androidx.annotation.NonNull String str) {
        setOptions((IconCompatParcelizer) new setBackground(this, str), false);
    }

    public void addContentView() {
        setOptions((IconCompatParcelizer) new write(null, -1, 0), false);
    }

    public boolean onBackPressedDispatcherlambda1() {
        return setError(null, -1, 0);
    }

    public void setError(@Nullable String str, int i) {
        setOptions((IconCompatParcelizer) new write(str, -1, i), false);
    }

    public boolean setBackground(@Nullable String str, int i) {
        return setError(str, -1, i);
    }

    public void setFieldValue(int i, int i2) {
        setFieldValue(i, i2, false);
    }

    void setFieldValue(int i, int i2, boolean z) {
        if (i < 0) {
            throw new IllegalArgumentException("Bad id: " + i);
        }
        setOptions(new write(null, i, i2), z);
    }

    public boolean setLabel(int i, int i2) {
        if (i < 0) {
            throw new IllegalArgumentException("Bad id: " + i);
        }
        return setError(null, i, i2);
    }

    private boolean setError(@Nullable String str, int i, int i2) {
        setFieldValue(false);
        setOptions(true);
        Fragment fragment = this.RemoteActionCompatParcelizer;
        if (fragment != null && i < 0 && str == null && fragment.getChildFragmentManager().onBackPressedDispatcherlambda1()) {
            return true;
        }
        boolean background = setBackground(this.Keep, this.NonNull, str, i, i2);
        if (background) {
            this.MediaSessionCompatResultReceiverWrapper = true;
            try {
                setLabel(this.Keep, this.NonNull);
            } finally {
                onCreate();
            }
        }
        valueOf();
        onStop();
        this.RatingCompat.setLabel();
        return background;
    }

    public int MediaBrowserCompatItemReceiver() {
        ArrayList<isBaseModel> arrayList = this.setFieldValue;
        if (arrayList != null) {
            return arrayList.size();
        }
        return 0;
    }

    public setFieldValue setError(int i) {
        return this.setFieldValue.get(i);
    }

    public void setLabel(@androidx.annotation.NonNull RemoteActionCompatParcelizer remoteActionCompatParcelizer) {
        if (this.MediaBrowserCompatCustomActionResultReceiver == null) {
            this.MediaBrowserCompatCustomActionResultReceiver = new ArrayList<>();
        }
        this.MediaBrowserCompatCustomActionResultReceiver.add(remoteActionCompatParcelizer);
    }

    public void setOptions(@androidx.annotation.NonNull RemoteActionCompatParcelizer remoteActionCompatParcelizer) {
        ArrayList<RemoteActionCompatParcelizer> arrayList = this.MediaBrowserCompatCustomActionResultReceiver;
        if (arrayList != null) {
            arrayList.remove(remoteActionCompatParcelizer);
        }
    }

    @Override
    public final void setOptions(@androidx.annotation.NonNull String str, @androidx.annotation.NonNull Bundle bundle) {
        setElement setelement = this.onCreate.get(str);
        if (setelement != null && setelement.setLabel(Lifecycle.State.STARTED)) {
            setelement.onFragmentResult(str, bundle);
        } else {
            this.onSaveInstanceState.put(str, bundle);
        }
        if (setLabel(2)) {
            Log.v(setOptions, "Setting fragment result with key " + str + " and result " + bundle);
        }
    }

    @Override
    public final void setBackground(@androidx.annotation.NonNull String str) {
        this.onSaveInstanceState.remove(str);
        if (setLabel(2)) {
            Log.v(setOptions, "Clearing fragment result with key " + str);
        }
    }

    @Override
    public final void setOptions(@androidx.annotation.NonNull final String str, @androidx.annotation.NonNull androidx.lifecycle.LifecycleOwner lifecycleOwner, @androidx.annotation.NonNull final areAllRequiredModulesAvailable areallrequiredmodulesavailable) {
        final androidx.lifecycle.Lifecycle lifecycle = lifecycleOwner.getLifecycle();
        if (lifecycle.getCurrentState() == Lifecycle.State.DESTROYED) {
            return;
        }
        androidx.lifecycle.LifecycleEventObserver lifecycleEventObserver = new androidx.lifecycle.LifecycleEventObserver() {
            @Override
            public void onStateChanged(@NonNull LifecycleOwner lifecycleOwner2, @NonNull Lifecycle.Event event) {
                Map map;
                Map map2;
                if (event == Lifecycle.Event.ON_START) {
                    map2 = getModelUri.this.onSaveInstanceState;
                    Bundle bundle = (Bundle) map2.get(str);
                    if (bundle != null) {
                        areallrequiredmodulesavailable.onFragmentResult(str, bundle);
                        getModelUri.this.setBackground(str);
                    }
                }
                if (event == Lifecycle.Event.ON_DESTROY) {
                    lifecycle.removeObserver(this);
                    map = getModelUri.this.onCreate;
                    map.remove(str);
                }
            }
        };
        setElement put = this.onCreate.put(str, new setElement(lifecycle, areallrequiredmodulesavailable, lifecycleEventObserver));
        if (put != null) {
            put.setError();
        }
        if (setLabel(2)) {
            Log.v(setOptions, "Setting FragmentResultListener with key " + str + " lifecycleOwner " + lifecycle + " and listener " + areallrequiredmodulesavailable);
        }
        lifecycle.addObserver(lifecycleEventObserver);
    }

    @Override
    public final void setOptions(@androidx.annotation.NonNull String str) {
        setElement remove = this.onCreate.remove(str);
        if (remove != null) {
            remove.setError();
        }
        if (setLabel(2)) {
            Log.v(setOptions, "Clearing FragmentResultListener for key " + str);
        }
    }

    public void setLabel(@androidx.annotation.NonNull Bundle bundle, @androidx.annotation.NonNull String str, @androidx.annotation.NonNull Fragment fragment) {
        if (fragment.mFragmentManager != this) {
            setBackground(new IllegalStateException("Fragment " + fragment + " is not currently in the FragmentManager"));
        }
        bundle.putString(str, fragment.mWho);
    }

    public Fragment setFieldValue(@androidx.annotation.NonNull Bundle bundle, @androidx.annotation.NonNull String str) {
        String string = bundle.getString(str);
        if (string == null) {
            return null;
        }
        Fragment label = setLabel(string);
        if (label == null) {
            setBackground(new IllegalStateException("Fragment no longer exists for key " + str + ": unique id " + string));
        }
        return label;
    }

    public static <F extends Fragment> F setLabel(@androidx.annotation.NonNull View view) {
        F f = (F) setBackground(view);
        if (f != null) {
            return f;
        }
        throw new IllegalStateException("View " + view + " does not have a Fragment set");
    }

    static Fragment setBackground(@androidx.annotation.NonNull View view) {
        while (view != null) {
            Fragment error = setError(view);
            if (error != null) {
                return error;
            }
            Object parent = view.getParent();
            view = parent instanceof View ? (View) parent : null;
        }
        return null;
    }

    public static Fragment setError(@androidx.annotation.NonNull View view) {
        Object tag = view.getTag(getUniqueModelNameForPersist.setBackground.setOptions);
        if (tag instanceof Fragment) {
            return (Fragment) tag;
        }
        return null;
    }

    public void setFieldValue(@androidx.annotation.NonNull FragmentContainerView fragmentContainerView) {
        View view;
        for (clearLatestModelHash clearlatestmodelhash : this.RatingCompat.setFieldValue()) {
            Fragment AudioAttributesImplBaseParcelizer = clearlatestmodelhash.AudioAttributesImplBaseParcelizer();
            if (AudioAttributesImplBaseParcelizer.mContainerId == fragmentContainerView.getId() && (view = AudioAttributesImplBaseParcelizer.mView) != null && view.getParent() == null) {
                AudioAttributesImplBaseParcelizer.mContainer = fragmentContainerView;
                clearlatestmodelhash.setError();
            }
        }
    }

    public static getModelUri setFieldValue(@androidx.annotation.NonNull View view) {
        Constants constants;
        Fragment background = setBackground(view);
        if (background != null) {
            if (!background.isAdded()) {
                throw new IllegalStateException("The Fragment " + background + " that owns View " + view + " has already been destroyed. Nested fragments should always use the child FragmentManager.");
            }
            return background.getChildFragmentManager();
        }
        Context context = view.getContext();
        while (true) {
            if (!(context instanceof ContextWrapper)) {
                constants = null;
                break;
            }
            if (context instanceof Constants) {
                constants = (Constants) context;
                break;
            }
            context = ((ContextWrapper) context).getBaseContext();
        }
        if (constants != null) {
            return constants.AudioAttributesImplBaseParcelizer();
        }
        throw new IllegalStateException("View " + view + " is not within a subclass of FragmentActivity.");
    }

    public List<Fragment> MediaSessionCompatResultReceiverWrapper() {
        return this.RatingCompat.RemoteActionCompatParcelizer();
    }

    public androidx.lifecycle.ViewModelStore write(@androidx.annotation.NonNull Fragment fragment) {
        return this.ComponentActivity3.setLabel(fragment);
    }

    private OptionalModuleUtils MediaBrowserCompatMediaItem(@androidx.annotation.NonNull Fragment fragment) {
        return this.ComponentActivity3.setError(fragment);
    }

    public void setError(@androidx.annotation.NonNull Fragment fragment) {
        this.ComponentActivity3.setBackground(fragment);
    }

    public void MediaBrowserCompatCustomActionResultReceiver(@androidx.annotation.NonNull Fragment fragment) {
        this.ComponentActivity3.setOptions(fragment);
    }

    List<Fragment> MediaDescriptionCompat() {
        return this.RatingCompat.setOptions();
    }

    int MediaBrowserCompatSearchResultReceiver() {
        return this.RatingCompat.setBackground();
    }

    public Fragment.setOptions AudioAttributesImplApi21Parcelizer(@androidx.annotation.NonNull Fragment fragment) {
        clearLatestModelHash background = this.RatingCompat.setBackground(fragment.mWho);
        if (background == null || !background.AudioAttributesImplBaseParcelizer().equals(fragment)) {
            setBackground(new IllegalStateException("Fragment " + fragment + " is not currently in the FragmentManager"));
        }
        return background.AudioAttributesImplApi21Parcelizer();
    }

    private void getSavedStateRegistry() {
        throw new UnsupportedOperationException("Method not decompiled: o.getModelUri.getSavedStateRegistry():void");
    }

    public boolean ComponentActivity6() {
        return this.MediaBrowserCompatSearchResultReceiver;
    }

    public String toString() {
        StringBuilder sb = new StringBuilder(128);
        sb.append("FragmentManager{");
        sb.append(Integer.toHexString(System.identityHashCode(this)));
        sb.append(" in ");
        Fragment fragment = this.getOnBackPressedDispatcher;
        if (fragment != null) {
            sb.append(fragment.getClass().getSimpleName());
            sb.append("{");
            sb.append(Integer.toHexString(System.identityHashCode(this.getOnBackPressedDispatcher)));
            sb.append("}");
        } else {
            scheduleTaskCallable<?> scheduletaskcallable = this.MediaSessionCompatQueueItem;
            if (scheduletaskcallable != null) {
                sb.append(scheduletaskcallable.getClass().getSimpleName());
                sb.append("{");
                sb.append(Integer.toHexString(System.identityHashCode(this.MediaSessionCompatQueueItem)));
                sb.append("}");
            } else {
                sb.append("null");
            }
        }
        sb.append("}}");
        return sb.toString();
    }

    public void setError(@androidx.annotation.NonNull String str, @Nullable FileDescriptor fileDescriptor, @androidx.annotation.NonNull PrintWriter printWriter, @Nullable String[] strArr) {
        int size;
        int size2;
        String str2 = str + "    ";
        this.RatingCompat.setError(str, fileDescriptor, printWriter, strArr);
        ArrayList<Fragment> arrayList = this.MediaBrowserCompatItemReceiver;
        if (arrayList != null && (size2 = arrayList.size()) > 0) {
            printWriter.print(str);
            printWriter.println("Fragments Created Menus:");
            for (int i = 0; i < size2; i++) {
                Fragment fragment = this.MediaBrowserCompatItemReceiver.get(i);
                printWriter.print(str);
                printWriter.print("  #");
                printWriter.print(i);
                printWriter.print(": ");
                printWriter.println(fragment.toString());
            }
        }
        ArrayList<isBaseModel> arrayList2 = this.setFieldValue;
        if (arrayList2 != null && (size = arrayList2.size()) > 0) {
            printWriter.print(str);
            printWriter.println("Back Stack:");
            for (int i2 = 0; i2 < size; i2++) {
                isBaseModel isbasemodel = this.setFieldValue.get(i2);
                printWriter.print(str);
                printWriter.print("  #");
                printWriter.print(i2);
                printWriter.print(": ");
                printWriter.println(isbasemodel.toString());
                isbasemodel.setBackground(str2, printWriter);
            }
        }
        printWriter.print(str);
        printWriter.println("Back Stack Index: " + this.AudioAttributesImplApi26Parcelizer.get());
        synchronized (this.addContentView) {
            int size3 = this.addContentView.size();
            if (size3 > 0) {
                printWriter.print(str);
                printWriter.println("Pending Actions:");
                for (int i3 = 0; i3 < size3; i3++) {
                    IconCompatParcelizer iconCompatParcelizer = this.addContentView.get(i3);
                    printWriter.print(str);
                    printWriter.print("  #");
                    printWriter.print(i3);
                    printWriter.print(": ");
                    printWriter.println(iconCompatParcelizer);
                }
            }
        }
        printWriter.print(str);
        printWriter.println("FragmentManager misc state:");
        printWriter.print(str);
        printWriter.print("  mHost=");
        printWriter.println(this.MediaSessionCompatQueueItem);
        printWriter.print(str);
        printWriter.print("  mContainer=");
        printWriter.println(this.MediaBrowserCompatMediaItem);
        if (this.getOnBackPressedDispatcher != null) {
            printWriter.print(str);
            printWriter.print("  mParent=");
            printWriter.println(this.getOnBackPressedDispatcher);
        }
        printWriter.print(str);
        printWriter.print("  mCurState=");
        printWriter.print(this.setError);
        printWriter.print(" mStateSaved=");
        printWriter.print(this.ActivityResultRegistry1);
        printWriter.print(" mStopped=");
        printWriter.print(this.OnBackPressedDispatcherLifecycleOnBackPressedCancellable);
        printWriter.print(" mDestroyed=");
        printWriter.println(this.MediaBrowserCompatSearchResultReceiver);
        if (this.ParcelableVolumeInfo) {
            printWriter.print(str);
            printWriter.print("  mNeedMenuInvalidate=");
            printWriter.println(this.ParcelableVolumeInfo);
        }
    }

    public void setOptions(@androidx.annotation.NonNull clearLatestModelHash clearlatestmodelhash) {
        Fragment AudioAttributesImplBaseParcelizer = clearlatestmodelhash.AudioAttributesImplBaseParcelizer();
        if (AudioAttributesImplBaseParcelizer.mDeferStart) {
            if (this.MediaSessionCompatResultReceiverWrapper) {
                this.MediaSessionCompatToken = true;
            } else {
                AudioAttributesImplBaseParcelizer.mDeferStart = false;
                clearlatestmodelhash.AudioAttributesCompatParcelizer();
            }
        }
    }

    public boolean setOptions(int i) {
        return this.setError >= i;
    }

    void setFieldValue(@androidx.annotation.NonNull Fragment fragment, boolean z) {
        ViewGroup MediaBrowserCompatItemReceiver = MediaBrowserCompatItemReceiver(fragment);
        if (MediaBrowserCompatItemReceiver == null || !(MediaBrowserCompatItemReceiver instanceof FragmentContainerView)) {
            return;
        }
        ((FragmentContainerView) MediaBrowserCompatItemReceiver).setDrawDisappearingViewsLast(!z);
    }

    void setOptions(int i, boolean z) {
        scheduleTaskCallable<?> scheduletaskcallable;
        if (this.MediaSessionCompatQueueItem == null && i != -1) {
            throw new IllegalStateException("No activity");
        }
        if (z || i != this.setError) {
            this.setError = i;
            this.RatingCompat.read();
            Nullable();
            if (this.ParcelableVolumeInfo && (scheduletaskcallable = this.MediaSessionCompatQueueItem) != null && this.setError == 7) {
                scheduletaskcallable.RemoteActionCompatParcelizer();
                this.ParcelableVolumeInfo = false;
            }
        }
    }

    private void Nullable() {
        Iterator<clearLatestModelHash> it = this.RatingCompat.setFieldValue().iterator();
        while (it.hasNext()) {
            setOptions(it.next());
        }
    }

    public clearLatestModelHash setOptions(@androidx.annotation.NonNull Fragment fragment) {
        clearLatestModelHash background = this.RatingCompat.setBackground(fragment.mWho);
        if (background != null) {
            return background;
        }
        clearLatestModelHash clearlatestmodelhash = new clearLatestModelHash(this.PlaybackStateCompat, this.RatingCompat, fragment);
        clearlatestmodelhash.setOptions(this.MediaSessionCompatQueueItem.AudioAttributesCompatParcelizer().getClassLoader());
        clearlatestmodelhash.setLabel(this.setError);
        return clearlatestmodelhash;
    }

    clearLatestModelHash setFieldValue(@androidx.annotation.NonNull Fragment fragment) {
        String str = fragment.mPreviousWho;
        if (str != null) {
            deleteOldModels.setFieldValue(fragment, str);
        }
        if (setLabel(2)) {
            Log.v(setOptions, "add: " + fragment);
        }
        clearLatestModelHash options = setOptions(fragment);
        fragment.mFragmentManager = this;
        this.RatingCompat.setOptions(options);
        if (!fragment.mDetached) {
            this.RatingCompat.setBackground(fragment);
            fragment.mRemoving = false;
            if (fragment.mView == null) {
                fragment.mHiddenChanged = false;
            }
            if (MediaSessionCompatResultReceiverWrapper(fragment)) {
                this.ParcelableVolumeInfo = true;
            }
        }
        return options;
    }

    void AudioAttributesImplBaseParcelizer(@androidx.annotation.NonNull Fragment fragment) {
        if (setLabel(2)) {
            Log.v(setOptions, "remove: " + fragment + " nesting=" + fragment.mBackStackNesting);
        }
        boolean isInBackStack = fragment.isInBackStack();
        if (fragment.mDetached && isInBackStack) {
            return;
        }
        this.RatingCompat.setLabel(fragment);
        if (MediaSessionCompatResultReceiverWrapper(fragment)) {
            this.ParcelableVolumeInfo = true;
        }
        fragment.mRemoving = true;
        MediaSessionCompatToken(fragment);
    }

    void IconCompatParcelizer(@androidx.annotation.NonNull Fragment fragment) {
        if (setLabel(2)) {
            Log.v(setOptions, "hide: " + fragment);
        }
        if (fragment.mHidden) {
            return;
        }
        fragment.mHidden = true;
        fragment.mHiddenChanged = true ^ fragment.mHiddenChanged;
        MediaSessionCompatToken(fragment);
    }

    void MediaBrowserCompatSearchResultReceiver(@androidx.annotation.NonNull Fragment fragment) {
        if (setLabel(2)) {
            Log.v(setOptions, "show: " + fragment);
        }
        if (fragment.mHidden) {
            fragment.mHidden = false;
            fragment.mHiddenChanged = !fragment.mHiddenChanged;
        }
    }

    void setLabel(@androidx.annotation.NonNull Fragment fragment) {
        if (setLabel(2)) {
            Log.v(setOptions, "detach: " + fragment);
        }
        if (fragment.mDetached) {
            return;
        }
        fragment.mDetached = true;
        if (fragment.mAdded) {
            if (setLabel(2)) {
                Log.v(setOptions, "remove from detach: " + fragment);
            }
            this.RatingCompat.setLabel(fragment);
            if (MediaSessionCompatResultReceiverWrapper(fragment)) {
                this.ParcelableVolumeInfo = true;
            }
            MediaSessionCompatToken(fragment);
        }
    }

    void setBackground(@androidx.annotation.NonNull Fragment fragment) {
        if (setLabel(2)) {
            Log.v(setOptions, "attach: " + fragment);
        }
        if (fragment.mDetached) {
            fragment.mDetached = false;
            if (fragment.mAdded) {
                return;
            }
            this.RatingCompat.setBackground(fragment);
            if (setLabel(2)) {
                Log.v(setOptions, "add from attach: " + fragment);
            }
            if (MediaSessionCompatResultReceiverWrapper(fragment)) {
                this.ParcelableVolumeInfo = true;
            }
        }
    }

    public Fragment findFragmentById(@setSupportCompoundDrawablesTintMode int i) {
        return this.RatingCompat.setError(i);
    }

    public Fragment findFragmentByTag(@Nullable String str) {
        return this.RatingCompat.setFieldValue(str);
    }

    public Fragment setError(@androidx.annotation.NonNull String str) {
        return this.RatingCompat.setOptions(str);
    }

    public Fragment setLabel(@androidx.annotation.NonNull String str) {
        return this.RatingCompat.setError(str);
    }

    private void initializeViewTreeOwners() {
        if (getLifecycleRegistry()) {
            throw new IllegalStateException("Can not perform this action after onSaveInstanceState");
        }
    }

    public boolean getLifecycleRegistry() {
        return this.ActivityResultRegistry1 || this.OnBackPressedDispatcherLifecycleOnBackPressedCancellable;
    }

    void setOptions(@androidx.annotation.NonNull IconCompatParcelizer iconCompatParcelizer, boolean z) {
        if (!z) {
            if (this.MediaSessionCompatQueueItem == null) {
                if (this.MediaBrowserCompatSearchResultReceiver) {
                    throw new IllegalStateException("FragmentManager has been destroyed");
                }
                throw new IllegalStateException("FragmentManager has not been attached to a host.");
            }
            initializeViewTreeOwners();
        }
        synchronized (this.addContentView) {
            if (this.MediaSessionCompatQueueItem == null) {
                if (!z) {
                    throw new IllegalStateException("Activity has been destroyed");
                }
            } else {
                this.addContentView.add(iconCompatParcelizer);
                onSaveInstanceState();
            }
        }
    }

    void onSaveInstanceState() {
        synchronized (this.addContentView) {
            if (this.addContentView.size() == 1) {
                this.MediaSessionCompatQueueItem.AudioAttributesImplApi21Parcelizer().removeCallbacks(this.MediaMetadataCompat);
                this.MediaSessionCompatQueueItem.AudioAttributesImplApi21Parcelizer().post(this.MediaMetadataCompat);
                valueOf();
            }
        }
    }

    int setFieldValue() {
        return this.AudioAttributesImplApi26Parcelizer.getAndIncrement();
    }

    private void setOptions(boolean z) {
        if (this.MediaSessionCompatResultReceiverWrapper) {
            throw new IllegalStateException("FragmentManager is already executing transactions");
        }
        if (this.MediaSessionCompatQueueItem == null) {
            if (this.MediaBrowserCompatSearchResultReceiver) {
                throw new IllegalStateException("FragmentManager has been destroyed");
            }
            throw new IllegalStateException("FragmentManager has not been attached to a host.");
        }
        if (Looper.myLooper() != this.MediaSessionCompatQueueItem.AudioAttributesImplApi21Parcelizer().getLooper()) {
            throw new IllegalStateException("Must be called from main thread of fragment host");
        }
        if (!z) {
            initializeViewTreeOwners();
        }
        if (this.Keep == null) {
            this.Keep = new ArrayList<>();
            this.NonNull = new ArrayList<>();
        }
    }

    void setLabel(@androidx.annotation.NonNull IconCompatParcelizer iconCompatParcelizer, boolean z) {
        if (z && (this.MediaSessionCompatQueueItem == null || this.MediaBrowserCompatSearchResultReceiver)) {
            return;
        }
        setOptions(z);
        if (iconCompatParcelizer.setLabel(this.Keep, this.NonNull)) {
            this.MediaSessionCompatResultReceiverWrapper = true;
            try {
                setLabel(this.Keep, this.NonNull);
            } finally {
                onCreate();
            }
        }
        valueOf();
        onStop();
        this.RatingCompat.setLabel();
    }

    private void onCreate() {
        this.MediaSessionCompatResultReceiverWrapper = false;
        this.NonNull.clear();
        this.Keep.clear();
    }

    public boolean setFieldValue(boolean z) {
        setOptions(z);
        boolean z2 = false;
        while (setError(this.Keep, this.NonNull)) {
            z2 = true;
            this.MediaSessionCompatResultReceiverWrapper = true;
            try {
                setLabel(this.Keep, this.NonNull);
            } finally {
                onCreate();
            }
        }
        valueOf();
        onStop();
        this.RatingCompat.setLabel();
        return z2;
    }

    private void setLabel(@androidx.annotation.NonNull ArrayList<isBaseModel> arrayList, @androidx.annotation.NonNull ArrayList<Boolean> arrayList2) {
        if (arrayList.isEmpty()) {
            return;
        }
        if (arrayList.size() != arrayList2.size()) {
            throw new IllegalStateException("Internal error with the back stack records");
        }
        int size = arrayList.size();
        int i = 0;
        int i2 = 0;
        while (i < size) {
            if (!arrayList.get(i).getLifecycle) {
                if (i2 != i) {
                    setFieldValue(arrayList, arrayList2, i2, i);
                }
                i2 = i + 1;
                if (arrayList2.get(i).booleanValue()) {
                    while (i2 < size && arrayList2.get(i2).booleanValue() && !arrayList.get(i2).getLifecycle) {
                        i2++;
                    }
                }
                setFieldValue(arrayList, arrayList2, i, i2);
                i = i2 - 1;
            }
            i++;
        }
        if (i2 != size) {
            setFieldValue(arrayList, arrayList2, i2, size);
        }
    }

    private void setFieldValue(@androidx.annotation.NonNull ArrayList<isBaseModel> arrayList, @androidx.annotation.NonNull ArrayList<Boolean> arrayList2, int i, int i2) {
        ArrayList<RemoteActionCompatParcelizer> arrayList3;
        boolean z = arrayList.get(i).getLifecycle;
        ArrayList<Fragment> arrayList4 = this.onStart;
        if (arrayList4 == null) {
            this.onStart = new ArrayList<>();
        } else {
            arrayList4.clear();
        }
        this.onStart.addAll(this.RatingCompat.RemoteActionCompatParcelizer());
        Fragment PlaybackStateCompat = PlaybackStateCompat();
        boolean z2 = false;
        for (int i3 = i; i3 < i2; i3++) {
            isBaseModel isbasemodel = arrayList.get(i3);
            if (!arrayList2.get(i3).booleanValue()) {
                PlaybackStateCompat = isbasemodel.setLabel(this.onStart, PlaybackStateCompat);
            } else {
                PlaybackStateCompat = isbasemodel.setBackground(this.onStart, PlaybackStateCompat);
            }
            z2 = z2 || isbasemodel.MediaSessionCompatResultReceiverWrapper;
        }
        this.onStart.clear();
        if (!z && this.setError >= 1) {
            for (int i4 = i; i4 < i2; i4++) {
                Iterator<getDownloadingModelId.setFieldValue> it = arrayList.get(i4).r8lambdaqrzmfDOyDuplJFtpJLozn3P9EZI.iterator();
                while (it.hasNext()) {
                    Fragment fragment = it.next().setBackground;
                    if (fragment != null && fragment.mFragmentManager != null) {
                        this.RatingCompat.setOptions(setOptions(fragment));
                    }
                }
            }
        }
        setError(arrayList, arrayList2, i, i2);
        boolean booleanValue = arrayList2.get(i2 - 1).booleanValue();
        if (z2 && (arrayList3 = this.MediaBrowserCompatCustomActionResultReceiver) != null && !arrayList3.isEmpty()) {
            LinkedHashSet linkedHashSet = new LinkedHashSet();
            Iterator<isBaseModel> it2 = arrayList.iterator();
            while (it2.hasNext()) {
                linkedHashSet.addAll(setLabel(it2.next()));
            }
            Iterator<RemoteActionCompatParcelizer> it3 = this.MediaBrowserCompatCustomActionResultReceiver.iterator();
            while (it3.hasNext()) {
                RemoteActionCompatParcelizer next = it3.next();
                Iterator it4 = linkedHashSet.iterator();
                while (it4.hasNext()) {
                    next.setOptions((Fragment) it4.next(), booleanValue);
                }
            }
            Iterator<RemoteActionCompatParcelizer> it5 = this.MediaBrowserCompatCustomActionResultReceiver.iterator();
            while (it5.hasNext()) {
                RemoteActionCompatParcelizer next2 = it5.next();
                Iterator it6 = linkedHashSet.iterator();
                while (it6.hasNext()) {
                    next2.setError((Fragment) it6.next(), booleanValue);
                }
            }
        }
        for (int i5 = i; i5 < i2; i5++) {
            isBaseModel isbasemodel2 = arrayList.get(i5);
            if (booleanValue) {
                for (int size = isbasemodel2.r8lambdaqrzmfDOyDuplJFtpJLozn3P9EZI.size() - 1; size >= 0; size--) {
                    Fragment fragment2 = isbasemodel2.r8lambdaqrzmfDOyDuplJFtpJLozn3P9EZI.get(size).setBackground;
                    if (fragment2 != null) {
                        setOptions(fragment2).AudioAttributesCompatParcelizer();
                    }
                }
            } else {
                Iterator<getDownloadingModelId.setFieldValue> it7 = isbasemodel2.r8lambdaqrzmfDOyDuplJFtpJLozn3P9EZI.iterator();
                while (it7.hasNext()) {
                    Fragment fragment3 = it7.next().setBackground;
                    if (fragment3 != null) {
                        setOptions(fragment3).AudioAttributesCompatParcelizer();
                    }
                }
            }
        }
        setOptions(this.setError, true);
        for (setModelFirstUseTimeMs setmodelfirstusetimems : setLabel(arrayList, i, i2)) {
            setmodelfirstusetimems.setOptions(booleanValue);
            setmodelfirstusetimems.setFieldValue();
            setmodelfirstusetimems.setLabel();
        }
        while (i < i2) {
            isBaseModel isbasemodel3 = arrayList.get(i);
            if (arrayList2.get(i).booleanValue() && isbasemodel3.setBackground >= 0) {
                isbasemodel3.setBackground = -1;
            }
            isbasemodel3.AudioAttributesImplApi21Parcelizer();
            i++;
        }
        if (z2) {
            NonNull();
        }
    }

    private Set<setModelFirstUseTimeMs> setLabel(@androidx.annotation.NonNull ArrayList<isBaseModel> arrayList, int i, int i2) {
        ViewGroup viewGroup;
        HashSet hashSet = new HashSet();
        while (i < i2) {
            Iterator<getDownloadingModelId.setFieldValue> it = arrayList.get(i).r8lambdaqrzmfDOyDuplJFtpJLozn3P9EZI.iterator();
            while (it.hasNext()) {
                Fragment fragment = it.next().setBackground;
                if (fragment != null && (viewGroup = fragment.mContainer) != null) {
                    hashSet.add(setModelFirstUseTimeMs.setLabel(viewGroup, this));
                }
            }
            i++;
        }
        return hashSet;
    }

    private static void setError(@androidx.annotation.NonNull ArrayList<isBaseModel> arrayList, @androidx.annotation.NonNull ArrayList<Boolean> arrayList2, int i, int i2) {
        while (i < i2) {
            isBaseModel isbasemodel = arrayList.get(i);
            if (arrayList2.get(i).booleanValue()) {
                isbasemodel.setFieldValue(-1);
                isbasemodel.read();
            } else {
                isbasemodel.setFieldValue(1);
                isbasemodel.IconCompatParcelizer();
            }
            i++;
        }
    }

    private void MediaSessionCompatToken(@androidx.annotation.NonNull Fragment fragment) {
        ViewGroup MediaBrowserCompatItemReceiver = MediaBrowserCompatItemReceiver(fragment);
        if (MediaBrowserCompatItemReceiver == null || fragment.getEnterAnim() + fragment.getExitAnim() + fragment.getPopEnterAnim() + fragment.getPopExitAnim() <= 0) {
            return;
        }
        if (MediaBrowserCompatItemReceiver.getTag(getUniqueModelNameForPersist.setBackground.setBackground) == null) {
            MediaBrowserCompatItemReceiver.setTag(getUniqueModelNameForPersist.setBackground.setBackground, fragment);
        }
        ((Fragment) MediaBrowserCompatItemReceiver.getTag(getUniqueModelNameForPersist.setBackground.setBackground)).setPopDirection(fragment.getPopDirection());
    }

    private ViewGroup MediaBrowserCompatItemReceiver(@androidx.annotation.NonNull Fragment fragment) {
        ViewGroup viewGroup = fragment.mContainer;
        if (viewGroup != null) {
            return viewGroup;
        }
        if (fragment.mContainerId > 0 && this.MediaBrowserCompatMediaItem.setError()) {
            View error = this.MediaBrowserCompatMediaItem.setError(fragment.mContainerId);
            if (error instanceof ViewGroup) {
                return (ViewGroup) error;
            }
        }
        return null;
    }

    private void ActivityResultRegistry1() {
        Iterator<setModelFirstUseTimeMs> it = onBackPressed().iterator();
        while (it.hasNext()) {
            it.next().setBackground();
        }
    }

    private void ImmLeaksCleaner() {
        Iterator<setModelFirstUseTimeMs> it = onBackPressed().iterator();
        while (it.hasNext()) {
            it.next().setError();
        }
    }

    private Set<setModelFirstUseTimeMs> onBackPressed() {
        HashSet hashSet = new HashSet();
        Iterator<clearLatestModelHash> it = this.RatingCompat.setFieldValue().iterator();
        while (it.hasNext()) {
            ViewGroup viewGroup = it.next().AudioAttributesImplBaseParcelizer().mContainer;
            if (viewGroup != null) {
                hashSet.add(setModelFirstUseTimeMs.setLabel(viewGroup, ComponentActivity2()));
            }
        }
        return hashSet;
    }

    private boolean setError(@androidx.annotation.NonNull ArrayList<isBaseModel> arrayList, @androidx.annotation.NonNull ArrayList<Boolean> arrayList2) {
        synchronized (this.addContentView) {
            if (this.addContentView.isEmpty()) {
                return false;
            }
            try {
                int size = this.addContentView.size();
                boolean z = false;
                for (int i = 0; i < size; i++) {
                    z |= this.addContentView.get(i).setLabel(arrayList, arrayList2);
                }
                return z;
            } finally {
                this.addContentView.clear();
                this.MediaSessionCompatQueueItem.AudioAttributesImplApi21Parcelizer().removeCallbacks(this.MediaMetadataCompat);
            }
        }
    }

    private void onStop() {
        if (this.MediaSessionCompatToken) {
            this.MediaSessionCompatToken = false;
            Nullable();
        }
    }

    private void NonNull() {
        if (this.MediaBrowserCompatCustomActionResultReceiver != null) {
            for (int i = 0; i < this.MediaBrowserCompatCustomActionResultReceiver.size(); i++) {
                this.MediaBrowserCompatCustomActionResultReceiver.get(i).setOptions();
            }
        }
    }

    private Set<Fragment> setLabel(@androidx.annotation.NonNull isBaseModel isbasemodel) {
        HashSet hashSet = new HashSet();
        for (int i = 0; i < isbasemodel.r8lambdaqrzmfDOyDuplJFtpJLozn3P9EZI.size(); i++) {
            Fragment fragment = isbasemodel.r8lambdaqrzmfDOyDuplJFtpJLozn3P9EZI.get(i).setBackground;
            if (fragment != null && isbasemodel.MediaSessionCompatResultReceiverWrapper) {
                hashSet.add(fragment);
            }
        }
        return hashSet;
    }

    void setBackground(isBaseModel isbasemodel) {
        if (this.setFieldValue == null) {
            this.setFieldValue = new ArrayList<>();
        }
        this.setFieldValue.add(isbasemodel);
    }

    boolean setFieldValue(@androidx.annotation.NonNull ArrayList<isBaseModel> arrayList, @androidx.annotation.NonNull ArrayList<Boolean> arrayList2, @androidx.annotation.NonNull String str) {
        ClientPriority remove = this.AudioAttributesImplBaseParcelizer.remove(str);
        if (remove == null) {
            return false;
        }
        HashMap hashMap = new HashMap();
        Iterator<isBaseModel> it = arrayList.iterator();
        while (it.hasNext()) {
            isBaseModel next = it.next();
            if (next.setOptions) {
                Iterator<getDownloadingModelId.setFieldValue> it2 = next.r8lambdaqrzmfDOyDuplJFtpJLozn3P9EZI.iterator();
                while (it2.hasNext()) {
                    Fragment fragment = it2.next().setBackground;
                    if (fragment != null) {
                        hashMap.put(fragment.mWho, fragment);
                    }
                }
            }
        }
        Iterator<isBaseModel> it3 = remove.setFieldValue(this, hashMap).iterator();
        while (true) {
            boolean z = false;
            while (it3.hasNext()) {
                if (it3.next().setLabel(arrayList, arrayList2) || z) {
                    z = true;
                }
            }
            return z;
        }
    }

    boolean setBackground(@androidx.annotation.NonNull ArrayList<isBaseModel> arrayList, @androidx.annotation.NonNull ArrayList<Boolean> arrayList2, @androidx.annotation.NonNull String str) {
        String str2;
        int i;
        int options = setOptions(str, -1, true);
        if (options < 0) {
            return false;
        }
        for (int i2 = options; i2 < this.setFieldValue.size(); i2++) {
            isBaseModel isbasemodel = this.setFieldValue.get(i2);
            if (!isbasemodel.getLifecycle) {
                setBackground(new IllegalArgumentException("saveBackStack(\"" + str + "\") included FragmentTransactions must use setReorderingAllowed(true) to ensure that the back stack can be restored as an atomic operation. Found " + isbasemodel + " that did not use setReorderingAllowed(true)."));
            }
        }
        HashSet hashSet = new HashSet();
        for (int i3 = options; i3 < this.setFieldValue.size(); i3++) {
            isBaseModel isbasemodel2 = this.setFieldValue.get(i3);
            HashSet hashSet2 = new HashSet();
            HashSet hashSet3 = new HashSet();
            Iterator<getDownloadingModelId.setFieldValue> it = isbasemodel2.r8lambdaqrzmfDOyDuplJFtpJLozn3P9EZI.iterator();
            while (it.hasNext()) {
                getDownloadingModelId.setFieldValue next = it.next();
                Fragment fragment = next.setBackground;
                if (fragment != null) {
                    if (!next.RemoteActionCompatParcelizer || (i = next.setOptions) == 1 || i == 2 || i == 8) {
                        hashSet.add(fragment);
                        hashSet2.add(fragment);
                    }
                    int i4 = next.setOptions;
                    if (i4 == 1 || i4 == 2) {
                        hashSet3.add(fragment);
                    }
                }
            }
            hashSet2.removeAll(hashSet3);
            if (!hashSet2.isEmpty()) {
                StringBuilder sb = new StringBuilder();
                sb.append("saveBackStack(\"");
                sb.append(str);
                sb.append("\") must be self contained and not reference fragments from non-saved FragmentTransactions. Found reference to fragment");
                sb.append(hashSet2.size() == 1 ? " " + hashSet2.iterator().next() : "s " + hashSet2);
                sb.append(" in ");
                sb.append(isbasemodel2);
                sb.append(" that were previously added to the FragmentManager through a separate FragmentTransaction.");
                setBackground(new IllegalArgumentException(sb.toString()));
            }
        }
        ArrayDeque arrayDeque = new ArrayDeque(hashSet);
        while (!arrayDeque.isEmpty()) {
            Fragment fragment2 = (Fragment) arrayDeque.removeFirst();
            if (fragment2.mRetainInstance) {
                StringBuilder sb2 = new StringBuilder();
                sb2.append("saveBackStack(\"");
                sb2.append(str);
                sb2.append("\") must not contain retained fragments. Found ");
                if (hashSet.contains(fragment2)) {
                    str2 = "direct reference to retained ";
                } else {
                    str2 = "retained child ";
                }
                sb2.append(str2);
                sb2.append("fragment ");
                sb2.append(fragment2);
                setBackground(new IllegalArgumentException(sb2.toString()));
            }
            for (Fragment fragment3 : fragment2.mChildFragmentManager.MediaDescriptionCompat()) {
                if (fragment3 != null) {
                    arrayDeque.addLast(fragment3);
                }
            }
        }
        ArrayList arrayList3 = new ArrayList();
        Iterator it2 = hashSet.iterator();
        while (it2.hasNext()) {
            arrayList3.add(((Fragment) it2.next()).mWho);
        }
        ArrayList arrayList4 = new ArrayList(this.setFieldValue.size() - options);
        for (int i5 = options; i5 < this.setFieldValue.size(); i5++) {
            arrayList4.add(null);
        }
        ClientPriority clientPriority = new ClientPriority(arrayList3, arrayList4);
        for (int size = this.setFieldValue.size() - 1; size >= options; size--) {
            isBaseModel remove = this.setFieldValue.remove(size);
            isBaseModel isbasemodel3 = new isBaseModel(remove);
            isbasemodel3.setLabel();
            arrayList4.set(size - options, new RemoteModelManager(isbasemodel3));
            remove.setOptions = true;
            arrayList.add(remove);
            arrayList2.add(Boolean.TRUE);
        }
        this.AudioAttributesImplBaseParcelizer.put(str, clientPriority);
        return true;
    }

    boolean setLabel(@androidx.annotation.NonNull ArrayList<isBaseModel> arrayList, @androidx.annotation.NonNull ArrayList<Boolean> arrayList2, @androidx.annotation.NonNull String str) {
        if (setFieldValue(arrayList, arrayList2, str)) {
            return setBackground(arrayList, arrayList2, str, -1, 1);
        }
        return false;
    }

    boolean setBackground(@androidx.annotation.NonNull ArrayList<isBaseModel> arrayList, @androidx.annotation.NonNull ArrayList<Boolean> arrayList2, @Nullable String str, int i, int i2) {
        int options = setOptions(str, i, (i2 & 1) != 0);
        if (options < 0) {
            return false;
        }
        for (int size = this.setFieldValue.size() - 1; size >= options; size--) {
            arrayList.add(this.setFieldValue.remove(size));
            arrayList2.add(Boolean.TRUE);
        }
        return true;
    }

    private int setOptions(@Nullable String str, int i, boolean z) {
        ArrayList<isBaseModel> arrayList = this.setFieldValue;
        if (arrayList == null || arrayList.isEmpty()) {
            return -1;
        }
        if (str == null && i < 0) {
            if (z) {
                return 0;
            }
            return this.setFieldValue.size() - 1;
        }
        int size = this.setFieldValue.size() - 1;
        while (size >= 0) {
            isBaseModel isbasemodel = this.setFieldValue.get(size);
            if ((str != null && str.equals(isbasemodel.AudioAttributesImplApi26Parcelizer())) || (i >= 0 && i == isbasemodel.setBackground)) {
                break;
            }
            size--;
        }
        if (size < 0) {
            return size;
        }
        if (!z) {
            if (size == this.setFieldValue.size() - 1) {
                return -1;
            }
            return size + 1;
        }
        while (size > 0) {
            isBaseModel isbasemodel2 = this.setFieldValue.get(size - 1);
            if ((str == null || !str.equals(isbasemodel2.AudioAttributesImplApi26Parcelizer())) && (i < 0 || i != isbasemodel2.setBackground)) {
                return size;
            }
            size--;
        }
        return size;
    }

    @Deprecated
    unpin getOnBackPressedDispatcher() {
        if (this.MediaSessionCompatQueueItem instanceof androidx.lifecycle.ViewModelStoreOwner) {
            setBackground(new IllegalStateException("You cannot use retainNonConfig when your FragmentHostCallback implements ViewModelStoreOwner."));
        }
        return this.ComponentActivity3.setBackground();
    }

    Parcelable getLifecycle() {
        if (this.MediaSessionCompatQueueItem instanceof getSupportedVideoAspectRatios) {
            setBackground(new IllegalStateException("You cannot use saveAllState when your FragmentHostCallback implements SavedStateRegistryOwner."));
        }
        Bundle onStart = onStart();
        if (onStart.isEmpty()) {
            return null;
        }
        return onStart;
    }

    public Bundle onStart() {
        RemoteModelManager[] remoteModelManagerArr;
        int size;
        Bundle bundle = new Bundle();
        ActivityResultRegistry1();
        ImmLeaksCleaner();
        setFieldValue(true);
        this.ActivityResultRegistry1 = true;
        this.ComponentActivity3.setBackground(true);
        ArrayList<String> write2 = this.RatingCompat.write();
        HashMap<String, Bundle> error = this.RatingCompat.setError();
        if (error.isEmpty()) {
            if (setLabel(2)) {
                Log.v(setOptions, "saveAllState: no fragments!");
            }
        } else {
            ArrayList<String> MediaBrowserCompatCustomActionResultReceiver = this.RatingCompat.MediaBrowserCompatCustomActionResultReceiver();
            ArrayList<isBaseModel> arrayList = this.setFieldValue;
            if (arrayList == null || (size = arrayList.size()) <= 0) {
                remoteModelManagerArr = null;
            } else {
                remoteModelManagerArr = new RemoteModelManager[size];
                for (int i = 0; i < size; i++) {
                    remoteModelManagerArr[i] = new RemoteModelManager(this.setFieldValue.get(i));
                    if (setLabel(2)) {
                        Log.v(setOptions, "saveAllState: adding back stack #" + i + ": " + this.setFieldValue.get(i));
                    }
                }
            }
            unpinWithTask unpinwithtask = new unpinWithTask();
            unpinwithtask.setError = write2;
            unpinwithtask.setOptions = MediaBrowserCompatCustomActionResultReceiver;
            unpinwithtask.setFieldValue = remoteModelManagerArr;
            unpinwithtask.setLabel = this.AudioAttributesImplApi26Parcelizer.get();
            Fragment fragment = this.RemoteActionCompatParcelizer;
            if (fragment != null) {
                unpinwithtask.read = fragment.mWho;
            }
            unpinwithtask.setBackground.addAll(this.AudioAttributesImplBaseParcelizer.keySet());
            unpinwithtask.setElement.addAll(this.AudioAttributesImplBaseParcelizer.values());
            unpinwithtask.write = new ArrayList<>(this.setLabel);
            bundle.putParcelable(read, unpinwithtask);
            for (String str : this.onSaveInstanceState.keySet()) {
                bundle.putBundle(AudioAttributesCompatParcelizer + str, this.onSaveInstanceState.get(str));
            }
            for (String str2 : error.keySet()) {
                bundle.putBundle(write + str2, error.get(str2));
            }
        }
        return bundle;
    }

    void setFieldValue(@Nullable Parcelable parcelable, @Nullable unpin unpinVar) {
        if (this.MediaSessionCompatQueueItem instanceof androidx.lifecycle.ViewModelStoreOwner) {
            setBackground(new IllegalStateException("You must use restoreSaveState when your FragmentHostCallback implements ViewModelStoreOwner"));
        }
        this.ComponentActivity3.setBackground(unpinVar);
        setError(parcelable);
    }

    void setFieldValue(@Nullable Parcelable parcelable) {
        if (this.MediaSessionCompatQueueItem instanceof getSupportedVideoAspectRatios) {
            setBackground(new IllegalStateException("You cannot use restoreSaveState when your FragmentHostCallback implements SavedStateRegistryOwner."));
        }
        setError(parcelable);
    }

    public void setError(@Nullable Parcelable parcelable) {
        clearLatestModelHash clearlatestmodelhash;
        Bundle bundle;
        Bundle bundle2;
        if (parcelable == null) {
            return;
        }
        Bundle bundle3 = (Bundle) parcelable;
        for (String str : bundle3.keySet()) {
            if (str.startsWith(AudioAttributesCompatParcelizer) && (bundle2 = bundle3.getBundle(str)) != null) {
                bundle2.setClassLoader(this.MediaSessionCompatQueueItem.AudioAttributesCompatParcelizer().getClassLoader());
                this.onSaveInstanceState.put(str.substring(7), bundle2);
            }
        }
        HashMap<String, Bundle> hashMap = new HashMap<>();
        for (String str2 : bundle3.keySet()) {
            if (str2.startsWith(write) && (bundle = bundle3.getBundle(str2)) != null) {
                bundle.setClassLoader(this.MediaSessionCompatQueueItem.AudioAttributesCompatParcelizer().getClassLoader());
                hashMap.put(str2.substring(9), bundle);
            }
        }
        this.RatingCompat.setLabel(hashMap);
        unpinWithTask unpinwithtask = (unpinWithTask) bundle3.getParcelable(read);
        if (unpinwithtask == null) {
            return;
        }
        this.RatingCompat.IconCompatParcelizer();
        Iterator<String> it = unpinwithtask.setError.iterator();
        while (it.hasNext()) {
            Bundle background = this.RatingCompat.setBackground(it.next(), null);
            if (background != null) {
                Fragment background2 = this.ComponentActivity3.setBackground(((clearIncompatibleModelInfo) background.getParcelable(read)).AudioAttributesCompatParcelizer);
                if (background2 != null) {
                    if (setLabel(2)) {
                        Log.v(setOptions, "restoreSaveState: re-attaching retained " + background2);
                    }
                    clearlatestmodelhash = new clearLatestModelHash(this.PlaybackStateCompat, this.RatingCompat, background2, background);
                } else {
                    clearlatestmodelhash = new clearLatestModelHash(this.PlaybackStateCompat, this.RatingCompat, this.MediaSessionCompatQueueItem.AudioAttributesCompatParcelizer().getClassLoader(), MediaSessionCompatToken(), background);
                }
                Fragment AudioAttributesImplBaseParcelizer = clearlatestmodelhash.AudioAttributesImplBaseParcelizer();
                AudioAttributesImplBaseParcelizer.mSavedFragmentState = background;
                AudioAttributesImplBaseParcelizer.mFragmentManager = this;
                if (setLabel(2)) {
                    Log.v(setOptions, "restoreSaveState: active (" + AudioAttributesImplBaseParcelizer.mWho + "): " + AudioAttributesImplBaseParcelizer);
                }
                clearlatestmodelhash.setOptions(this.MediaSessionCompatQueueItem.AudioAttributesCompatParcelizer().getClassLoader());
                this.RatingCompat.setOptions(clearlatestmodelhash);
                clearlatestmodelhash.setLabel(this.setError);
            }
        }
        for (Fragment fragment : this.ComponentActivity3.setFieldValue()) {
            if (!this.RatingCompat.setLabel(fragment.mWho)) {
                if (setLabel(2)) {
                    Log.v(setOptions, "Discarding retained Fragment " + fragment + " that was not found in the set of active Fragments " + unpinwithtask.setError);
                }
                this.ComponentActivity3.setOptions(fragment);
                fragment.mFragmentManager = this;
                clearLatestModelHash clearlatestmodelhash2 = new clearLatestModelHash(this.PlaybackStateCompat, this.RatingCompat, fragment);
                clearlatestmodelhash2.setLabel(1);
                clearlatestmodelhash2.AudioAttributesCompatParcelizer();
                fragment.mRemoving = true;
                clearlatestmodelhash2.AudioAttributesCompatParcelizer();
            }
        }
        this.RatingCompat.setLabel(unpinwithtask.setOptions);
        if (unpinwithtask.setFieldValue != null) {
            this.setFieldValue = new ArrayList<>(unpinwithtask.setFieldValue.length);
            int i = 0;
            while (true) {
                RemoteModelManager[] remoteModelManagerArr = unpinwithtask.setFieldValue;
                if (i >= remoteModelManagerArr.length) {
                    break;
                }
                isBaseModel options = remoteModelManagerArr[i].setOptions(this);
                if (setLabel(2)) {
                    Log.v(setOptions, "restoreAllState: back stack #" + i + " (index " + options.setBackground + "): " + options);
                    PrintWriter printWriter = new PrintWriter(new setLatestModelHash(setOptions));
                    options.setBackground("  ", printWriter, false);
                    printWriter.close();
                }
                this.setFieldValue.add(options);
                i++;
            }
        } else {
            this.setFieldValue = null;
        }
        this.AudioAttributesImplApi26Parcelizer.set(unpinwithtask.setLabel);
        String str3 = unpinwithtask.read;
        if (str3 != null) {
            Fragment label = setLabel(str3);
            this.RemoteActionCompatParcelizer = label;
            MediaDescriptionCompat(label);
        }
        ArrayList<String> arrayList = unpinwithtask.setBackground;
        if (arrayList != null) {
            for (int i2 = 0; i2 < arrayList.size(); i2++) {
                this.AudioAttributesImplBaseParcelizer.put(arrayList.get(i2), unpinwithtask.setElement.get(i2));
            }
        }
        this.setLabel = new ArrayDeque<>(unpinwithtask.write);
    }

    public scheduleTaskCallable<?> RatingCompat() {
        return this.MediaSessionCompatQueueItem;
    }

    Fragment ParcelableVolumeInfo() {
        return this.getOnBackPressedDispatcher;
    }

    scheduleCallable MediaBrowserCompatMediaItem() {
        return this.MediaBrowserCompatMediaItem;
    }

    SharedPrefManager MediaControllerCompatMediaControllerImplApi21ExtraBinderRequestResultReceiver() {
        return this.RatingCompat;
    }

    public void setLabel(@androidx.annotation.NonNull scheduleTaskCallable<?> scheduletaskcallable, @androidx.annotation.NonNull scheduleCallable schedulecallable, @Nullable final Fragment fragment) {
        String str;
        if (this.MediaSessionCompatQueueItem != null) {
            throw new IllegalStateException("Already attached");
        }
        this.MediaSessionCompatQueueItem = scheduletaskcallable;
        this.MediaBrowserCompatMediaItem = schedulecallable;
        this.getOnBackPressedDispatcher = fragment;
        if (fragment != null) {
            setOptions(new ModelType() {
                @Override
                public void setFieldValue(@androidx.annotation.NonNull getModelUri getmodeluri, @androidx.annotation.NonNull Fragment fragment2) {
                    fragment.onAttachFragment(fragment2);
                }
            });
        } else if (scheduletaskcallable instanceof ModelType) {
            setOptions((ModelType) scheduletaskcallable);
        }
        if (this.getOnBackPressedDispatcher != null) {
            valueOf();
        }
        if (scheduletaskcallable instanceof getContext) {
            getContext getcontext = (getContext) scheduletaskcallable;
            OnBackPressedDispatcher onBackPressedDispatcher = getcontext.getOnBackPressedDispatcher();
            this.ComponentActivity4 = onBackPressedDispatcher;
            androidx.lifecycle.LifecycleOwner lifecycleOwner = getcontext;
            if (fragment != null) {
                lifecycleOwner = fragment;
            }
            onBackPressedDispatcher.setOptions(lifecycleOwner, this.ComponentActivity6);
        }
        if (fragment != null) {
            this.ComponentActivity3 = fragment.mFragmentManager.MediaBrowserCompatMediaItem(fragment);
        } else if (scheduletaskcallable instanceof androidx.lifecycle.ViewModelStoreOwner) {
            this.ComponentActivity3 = OptionalModuleUtils.setBackground(((androidx.lifecycle.ViewModelStoreOwner) scheduletaskcallable).getViewModelStore());
        } else {
            this.ComponentActivity3 = new OptionalModuleUtils(false);
        }
        this.ComponentActivity3.setBackground(getLifecycleRegistry());
        this.RatingCompat.setLabel(this.ComponentActivity3);
        getSupportedVideoAspectRatios getsupportedvideoaspectratios = this.MediaSessionCompatQueueItem;
        if ((getsupportedvideoaspectratios instanceof getSupportedVideoAspectRatios) && fragment == null) {
            getSupportedHdr savedStateRegistry = getsupportedvideoaspectratios.getSavedStateRegistry();
            savedStateRegistry.setLabel(AudioAttributesImplApi21Parcelizer, new getSupportedHdr.setBackground() {
                public final Bundle saveState() {
                    Bundle onStart;
                    onStart = getModelUri.this.onStart();
                    return onStart;
                }
            });
            Bundle error = savedStateRegistry.setError(AudioAttributesImplApi21Parcelizer);
            if (error != null) {
                setError(error);
            }
        }
        Object obj = this.MediaSessionCompatQueueItem;
        if (obj instanceof setActionBarVisibilityCallback) {
            setSubtitle bB_ = ((setActionBarVisibilityCallback) obj).bB_();
            if (fragment != null) {
                str = fragment.mWho + ":";
            } else {
                str = "";
            }
            String str2 = "FragmentManager:" + str;
            this.getSavedStateRegistry = bB_.setFieldValue(str2 + "StartActivityForResult", new setMenu.MediaBrowserCompatCustomActionResultReceiver(), new setVisibility<setContentHeight>() {
                @Override
                public void setBackground(setContentHeight setcontentheight) {
                    setError pollLast = getModelUri.this.setLabel.pollLast();
                    if (pollLast == null) {
                        Log.w(getModelUri.setOptions, "No Activities were started for result for " + this);
                        return;
                    }
                    String str3 = pollLast.setLabel;
                    int i = pollLast.setBackground;
                    Fragment options = getModelUri.this.RatingCompat.setOptions(str3);
                    if (options == null) {
                        Log.w(getModelUri.setOptions, "Activity result delivered for unknown Fragment " + str3);
                        return;
                    }
                    options.onActivityResult(i, setcontentheight.setError(), setcontentheight.setBackground());
                }
            });
            this.onStop = bB_.setFieldValue(str2 + "StartIntentSenderForResult", new setOptions(), new setVisibility<setContentHeight>() {
                @Override
                public void setBackground(setContentHeight setcontentheight) {
                    setError pollFirst = getModelUri.this.setLabel.pollFirst();
                    if (pollFirst == null) {
                        Log.w(getModelUri.setOptions, "No IntentSenders were started for " + this);
                        return;
                    }
                    String str3 = pollFirst.setLabel;
                    int i = pollFirst.setBackground;
                    Fragment options = getModelUri.this.RatingCompat.setOptions(str3);
                    if (options == null) {
                        Log.w(getModelUri.setOptions, "Intent Sender result delivered for unknown Fragment " + str3);
                        return;
                    }
                    options.onActivityResult(i, setcontentheight.setError(), setcontentheight.setBackground());
                }
            });
            this.initializeViewTreeOwners = bB_.setFieldValue(str2 + "RequestPermissions", new setMenu.AudioAttributesImplBaseParcelizer(), new setVisibility<Map<String, Boolean>>() {
                @Override
                public void setBackground(Map<String, Boolean> map) {
                    String[] strArr = (String[]) map.keySet().toArray(new String[0]);
                    ArrayList arrayList = new ArrayList(map.values());
                    int[] iArr = new int[arrayList.size()];
                    for (int i = 0; i < arrayList.size(); i++) {
                        iArr[i] = ((Boolean) arrayList.get(i)).booleanValue() ? 0 : -1;
                    }
                    setError pollFirst = getModelUri.this.setLabel.pollFirst();
                    if (pollFirst == null) {
                        Log.w(getModelUri.setOptions, "No permissions were requested for " + this);
                        return;
                    }
                    String str3 = pollFirst.setLabel;
                    int i2 = pollFirst.setBackground;
                    Fragment options = getModelUri.this.RatingCompat.setOptions(str3);
                    if (options == null) {
                        Log.w(getModelUri.setOptions, "Permission request result delivered for unknown Fragment " + str3);
                        return;
                    }
                    options.onRequestPermissionsResult(i2, strArr, iArr);
                }
            });
        }
        Object obj2 = this.MediaSessionCompatQueueItem;
        if (obj2 instanceof setUseQrMobilenetV3) {
            ((setUseQrMobilenetV3) obj2).setError(this.r8lambdaqrzmfDOyDuplJFtpJLozn3P9EZI);
        }
        Object obj3 = this.MediaSessionCompatQueueItem;
        if (obj3 instanceof Analytics) {
            ((Analytics) obj3).setFieldValue(this.onBackPressedDispatcherlambda1);
        }
        Object obj4 = this.MediaSessionCompatQueueItem;
        if (obj4 instanceof getCode39MinConsistentLines) {
            ((getCode39MinConsistentLines) obj4).setBackground(this.getOnBackPressedDispatcherannotations);
        }
        Object obj5 = this.MediaSessionCompatQueueItem;
        if (obj5 instanceof getCode39UseExtendedMode) {
            ((getCode39UseExtendedMode) obj5).setOptions(this.getLifecycle);
        }
        Object obj6 = this.MediaSessionCompatQueueItem;
        if ((obj6 instanceof setCircularRevealOverlayDrawable) && fragment == null) {
            ((setCircularRevealOverlayDrawable) obj6).setFieldValue(this.setContentView);
        }
    }

    public void r8lambdaqrzmfDOyDuplJFtpJLozn3P9EZI() {
        if (this.MediaSessionCompatQueueItem == null) {
            return;
        }
        this.ActivityResultRegistry1 = false;
        this.OnBackPressedDispatcherLifecycleOnBackPressedCancellable = false;
        this.ComponentActivity3.setBackground(false);
        for (Fragment fragment : this.RatingCompat.RemoteActionCompatParcelizer()) {
            if (fragment != null) {
                fragment.noteStateNotSaved();
            }
        }
    }

    public void setOptions(@androidx.annotation.NonNull Fragment fragment, @androidx.annotation.NonNull Intent intent, int i, @Nullable Bundle bundle) {
        if (this.getSavedStateRegistry != null) {
            this.setLabel.addLast(new setError(fragment.mWho, i));
            if (bundle != null) {
                intent.putExtra(setMenu.MediaBrowserCompatCustomActionResultReceiver.setFieldValue, bundle);
            }
            this.getSavedStateRegistry.setBackground(intent);
            return;
        }
        this.MediaSessionCompatQueueItem.setOptions(fragment, intent, i, bundle);
    }

    public void setOptions(@androidx.annotation.NonNull Fragment fragment, @androidx.annotation.NonNull IntentSender intentSender, int i, @Nullable Intent intent, int i2, int i3, int i4, @Nullable Bundle bundle) throws IntentSender.SendIntentException {
        Intent intent2;
        if (this.onStop != null) {
            if (bundle != null) {
                if (intent == null) {
                    intent2 = new Intent();
                    intent2.putExtra(IconCompatParcelizer, true);
                } else {
                    intent2 = intent;
                }
                if (setLabel(2)) {
                    Log.v(setOptions, "ActivityOptions " + bundle + " were added to fillInIntent " + intent2 + " for fragment " + fragment);
                }
                intent2.putExtra(setMenu.MediaBrowserCompatCustomActionResultReceiver.setFieldValue, bundle);
            } else {
                intent2 = intent;
            }
            setCustomView background = new setCustomView.setError(intentSender).setBackground(intent2).setBackground(i3, i2).setBackground();
            this.setLabel.addLast(new setError(fragment.mWho, i));
            if (setLabel(2)) {
                Log.v(setOptions, "Fragment " + fragment + "is launching an IntentSender for result ");
            }
            this.onStop.setBackground(background);
            return;
        }
        this.MediaSessionCompatQueueItem.setOptions(fragment, intentSender, i, intent, i2, i3, i4, bundle);
    }

    public void setOptions(@androidx.annotation.NonNull Fragment fragment, @androidx.annotation.NonNull String[] strArr, int i) {
        if (this.initializeViewTreeOwners != null) {
            this.setLabel.addLast(new setError(fragment.mWho, i));
            this.initializeViewTreeOwners.setBackground(strArr);
            return;
        }
        this.MediaSessionCompatQueueItem.setLabel(fragment, strArr, i);
    }

    public void setLabel() {
        this.ActivityResultRegistry1 = false;
        this.OnBackPressedDispatcherLifecycleOnBackPressedCancellable = false;
        this.ComponentActivity3.setBackground(false);
        setFieldValue(0);
    }

    public void write() {
        this.ActivityResultRegistry1 = false;
        this.OnBackPressedDispatcherLifecycleOnBackPressedCancellable = false;
        this.ComponentActivity3.setBackground(false);
        setFieldValue(1);
    }

    public void MediaBrowserCompatCustomActionResultReceiver() {
        setFieldValue(2);
    }

    public void setOptions() {
        this.ActivityResultRegistry1 = false;
        this.OnBackPressedDispatcherLifecycleOnBackPressedCancellable = false;
        this.ComponentActivity3.setBackground(false);
        setFieldValue(4);
    }

    public void AudioAttributesImplApi21Parcelizer() {
        this.ActivityResultRegistry1 = false;
        this.OnBackPressedDispatcherLifecycleOnBackPressedCancellable = false;
        this.ComponentActivity3.setBackground(false);
        setFieldValue(5);
    }

    public void AudioAttributesCompatParcelizer() {
        this.ActivityResultRegistry1 = false;
        this.OnBackPressedDispatcherLifecycleOnBackPressedCancellable = false;
        this.ComponentActivity3.setBackground(false);
        setFieldValue(7);
    }

    public void read() {
        setFieldValue(5);
    }

    public void AudioAttributesImplApi26Parcelizer() {
        this.OnBackPressedDispatcherLifecycleOnBackPressedCancellable = true;
        this.ComponentActivity3.setBackground(true);
        setFieldValue(4);
    }

    public void RemoteActionCompatParcelizer() {
        setFieldValue(1);
    }

    public void setElement() {
        this.MediaBrowserCompatSearchResultReceiver = true;
        setFieldValue(true);
        ImmLeaksCleaner();
        getSavedStateRegistry();
        setFieldValue(-1);
        Object obj = this.MediaSessionCompatQueueItem;
        if (obj instanceof Analytics) {
            ((Analytics) obj).IconCompatParcelizer(this.onBackPressedDispatcherlambda1);
        }
        Object obj2 = this.MediaSessionCompatQueueItem;
        if (obj2 instanceof setUseQrMobilenetV3) {
            ((setUseQrMobilenetV3) obj2).read(this.r8lambdaqrzmfDOyDuplJFtpJLozn3P9EZI);
        }
        Object obj3 = this.MediaSessionCompatQueueItem;
        if (obj3 instanceof getCode39MinConsistentLines) {
            ((getCode39MinConsistentLines) obj3).setElement(this.getOnBackPressedDispatcherannotations);
        }
        Object obj4 = this.MediaSessionCompatQueueItem;
        if (obj4 instanceof getCode39UseExtendedMode) {
            ((getCode39UseExtendedMode) obj4).write(this.getLifecycle);
        }
        Object obj5 = this.MediaSessionCompatQueueItem;
        if ((obj5 instanceof setCircularRevealOverlayDrawable) && this.getOnBackPressedDispatcher == null) {
            ((setCircularRevealOverlayDrawable) obj5).setLabel(this.setContentView);
        }
        this.MediaSessionCompatQueueItem = null;
        this.MediaBrowserCompatMediaItem = null;
        this.getOnBackPressedDispatcher = null;
        if (this.ComponentActivity4 != null) {
            this.ComponentActivity6.setBackground();
            this.ComponentActivity4 = null;
        }
        setStackedBackground<Intent> setstackedbackground = this.getSavedStateRegistry;
        if (setstackedbackground != null) {
            setstackedbackground.setOptions();
            this.onStop.setOptions();
            this.initializeViewTreeOwners.setOptions();
        }
    }

    private void setFieldValue(int i) {
        try {
            this.MediaSessionCompatResultReceiverWrapper = true;
            this.RatingCompat.setFieldValue(i);
            setOptions(i, false);
            Iterator<setModelFirstUseTimeMs> it = onBackPressed().iterator();
            while (it.hasNext()) {
                it.next().setError();
            }
            this.MediaSessionCompatResultReceiverWrapper = false;
            setFieldValue(true);
        } catch (Throwable th) {
            this.MediaSessionCompatResultReceiverWrapper = false;
            throw th;
        }
    }

    void setError(boolean z, boolean z2) {
        if (z2 && (this.MediaSessionCompatQueueItem instanceof getCode39MinConsistentLines)) {
            setBackground(new IllegalStateException("Do not call dispatchMultiWindowModeChanged() on host. Host implements OnMultiWindowModeChangedProvider and automatically dispatches multi-window mode changes to fragments."));
        }
        for (Fragment fragment : this.RatingCompat.RemoteActionCompatParcelizer()) {
            if (fragment != null) {
                fragment.performMultiWindowModeChanged(z);
                if (z2) {
                    fragment.mChildFragmentManager.setError(z, true);
                }
            }
        }
    }

    void setOptions(boolean z, boolean z2) {
        if (z2 && (this.MediaSessionCompatQueueItem instanceof getCode39UseExtendedMode)) {
            setBackground(new IllegalStateException("Do not call dispatchPictureInPictureModeChanged() on host. Host implements OnPictureInPictureModeChangedProvider and automatically dispatches picture-in-picture mode changes to fragments."));
        }
        for (Fragment fragment : this.RatingCompat.RemoteActionCompatParcelizer()) {
            if (fragment != null) {
                fragment.performPictureInPictureModeChanged(z);
                if (z2) {
                    fragment.mChildFragmentManager.setOptions(z, true);
                }
            }
        }
    }

    void setBackground(@androidx.annotation.NonNull Configuration configuration, boolean z) {
        if (z && (this.MediaSessionCompatQueueItem instanceof setUseQrMobilenetV3)) {
            setBackground(new IllegalStateException("Do not call dispatchConfigurationChanged() on host. Host implements OnConfigurationChangedProvider and automatically dispatches configuration changes to fragments."));
        }
        for (Fragment fragment : this.RatingCompat.RemoteActionCompatParcelizer()) {
            if (fragment != null) {
                fragment.performConfigurationChanged(configuration);
                if (z) {
                    fragment.mChildFragmentManager.setBackground(configuration, true);
                }
            }
        }
    }

    void setLabel(boolean z) {
        if (z && (this.MediaSessionCompatQueueItem instanceof Analytics)) {
            setBackground(new IllegalStateException("Do not call dispatchLowMemory() on host. Host implements OnTrimMemoryProvider and automatically dispatches low memory callbacks to fragments."));
        }
        for (Fragment fragment : this.RatingCompat.RemoteActionCompatParcelizer()) {
            if (fragment != null) {
                fragment.performLowMemory();
                if (z) {
                    fragment.mChildFragmentManager.setLabel(true);
                }
            }
        }
    }

    public boolean setError(@androidx.annotation.NonNull Menu menu, @androidx.annotation.NonNull MenuInflater menuInflater) {
        if (this.setError < 1) {
            return false;
        }
        ArrayList<Fragment> arrayList = null;
        boolean z = false;
        for (Fragment fragment : this.RatingCompat.RemoteActionCompatParcelizer()) {
            if (fragment != null && AudioAttributesImplApi26Parcelizer(fragment) && fragment.performCreateOptionsMenu(menu, menuInflater)) {
                if (arrayList == null) {
                    arrayList = new ArrayList<>();
                }
                arrayList.add(fragment);
                z = true;
            }
        }
        if (this.MediaBrowserCompatItemReceiver != null) {
            for (int i = 0; i < this.MediaBrowserCompatItemReceiver.size(); i++) {
                Fragment fragment2 = this.MediaBrowserCompatItemReceiver.get(i);
                if (arrayList == null || !arrayList.contains(fragment2)) {
                    fragment2.onDestroyOptionsMenu();
                }
            }
        }
        this.MediaBrowserCompatItemReceiver = arrayList;
        return z;
    }

    public boolean setBackground(@androidx.annotation.NonNull Menu menu) {
        boolean z = false;
        if (this.setError < 1) {
            return false;
        }
        for (Fragment fragment : this.RatingCompat.RemoteActionCompatParcelizer()) {
            if (fragment != null && AudioAttributesImplApi26Parcelizer(fragment) && fragment.performPrepareOptionsMenu(menu)) {
                z = true;
            }
        }
        return z;
    }

    public boolean setBackground(@androidx.annotation.NonNull MenuItem menuItem) {
        if (this.setError < 1) {
            return false;
        }
        for (Fragment fragment : this.RatingCompat.RemoteActionCompatParcelizer()) {
            if (fragment != null && fragment.performOptionsItemSelected(menuItem)) {
                return true;
            }
        }
        return false;
    }

    public boolean setOptions(@androidx.annotation.NonNull MenuItem menuItem) {
        if (this.setError < 1) {
            return false;
        }
        for (Fragment fragment : this.RatingCompat.RemoteActionCompatParcelizer()) {
            if (fragment != null && fragment.performContextItemSelected(menuItem)) {
                return true;
            }
        }
        return false;
    }

    public void setFieldValue(@androidx.annotation.NonNull Menu menu) {
        if (this.setError < 1) {
            return;
        }
        for (Fragment fragment : this.RatingCompat.RemoteActionCompatParcelizer()) {
            if (fragment != null) {
                fragment.performOptionsMenuClosed(menu);
            }
        }
    }

    void MediaMetadataCompat(@Nullable Fragment fragment) {
        if (fragment != null && (!fragment.equals(setLabel(fragment.mWho)) || (fragment.mHost != null && fragment.mFragmentManager != this))) {
            throw new IllegalArgumentException("Fragment " + fragment + " is not an active fragment of FragmentManager " + this);
        }
        Fragment fragment2 = this.RemoteActionCompatParcelizer;
        this.RemoteActionCompatParcelizer = fragment;
        MediaDescriptionCompat(fragment2);
        MediaDescriptionCompat(this.RemoteActionCompatParcelizer);
    }

    private void MediaDescriptionCompat(@Nullable Fragment fragment) {
        if (fragment == null || !fragment.equals(setLabel(fragment.mWho))) {
            return;
        }
        fragment.performPrimaryNavigationFragmentChanged();
    }

    public void AudioAttributesImplBaseParcelizer() {
        valueOf();
        MediaDescriptionCompat(this.RemoteActionCompatParcelizer);
    }

    public Fragment PlaybackStateCompat() {
        return this.RemoteActionCompatParcelizer;
    }

    void setLabel(@androidx.annotation.NonNull Fragment fragment, @androidx.annotation.NonNull Lifecycle.State state) {
        if (!fragment.equals(setLabel(fragment.mWho)) || (fragment.mHost != null && fragment.mFragmentManager != this)) {
            throw new IllegalArgumentException("Fragment " + fragment + " is not an active fragment of FragmentManager " + this);
        }
        fragment.mMaxState = state;
    }

    public void setFieldValue(@androidx.annotation.NonNull MLTaskInput mLTaskInput) {
        this.MediaControllerCompatMediaControllerImplApi21ExtraBinderRequestResultReceiver = mLTaskInput;
    }

    public MLTaskInput MediaSessionCompatToken() {
        MLTaskInput mLTaskInput = this.MediaControllerCompatMediaControllerImplApi21ExtraBinderRequestResultReceiver;
        if (mLTaskInput != null) {
            return mLTaskInput;
        }
        Fragment fragment = this.getOnBackPressedDispatcher;
        if (fragment != null) {
            return fragment.mFragmentManager.MediaSessionCompatToken();
        }
        return this.ComponentActivity2;
    }

    void setFieldValue(@androidx.annotation.NonNull BaseModel baseModel) {
        this.onBackPressed = baseModel;
    }

    BaseModel ComponentActivity2() {
        BaseModel baseModel = this.onBackPressed;
        if (baseModel != null) {
            return baseModel;
        }
        Fragment fragment = this.getOnBackPressedDispatcher;
        if (fragment != null) {
            return fragment.mFragmentManager.ComponentActivity2();
        }
        return this.MediaDescriptionCompat;
    }

    getModelNameForPersist setContentView() {
        return this.PlaybackStateCompat;
    }

    public void setOptions(@androidx.annotation.NonNull setLabel setlabel, boolean z) {
        this.PlaybackStateCompat.setBackground(setlabel, z);
    }

    public void setFieldValue(@androidx.annotation.NonNull setLabel setlabel) {
        this.PlaybackStateCompat.setLabel(setlabel);
    }

    public void setOptions(@androidx.annotation.NonNull ModelType modelType) {
        this.getLifecycleRegistry.add(modelType);
    }

    public void read(@androidx.annotation.NonNull Fragment fragment) {
        Iterator<ModelType> it = this.getLifecycleRegistry.iterator();
        while (it.hasNext()) {
            it.next().setFieldValue(this, fragment);
        }
    }

    public void setError(@androidx.annotation.NonNull ModelType modelType) {
        this.getLifecycleRegistry.remove(modelType);
    }

    void IconCompatParcelizer() {
        for (Fragment fragment : this.RatingCompat.setOptions()) {
            if (fragment != null) {
                fragment.onHiddenChanged(fragment.isHidden());
                fragment.mChildFragmentManager.IconCompatParcelizer();
            }
        }
    }

    boolean setBackground() {
        boolean z = false;
        for (Fragment fragment : this.RatingCompat.setOptions()) {
            if (fragment != null) {
                z = MediaSessionCompatResultReceiverWrapper(fragment);
            }
            if (z) {
                return true;
            }
        }
        return false;
    }

    private boolean MediaSessionCompatResultReceiverWrapper(@androidx.annotation.NonNull Fragment fragment) {
        return (fragment.mHasMenu && fragment.mMenuVisible) || fragment.mChildFragmentManager.setBackground();
    }

    void setElement(@androidx.annotation.NonNull Fragment fragment) {
        if (fragment.mAdded && MediaSessionCompatResultReceiverWrapper(fragment)) {
            this.ParcelableVolumeInfo = true;
        }
    }

    private boolean OnBackPressedDispatcherLifecycleOnBackPressedCancellable() {
        Fragment fragment = this.getOnBackPressedDispatcher;
        if (fragment == null) {
            return true;
        }
        return fragment.isAdded() && this.getOnBackPressedDispatcher.getParentFragmentManager().OnBackPressedDispatcherLifecycleOnBackPressedCancellable();
    }

    public LayoutInflater.Factory2 MediaSessionCompatQueueItem() {
        return this.PlaybackStateCompatCustomAction;
    }

    public deleteOldModels.setFieldValue PlaybackStateCompatCustomAction() {
        return this.ImmLeaksCleaner;
    }

    public void setBackground(@Nullable deleteOldModels.setFieldValue setfieldvalue) {
        this.ImmLeaksCleaner = setfieldvalue;
    }

    class write implements IconCompatParcelizer {
        final int setBackground;
        final int setError;
        final String setLabel;

        write(@Nullable String str, int i, int i2) {
            this.setLabel = str;
            this.setBackground = i;
            this.setError = i2;
        }

        @Override
        public boolean setLabel(@androidx.annotation.NonNull ArrayList<isBaseModel> arrayList, @androidx.annotation.NonNull ArrayList<Boolean> arrayList2) {
            Fragment fragment = getModelUri.this.RemoteActionCompatParcelizer;
            if (fragment == null || this.setBackground >= 0 || this.setLabel != null || !fragment.getChildFragmentManager().onBackPressedDispatcherlambda1()) {
                return getModelUri.this.setBackground(arrayList, arrayList2, this.setLabel, this.setBackground, this.setError);
            }
            return false;
        }
    }

    class read implements IconCompatParcelizer {
        private final String setFieldValue;

        read(@androidx.annotation.NonNull String str) {
            this.setFieldValue = str;
        }

        @Override
        public boolean setLabel(@androidx.annotation.NonNull ArrayList<isBaseModel> arrayList, @androidx.annotation.NonNull ArrayList<Boolean> arrayList2) {
            return getModelUri.this.setFieldValue(arrayList, arrayList2, this.setFieldValue);
        }
    }

    class AudioAttributesCompatParcelizer implements IconCompatParcelizer {
        private final String setError;

        AudioAttributesCompatParcelizer(@androidx.annotation.NonNull String str) {
            this.setError = str;
        }

        @Override
        public boolean setLabel(@androidx.annotation.NonNull ArrayList<isBaseModel> arrayList, @androidx.annotation.NonNull ArrayList<Boolean> arrayList2) {
            return getModelUri.this.setBackground(arrayList, arrayList2, this.setError);
        }
    }

    static class setError implements Parcelable {
        public static final Parcelable.Creator<setError> CREATOR = new Parcelable.Creator<setError>() {
            @Override
            public setError createFromParcel(Parcel parcel) {
                return new setError(parcel);
            }

            @Override
            public setError[] newArray(int i) {
                return new setError[i];
            }
        };
        int setBackground;
        String setLabel;

        @Override
        public int describeContents() {
            return 0;
        }

        setError(@androidx.annotation.NonNull String str, int i) {
            this.setLabel = str;
            this.setBackground = i;
        }

        setError(@androidx.annotation.NonNull Parcel parcel) {
            this.setLabel = parcel.readString();
            this.setBackground = parcel.readInt();
        }

        @Override
        public void writeToParcel(Parcel parcel, int i) {
            parcel.writeString(this.setLabel);
            parcel.writeInt(this.setBackground);
        }
    }

    static class setOptions extends setLogo<setCustomView, setContentHeight> {
        setOptions() {
        }

        @Override
        public Intent setFieldValue(@androidx.annotation.NonNull Context context, setCustomView setcustomview) {
            Bundle bundleExtra;
            Intent intent = new Intent("androidx.activity.result.contract.action.INTENT_SENDER_REQUEST");
            Intent error = setcustomview.setError();
            if (error != null && (bundleExtra = error.getBundleExtra(setMenu.MediaBrowserCompatCustomActionResultReceiver.setFieldValue)) != null) {
                intent.putExtra(setMenu.MediaBrowserCompatCustomActionResultReceiver.setFieldValue, bundleExtra);
                error.removeExtra(setMenu.MediaBrowserCompatCustomActionResultReceiver.setFieldValue);
                if (error.getBooleanExtra(getModelUri.IconCompatParcelizer, false)) {
                    setcustomview = new setCustomView.setError(setcustomview.setBackground()).setBackground(null).setBackground(setcustomview.setLabel(), setcustomview.setOptions()).setBackground();
                }
            }
            intent.putExtra("androidx.activity.result.contract.extra.INTENT_SENDER_REQUEST", setcustomview);
            if (getModelUri.setLabel(2)) {
                Log.v(getModelUri.setOptions, "CreateIntent created the following intent: " + intent);
            }
            return intent;
        }

        @Override
        public setContentHeight setError(int i, @Nullable Intent intent) {
            return new setContentHeight(i, intent);
        }
    }
}