Java 类de.robv.android.xposed.callbacks.XCallback 实例源码

项目:Parallel    文件:AppsHook.java   
public static boolean handleLoadSystem(XC_LoadPackage.LoadPackageParam lpp, XSharedPreferences mainPref) {
    if (lpp.packageName.contains(Common.PACKAGE_ANDROID_SYSTEM) ||
            lpp.packageName.equals("com.android.systemui"))
    {
        mainPref.reload();
        if (!mainPref.contains(lpp.packageName)) return false;

        Log.d("HOOKME:", "AppsHook.handleSystem called" );

        // TODO: It looks different now

        String fontDef = mainPref.getString(Common.KEY_DEFAULT_FONT, Common.DEFAULT_FONT_ALL_APPS);
        mFontTypeDefault = FontHelper.parsedPrefDefault(ParallelMain.sModuleResources, fontDef, ParallelMain.sFontLoader);

        hookTextView(lpp, XCallback.PRIORITY_HIGHEST); // Its getting HOOOOOKKKKEEEDDD !
        return true;
    }
    return false;
}
项目:XposedHammerheadLightSensorFix    文件:XposedMod.java   
@Override
public int compareTo(XCallback other) {
    if (this.equals(other)) {
        return 0;
    }
    return super.compareTo(other);
}
项目:Xposed-PerAppFonts    文件:AppsHook.java   
public static boolean handleLoadSystem(final LoadPackageParam lpp, XSharedPreferences pref) {
    if (lpp.packageName.equals(Common.PACKAGE_ANDROID_SYSTEM) ||
        lpp.packageName.equals("com.android.systemui")) {
        pref.reload();
        if (!pref.contains(lpp.packageName)) return false;
        String unparsed = pref.getString(lpp.packageName, Common.DEFAULT_FONT_ALL_APPS);
        mFontType = FontHelper.parsedPref(MainXposed.sModuleRes, unparsed,
                MainXposed.sFontLoader);
        hookTextView(lpp, XCallback.PRIORITY_HIGHEST);
        return true;
    }
    return false;
}
项目:Xposed-PerAppFonts    文件:AppsHook.java   
public static boolean handleLoadApps(final LoadPackageParam lpp, XSharedPreferences pref) {
    pref.reload();
    if (!pref.contains(lpp.packageName)) return false;
    String unparsed = pref.getString(lpp.packageName, Common.DEFAULT_FONT_ALL_APPS);
    mFontType = FontHelper.parsedPref(MainXposed.sModuleRes, unparsed, MainXposed.sFontLoader);
    Log.d("test", "GGG=" + unparsed + lpp.packageName);
    hookTextView(lpp, XCallback.PRIORITY_HIGHEST);
    return true;
}
项目:Parallel    文件:AppsHook.java   
public static void handleAllApps(XC_LoadPackage.LoadPackageParam lpp, XSharedPreferences sMainPref) {


        sMainPref.reload();
        if(!sMainPref.contains(lpp.packageName))
            return;



        String fontDef = sMainPref.getString(Common.KEY_DEFAULT_FONT, Common.DEFAULT_FONT_ALL_APPS);
        mFontTypeDefault = FontHelper.parsedPrefDefault(ParallelMain.sModuleResources, fontDef, ParallelMain.sFontLoader);


        String fontString = sMainPref.getString(lpp.packageName, Common.DEFAULT_PARALLEL_FONTS_ALL_APPS);
        mFontType = FontHelper.parsedPref(ParallelMain.sModuleResources, fontString, ParallelMain.sFontLoader);

        hookTextView(lpp, XCallback.PRIORITY_LOWEST);
    }
项目:Parallel    文件:AppsHook.java   
public static boolean handleLoadApps(XC_LoadPackage.LoadPackageParam lpp, XSharedPreferences pref) {

        pref.reload();
        if (!pref.contains(lpp.packageName)) return false;

        String unparsed = pref.getString(lpp.packageName, Common.DEFAULT_PARALLEL_FONTS_ALL_APPS);

        mFontType = FontHelper.parsedPref(ParallelMain.sModuleResources, unparsed, ParallelMain.sFontLoader);
        Log.d("HOOKME:", "unparsedFont=" + unparsed + lpp.packageName);

//        String unicodeFont = pref.getString(Common.CURRENT_FONT_UNICODE, Common.DEFAULT_FONT_ALL_APPS);
//        String zawgyiFont = pref.getString(Common.CURRENT_FONT_ZAWGYI, Common.DEFAULT_FONT_ALL_APPS);

//        mFontType_Unicode = FontHelper.parsedPref(ParallelMain.sModuleResources, unicodeFont, ParallelMain.sFontLoader);
//        mFontType_Zawgyi = FontHelper.parsedPref(ParallelMain.sModuleResources, zawgyiFont, ParallelMain.sFontLoader);

//        Log.d("HOOKME:", String.format("mFontTypeUnicode: %s\nmFontTypeZawgyi: %s", mFontType_Unicode.toString(), mFontType_Zawgyi.toString()));

        hookTextView(lpp, XCallback.PRIORITY_HIGHEST);
        return true;

    }
项目:Xposed-PerAppFonts    文件:AppsHook.java   
public static void handleAllApps(final LoadPackageParam lpp, XSharedPreferences pref) {
    pref.reload();
    String fontString = pref.getString(Common.KEY_FONT_ANDROID_SYSTEM, Common.DEFAULT_FONT_ALL_APPS);
    mFontType = FontHelper.parsedPref(MainXposed.sModuleRes, fontString, MainXposed.sFontLoader);
    hookTextView(lpp, XCallback.PRIORITY_LOWEST);
}