本文整理匯總了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);