script-astra/Android/Sdk/sources/android-35/android/telephony/DomainSelector.java
localadmin 4380f00a78 init
2025-01-20 18:15:20 +03:00

47 lines
1.6 KiB
Java

/*
* Copyright (C) 2022 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package android.telephony;
import android.annotation.FlaggedApi;
import android.annotation.NonNull;
import android.annotation.SystemApi;
import android.telephony.DomainSelectionService.SelectionAttributes;
import com.android.internal.telephony.flags.Flags;
/**
* Implemented as part of the {@link DomainSelectionService} to implement domain selection
* for a specific use case and receive signals from the framework to reselect a new domain
* when a previous domain selection fails or finish a selection when the call connects successfully.
* @hide
*/
@SystemApi
@FlaggedApi(Flags.FLAG_USE_OEM_DOMAIN_SELECTION_SERVICE)
public interface DomainSelector {
/**
* Reselect a domain due to the call not setting up properly.
*
* @param attr attributes required to select the domain.
*/
void reselectDomain(@NonNull SelectionAttributes attr);
/**
* Finish the selection procedure and clean everything up.
*/
void finishSelection();
}