1/* 2 * Copyright (c) 2025 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16package OHOS.AudioStandard; 17 18sequenceable audio_info..OHOS.AudioStandard.AudioProcessConfig; 19sequenceable audio_device_descriptor..OHOS.AudioStandard.AudioDeviceDescriptor; 20sequenceable audio_shared_memory..OHOS.AudioStandard.AudioSharedMemory; 21sequenceable audio_stream_info..OHOS.AudioStandard.AudioStreamInfo; 22sequenceable audio_device_descriptor..OHOS.AudioStandard.AudioCapturerInfo; 23 24interface IPolicyProviderIpc { 25 [ipccode 0] void GetProcessDeviceInfo([in] AudioProcessConfig config, [in] boolean lockFlag, [out] AudioDeviceDescriptor deviceInfo); 26 void InitSharedVolume([out] sharedptr<AudioSharedMemory> buffer); 27 void NotifyCapturerAdded([in] AudioCapturerInfo capturerInfo, [in] AudioStreamInfo streamInfo, [in] unsigned int sessionId); 28 void NotifyWakeUpCapturerRemoved(); 29 void IsAbsVolumeSupported([out] boolean isSupported); 30 void OffloadGetRenderPosition([out] unsigned int delayValue, [out] unsigned long sendDataSize, [out] unsigned int timeStamp); 31 void NearlinkGetRenderPosition([out] unsigned int delayValue); 32 void GetAndSaveClientType([in] unsigned int uid, [in] String bundleName); 33 void GetMaxRendererInstances([out] int maxInstances); 34 void NotifyCapturerRemoved([in] unsigned long sessionId); 35 void LoadModernInnerCapSink([in] int innerCapId); 36 void UnloadModernInnerCapSink([in] int innerCapId); 37 void ClearAudioFocusBySessionID([in] int sessionID); 38 [oneway] void CaptureConcurrentCheck([in] unsigned int sessionID); 39} 40