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 android.trust.test.lib
18 
19 import android.app.trust.TrustManager.TrustListener
20 
21 /**
22  * A listener that has default empty implementations for all [TrustListener] methods.
23  */
24 open class TestTrustListener : TrustListener {
onTrustChangednull25         override fun onTrustChanged(
26             enabled: Boolean,
27             newlyUnlocked: Boolean,
28             userId: Int,
29             flags: Int,
30             trustGrantedMessages: MutableList<String>
31         ) {
32         }
33 
onTrustManagedChangednull34         override fun onTrustManagedChanged(enabled: Boolean, userId: Int) {
35         }
36 
onTrustErrornull37         override fun onTrustError(message: CharSequence) {
38         }
39 
onEnabledTrustAgentsChangednull40         override fun onEnabledTrustAgentsChanged(userId: Int) {
41         }
42 
onIsActiveUnlockRunningChangednull43         override fun onIsActiveUnlockRunningChanged(isRunning: Boolean, userId: Int) {
44         }
45 }
46