package o;

import android.content.ContentValues;
import android.database.sqlite.SQLiteDatabase;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public final /* synthetic */ class I30 implements J30 {
    public final /* synthetic */ long l;
    public final /* synthetic */ C2156pc m;

    public /* synthetic */ I30(long j, C2156pc c2156pc) {
        this.l = j;
        this.m = c2156pc;
    }

    @Override // o.J30
    public final Object apply(Object obj) {
        SQLiteDatabase sQLiteDatabase = (SQLiteDatabase) obj;
        ContentValues contentValues = new ContentValues();
        contentValues.put("next_request_ms", Long.valueOf(this.l));
        C2156pc c2156pc = this.m;
        String str = c2156pc.a;
        HY hy = c2156pc.c;
        if (sQLiteDatabase.update("transport_contexts", contentValues, "backend_name = ? and priority = ?", new String[]{str, String.valueOf(JY.a(hy))}) < 1) {
            contentValues.put("backend_name", c2156pc.a);
            contentValues.put("priority", Integer.valueOf(JY.a(hy)));
            sQLiteDatabase.insert("transport_contexts", null, contentValues);
        }
        return null;
    }
}
