xref: /aosp_15_r20/system/server_configurable_flags/aconfigd/srcs/AconfigdClientSocket.java (revision 207333786ba243bc7d4d69ef6b05487aa7071806)
1*20733378SAndroid Build Coastguard Worker /*
2*20733378SAndroid Build Coastguard Worker  * Copyright (C) 2024 The Android Open Source Project
3*20733378SAndroid Build Coastguard Worker  *
4*20733378SAndroid Build Coastguard Worker  * Licensed under the Apache License, Version 2.0 (the "License");
5*20733378SAndroid Build Coastguard Worker  * you may not use this file except in compliance with the License.
6*20733378SAndroid Build Coastguard Worker  * You may obtain a copy of the License at
7*20733378SAndroid Build Coastguard Worker  *
8*20733378SAndroid Build Coastguard Worker  *      http://www.apache.org/licenses/LICENSE-2.0
9*20733378SAndroid Build Coastguard Worker  *
10*20733378SAndroid Build Coastguard Worker  * Unless required by applicable law or agreed to in writing, software
11*20733378SAndroid Build Coastguard Worker  * distributed under the License is distributed on an "AS IS" BASIS,
12*20733378SAndroid Build Coastguard Worker  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13*20733378SAndroid Build Coastguard Worker  * See the License for the specific language governing permissions and
14*20733378SAndroid Build Coastguard Worker  * limitations under the License.
15*20733378SAndroid Build Coastguard Worker  */
16*20733378SAndroid Build Coastguard Worker 
17*20733378SAndroid Build Coastguard Worker package android.aconfigd;
18*20733378SAndroid Build Coastguard Worker 
19*20733378SAndroid Build Coastguard Worker import java.io.Closeable;
20*20733378SAndroid Build Coastguard Worker import java.io.InputStream;
21*20733378SAndroid Build Coastguard Worker 
22*20733378SAndroid Build Coastguard Worker /** @hide */
23*20733378SAndroid Build Coastguard Worker public interface AconfigdClientSocket extends Closeable {
24*20733378SAndroid Build Coastguard Worker     /**
25*20733378SAndroid Build Coastguard Worker      * send request
26*20733378SAndroid Build Coastguard Worker      *
27*20733378SAndroid Build Coastguard Worker      * @param requests stream of requests
28*20733378SAndroid Build Coastguard Worker      * @hide
29*20733378SAndroid Build Coastguard Worker      */
send(byte[] requests)30*20733378SAndroid Build Coastguard Worker     public InputStream send(byte[] requests);
31*20733378SAndroid Build Coastguard Worker }
32