Searched refs:si (Results 1 – 6 of 6) sorted by relevance
/development/samples/ShortcutDemo/common/src/com/example/android/pm/shortcutdemo/ |
D | ShortcutAdapter.java | 69 protected boolean showLaunch(ShortcutInfo si) { in showLaunch() argument 73 protected boolean showAction2(ShortcutInfo si) { in showAction2() argument 77 protected String getAction2Text(ShortcutInfo si) { in getAction2Text() argument 81 protected void onLaunchClicked(ShortcutInfo si) { in onLaunchClicked() argument 84 protected void onAction2Clicked(ShortcutInfo si) { in onAction2Clicked() argument 140 public void bindView(View view, int position, ShortcutInfo si) { in bindView() argument 144 if (showLaunch(si)) { in bindView() 152 if (showAction2(si)) { in bindView() 155 v.setText(getAction2Text(si)); in bindView() 162 view.setTag(si); in bindView() [all …]
|
/development/samples/ShortcutDemo/publisher/src/com/example/android/pm/shortcutdemo/ |
D | ShortcutPublisher.java | 107 for (ShortcutInfo si : mShortcutManager.getManifestShortcuts()) { in getAllShortcuts() 108 if (!Objects.equals(si.getActivity(), mMyActivity)) continue; in getAllShortcuts() 109 if (!map.containsKey(si.getId())) { in getAllShortcuts() 110 map.put(si.getId(), si); in getAllShortcuts() local 113 for (ShortcutInfo si : mShortcutManager.getDynamicShortcuts()) { in getAllShortcuts() 114 if (!Objects.equals(si.getActivity(), mMyActivity)) continue; in getAllShortcuts() 115 if (!map.containsKey(si.getId())) { in getAllShortcuts() 116 map.put(si.getId(), si); in getAllShortcuts() local 119 for (ShortcutInfo si : mShortcutManager.getPinnedShortcuts()) { in getAllShortcuts() 120 if (!Objects.equals(si.getActivity(), mMyActivity)) continue; in getAllShortcuts() [all …]
|
/development/samples/ShortcutDemo/launcher/src/com/example/android/pm/shortcutlauncherdemo/ |
D | ShortcutListFragment.java | 104 for (ShortcutInfo si : mLauncherApps.getShortcuts(q, user)) { in togglePin() 105 pinned.add(si.getId()); in togglePin() 118 private void launch(ShortcutInfo si) { in launch() argument 120 mLauncherApps.startShortcut(si.getPackage(), si.getId(), null, null, in launch() 121 si.getUserHandle()); in launch() 229 protected boolean showLaunch(ShortcutInfo si) { in showLaunch() argument 234 protected boolean showAction2(ShortcutInfo si) { in showAction2() argument 239 protected String getAction2Text(ShortcutInfo si) { in getAction2Text() argument 240 return si.isPinned() ? "Unpin" : "Pin"; in getAction2Text() 244 protected void onLaunchClicked(ShortcutInfo si) { in onLaunchClicked() argument [all …]
|
/development/samples/SpellChecker/HelloSpellChecker/src/com/example/android/hellospellchecker/ |
D | HelloSpellCheckerActivity.java | 90 final StringBuilder sb, final SuggestionsInfo si, final int length, final int offset) { in dumpSuggestionsInfoInternal() argument 92 final int len = si.getSuggestionsCount(); in dumpSuggestionsInfoInternal() 98 sb.append(si.getSuggestionAt(j)); in dumpSuggestionsInfoInternal()
|
/development/samples/SpellChecker/SampleSpellCheckerService/src/com/example/android/samplespellcheckerservice/ |
D | SampleSpellCheckerService.java | 127 final SuggestionsInfo si = new SuggestionsInfo(flags, in onGetSentenceSuggestionsMultiple() local 129 sis = new SuggestionsInfo[] { si }; in onGetSentenceSuggestionsMultiple()
|
/development/apps/Development/src/com/android/development/ |
D | PackageSummary.java | 205 ServiceInfo si = info.services[i]; in onCreate() local 208 setItemText(view, info, si.name); in onCreate()
|