Home
last modified time | relevance | path

Searched refs:ProviderSession (Results 1 – 18 of 18) sorted by relevance

/frameworks/base/services/credentials/java/com/android/server/credentials/
DClearRequestSession.java43 implements ProviderSession.ProviderInternalCallback<Void> {
67 public ProviderSession initiateProviderSession(CredentialProviderInfo providerInfo, in initiateProviderSession()
82 public void onProviderStatusChanged(ProviderSession.Status status, in onProviderStatusChanged()
83 ComponentName componentName, ProviderSession.CredentialsSource source) { in onProviderStatusChanged()
85 if (ProviderSession.isTerminatingStatus(status)) { in onProviderStatusChanged()
88 } else if (ProviderSession.isCompletionStatus(status)) { in onProviderStatusChanged()
139 for (ProviderSession session : mProviders.values()) { in processResponses()
DRequestSession.java90 protected final Map<String, ProviderSession> mProviders = new ConcurrentHashMap<>();
206 public abstract ProviderSession initiateProviderSession(CredentialProviderInfo providerInfo, in initiateProviderSession()
216 public void addProviderSession(ComponentName componentName, ProviderSession providerSession) { in addProviderSession()
234 ProviderSession providerSession = mProviders.get(providerId); in onUiSelection()
259 mProviders.values().forEach(ProviderSession::cancelProviderRemoteSession); in finishSession()
285 for (ProviderSession session : mProviders.values()) { in isAnyProviderPending()
286 if (ProviderSession.isStatusWaitingForRemoteResponse(session.getStatus())) { in isAnyProviderPending()
302 for (ProviderSession session : mProviders.values()) { in isUiInvocationNeeded()
303 if (ProviderSession.isUiInvokingStatus(session.getStatus())) { in isUiInvocationNeeded()
305 } else if (ProviderSession.isStatusWaitingForRemoteResponse(session.getStatus())) { in isUiInvocationNeeded()
[all …]
DPrepareGetRequestSession.java68 public void onProviderStatusChanged(ProviderSession.Status status, ComponentName componentName, in onProviderStatusChanged()
69 ProviderSession.CredentialsSource source) { in onProviderStatusChanged()
107 if (status == ProviderSession.Status.NO_CREDENTIALS_FROM_AUTH_ENTRY) { in onProviderStatusChanged()
110 } else if (status == ProviderSession.Status.CREDENTIALS_RECEIVED) { in onProviderStatusChanged()
184 for (ProviderSession session : mProviders.values()) { in getUiIntent()
DCredentialManagerService.java351 private List<ProviderSession> initiateProviderSessionsWithActiveContainers( in initiateProviderSessionsWithActiveContainers()
355 List<ProviderSession> providerSessions = new ArrayList<>(); in initiateProviderSessionsWithActiveContainers()
358 ProviderSession providerSession = ProviderRegistryGetSession.createNewSession( in initiateProviderSessionsWithActiveContainers()
373 private List<ProviderSession> initiateProviderSessionsWithActiveContainers( in initiateProviderSessionsWithActiveContainers()
377 List<ProviderSession> providerSessions = new ArrayList<>(); in initiateProviderSessionsWithActiveContainers()
380 ProviderSession providerSession = ProviderRegistryGetSession.createNewSession( in initiateProviderSessionsWithActiveContainers()
436 private List<ProviderSession> initiateProviderSessions( in initiateProviderSessions()
438 List<ProviderSession> providerSessions = new ArrayList<>(); in initiateProviderSessions()
443 ProviderSession providerSession = in initiateProviderSessions()
515 List<ProviderSession> providerSessions = in getCandidateCredentials()
[all …]
DGetRequestSession.java50 implements ProviderSession.ProviderInternalCallback<GetCredentialResponse> {
85 public ProviderSession initiateProviderSession(CredentialProviderInfo providerInfo, in initiateProviderSession()
188 public void onProviderStatusChanged(ProviderSession.Status status, in onProviderStatusChanged()
189 ComponentName componentName, ProviderSession.CredentialsSource source) { in onProviderStatusChanged()
194 if (status == ProviderSession.Status.NO_CREDENTIALS_FROM_AUTH_ENTRY) { in onProviderStatusChanged()
DCreateRequestSession.java51 implements ProviderSession.ProviderInternalCallback<CreateCredentialResponse> {
81 public ProviderSession initiateProviderSession(CredentialProviderInfo providerInfo, in initiateProviderSession()
186 public void onProviderStatusChanged(ProviderSession.Status status, in onProviderStatusChanged()
187 ComponentName componentName, ProviderSession.CredentialsSource source) { in onProviderStatusChanged()
DGetCandidateRequestSession.java58 implements ProviderSession.ProviderInternalCallback<GetCredentialResponse> {
102 public ProviderSession initiateProviderSession(CredentialProviderInfo providerInfo, in initiateProviderSession()
210 public void onProviderStatusChanged(ProviderSession.Status status, in onProviderStatusChanged()
211 ComponentName componentName, ProviderSession.CredentialsSource source) { in onProviderStatusChanged()
DProviderSession.java45 public abstract class ProviderSession<T, R> class
144 protected ProviderSession(@NonNull Context context, in ProviderSession() method in ProviderSession
DProviderRegistryGetSession.java59 public class ProviderRegistryGetSession extends ProviderSession<CredentialOption,
178 if (!ProviderSession.isUiInvokingStatus(getStatus())) { in prepareUiData()
DProviderClearSession.java37 public final class ProviderClearSession extends ProviderSession<ClearCredentialStateRequest,
DCredentialManagerServiceImpl.java100 public ProviderSession initiateProviderSessionForRequestLocked( in initiateProviderSessionForRequestLocked()
DProviderCreateSession.java53 public final class ProviderCreateSession extends ProviderSession<
213 if (!ProviderSession.isUiInvokingStatus(getStatus())) { in prepareUiData()
DMetricUtilities.java259 public static void logApiCalledCandidateGetMetric(Map<String, ProviderSession> providers, in logApiCalledCandidateGetMetric()
297 public static void logApiCalledCandidatePhase(Map<String, ProviderSession> providers, in logApiCalledCandidatePhase()
DProviderGetSession.java61 public final class ProviderGetSession extends ProviderSession<BeginGetCredentialRequest,
377 if (!ProviderSession.isUiInvokingStatus(getStatus())) { in prepareUiData()
/frameworks/base/services/tests/servicestests/src/com/android/server/credentials/
DProviderRegistryGetSessionTest.java138 final ArgumentCaptor<ProviderSession.Status> statusCaptor = in testInvokeSession_existingProvider_setsResults()
139 ArgumentCaptor.forClass(ProviderSession.Status.class); in testInvokeSession_existingProvider_setsResults()
151 cpComponentNameCaptor.capture(), ProviderSession.CredentialsSource.REGISTRY); in testInvokeSession_existingProvider_setsResults()
152 assertThat(statusCaptor.getValue()).isEqualTo(ProviderSession.Status.CREDENTIALS_RECEIVED); in testInvokeSession_existingProvider_setsResults()
161 mProviderRegistryGetSession.setStatus(ProviderSession.Status.CREDENTIALS_RECEIVED); in testPrepareUiData_statusNonUIInvoking_throwsIllegalStateException()
169 mProviderRegistryGetSession.setStatus(ProviderSession.Status.CANCELED); in testPrepareUiData_statusUIInvokingNoResults_returnsNull()
230 final ArgumentCaptor<ProviderSession.Status> statusCaptor = in testOnUiEntrySelected_pendingIntentWithException_callbackWithGivenException()
231 ArgumentCaptor.forClass(ProviderSession.Status.class); in testOnUiEntrySelected_pendingIntentWithException_callbackWithGivenException()
248 assertThat(statusCaptor.getValue()).isEqualTo(ProviderSession.Status.CREDENTIALS_RECEIVED); in testOnUiEntrySelected_pendingIntentWithException_callbackWithGivenException()
265 final ArgumentCaptor<ProviderSession.Status> statusCaptor = in testOnUiEntrySelected_pendingIntentWithException_callbackWithCancelledException()
[all …]
DMetricUtilitiesTest.java115 Map<String, ProviderSession> testMap = new HashMap<>(); in logApiCalledCandidate_invalidProvidersCandidatePositiveSequence_success()
128 Map<String, ProviderSession> testMap = new HashMap<>(); in logApiCalledCandidateGet_invalidProvidersCandidatePositiveSequence_success()
/frameworks/base/services/credentials/java/com/android/server/credentials/metrics/
DCandidateAggregateMetric.java20 import com.android.server.credentials.ProviderSession;
80 public void collectAverages(Map<String, ProviderSession> providers) { in collectAverages()
85 private void collectQueryAggregates(Map<String, ProviderSession> providers) { in collectQueryAggregates()
124 private void collectAuthAggregates(Map<String, ProviderSession> providers) { in collectAuthAggregates()
DRequestSessionMetric.java43 import com.android.server.credentials.ProviderSession;
314 public void updateMetricsOnResponseReceived(Map<String, ProviderSession> providers, in updateMetricsOnResponseReceived()
392 public void logCandidatePhaseMetrics(Map<String, ProviderSession> providers) { in logCandidatePhaseMetrics()
411 public void logCandidateAggregateMetrics(Map<String, ProviderSession> providers) { in logCandidateAggregateMetrics()