Skip to content
Snippets Groups Projects
Commit 72154ad5 authored by Hakjun Choi's avatar Hakjun Choi
Browse files

fix usage of internal IIntegerConsumer IBooleanConsumer

Moved Consumer interfaces from internal telephony to android.telephony, as it is used by vendor satellite service

Bug: 307982863
Test: atest SatelliteManagerOnMockService
Change-Id: I7b2c6594bd6b6f248b43cd770e8d1c8fd1db66f4
parent 1cf36e8e
No related branches found
No related tags found
No related merge requests found
/*
* Copyright (C) 2023 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;
/**
* Consumer pattern for an operation that requires a boolean result from another process to finish.
* @hide
*/
oneway interface IBooleanConsumer {
void accept(boolean result);
}
\ No newline at end of file
/*
* Copyright (C) 2023 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;
/**
* Consumer pattern for an operation that requires an integer result from another process to finish.
* @hide
*/
oneway interface IIntegerConsumer {
void accept(int result);
}
\ No newline at end of file
......@@ -16,14 +16,14 @@
package android.telephony.satellite.stub;
import android.telephony.IBooleanConsumer;
import android.telephony.IIntegerConsumer;
import android.telephony.satellite.stub.INtnSignalStrengthConsumer;
import android.telephony.satellite.stub.ISatelliteCapabilitiesConsumer;
import android.telephony.satellite.stub.ISatelliteListener;
import android.telephony.satellite.stub.SatelliteDatagram;
import com.android.internal.telephony.IBooleanConsumer;
import com.android.internal.telephony.IIntegerConsumer;
/**
* {@hide}
*/
......
......@@ -19,10 +19,10 @@ package android.telephony.satellite.stub;
import android.annotation.NonNull;
import android.os.IBinder;
import android.os.RemoteException;
import android.telephony.IBooleanConsumer;
import android.telephony.IIntegerConsumer;
import android.util.Log;
import com.android.internal.telephony.IBooleanConsumer;
import com.android.internal.telephony.IIntegerConsumer;
import com.android.internal.telephony.util.TelephonyUtils;
import java.util.List;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment