本文整理汇总了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);
}
}
示例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());
}
示例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());
}
示例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);
}
示例5: prepareSelfCheckList
import org.microg.tools.selfcheck.SelfCheckGroup; //导入依赖的package包/类
protected abstract void prepareSelfCheckList(List<SelfCheckGroup> checks);