导航菜单

页面标题

页面副标题

Adobe Acrobat v15.3 - s.java 源代码

正在查看: Adobe Acrobat v15.3 应用的 s.java JAVA 源代码文件

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


package com.adobe.a;

import android.content.SharedPreferences;
import com.adobe.reader.filebrowser.ARFileBrowserUtils;
import com.adobe.reader.filebrowser.ARFileEntry;
import java.util.HashMap;
import java.util.Map;

final class s {

    private static String f82a = null;
    private static String b = null;
    private static HashMap<String, Object> c = null;
    private static volatile boolean d = true;
    private static String e = null;
    private static volatile boolean f = true;

    public static void a() {
        cf.n().execute(new t());
    }

    static void a(a.c.c cVar) {
        try {
            a.c.a d2 = cVar.d("dests");
            for (int i = 0; i < d2.f26a.size(); i++) {
                String g = d2.d(i).g("c");
                if (g != null && g.length() > 0) {
                    ce.a(g, "Audience Manager");
                }
            }
        } catch (a.c.b e2) {
            cf.c("Audience Manager - No destination in response (%s)", e2.getLocalizedMessage());
        }
    }

    static void a(String str) {
        try {
            SharedPreferences.Editor s = cf.s();
            if (str == null) {
                s.remove("AAMUserId");
            } else {
                s.putString("AAMUserId", str);
            }
            s.commit();
        } catch (ch e2) {
            cf.a("Audience Manager - Error updating uuid in shared preferences (%s)", e2.getMessage());
        }
    }

    public static void a(Map<String, Object> map) {
        cf.n().execute(new u(map));
    }

    private static String b() {
        try {
            return cf.a().getString("AAMUserId", null);
        } catch (ch e2) {
            cf.a("Audience Manager - Error getting uuid from shared preferences (%s).", e2.getMessage());
            return null;
        }
    }

    static String b(Map map) {
        if (c() == null) {
            return null;
        }
        StringBuilder append = new StringBuilder().append(c()).append(d(map));
        StringBuilder sb = new StringBuilder();
        if (bp.a().s()) {
            sb.append(ci.a().d());
        }
        if (b() != null) {
            sb.append("&d_uuid=").append(b());
        }
        if (f82a != null && f82a.length() > 0 && b != null && b.length() > 0) {
            sb.append("&d_dpid=").append(f82a).append("&d_dpuuid=").append(b);
        }
        return append.append(sb.toString()).append("&d_ptfm=android&d_dst=1&d_rtbd=json").toString().replace("?&", "?");
    }

    private static String c() {
        if (f && bp.a().d()) {
            f = false;
            e = String.format("http://%s/event?", bp.a().o());
        }
        return e;
    }

    public static HashMap<String, Object> c(a.c.c cVar) {
        HashMap<String, Object> hashMap = new HashMap<>();
        try {
            a.c.a d2 = cVar.d("stuff");
            for (int i = 0; i < d2.f26a.size(); i++) {
                a.c.c d3 = d2.d(i);
                if (d3 != null) {
                    hashMap.put(d3.g("cn"), d3.g("cv"));
                }
            }
        } catch (a.c.b e2) {
            cf.c("Audience Manager - No 'stuff' array in response (%s)", e2.getLocalizedMessage());
        }
        return hashMap;
    }

    static void c(Map map) {
        d = false;
        try {
            SharedPreferences.Editor s = cf.s();
            if (map != null) {
                s.putString("AAMUserProfile", new a.c.c(map).toString());
                c = new HashMap<>(map);
            } else {
                s.remove("AAMUserProfile");
                c = null;
            }
            s.commit();
        } catch (ch e2) {
            cf.a("Audience Manager - Error updating visitor profile (%s)", e2.getMessage());
        }
    }

    private static String d(Map<String, Object> map) {
        if (map == null || map.size() <= 0) {
            return ARFileEntry.DEFAULT_ENTRY_ICON_STRING;
        }
        StringBuilder sb = new StringBuilder(1024);
        for (Map.Entry<String, Object> entry : map.entrySet()) {
            String key = entry.getKey();
            Object value = entry.getValue();
            if (key != null && key.length() > 0 && value != null && value.toString().length() > 0 && entry.getValue().getClass() == String.class) {
                sb.append("&c_").append(cf.a(key.replace(ARFileBrowserUtils.EXTENSION_SEP, "_"))).append("=").append(cf.a(value.toString()));
            }
        }
        return sb.toString();
    }
}