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.remoteauth; 18 19 import android.remoteauth.IDeviceDiscoveryListener; 20 21 /** 22 * Interface for communicating with the RemoteAuthService. 23 * These methods are all require MANAGE_REMOTE_AUTH signature permission. 24 * @hide 25 */ 26 interface IRemoteAuthService { 27 // This is protected by the MANAGE_REMOTE_AUTH signature permission. isRemoteAuthSupported()28 boolean isRemoteAuthSupported(); 29 30 // This is protected by the MANAGE_REMOTE_AUTH signature permission. registerDiscoveryListener(in IDeviceDiscoveryListener deviceDiscoveryListener, int userId, int timeoutMs, String packageName, @nullable String attributionTag)31 boolean registerDiscoveryListener(in IDeviceDiscoveryListener deviceDiscoveryListener, 32 int userId, 33 int timeoutMs, 34 String packageName, 35 @nullable String attributionTag); 36 37 // This is protected by the MANAGE_REMOTE_AUTH signature permission. unregisterDiscoveryListener(in IDeviceDiscoveryListener deviceDiscoveryListener, int userId, String packageName, @nullable String attributionTag)38 void unregisterDiscoveryListener(in IDeviceDiscoveryListener deviceDiscoveryListener, 39 int userId, 40 String packageName, 41 @nullable String attributionTag); 42 }