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.IActiveProcessingPictureListener; 21 import android.media.quality.IAmbientBacklightCallback; 22 import android.media.quality.IPictureProfileCallback; 23 import android.media.quality.ISoundProfileCallback; 24 import android.media.quality.ParameterCapability; 25 import android.media.quality.PictureProfileHandle; 26 import android.media.quality.PictureProfile; 27 import android.media.quality.SoundProfileHandle; 28 import android.media.quality.SoundProfile; 29 30 /** 31 * Interface for Media Quality Manager 32 * @hide 33 */ 34 interface IMediaQualityManager { 35 // TODO: use UserHandle createPictureProfile(in PictureProfile pp, int userId)36 void createPictureProfile(in PictureProfile pp, int userId); updatePictureProfile(in String id, in PictureProfile pp, int userId)37 void updatePictureProfile(in String id, in PictureProfile pp, int userId); removePictureProfile(in String id, int userId)38 void removePictureProfile(in String id, int userId); setDefaultPictureProfile(in String id, int userId)39 boolean setDefaultPictureProfile(in String id, int userId); 40 // TODO: use Bundle for includeParams getPictureProfile( in int type, in String name, in boolean includeParams, int userId)41 PictureProfile getPictureProfile( 42 in int type, in String name, in boolean includeParams, int userId); getPictureProfilesByPackage( in String packageName, in boolean includeParams, int userId)43 List<PictureProfile> getPictureProfilesByPackage( 44 in String packageName, in boolean includeParams, int userId); getAvailablePictureProfiles(in boolean includeParams, int userId)45 List<PictureProfile> getAvailablePictureProfiles(in boolean includeParams, int userId); getPictureProfilePackageNames(int userId)46 List<String> getPictureProfilePackageNames(int userId); getPictureProfileAllowList(int userId)47 List<String> getPictureProfileAllowList(int userId); setPictureProfileAllowList(in List<String> packages, int userId)48 void setPictureProfileAllowList(in List<String> packages, int userId); getPictureProfileHandle(in String[] id, int userId)49 List<PictureProfileHandle> getPictureProfileHandle(in String[] id, int userId); 50 getPictureProfileHandleValue(in String id, int userId)51 long getPictureProfileHandleValue(in String id, int userId); getDefaultPictureProfileHandleValue(int userId)52 long getDefaultPictureProfileHandleValue(int userId); notifyPictureProfileHandleSelection(in long handle, int userId)53 void notifyPictureProfileHandleSelection(in long handle, int userId); 54 getPictureProfileForTvInput(in String inputId, int userId)55 long getPictureProfileForTvInput(in String inputId, int userId); 56 createSoundProfile(in SoundProfile pp, int userId)57 void createSoundProfile(in SoundProfile pp, int userId); updateSoundProfile(in String id, in SoundProfile pp, int userId)58 void updateSoundProfile(in String id, in SoundProfile pp, int userId); removeSoundProfile(in String id, int userId)59 void removeSoundProfile(in String id, int userId); setDefaultSoundProfile(in String id, int userId)60 boolean setDefaultSoundProfile(in String id, int userId); getSoundProfile( in int type, in String name, in boolean includeParams, int userId)61 SoundProfile getSoundProfile( 62 in int type, in String name, in boolean includeParams, int userId); getSoundProfilesByPackage( in String packageName, in boolean includeParams, int userId)63 List<SoundProfile> getSoundProfilesByPackage( 64 in String packageName, in boolean includeParams, int userId); getAvailableSoundProfiles(in boolean includeParams, int userId)65 List<SoundProfile> getAvailableSoundProfiles(in boolean includeParams, int userId); getSoundProfilePackageNames(int userId)66 List<String> getSoundProfilePackageNames(int userId); getSoundProfileAllowList(int userId)67 List<String> getSoundProfileAllowList(int userId); setSoundProfileAllowList(in List<String> packages, int userId)68 void setSoundProfileAllowList(in List<String> packages, int userId); getSoundProfileHandle(in String[] id, int userId)69 List<SoundProfileHandle> getSoundProfileHandle(in String[] id, int userId); 70 registerPictureProfileCallback(in IPictureProfileCallback cb)71 void registerPictureProfileCallback(in IPictureProfileCallback cb); registerSoundProfileCallback(in ISoundProfileCallback cb)72 void registerSoundProfileCallback(in ISoundProfileCallback cb); registerAmbientBacklightCallback(in IAmbientBacklightCallback cb)73 void registerAmbientBacklightCallback(in IAmbientBacklightCallback cb); registerActiveProcessingPictureListener(in IActiveProcessingPictureListener l)74 void registerActiveProcessingPictureListener(in IActiveProcessingPictureListener l); 75 getParameterCapabilities(in List<String> names, int userId)76 List<ParameterCapability> getParameterCapabilities(in List<String> names, int userId); 77 isSupported(int userId)78 boolean isSupported(int userId); setAutoPictureQualityEnabled(in boolean enabled, int userId)79 void setAutoPictureQualityEnabled(in boolean enabled, int userId); isAutoPictureQualityEnabled(int userId)80 boolean isAutoPictureQualityEnabled(int userId); setSuperResolutionEnabled(in boolean enabled, int userId)81 void setSuperResolutionEnabled(in boolean enabled, int userId); isSuperResolutionEnabled(int userId)82 boolean isSuperResolutionEnabled(int userId); setAutoSoundQualityEnabled(in boolean enabled, int userId)83 void setAutoSoundQualityEnabled(in boolean enabled, int userId); isAutoSoundQualityEnabled(int userId)84 boolean isAutoSoundQualityEnabled(int userId); 85 setAmbientBacklightSettings(in AmbientBacklightSettings settings, int userId)86 void setAmbientBacklightSettings(in AmbientBacklightSettings settings, int userId); setAmbientBacklightEnabled(in boolean enabled, int userId)87 void setAmbientBacklightEnabled(in boolean enabled, int userId); isAmbientBacklightEnabled(int userId)88 boolean isAmbientBacklightEnabled(int userId); 89 } 90