xref: /aosp_15_r20/frameworks/base/media/java/android/media/quality/IMediaQualityManager.aidl (revision d57664e9bc4670b3ecf6748a746a57c557b6bc9e)
1 /*
2  * Copyright (C) 2024 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.media.quality;
18 
19 import android.media.quality.AmbientBacklightSettings;
20 import android.media.quality.IAmbientBacklightCallback;
21 import android.media.quality.IPictureProfileCallback;
22 import android.media.quality.ISoundProfileCallback;
23 import android.media.quality.ParamCapability;
24 import android.media.quality.PictureProfileHandle;
25 import android.media.quality.PictureProfile;
26 import android.media.quality.SoundProfileHandle;
27 import android.media.quality.SoundProfile;
28 import android.os.UserHandle;
29 
30 /**
31  * Interface for Media Quality Manager
32  * @hide
33  */
34 interface IMediaQualityManager {
createPictureProfile(in PictureProfile pp, in UserHandle user)35     PictureProfile createPictureProfile(in PictureProfile pp, in UserHandle user);
updatePictureProfile(in String id, in PictureProfile pp, in UserHandle user)36     void updatePictureProfile(in String id, in PictureProfile pp, in UserHandle user);
removePictureProfile(in String id, in UserHandle user)37     void removePictureProfile(in String id, in UserHandle user);
setDefaultPictureProfile(in String id, in UserHandle user)38     boolean setDefaultPictureProfile(in String id, in UserHandle user);
getPictureProfile( in int type, in String name, in boolean includeParams, in UserHandle user)39     PictureProfile getPictureProfile(
40             in int type, in String name, in boolean includeParams, in UserHandle user);
getPictureProfilesByPackage( in String packageName, in boolean includeParams, in UserHandle user)41     List<PictureProfile> getPictureProfilesByPackage(
42             in String packageName, in boolean includeParams, in UserHandle user);
getAvailablePictureProfiles(in boolean includeParams, in UserHandle user)43     List<PictureProfile> getAvailablePictureProfiles(in boolean includeParams, in UserHandle user);
getPictureProfilePackageNames(in UserHandle user)44     List<String> getPictureProfilePackageNames(in UserHandle user);
getPictureProfileAllowList(in UserHandle user)45     List<String> getPictureProfileAllowList(in UserHandle user);
setPictureProfileAllowList(in List<String> packages, in UserHandle user)46     void setPictureProfileAllowList(in List<String> packages, in UserHandle user);
getPictureProfileHandle(in String[] id, in UserHandle user)47     List<PictureProfileHandle> getPictureProfileHandle(in String[] id, in UserHandle user);
48 
createSoundProfile(in SoundProfile pp, in UserHandle user)49     SoundProfile createSoundProfile(in SoundProfile pp, in UserHandle user);
updateSoundProfile(in String id, in SoundProfile pp, in UserHandle user)50     void updateSoundProfile(in String id, in SoundProfile pp, in UserHandle user);
removeSoundProfile(in String id, in UserHandle user)51     void removeSoundProfile(in String id, in UserHandle user);
setDefaultSoundProfile(in String id, in UserHandle user)52     boolean setDefaultSoundProfile(in String id, in UserHandle user);
getSoundProfile( in int type, in String name, in boolean includeParams, in UserHandle user)53     SoundProfile getSoundProfile(
54             in int type, in String name, in boolean includeParams, in UserHandle user);
getSoundProfilesByPackage( in String packageName, in boolean includeParams, in UserHandle user)55     List<SoundProfile> getSoundProfilesByPackage(
56             in String packageName, in boolean includeParams, in UserHandle user);
getAvailableSoundProfiles(in boolean includeParams, in UserHandle user)57     List<SoundProfile> getAvailableSoundProfiles(in boolean includeParams, in UserHandle user);
getSoundProfilePackageNames(in UserHandle user)58     List<String> getSoundProfilePackageNames(in UserHandle user);
getSoundProfileAllowList(in UserHandle user)59     List<String> getSoundProfileAllowList(in UserHandle user);
setSoundProfileAllowList(in List<String> packages, in UserHandle user)60     void setSoundProfileAllowList(in List<String> packages, in UserHandle user);
getSoundProfileHandle(in String[] id, in UserHandle user)61     List<SoundProfileHandle> getSoundProfileHandle(in String[] id, in UserHandle user);
62 
registerPictureProfileCallback(in IPictureProfileCallback cb)63     void registerPictureProfileCallback(in IPictureProfileCallback cb);
registerSoundProfileCallback(in ISoundProfileCallback cb)64     void registerSoundProfileCallback(in ISoundProfileCallback cb);
registerAmbientBacklightCallback(in IAmbientBacklightCallback cb)65     void registerAmbientBacklightCallback(in IAmbientBacklightCallback cb);
66 
getParamCapabilities(in List<String> names, in UserHandle user)67     List<ParamCapability> getParamCapabilities(in List<String> names, in UserHandle user);
68 
isSupported(in UserHandle user)69     boolean isSupported(in UserHandle user);
setAutoPictureQualityEnabled(in boolean enabled, in UserHandle user)70     void setAutoPictureQualityEnabled(in boolean enabled, in UserHandle user);
isAutoPictureQualityEnabled(in UserHandle user)71     boolean isAutoPictureQualityEnabled(in UserHandle user);
setSuperResolutionEnabled(in boolean enabled, in UserHandle user)72     void setSuperResolutionEnabled(in boolean enabled, in UserHandle user);
isSuperResolutionEnabled(in UserHandle user)73     boolean isSuperResolutionEnabled(in UserHandle user);
setAutoSoundQualityEnabled(in boolean enabled, in UserHandle user)74     void setAutoSoundQualityEnabled(in boolean enabled, in UserHandle user);
isAutoSoundQualityEnabled(in UserHandle user)75     boolean isAutoSoundQualityEnabled(in UserHandle user);
76 
setAmbientBacklightSettings(in AmbientBacklightSettings settings, in UserHandle user)77     void setAmbientBacklightSettings(in AmbientBacklightSettings settings, in UserHandle user);
setAmbientBacklightEnabled(in boolean enabled, in UserHandle user)78     void setAmbientBacklightEnabled(in boolean enabled, in UserHandle user);
isAmbientBacklightEnabled(in UserHandle user)79     boolean isAmbientBacklightEnabled(in UserHandle user);
80 }
81