正在查看: Tasker v6.6.3 应用的 i.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Tasker v6.6.3 应用的 i.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package rg;
import android.content.Context;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;
import com.joaomgcd.taskerm.util.e0;
import com.joaomgcd.taskerm.util.g0;
import com.joaomgcd.taskerm.util.l7;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.Map;
import net.dinglisch.android.taskerm.d6;
import net.dinglisch.android.taskerm.pp;
import sk.q;
import ti.r;
public final class i {
public static boolean A(Context context, e0 e0Var, SharedPreferences sharedPreferences, int i, Object obj) {
if ((i & 2) != 0) {
sharedPreferences = w(context);
jk.p.h(sharedPreferences, "<get-preferencesState>(...)");
}
return z(context, e0Var, sharedPreferences);
}
public static final void B(Context context, e0 e0Var) {
jk.p.i(context, "<this>");
jk.p.i(e0Var, "tipKey");
String b = e0Var.b();
Boolean bool = Boolean.TRUE;
SharedPreferences w = w(context);
jk.p.h(w, "<get-preferencesState>(...)");
O(context, b, bool, w);
}
public static final void C(SharedPreferences sharedPreferences, final String str, Boolean bool) {
jk.p.i(sharedPreferences, "<this>");
jk.p.i(str, "key");
F(sharedPreferences, str, bool, new ik.p() {
@Override
public final Object n(Object obj, Object obj2) {
SharedPreferences.Editor K;
K = i.K(str, (SharedPreferences.Editor) obj, ((Boolean) obj2).booleanValue());
return K;
}
});
}
public static final void D(SharedPreferences sharedPreferences, final String str, Integer num) {
jk.p.i(sharedPreferences, "<this>");
jk.p.i(str, "key");
F(sharedPreferences, str, num, new ik.p() {
@Override
public final Object n(Object obj, Object obj2) {
SharedPreferences.Editor L;
L = i.L(str, (SharedPreferences.Editor) obj, ((Integer) obj2).intValue());
return L;
}
});
}
public static final void E(SharedPreferences sharedPreferences, final String str, Long l) {
jk.p.i(sharedPreferences, "<this>");
jk.p.i(str, "key");
F(sharedPreferences, str, l, new ik.p() {
@Override
public final Object n(Object obj, Object obj2) {
SharedPreferences.Editor M;
M = i.M(str, (SharedPreferences.Editor) obj, ((Long) obj2).longValue());
return M;
}
});
}
private static final <T> void F(SharedPreferences sharedPreferences, String str, T t, ik.p<? super SharedPreferences.Editor, ? super T, ? extends SharedPreferences.Editor> pVar) {
SharedPreferences.Editor edit = sharedPreferences.edit();
if (t == null) {
edit.remove(str);
} else {
jk.p.f(edit);
pVar.n(edit, t);
}
edit.commit();
}
public static final void G(SharedPreferences sharedPreferences, final String str, Object obj, final jc.e eVar) {
jk.p.i(sharedPreferences, "<this>");
jk.p.i(str, "key");
jk.p.i(eVar, "gsonOverride");
F(sharedPreferences, str, obj, new ik.p() {
@Override
public final Object n(Object obj2, Object obj3) {
SharedPreferences.Editor N;
N = i.N(str, eVar, (SharedPreferences.Editor) obj2, obj3);
return N;
}
});
}
public static final void H(SharedPreferences sharedPreferences, final String str, String str2) {
jk.p.i(sharedPreferences, "<this>");
jk.p.i(str, "key");
F(sharedPreferences, str, str2, new ik.p() {
@Override
public final Object n(Object obj, Object obj2) {
SharedPreferences.Editor J;
J = i.J(str, (SharedPreferences.Editor) obj, (String) obj2);
return J;
}
});
}
public static void I(SharedPreferences sharedPreferences, String str, Object obj, jc.e eVar, int i, Object obj2) {
if ((i & 4) != 0) {
eVar = eg.f.c();
}
G(sharedPreferences, str, obj, eVar);
}
public static final SharedPreferences.Editor J(String str, SharedPreferences.Editor editor, String str2) {
jk.p.i(editor, "$this$put");
jk.p.i(str2, "it");
SharedPreferences.Editor putString = editor.putString(str, str2);
jk.p.h(putString, "putString(...)");
return putString;
}
public static final SharedPreferences.Editor K(String str, SharedPreferences.Editor editor, boolean z) {
jk.p.i(editor, "$this$put");
SharedPreferences.Editor putBoolean = editor.putBoolean(str, z);
jk.p.h(putBoolean, "putBoolean(...)");
return putBoolean;
}
public static final SharedPreferences.Editor L(String str, SharedPreferences.Editor editor, int i) {
jk.p.i(editor, "$this$put");
SharedPreferences.Editor putInt = editor.putInt(str, i);
jk.p.h(putInt, "putInt(...)");
return putInt;
}
public static final SharedPreferences.Editor M(String str, SharedPreferences.Editor editor, long j) {
jk.p.i(editor, "$this$put");
SharedPreferences.Editor putLong = editor.putLong(str, j);
jk.p.h(putLong, "putLong(...)");
return putLong;
}
public static final SharedPreferences.Editor N(String str, jc.e eVar, SharedPreferences.Editor editor, Object obj) {
jk.p.i(editor, "$this$put");
jk.p.i(obj, "it");
editor.remove(str);
SharedPreferences.Editor putString = editor.putString(str, eVar.r(obj));
jk.p.h(putString, "putString(...)");
return putString;
}
public static final void O(Context context, String str, Boolean bool, SharedPreferences sharedPreferences) {
jk.p.i(context, "<this>");
jk.p.i(str, "key");
jk.p.i(sharedPreferences, "state");
C(sharedPreferences, str, bool);
}
public static final void P(Context context, String str, Integer num, SharedPreferences sharedPreferences) {
jk.p.i(context, "<this>");
jk.p.i(str, "key");
jk.p.i(sharedPreferences, "state");
D(sharedPreferences, str, num);
}
public static final void Q(Context context, String str, Long l, SharedPreferences sharedPreferences) {
jk.p.i(context, "<this>");
jk.p.i(str, "key");
jk.p.i(sharedPreferences, "state");
E(sharedPreferences, str, l);
}
public static final void R(Context context, String str, Object obj, SharedPreferences sharedPreferences, jc.e eVar) {
jk.p.i(context, "<this>");
jk.p.i(str, "key");
jk.p.i(sharedPreferences, "state");
jk.p.i(eVar, "gsonOverride");
G(sharedPreferences, str, obj, eVar);
}
public static final void S(Context context, String str, String str2, SharedPreferences sharedPreferences) {
jk.p.i(context, "<this>");
jk.p.i(str, "key");
jk.p.i(sharedPreferences, "state");
H(sharedPreferences, str, str2);
}
public static void T(Context context, String str, Boolean bool, SharedPreferences sharedPreferences, int i, Object obj) {
if ((i & 4) != 0) {
sharedPreferences = t(context);
jk.p.h(sharedPreferences, "<get-preferences>(...)");
}
O(context, str, bool, sharedPreferences);
}
public static void U(Context context, String str, Integer num, SharedPreferences sharedPreferences, int i, Object obj) {
if ((i & 4) != 0) {
sharedPreferences = t(context);
jk.p.h(sharedPreferences, "<get-preferences>(...)");
}
P(context, str, num, sharedPreferences);
}
public static void V(Context context, String str, Object obj, SharedPreferences sharedPreferences, jc.e eVar, int i, Object obj2) {
if ((i & 4) != 0) {
sharedPreferences = t(context);
jk.p.h(sharedPreferences, "<get-preferences>(...)");
}
if ((i & 8) != 0) {
eVar = eg.f.c();
}
R(context, str, obj, sharedPreferences, eVar);
}
public static void W(Context context, String str, String str2, SharedPreferences sharedPreferences, int i, Object obj) {
if ((i & 4) != 0) {
sharedPreferences = t(context);
jk.p.h(sharedPreferences, "<get-preferences>(...)");
}
S(context, str, str2, sharedPreferences);
}
public static final int X(Context context, String str) {
jk.p.i(context, "<this>");
jk.p.i(str, "stringInIt");
Map<String, ?> all = w(context).getAll();
jk.p.h(all, "getAll(...)");
LinkedHashMap linkedHashMap = new LinkedHashMap();
for (Map.Entry<String, ?> entry : all.entrySet()) {
String key = entry.getKey();
jk.p.h(key, "<get-key>(...)");
if (q.U(key, str, false, 2, null)) {
linkedHashMap.put(entry.getKey(), entry.getValue());
}
}
SharedPreferences.Editor edit = w(context).edit();
Iterator it = linkedHashMap.entrySet().iterator();
while (it.hasNext()) {
edit.remove((String) ((Map.Entry) it.next()).getKey());
}
edit.apply();
return linkedHashMap.size();
}
public static final void Y(Context context, String str, ik.a<vj.e0> aVar) {
jk.p.i(context, "<this>");
jk.p.i(str, "key");
jk.p.i(aVar, "action");
g0 C = l7.C(str);
if (A(context, C, null, 2, null)) {
return;
}
B(context, C);
aVar.e();
}
public static final <T> r<T> h(final Context context, e0 e0Var, ik.a<? extends r<T>> aVar, final ik.l<? super T, Boolean> lVar, final SharedPreferences sharedPreferences, ik.a<? extends r<T>> aVar2) {
jk.p.i(context, "<this>");
jk.p.i(e0Var, "tipKey");
jk.p.i(aVar, "getterIfDone");
jk.p.i(lVar, "isDone");
jk.p.i(sharedPreferences, "preferences");
jk.p.i(aVar2, "block");
final String b = e0Var.b();
if (z(context, e0Var, sharedPreferences)) {
return aVar.e();
}
r<T> e = aVar2.e();
final ik.l lVar2 = new ik.l() {
@Override
public final Object invoke(Object obj) {
vj.e0 j;
j = i.j(ik.l.this, context, b, sharedPreferences, obj);
return j;
}
};
r<T> q = e.q(new yi.d() {
@Override
public final void accept(Object obj) {
i.k(ik.l.this, obj);
}
});
jk.p.h(q, "doOnSuccess(...)");
return q;
}
public static r i(Context context, e0 e0Var, ik.a aVar, ik.l lVar, SharedPreferences sharedPreferences, ik.a aVar2, int i, Object obj) {
if ((i & 8) != 0) {
sharedPreferences = w(context);
jk.p.h(sharedPreferences, "<get-preferencesState>(...)");
}
return h(context, e0Var, aVar, lVar, sharedPreferences, aVar2);
}
public static final vj.e0 j(ik.l lVar, Context context, String str, SharedPreferences sharedPreferences, Object obj) {
if (!((Boolean) lVar.invoke(obj)).booleanValue()) {
return vj.e0.a;
}
O(context, str, Boolean.TRUE, sharedPreferences);
return vj.e0.a;
}
public static final void k(ik.l lVar, Object obj) {
lVar.invoke(obj);
}
public static final void l(SharedPreferences sharedPreferences, ik.l<? super SharedPreferences.Editor, vj.e0> lVar) {
jk.p.i(sharedPreferences, "<this>");
jk.p.i(lVar, "block");
SharedPreferences.Editor edit = sharedPreferences.edit();
jk.p.f(edit);
lVar.invoke(edit);
edit.commit();
}
public static final boolean m(Context context, String str, boolean z, SharedPreferences sharedPreferences) {
jk.p.i(context, "<this>");
jk.p.i(str, "key");
jk.p.i(sharedPreferences, "state");
return sharedPreferences.getBoolean(str, z);
}
public static boolean n(Context context, String str, boolean z, SharedPreferences sharedPreferences, int i, Object obj) {
if ((i & 2) != 0) {
z = false;
}
if ((i & 4) != 0) {
sharedPreferences = t(context);
jk.p.h(sharedPreferences, "<get-preferences>(...)");
}
return m(context, str, z, sharedPreferences);
}
public static final int o(Context context, String str, int i, SharedPreferences sharedPreferences) {
jk.p.i(context, "<this>");
jk.p.i(str, "key");
jk.p.i(sharedPreferences, "state");
return sharedPreferences.getInt(str, i);
}
public static int p(Context context, String str, int i, SharedPreferences sharedPreferences, int i2, Object obj) {
if ((i2 & 2) != 0) {
i = 0;
}
if ((i2 & 4) != 0) {
sharedPreferences = t(context);
jk.p.h(sharedPreferences, "<get-preferences>(...)");
}
return o(context, str, i, sharedPreferences);
}
public static final long q(Context context, String str, long j, SharedPreferences sharedPreferences) {
jk.p.i(context, "<this>");
jk.p.i(str, "key");
jk.p.i(sharedPreferences, "state");
return sharedPreferences.getLong(str, j);
}
public static final String r(Context context, String str, String str2, SharedPreferences sharedPreferences) {
jk.p.i(context, "<this>");
jk.p.i(str, "key");
jk.p.i(sharedPreferences, "state");
return sharedPreferences.getString(str, str2);
}
public static String s(Context context, String str, String str2, SharedPreferences sharedPreferences, int i, Object obj) {
if ((i & 2) != 0) {
str2 = null;
}
if ((i & 4) != 0) {
sharedPreferences = t(context);
jk.p.h(sharedPreferences, "<get-preferences>(...)");
}
return r(context, str, str2, sharedPreferences);
}
public static final SharedPreferences t(Context context) {
jk.p.i(context, "<this>");
return PreferenceManager.getDefaultSharedPreferences(context);
}
public static final SharedPreferences u(Context context) {
jk.p.i(context, "<this>");
return context.getSharedPreferences(d6.h, 0);
}
public static final SharedPreferences v(Context context) {
jk.p.i(context, "<this>");
return pp.R0(context);
}
public static final SharedPreferences w(Context context) {
jk.p.i(context, "<this>");
return pp.S0(context);
}
public static final SharedPreferences x(Context context) {
jk.p.i(context, "<this>");
return context.getSharedPreferences(d6.k, 0);
}
public static final boolean y(Context context, e0 e0Var) {
jk.p.i(context, "<this>");
jk.p.i(e0Var, "key");
return A(context, e0Var, null, 2, null);
}
public static final boolean z(Context context, e0 e0Var, SharedPreferences sharedPreferences) {
jk.p.i(context, "<this>");
jk.p.i(e0Var, "key");
jk.p.i(sharedPreferences, "preferences");
return m(context, e0Var.b(), false, sharedPreferences);
}
}