/frameworks/base/core/java/android/service/settings/suggestions/ |
H A D | SuggestionService.java | 28 * This is the base class for implementing suggestion service. A suggestion service is responsible 51 public void dismissSuggestion(Suggestion suggestion) { 55 onSuggestionDismissed(suggestion); 59 public void launchSuggestion(Suggestion suggestion) { 63 onSuggestionLaunched(suggestion); 74 * Dismiss a suggestion. The suggestion will not be included in future 77 public abstract void onSuggestionDismissed(Suggestion suggestion); argument 80 * This is the opposite signal to {@link #onSuggestionDismissed}, indicating a suggestion ha 83 onSuggestionLaunched(Suggestion suggestion) argument [all...] |
/frameworks/base/core/tests/coretests/src/android/service/settings/suggestions/ |
H A D | MockSuggestionService.java | 48 public void onSuggestionDismissed(Suggestion suggestion) { argument 53 public void onSuggestionLaunched(Suggestion suggestion) { argument
|
H A D | SuggestionTest.java | 56 final Suggestion suggestion = new Suggestion.Builder(TEST_ID) 63 assertThat(suggestion.getId()).isEqualTo(TEST_ID); 64 assertThat(suggestion.getTitle()).isEqualTo(TEST_TITLE); 65 assertThat(suggestion.getSummary()).isEqualTo(TEST_SUMMARY); 66 assertThat(suggestion.getIcon()).isEqualTo(mIcon); 67 assertThat(suggestion.getFlags()).isEqualTo(0); 68 assertThat(suggestion.getPendingIntent()).isEqualTo(mTestIntent);
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/suggestions/ |
H A D | SuggestionController.java | 34 * A controller class to access suggestion data. 116 public void dismissSuggestions(Suggestion suggestion) { argument 118 Log.w(TAG, "SuggestionController not ready, cannot dismiss " + suggestion.getId()); 122 mRemoteService.dismissSuggestion(suggestion); 128 public void launchSuggestion(Suggestion suggestion) { argument 130 Log.w(TAG, "SuggestionController not ready, cannot launch " + suggestion.getId()); 135 mRemoteService.launchSuggestion(suggestion);
|
H A D | SuggestionParser.java | 57 // If defined, only returns this suggestion if the feature is supported. 142 // Read suggestion and force isSmartSuggestion to be false so the rule defined 143 // from each suggestion itself is used. 162 * Dismisses a suggestion, returns true if the suggestion has no more dismisses left and should 165 public boolean dismissSuggestion(Tile suggestion) { argument 166 final String keyBase = suggestion.intent.getComponent().flattenToShortString(); 217 private boolean isAvailable(Tile suggestion) { argument 218 final String featuresRequired = suggestion.metaData.getString(META_DATA_REQUIRE_FEATURE); 225 Log.i(TAG, suggestion 234 satisifesRequiredUserType(Tile suggestion) argument 259 satisfiesRequiredAccount(Tile suggestion) argument 274 isSupported(Tile suggestion) argument 298 satisfiesConnectivity(Tile suggestion) argument 346 isDismissed(Tile suggestion, boolean isSmartSuggestionEnabled) argument 391 getDismissControl(Tile suggestion, boolean isSmartSuggestionEnabled) argument [all...] |
H A D | SuggestionControllerMixin.java | 34 * Manages IPC communication to SettingsIntelligence for suggestion related services. 41 * Called when suggestion data fetching is ready. 133 public void dismissSuggestion(Suggestion suggestion) { argument 134 mSuggestionController.dismissSuggestions(suggestion); 137 public void launchSuggestion(Suggestion suggestion) { argument 138 mSuggestionController.launchSuggestion(suggestion);
|
H A D | SuggestionList.java | 31 // Category -> list of suggestion map 76 final Tile suggestion = suggestions.get(i); 77 final String intentUri = suggestion.intent.toUri(Intent.URI_INTENT_SCHEME);
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/suggestions/ |
H A D | SuggestionParserTest.java | 173 final Tile suggestion = new Tile(); 174 suggestion.metaData = new Bundle(); 175 suggestion.metaData.putString(SuggestionParser.META_DATA_DISMISS_CONTROL, "1,2,3"); 176 suggestion.intent = new Intent().setComponent(new ComponentName("pkg", "cls")); 178 // Dismiss suggestion when smart suggestion is not enabled. 179 mSuggestionParser.dismissSuggestion(suggestion); 181 assertThat(mSuggestionParser.isDismissed(suggestion, true /* isSmartSuggestionEnabled */)) 191 final Tile suggestion = mSuggestionsBeforeDismiss.get(0); 192 if (mSuggestionParser.dismissSuggestion(suggestion)) { [all...] |
/frameworks/base/core/tests/coretests/src/android/widget/ |
H A D | SuggestionsPopupWindowTest.java | 314 final TextView suggestion = (TextView) listView.getChildAt(j); 315 assertNotNull(suggestion); 316 final Spanned spanned = (Spanned) suggestion.getText(); 319 // Check that the suggestion item order is kept.
|
/frameworks/rs/script_api/ |
H A D | rs_for_each.spec | 39 allocations. This is a hint only. Implementations may not follow the suggestion.
|
/frameworks/base/core/java/android/widget/ |
H A D | Editor.java | 2820 // Suggestion span couldn't be found. Try to find a suggestion span that has the same 2878 // Notify source IME of the suggestion pick. Do this before swapping texts. 2885 final String suggestion = suggestionInfo.mText.subSequence( 2887 mTextView.replaceText_internal(spanStart, spanEnd, suggestion); 2893 final int lengthDelta = suggestion.length() - (spanEnd - spanStart); 3139 // 3 ActionPopup [replace, suggestion, easyedit] (suggestionsPopup first hides the others) 3361 // Range of actual suggestion within mText 3367 // The index of this suggestion inside suggestionSpan 3428 * Returns the suggestion spans that cover the current cursor position. The suggestion [all...] |