Searched refs:inlineRequest (Results 1 – 4 of 4) sorted by relevance
/development/samples/InlineFillService/src/com/example/android/inlinefillservice/ |
D | InlineRequestHelper.java | 40 final InlineSuggestionsRequest inlineRequest = request.getInlineSuggestionsRequest(); in getInlineSuggestionsRequest() local 41 if (inlineRequest != null && inlineRequest.getMaxSuggestionCount() > 0 in getInlineSuggestionsRequest() 42 && !inlineRequest.getInlinePresentationSpecs().isEmpty()) { in getInlineSuggestionsRequest() 43 return Optional.of(inlineRequest); in getInlineSuggestionsRequest() 48 static int getMaxSuggestionCount(Optional<InlineSuggestionsRequest> inlineRequest, int max) { in getMaxSuggestionCount() argument 49 if (inlineRequest.isPresent()) { in getMaxSuggestionCount() 50 return Math.min(max, inlineRequest.get().getMaxSuggestionCount()); in getMaxSuggestionCount() 56 Context context, Optional<InlineSuggestionsRequest> inlineRequest) { in maybeCreateInlineAuthenticationResponse() argument 57 if (!inlineRequest.isPresent()) { in maybeCreateInlineAuthenticationResponse() 63 final InlinePresentationSpec spec = inlineRequest.get().getInlinePresentationSpecs().get(0); in maybeCreateInlineAuthenticationResponse() [all …]
|
D | InlineFillService.java | 72 final Optional<InlineSuggestionsRequest> inlineRequest = in onFillRequest() local 74 final int maxSuggestionsCount = InlineRequestHelper.getMaxSuggestionCount(inlineRequest, in onFillRequest() 88 ids, mAuthenticateDatasets, inlineRequest.orElse(null)); in onFillRequest() 94 inlineRequest); in onFillRequest() 100 inlineRequest); in onFillRequest() 109 @NonNull Optional<InlineSuggestionsRequest> inlineRequest) { in createResponse() argument 116 inlineRequest)); in createResponse() 119 packageName, i, inlineRequest)); in createResponse() 124 if (inlineRequest.isPresent()) { in createResponse() 126 inlineRequest.get(), R.drawable.ic_settings)); in createResponse() [all …]
|
D | ResponseHelper.java | 40 @NonNull Optional<InlineSuggestionsRequest> inlineRequest) { in newUnlockedDataset() argument 57 if (inlineRequest.isPresent()) { in newUnlockedDataset() 58 Log.d(TAG, "Found InlineSuggestionsRequest in FillRequest: " + inlineRequest); in newUnlockedDataset() 60 InlineRequestHelper.createInlineDataset(context, inlineRequest.get(), in newUnlockedDataset() 74 @NonNull Optional<InlineSuggestionsRequest> inlineRequest) { in newLockedDataset() argument 76 packageName, index, inlineRequest); in newLockedDataset() 87 if (inlineRequest.isPresent()) { in newLockedDataset() 89 InlineRequestHelper.createInlineDataset(context, inlineRequest.get(), in newLockedDataset()
|
D | AuthActivity.java | 71 final InlineSuggestionsRequest inlineRequest = in onYes() local 80 Optional.ofNullable(inlineRequest)); in onYes() 99 @Nullable InlineSuggestionsRequest inlineRequest) { in newIntentSenderForResponse() argument 100 return newIntentSender(context, null, hints, ids, authenticateDatasets, inlineRequest); in newIntentSenderForResponse() 105 boolean authenticateDatasets, @Nullable InlineSuggestionsRequest inlineRequest) { in newIntentSender() argument 113 intent.putExtra(EXTRA_INLINE_REQUEST, inlineRequest); in newIntentSender()
|