当前位置: 首页>>代码示例>>Java>>正文


Java SelfCheckGroup类代码示例

本文整理汇总了Java中org.microg.tools.selfcheck.SelfCheckGroup的典型用法代码示例。如果您正苦于以下问题:Java SelfCheckGroup类的具体用法?Java SelfCheckGroup怎么用?Java SelfCheckGroup使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


SelfCheckGroup类属于org.microg.tools.selfcheck包,在下文中一共展示了SelfCheckGroup类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: reset

import org.microg.tools.selfcheck.SelfCheckGroup; //导入依赖的package包/类
protected void reset(LayoutInflater inflater) {
    List<SelfCheckGroup> selfCheckGroupList = new ArrayList<SelfCheckGroup>();
    prepareSelfCheckList(selfCheckGroupList);

    root.removeAllViews();
    for (SelfCheckGroup group : selfCheckGroupList) {
        View groupView = inflater.inflate(R.layout.self_check_group, root, false);
        ((TextView) groupView.findViewById(android.R.id.title)).setText(group.getGroupName(getContext()));
        final ViewGroup viewGroup = (ViewGroup) groupView.findViewById(R.id.group_content);
        final SelfCheckGroup.ResultCollector collector = new GroupResultCollector(viewGroup);
        try {
            group.doChecks(getContext(), collector);
        } catch (Exception e) {
            Log.w(TAG, "Failed during check " + group.getGroupName(getContext()), e);
            collector.addResult("Self-check failed:", Negative, "An exception occurred during self-check. Please report this issue.");
        }
        root.addView(groupView);
    }
}
 
开发者ID:microg,项目名称:android_external_MicroGUiTools,代码行数:20,代码来源:AbstractSelfCheckFragment.java

示例2: prepareSelfCheckList

import org.microg.tools.selfcheck.SelfCheckGroup; //导入依赖的package包/类
@Override
protected void prepareSelfCheckList(List<SelfCheckGroup> checks) {
    if (SDK_INT > LOLLIPOP_MR1) {
        checks.add(new PermissionCheckGroup(ACCESS_COARSE_LOCATION));
    }
    checks.add(new NlpOsCompatChecks());
    checks.add(new NlpStatusChecks());
}
 
开发者ID:microg,项目名称:android_packages_apps_UnifiedNlp,代码行数:9,代码来源:SettingsActivity.java

示例3: prepareSelfCheckList

import org.microg.tools.selfcheck.SelfCheckGroup; //导入依赖的package包/类
@Override
protected void prepareSelfCheckList(List<SelfCheckGroup> checks) {
    checks.add(new RomSpoofSignatureChecks());
    checks.add(new InstalledPackagesChecks());
    if (SDK_INT > LOLLIPOP_MR1) {
        checks.add(new PermissionCheckGroup(ACCESS_COARSE_LOCATION, WRITE_EXTERNAL_STORAGE, GET_ACCOUNTS, READ_PHONE_STATE));
    }
    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
        checks.add(new SystemChecks());
    }
    checks.add(new NlpOsCompatChecks());
    checks.add(new NlpStatusChecks());
}
 
开发者ID:microg,项目名称:android_packages_apps_GmsCore,代码行数:14,代码来源:SelfCheckFragment.java

示例4: addResult

import org.microg.tools.selfcheck.SelfCheckGroup; //导入依赖的package包/类
@Override
public void addResult(final String name, final SelfCheckGroup.Result result, final String resolution) {
    addResult(name, result, resolution, null);
}
 
开发者ID:microg,项目名称:android_external_MicroGUiTools,代码行数:5,代码来源:AbstractSelfCheckFragment.java

示例5: prepareSelfCheckList

import org.microg.tools.selfcheck.SelfCheckGroup; //导入依赖的package包/类
protected abstract void prepareSelfCheckList(List<SelfCheckGroup> checks); 
开发者ID:microg,项目名称:android_external_MicroGUiTools,代码行数:2,代码来源:AbstractSelfCheckFragment.java


注:本文中的org.microg.tools.selfcheck.SelfCheckGroup类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。