當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。