1a4d88d1e6e0af284b5ecccc5d55bfcdaa2f784a8Etan Cohen/* 2a4d88d1e6e0af284b5ecccc5d55bfcdaa2f784a8Etan Cohen * Copyright (c) 2014 The Android Open Source Project 3a4d88d1e6e0af284b5ecccc5d55bfcdaa2f784a8Etan Cohen * 4a4d88d1e6e0af284b5ecccc5d55bfcdaa2f784a8Etan Cohen * Licensed under the Apache License, Version 2.0 (the "License"); 5a4d88d1e6e0af284b5ecccc5d55bfcdaa2f784a8Etan Cohen * you may not use this file except in compliance with the License. 6a4d88d1e6e0af284b5ecccc5d55bfcdaa2f784a8Etan Cohen * You may obtain a copy of the License at 7a4d88d1e6e0af284b5ecccc5d55bfcdaa2f784a8Etan Cohen * 8a4d88d1e6e0af284b5ecccc5d55bfcdaa2f784a8Etan Cohen * http://www.apache.org/licenses/LICENSE-2.0 9a4d88d1e6e0af284b5ecccc5d55bfcdaa2f784a8Etan Cohen * 10a4d88d1e6e0af284b5ecccc5d55bfcdaa2f784a8Etan Cohen * Unless required by applicable law or agreed to in writing, software 11a4d88d1e6e0af284b5ecccc5d55bfcdaa2f784a8Etan Cohen * distributed under the License is distributed on an "AS IS" BASIS, 12a4d88d1e6e0af284b5ecccc5d55bfcdaa2f784a8Etan Cohen * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13a4d88d1e6e0af284b5ecccc5d55bfcdaa2f784a8Etan Cohen * See the License for the specific language governing permissions and 14a4d88d1e6e0af284b5ecccc5d55bfcdaa2f784a8Etan Cohen * limitations under the License. 15a4d88d1e6e0af284b5ecccc5d55bfcdaa2f784a8Etan Cohen */ 16a4d88d1e6e0af284b5ecccc5d55bfcdaa2f784a8Etan Cohen 17a4d88d1e6e0af284b5ecccc5d55bfcdaa2f784a8Etan Cohenpackage com.android.ims; 18a4d88d1e6e0af284b5ecccc5d55bfcdaa2f784a8Etan Cohen 19a4d88d1e6e0af284b5ecccc5d55bfcdaa2f784a8Etan Cohen/** 20a4d88d1e6e0af284b5ecccc5d55bfcdaa2f784a8Etan Cohen * Used by IMS config client to monitor the config operation results. 21a4d88d1e6e0af284b5ecccc5d55bfcdaa2f784a8Etan Cohen * {@hide} 22a4d88d1e6e0af284b5ecccc5d55bfcdaa2f784a8Etan Cohen */ 23a4d88d1e6e0af284b5ecccc5d55bfcdaa2f784a8Etan Cohenoneway interface ImsConfigListener { 24a4d88d1e6e0af284b5ecccc5d55bfcdaa2f784a8Etan Cohen /** 25a4d88d1e6e0af284b5ecccc5d55bfcdaa2f784a8Etan Cohen * Notifies client the value of the get operation result on the feature config item. 26a4d88d1e6e0af284b5ecccc5d55bfcdaa2f784a8Etan Cohen * The arguments are the same as passed to com.android.ims.ImsConfig#getFeatureValue. 27a4d88d1e6e0af284b5ecccc5d55bfcdaa2f784a8Etan Cohen * 28a4d88d1e6e0af284b5ecccc5d55bfcdaa2f784a8Etan Cohen * @param feature. as defined in com.android.ims.ImsConfig#FeatureConstants. 29a4d88d1e6e0af284b5ecccc5d55bfcdaa2f784a8Etan Cohen * @param network. as defined in android.telephony.TelephonyManager#NETWORK_TYPE_XXX. 30a4d88d1e6e0af284b5ecccc5d55bfcdaa2f784a8Etan Cohen * @param value. as defined in com.android.ims.ImsConfig#FeatureValueConstants. 31a4d88d1e6e0af284b5ecccc5d55bfcdaa2f784a8Etan Cohen * @param status. as defined in com.android.ims.ImsConfig#OperationStatusConstants. 32a4d88d1e6e0af284b5ecccc5d55bfcdaa2f784a8Etan Cohen * @return void. 33a4d88d1e6e0af284b5ecccc5d55bfcdaa2f784a8Etan Cohen */ 34a4d88d1e6e0af284b5ecccc5d55bfcdaa2f784a8Etan Cohen void onGetFeatureResponse(int feature, int network, int value, int status); 35a4d88d1e6e0af284b5ecccc5d55bfcdaa2f784a8Etan Cohen 36a4d88d1e6e0af284b5ecccc5d55bfcdaa2f784a8Etan Cohen /** 37a4d88d1e6e0af284b5ecccc5d55bfcdaa2f784a8Etan Cohen * Notifies client the set value operation result for feature config item. 38a4d88d1e6e0af284b5ecccc5d55bfcdaa2f784a8Etan Cohen * Used by clients that need to be notified the set operation result. 39a4d88d1e6e0af284b5ecccc5d55bfcdaa2f784a8Etan Cohen * The arguments are the same as passed to com.android.ims.ImsConfig#setFeatureValue. 40a4d88d1e6e0af284b5ecccc5d55bfcdaa2f784a8Etan Cohen * The arguments are repeated in the callback to enable the listener to understand 41a4d88d1e6e0af284b5ecccc5d55bfcdaa2f784a8Etan Cohen * which configuration attempt failed. 42a4d88d1e6e0af284b5ecccc5d55bfcdaa2f784a8Etan Cohen * 43a4d88d1e6e0af284b5ecccc5d55bfcdaa2f784a8Etan Cohen * @param feature. as defined in com.android.ims.ImsConfig#FeatureConstants. 44a4d88d1e6e0af284b5ecccc5d55bfcdaa2f784a8Etan Cohen * @param network. as defined in android.telephony.TelephonyManager#NETWORK_TYPE_XXX. 45a4d88d1e6e0af284b5ecccc5d55bfcdaa2f784a8Etan Cohen * @param value. as defined in com.android.ims.ImsConfig#FeatureValueConstants. 46a4d88d1e6e0af284b5ecccc5d55bfcdaa2f784a8Etan Cohen * @param status. as defined in com.android.ims.ImsConfig#OperationStatusConstants. 47a4d88d1e6e0af284b5ecccc5d55bfcdaa2f784a8Etan Cohen * 48a4d88d1e6e0af284b5ecccc5d55bfcdaa2f784a8Etan Cohen * @return void. 49a4d88d1e6e0af284b5ecccc5d55bfcdaa2f784a8Etan Cohen */ 50a4d88d1e6e0af284b5ecccc5d55bfcdaa2f784a8Etan Cohen void onSetFeatureResponse(int feature, int network, int value, int status); 5107366813cdf3768dcd69a1f744023747564d654aRekha Kumar 5207366813cdf3768dcd69a1f744023747564d654aRekha Kumar /** 5307366813cdf3768dcd69a1f744023747564d654aRekha Kumar * Notifies client the value of the get operation result on the video quality item. 5407366813cdf3768dcd69a1f744023747564d654aRekha Kumar * 5507366813cdf3768dcd69a1f744023747564d654aRekha Kumar * @param status. as defined in com.android.ims.ImsConfig#OperationStatusConstants. 5607366813cdf3768dcd69a1f744023747564d654aRekha Kumar * @param quality. as defined in com.android.ims.ImsConfig#OperationValuesConstants. 5707366813cdf3768dcd69a1f744023747564d654aRekha Kumar * @return void 5807366813cdf3768dcd69a1f744023747564d654aRekha Kumar * 5907366813cdf3768dcd69a1f744023747564d654aRekha Kumar * @throws ImsException if calling the IMS service results in an error. 6007366813cdf3768dcd69a1f744023747564d654aRekha Kumar */ 6107366813cdf3768dcd69a1f744023747564d654aRekha Kumar void onGetVideoQuality(int status, int quality); 6207366813cdf3768dcd69a1f744023747564d654aRekha Kumar 6307366813cdf3768dcd69a1f744023747564d654aRekha Kumar /** 6407366813cdf3768dcd69a1f744023747564d654aRekha Kumar * Notifies client the set value operation result for video quality item. 6507366813cdf3768dcd69a1f744023747564d654aRekha Kumar * Used by clients that need to be notified the set operation result. 6607366813cdf3768dcd69a1f744023747564d654aRekha Kumar * 6707366813cdf3768dcd69a1f744023747564d654aRekha Kumar * @param status. as defined in com.android.ims.ImsConfig#OperationStatusConstants. 6807366813cdf3768dcd69a1f744023747564d654aRekha Kumar * @return void 6907366813cdf3768dcd69a1f744023747564d654aRekha Kumar * 7007366813cdf3768dcd69a1f744023747564d654aRekha Kumar * @throws ImsException if calling the IMS service results in an error. 7107366813cdf3768dcd69a1f744023747564d654aRekha Kumar */ 7207366813cdf3768dcd69a1f744023747564d654aRekha Kumar void onSetVideoQuality(int status); 7307366813cdf3768dcd69a1f744023747564d654aRekha Kumar} 74