mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-25 08:32:38 -06:00
35 lines
1.9 KiB
Java
35 lines
1.9 KiB
Java
package androidx.work.impl.utils;
|
|
|
|
import android.content.Context;
|
|
import androidx.work.Configuration;
|
|
import androidx.work.Logger;
|
|
import kotlin.Metadata;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
|
|
/* compiled from: ProcessUtils.kt */
|
|
@Metadata(d1 = {"\u0000\u001c\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0018\u0002\n\u0000\u001a\u0012\u0010\u0002\u001a\u0004\u0018\u00010\u00012\u0006\u0010\u0003\u001a\u00020\u0004H\u0003\u001a\u0016\u0010\u0005\u001a\u00020\u00062\u0006\u0010\u0003\u001a\u00020\u00042\u0006\u0010\u0007\u001a\u00020\b\"\u000e\u0010\u0000\u001a\u00020\u0001X\u0082\u0004¢\u0006\u0002\n\u0000¨\u0006\t"}, d2 = {"TAG", "", "getProcessName", "context", "Landroid/content/Context;", "isDefaultProcess", "", "configuration", "Landroidx/work/Configuration;", "work-runtime_release"}, k = 2, mv = {1, 8, 0}, xi = 48)
|
|
/* loaded from: classes2.dex */
|
|
public final class ProcessUtils {
|
|
private static final String TAG;
|
|
|
|
static {
|
|
String tagWithPrefix = Logger.tagWithPrefix("ProcessUtils");
|
|
Intrinsics.checkNotNullExpressionValue(tagWithPrefix, "tagWithPrefix(\"ProcessUtils\")");
|
|
TAG = tagWithPrefix;
|
|
}
|
|
|
|
public static final boolean isDefaultProcess(Context context, Configuration configuration) {
|
|
Intrinsics.checkNotNullParameter(context, "context");
|
|
Intrinsics.checkNotNullParameter(configuration, "configuration");
|
|
String processName = getProcessName(context);
|
|
String defaultProcessName = configuration.getDefaultProcessName();
|
|
if (defaultProcessName != null && defaultProcessName.length() != 0) {
|
|
return Intrinsics.areEqual(processName, configuration.getDefaultProcessName());
|
|
}
|
|
return Intrinsics.areEqual(processName, context.getApplicationInfo().processName);
|
|
}
|
|
|
|
private static final String getProcessName(Context context) {
|
|
return Api28Impl.INSTANCE.getProcessName();
|
|
}
|
|
}
|