Home | History | Annotate | Download | only in settings

Lines Matching refs:dreamInfo

55     public static class DreamInfo {
64 StringBuilder sb = new StringBuilder(DreamInfo.class.getSimpleName());
95 public List<DreamInfo> getDreamInfos() {
102 List<DreamInfo> dreamInfos = new ArrayList<DreamInfo>(resolveInfos.size());
106 DreamInfo dreamInfo = new DreamInfo();
107 dreamInfo.caption = resolveInfo.loadLabel(pm);
108 dreamInfo.icon = resolveInfo.loadIcon(pm);
109 dreamInfo.componentName = getDreamComponentName(resolveInfo);
110 dreamInfo.isActive = dreamInfo.componentName.equals(activeDream);
111 dreamInfo.settingsComponentName = getSettingsComponentName(pm, resolveInfo);
112 dreamInfos.add(dreamInfo);
204 public void launchSettings(DreamInfo dreamInfo) {
205 logd("launchSettings(%s)", dreamInfo);
206 if (dreamInfo == null || dreamInfo.settingsComponentName == null)
208 mContext.startActivity(new Intent().setComponent(dreamInfo.settingsComponentName));
211 public void preview(DreamInfo dreamInfo) {
212 logd("preview(%s)", dreamInfo);
213 if (mDreamManager == null || dreamInfo == null || dreamInfo.componentName == null)
216 mDreamManager.testDream(dreamInfo.componentName);
218 Log.w(TAG, "Failed to preview " + dreamInfo, e);
291 private static class DreamInfoComparator implements Comparator<DreamInfo> {
299 public int compare(DreamInfo lhs, DreamInfo rhs) {
303 private String sortKey(DreamInfo di) {