1 /* 2 * Copyright (C) 2023 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 package com.android.bedstead.testapp; 18 19 import android.credentials.ClearCredentialStateException; 20 import android.credentials.CreateCredentialException; 21 import android.credentials.GetCredentialException; 22 import android.os.CancellationSignal; 23 import android.os.OutcomeReceiver; 24 import android.service.credentials.BeginCreateCredentialRequest; 25 import android.service.credentials.BeginCreateCredentialResponse; 26 import android.service.credentials.BeginGetCredentialRequest; 27 import android.service.credentials.BeginGetCredentialResponse; 28 import android.service.credentials.ClearCredentialStateRequest; 29 import android.service.credentials.CredentialProviderService; 30 31 public class BaseTestAppCredentialProviderService extends CredentialProviderService { 32 @Override onBeginGetCredential(BeginGetCredentialRequest request, CancellationSignal cancellationSignal, OutcomeReceiver<BeginGetCredentialResponse, GetCredentialException> callback)33 public void onBeginGetCredential(BeginGetCredentialRequest request, 34 CancellationSignal cancellationSignal, 35 OutcomeReceiver<BeginGetCredentialResponse, GetCredentialException> callback) { 36 // TODO(274582303): Implement 37 } 38 39 @Override onBeginCreateCredential(BeginCreateCredentialRequest request, CancellationSignal cancellationSignal, OutcomeReceiver<BeginCreateCredentialResponse, CreateCredentialException> callback)40 public void onBeginCreateCredential(BeginCreateCredentialRequest request, 41 CancellationSignal cancellationSignal, 42 OutcomeReceiver<BeginCreateCredentialResponse, CreateCredentialException> callback) { 43 // TODO(274582303): Implement 44 } 45 46 @Override onClearCredentialState(ClearCredentialStateRequest request, CancellationSignal cancellationSignal, OutcomeReceiver<Void, ClearCredentialStateException> callback)47 public void onClearCredentialState(ClearCredentialStateRequest request, 48 CancellationSignal cancellationSignal, 49 OutcomeReceiver<Void, ClearCredentialStateException> callback) { 50 // TODO(274582303): Implement 51 } 52 } 53